﻿/**
 * TU CYBER TRANSPORT UI - V2.0 (REBUILT)
 * 2026-01-18
 */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Exo+2:wght@300;400;600&display=swap');

:root {
    --tu-c-primary: #06b6d4; /* Cyan */
    --tu-c-secondary: #3b82f6; /* Blue */
    --tu-c-accent: #10b981; /* Green */
    --tu-c-bg: #050b14;
    --tu-c-panel: rgba(10, 25, 41, 0.75);
    --tu-c-text: #e2e8f0;
    --tu-c-text-muted: #94a3b8;
    --tu-c-border: rgba(6, 182, 212, 0.3);
    
    --tu-font-main: 'Exo 2', sans-serif;
    --tu-font-display: 'Orbitron', sans-serif;
    
    --tu-glow: 0 0 15px rgba(6, 182, 212, 0.4);
    --tu-shadow-3d: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

body.tu-light {
    --tu-c-bg: #f1f5f9;
    --tu-c-panel: rgba(255, 255, 255, 0.85);
    --tu-c-text: #0f172a;
    --tu-c-text-muted: #475569;
    --tu-c-border: rgba(6, 182, 212, 0.5); /* Stronger border in light mode */
    --tu-shadow-3d: 0 20px 40px -10px rgba(0,0,0,0.15);
}

/* =========================================
   Layout Reset & Wrapper
   ========================================= */
.tu-cyber2-wrapper {
    background-color: var(--tu-c-bg);
    color: var(--tu-c-text);
    font-family: var(--tu-font-main);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 50px;
    padding-top: 20px;
}
.tu-cyber2-wrapper * { box-sizing: border-box; }

/* Background FX */
.tu-bg-grid {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}
.tu-bg-glows {
    position: absolute;
    top: -200px; left: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Main Grid */
.tu-cyber2-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

/* =========================================
   Left Column
   ========================================= */
.tu-col-left {
    position: relative;
    padding-top: 10px;
}

/* Header */
.tu-breadcrumbs,
.woocommerce-breadcrumb,
.breadcrumb {
    display: none !important;
}

.tu-product-header { margin-bottom: 10px; }

.tu-title {
    font-family: var(--tu-font-display);
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1.2;
    margin: 0 0 5px 0;
    background: linear-gradient(90deg, var(--tu-c-text), var(--tu-c-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.tu-route-line {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 4px;
    color: var(--tu-c-primary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}
.tu-brand-sub {
    font-size: 0.8rem;
    color: var(--tu-c-text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Hero Stage */
.tu-hero-stage {
    position: relative;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.tu-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}
.tu-hero-img {
    width: 100%;
    height: auto;
    max-height: 800px;
    object-fit: contain;
    filter: drop-shadow(0 30px 20px rgba(0,0,0,0.6));
    transform: translateZ(30px);
    transition: all 0.7s cubic-bezier(0.6, 0, 0.3, 1);
}
.tu-hero-img:hover {
    transform: translateZ(50px) scale(1.02);
}

/* --- HERO VISUALIZER (Start/End + Road) --- */
.tu-route-visualizer {
    position: absolute;
    bottom: -70px; /* Lowered below the stage slightly */
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-start; /* Align to top (boxes + road aligned, text below) */
    justify-content: center;
    gap: 0px; /* Increased gap */
    z-index: 5;
    padding-bottom: 10px;
    pointer-events: none;
    width: 100%;
    max-width: 800px; /* Allow wider spread */
    margin: 0 auto;
}

.tu-point-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.tu-route-label {
    font-size: 0.9rem;
    color: var(--tu-c-primary);
    text-transform: uppercase;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0,0,0,0.8);
    background: rgba(10, 25, 41, 0.6);
    padding: 2px 8px;
    border-radius: 5px;
    backdrop-filter: blur(2px);
}

.tu-route-box {
    width: 80px;
    height: 80px;
    background: rgba(10, 25, 41, 0.8);
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 15px;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}
.tu-route-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(6,182,212,0.5));
}

.tu-route-path {
    flex: 1;
    max-width: 500px; /* Increased from 300px */
    height: 60px;
    position: relative;
    display: flex;
    align-items: center;
}

.tu-road-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.tu-road-anim {
    stroke-dasharray: 5 7.6;
    animation: tu-dash-move 2s linear infinite; /* Slower 5s */
}

@keyframes tu-dash-move {
    from { stroke-dashoffset: 20; }
    to { stroke-dashoffset: 4; } /* Move left to right */
}

/* Marker that travels (Cyber Shining) */
.tu-road-marker {
    display: none; /* SVG handled the animation nicely, basic marker not needed for simple dots */
}

/* --- HERO OVERLAY GROUP (Top Right Price) --- */
.tu-hero-overlay-group {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    pointer-events: none;
}
.tu-hero-overlay-group > * { pointer-events: auto; }

/* Price Card */
.tu-glass-price {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid var(--tu-c-primary);
    border-radius: 20px;
    padding: 10px 20px;
    box-shadow: var(--tu-glow);
    animation: tu-float-card 5s ease-in-out infinite;
    text-align: right;
    min-width: 280px;
}
.tu-price-label {
    display: block;
    font-size: 0.8rem;
    color: var(--tu-c-text-muted);
    text-transform: uppercase;
}
.tu-price-value {
    font-family: var(--tu-font-display);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--tu-c-text);
}
.tu-price-value .woocommerce-Price-currencySymbol { font-size: 1em; vertical-align: super; }
.tu-price-note {
    display: block;
    font-size: 0.78rem;
    color: var(--tu-c-primary);
}

/* --- BOTTOM BADGES ROW --- */
.tu-hero-badges-row {
    position: absolute;
    bottom: -15px; /* Slight overlap or pull down */
    left: 0;
    right: 0;
    display: flex;
    justify-content: center; /* Center align */
    gap: 15px;
    z-index: 10;
    padding: 0 20px;
}
/* Previous container, effectively replaced by group+row */
.tu-hero-badges-container { display: none; } 

.tu-hero-badge {
    flex: 1; /* Stretch to fill width evenly if needed, or remove for compact */
    max-width: 250px;
    background: rgba(10, 25, 41, 0.95); /* Darker opacity for bottom bar visibility */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 12px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}
.tu-hero-badge:hover {
    border-color: var(--tu-c-primary);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.tu-Badge-icon {
    width: 20px; 
    height: 20px;
    background-color: var(--tu-c-primary);
    mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
}
/* Fallback circles if SVG fails */
.tu-Badge-icon.icon-shifting,
.tu-Badge-icon.icon-transport,
.tu-Badge-icon.icon-license {
    border-radius: 50%;
}

.tu-badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tu-c-text);
    text-transform: uppercase;
    white-space: nowrap;
}

/* Features (Removed from bottom, css kept just in case but likely unused) */
.tu-features-row {
    display: none; /* Force hide bottom row just in case markup remains */
    gap: 20px;
}
.tu-feature-card {
    flex: 1;
    background: var(--tu-c-panel);
    border: 1px solid var(--tu-c-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}
.tu-feature-card:hover { 
    transform: translateY(-5px);
    border-color: var(--tu-c-primary);
    box-shadow: var(--tu-glow);
}
.tu-feat-icon {
    width: 40px; height: 40px;
    background: var(--tu-c-primary);
    mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    margin-bottom: 10px;
}
/* Placeholder icons using CSS shapes if SVGs not loaded */
.tu-feat-icon { border-radius: 50%; opacity: 0.9; }

.tu-feat-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tu-c-text);
}


/* =========================================
   Right Column: Sticky Panel
   ========================================= */
.tu-sticky-panel {
    position: sticky;
    top: 20px;
    background: var(--tu-c-panel);
    border: 1px solid var(--tu-c-border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: var(--tu-shadow-3d);
}

.tu-panel-header {
    background: rgba(6, 182, 212, 0.1);
    padding: 20px 25px;
    border-bottom: 1px solid var(--tu-c-border);
}
.tu-panel-header h3 {
    margin: 0;
    font-family: var(--tu-font-display);
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    color: var(--tu-c-text);
}

.tu-booking-content {
    padding: 25px;
}

/* Form Styles */
.tu-booking-content label {
    font-size: 0.8rem;
    color: var(--tu-c-text-muted);
    margin-bottom: 5px;
    display: block;
}
.tu-booking-content input,
.tu-booking-content select {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
    color: var(--tu-c-text);
    padding: 12px 15px;
    border-radius: 8px;
    font-family: var(--tu-font-main);
    margin-bottom: 15px;
    transition: 0.3s;
}
.tu-booking-content input:focus,
.tu-booking-content select:focus {
    border-color: var(--tu-c-primary);
    outline: none;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

/* Light Mode Input Override */
body.tu-light .tu-booking-content input,
body.tu-light .tu-booking-content select {
    background: rgba(255, 255, 255, 0.5);
    border-color: #cbd5e1;
}

/* Map Button */
button.map-picker-btn {
    width: 100%;
    background: transparent !important;
    border: 1px dashed var(--tu-c-primary) !important;
    color: var(--tu-c-primary) !important;
    padding: 10px !important;
    margin-bottom: 15px;
}
button.map-picker-btn:hover {
    background: rgba(6, 182, 212, 0.1) !important;
}

/* Summary Box */
#booking-summary-box,
.tep-booking-summary {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    position: relative;
}
body.tu-light #booking-summary-box,
body.tu-light .tep-booking-summary { background: rgba(0,0,0,0.05); }

/* Hide Plugin Default SVG Frame (The Big Dot/Box) */
.tep-booking-summary .tu-cyber-frame {
    display: none !important;
}

/* Hide Default Inline Messages (Validation text) */
.tep-inline-messages .tep-inline-message {
    display: none;
    font-size: 0.8rem;
    margin-top: 5px;
    padding: 8px;
    border-radius: 4px;
}
/* Allow them to show if they have a visible class or style applied by JS */
.tep-inline-messages .tep-inline-message[style*="display: block"],
.tep-inline-messages .tep-inline-message.is-visible {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.price-row,
.tep-booking-summary__rows dt,
.tep-booking-summary__rows dd {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--tu-c-text-muted);
    margin-bottom: 5px;
    width: 100%;
    margin: 0 0 5px 0;
}

/* Fix plugin DL layout */
.tep-booking-summary__rows {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px 10px;
}
.tep-booking-summary__rows dt {
    grid-column: 1;
    font-weight: normal;
    text-align: left;
}
.tep-booking-summary__rows dd {
    grid-column: 2;
    text-align: right;
    margin: 0;
    font-weight: 600;
    color: var(--tu-c-text);
}
/* Highlight Final Price */
.tep-booking-summary__rows dt:last-of-type,
.tep-booking-summary__rows dd:last-of-type {
    border-top: 1px solid var(--tu-c-border);
    margin-top: 10px;
    padding-top: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tu-c-text);
}

/* Hide the default title in summary since we have our own header */
.tep-booking-summary__title {
    display: none;
}

/* CTA Button */
button.single_add_to_cart_button {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    color: white !important;
    padding: 18px !important;
    border-radius: 8px !important;
    font-family: var(--tu-font-display);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
    transition: transform 0.2s;
}
button.single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(16, 185, 129, 0.5);
}

/* Footer */
.tu-panel-footer {
    padding: 20px 25px;
    background: rgba(0,0,0,0.1);
    border-top: 1px solid var(--tu-c-border);
}
.tu-contact-info span {
    display: block;
    font-size: 0.8rem;
    color: var(--tu-c-text-muted);
    margin-bottom: 5px;
}

/* =========================================
   Animations
   ========================================= */
@keyframes tu-float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .tu-cyber2-layout {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    .tu-sticky-panel {
        position: relative;
        top: 0;
    }
    .tu-hero-stage { height: auto; padding: 40px 0; }
    .tu-hero-img { max-height: 300px; }
    .tu-features-row { flex-wrap: wrap; }
    .tu-feature-card { min-width: 100%; }
}

/* =========================================
   NEW CYBER FRAME (Added 2026-01-18)
   Encloses Title + Truck + Route
   ========================================= */
.tu-cyber-frame-wrapper {
    position: relative;
    padding: 40px;
    margin-bottom: 40px;
    /* Optional: glass bg, though frame has fill */
    border-radius: 24px;
}

/* Base Frame SVG Layer */
.tu-cyber-frame-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

/* The static faint border */
.tu-frame-base {
    fill: rgba(7, 18, 28, 0.45); /* Dark semi-transparent fill */
    stroke: rgba(6, 182, 212, 0.15);
    stroke-width: 1.5;
    /* Geometry via CSS */
    width: 99%; 
    height: 99%;
    x: 0.5%;
    y: 0.5%;
}

/* The moving shine animation */
.tu-frame-anim {
    fill: none;
    stroke: var(--tu-c-primary); /* Bright Cyan */
    stroke-width: 2.5;
    stroke-linecap: round;
    
    /* DASH ANIMATION setup - Single scanner */
    stroke-dasharray: 200 4000; 
    stroke-dashoffset: 0;
    animation: tuCyberBorderFlow 6s linear infinite;
    
    width: 99%;
    height: 99%;
    x: 0.5%;
    y: 0.5%;
    opacity: 0.9;
}

@keyframes tuCyberBorderFlow {
    0% { stroke-dashoffset: 4200; }
    100% { stroke-dashoffset: 0; }
}

/* Content adjustment to sit inside */
.tu-cyber-frame-content {
    position: relative;
    z-index: 2;
}

/* Adjust contained elements to fit nicely */
.tu-cyber-frame-content .tu-product-header {
    margin-bottom: 30px;
    padding: 0 10px;
}

.tu-cyber-frame-content .tu-hero-stage {
    margin-bottom: 0;
    min-height: 400px; /* Ensure space for route visualizer */
    padding-bottom: 30px;
}

/* Adjust Route Visualizer position if needed */
.tu-cyber-frame-content .tu-route-visualizer {
    bottom: -10px;
}

/* =========================================
   LIGHT MODE OVERRIDES FOR NEW ELEMENTS
   ========================================= */
body.tu-light .tu-frame-base {
    fill: rgba(255, 255, 255, 0.65); /* Lighter glass fill */
    stroke: rgba(6, 182, 212, 0.4);
}

body.tu-light .tu-route-box {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(6, 182, 212, 0.5); /* Stronger border */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

body.tu-light .tu-route-label {
    background: rgba(255, 255, 255, 0.9);
    color: var(--tu-c-primary); /* Cyan text */
    text-shadow: none;
    border: 1px solid rgba(6, 182, 212, 0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

body.tu-light .tu-glass-price {
    background: rgba(255, 255, 255, 0.85);
    border-color: var(--tu-c-primary);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15);
}

body.tu-light .tu-price-label,
body.tu-light .tu-brand-sub {
    color: var(--tu-c-text-muted); /* Ensure contrast */
}

/* Road Animation Adjustments for Light Mode */
body.tu-light .tu-road-anim {
    stroke: var(--tu-c-secondary); /* Blue instead of white for contrast */
    filter: none; /* Clean line */
}

/* Adjust grid bg for light mode */
body.tu-light .tu-bg-grid {
    background-image: 
        linear-gradient(rgba(6, 182, 212, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.08) 1px, transparent 1px);
}

/* =========================================
   CYBER TABS COMPONENT
   ========================================= */
.tu-cyber-tabs {
    margin-top: 40px;
    width: 100%;
    position: relative;
    z-index: 5;
}

/* --- NAVIGATION BUTTONS --- */
.tu-tabs-nav {
    display: flex;
    gap: 20px;
    margin-bottom: -2px; /* Overlap with border */
    position: relative;
    z-index: 6;
    padding-left: 20px;
}

.tu-tab-btn {
    background: transparent;
    border: 1px solid var(--tu-c-border);
    color: var(--tu-c-text-muted);
    padding: 12px 30px;
    font-family: var(--tu-font-display); 
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0; /* Top rounded */
    border-bottom: none;
    background: linear-gradient(to bottom, rgba(6, 182, 212, 0.05), transparent);
    overflow: hidden;
}

.tu-tab-btn:hover {
    color: var(--tu-c-primary);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2) inset;
}

.tu-tab-btn.active {
    color: #fff;
    border-color: var(--tu-c-primary);
    background: rgba(6, 182, 212, 0.15);
    box-shadow: 0 -5px 15px rgba(6, 182, 212, 0.2);
    text-shadow: 0 0 8px var(--tu-c-primary);
}
.tu-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 2px;
    background: var(--tu-c-bg); /* Mask bottom border to merge with content */
    z-index: 10;
}

/* Light Mode active text */
body.tu-light .tu-tab-btn.active {
    color: var(--tu-c-primary);
    text-shadow: none;
    background: rgba(255, 255, 255, 0.9);
}

/* --- CONTENT CONTAINER --- */
.tu-tabs-content-wrapper {
    position: relative;
    border: 1px solid var(--tu-c-primary);
    background: rgba(10, 25, 41, 0.6); /* Glass Dark */
    backdrop-filter: blur(10px);
    border-radius: 0 16px 16px 16px; /* Top left square for tabs joining */
    padding: 40px;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.1);
    min-height: 300px;
    overflow: hidden;
}

/* Corner Accents (Cyber Style from image) */
.tu-corner-decor {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    box-shadow: 0 0 8px #fff;
    z-index: 7;
    pointer-events: none;
    opacity: 0.8;
}
.tu-corner-decor.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; display: none; /* Hidden due to tabs area */ }
.tu-corner-decor.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; width: 10px; height: 10px; }
.tu-corner-decor.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.tu-corner-decor.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* Light Mode Container */
body.tu-light .tu-tabs-content-wrapper {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
body.tu-light .tu-corner-decor {
    border-color: var(--tu-c-secondary);
    box-shadow: none;
}

/* --- TAB PANES --- */
.tu-tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.tu-tab-pane.active {
    display: block;
    opacity: 1;
    animation: tuFadeSlide 0.5s ease forwards;
}

@keyframes tuFadeSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Typography */
.tu-tab-heading {
    font-family: var(--tu-font-display);
    color: var(--tu-c-text);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
}
.tu-tab-heading::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--tu-c-primary);
    margin-top: 8px;
    box-shadow: 0 0 10px var(--tu-c-primary);
}

.tu-typography {
    line-height: 1.8;
    color: var(--tu-c-text-muted);
}
.tu-typography p { margin-bottom: 1.5em; }

/* Light Mode Text */
body.tu-light .tu-typography { color: #475569; }
body.tu-light .tu-tab-heading {
    background: none; 
    -webkit-text-fill-color: initial; 
    color: var(--tu-c-text);
}

/* --- REVIEWS STYLING --- */
/* Override default Woo Reviews */
#reviews h2, 
#reviews .woocommerce-Reviews-title { 
    display: none; /* We use our own header */ 
}
.commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.commentlist li {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--tu-c-border);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    gap: 20px;
}
.comment_container img.avatar {
    border-radius: 50%;
    border: 2px solid var(--tu-c-primary);
}
.comment-text {
    flex: 1;
}
.meta {
    font-size: 0.8rem;
    color: var(--tu-c-text-muted);
    margin-bottom: 10px;
    display: block;
}
.star-rating {
    float: right;
    color: var(--tu-c-primary);
}

/* Review Form */
#review_form_wrapper {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--tu-c-border);
}
#reply-title {
    font-family: var(--tu-font-display);
    color: var(--tu-c-text);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 20px;
}
.comment-form input,
.comment-form textarea {
    width: 100%;
    background: rgba(5, 11, 20, 0.5);
    border: 1px solid var(--tu-c-border);
    color: var(--tu-c-text);
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 4px;
}
.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--tu-c-text-muted);
}

/* Light Mode Reviews */
body.tu-light .commentlist li {
    background: #fff;
    border-color: #e2e8f0;
}
body.tu-light .comment-form input,
body.tu-light .comment-form textarea {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

/* Mobile */
@media (max-width: 768px) {
    .tu-tabs-nav {
        flex-direction: row;
        gap: 10px;
        padding-left: 0;
    }
    .tu-tab-btn {
        flex: 1;
        padding: 10px;
        font-size: 0.8rem;
        text-align: center;
    }
    .tu-tabs-content-wrapper {
        padding: 20px;
        border-radius: 0 0 16px 16px; /* Full top flat */
    }
}

/* =========================================
   ADVANCED CYBER TABS FRAME (Added 2026-01-19)
   Matches reference: Layered borders, glowing dashes, detailed corners
   ========================================= */

/* Hide the old CSS border wrapper logic */
.tu-tabs-content-wrapper {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important; /* Content will have its own padding */
}

/* The New Frame Container */
.tu-cyber-tabs-frame {
    position: relative;
    padding: 2px; /* Slight space for outer glow */
}

/* The SVG Canvas */
.tu-tabs-svg-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

/* Content Area inside the frame */
.tu-tabs-inner-content {
    position: relative;
    z-index: 2;
    background: rgba(8, 16, 26, 0.65); /* Darker, slightly translucent */
    backdrop-filter: blur(12px);
    border-radius: 20px; /* Check shape match */
    padding: 40px;
    margin: 4px; /* Inset from outer SVG lines */
    
    /* Clip path to match the complex SVG shape exactly if needed, 
       but for now standard radius with SVG overlay works well visually 
       unless content bleeds. */
}
/* Light mode bg */
body.tu-light .tu-tabs-inner-content {
    background: rgba(255, 255, 255, 0.85);
}

/* --- SVG STYLES --- */

/* 1. Static Base Lines (Dim Cyan) */
.tu-frame-static {
    fill: none;
    stroke: rgba(6, 182, 212, 0.2);
    stroke-width: 1.5;
}
body.tu-light .tu-frame-static { stroke: rgba(6, 182, 212, 0.3); }

/* 2. Secondary Detail Lines (Thinner) */
.tu-frame-detail {
    fill: none;
    stroke: rgba(6, 182, 212, 0.1);
    stroke-width: 1;
}

/* 3. Glowing Pulse Lines (The "Shining") */
.tu-frame-glow-anim {
    fill: none;
    stroke: var(--tu-c-primary);
    stroke-width: 2;
    stroke-linecap: round;
    filter: drop-shadow(0 0 3px var(--tu-c-primary));
    opacity: 0.8;
    
    /* Animation settings handled via dasharray manipulation */
    stroke-dasharray: 100 800; /* Short segment */
    animation: tuFrameCircuitFlow 8s linear infinite;
}

/* 4. Corner Accents (Bright static) */
.tu-frame-corner {
    fill: none;
    stroke: var(--tu-c-primary);
    stroke-width: 2;
    opacity: 0.6;
}

@keyframes tuFrameCircuitFlow {
    from { stroke-dashoffset: 900; }
    to { stroke-dashoffset: 0; }
}

/* --- TAB BUTTON STYLING UPDATE --- */
/* Match the new detached look from image (buttons floating above top bar) */
.tu-tabs-nav {
    margin-bottom: 10px;
    padding-left: 10px;
}
.tu-tab-btn {
    border-radius: 8px; /* Fully rounded caps */
    border: 1px solid rgba(6, 182, 212, 0.3);
    background: rgba(5, 11, 20, 0.6);
    margin-right: 10px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    position: relative;
    overflow: hidden;
}
.tu-tab-btn::after { display: none; } /* Remove old bottom connector */

.tu-tab-btn.active {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--tu-c-primary);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2), inset 0 0 10px rgba(6, 182, 212, 0.05);
}

/* Tab Active "Glow Line" at bottom of button - optional based on ref */
.tu-tab-btn.active::before {
    content: '';
    position: absolute;
    bottom: 0; left: 20%; right: 20%;
    height: 2px;
    background: var(--tu-c-primary);
    box-shadow: 0 0 8px var(--tu-c-primary);
}

/* Light Mode Buttons */
body.tu-light .tu-tab-btn {
    background: #fff;
    border-color: #cbd5e1;
}
body.tu-light .tu-tab-btn.active {
    background: #f1f5f9;
    border-color: var(--tu-c-secondary);
} 

/* =========================================
   TU REUSABLE CYBER FRAME (COMPONENT)
   Usage: .tu-cyber-c-frame > .tu-cyber-c-svg + .tu-cyber-c-content
   ========================================= */

.tu-cyber-c-frame {
    position: relative;
    padding: 4px; /* Space for outer glow/strokes */
    border-radius: 20px;
    margin-bottom: 30px;
    isolation: isolate;
}

/* The SVG Canvas */
.tu-cyber-c-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

/* Inner Content Wrapper */
.tu-cyber-c-content {
    position: relative;
    z-index: 2;
    background: linear-gradient(160deg, rgba(8, 16, 26, 0.7) 0%, rgba(5, 11, 20, 0.85) 100%);
    backdrop-filter: blur(12px);
    border-radius: 16px; /* Slightly tighter than outer */
    padding: 30px;
    height: 100%;
    /* Inner shadow for depth */
    box-shadow: 
        inset 0 0 30px rgba(0,0,0,0.5),
        0 10px 30px rgba(0,0,0,0.3);
}

/* LIGHT MODE OVERRIDES */
body.tu-light .tu-cyber-c-content {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.85) 0%, rgba(241, 245, 249, 0.9) 100%);
    box-shadow: 
        inset 0 0 20px rgba(255,255,255,0.5),
        0 10px 30px rgba(0,0,0,0.05);
}

/* --- SVG ELEMENTS STYLING --- */

/* 1. Main Static Border */
.tu-c-border-main {
    fill: transparent;
    stroke: rgba(6, 182, 212, 0.25);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}
body.tu-light .tu-c-border-main { stroke: rgba(6, 182, 212, 0.4); }

/* 2. Inner Detail Border (Faint) */
.tu-c-border-detail {
    fill: transparent;
    stroke: rgba(6, 182, 212, 0.1);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

/* 3. Corner Accents (Bright) */
.tu-c-corner-accent {
    fill: none;
    stroke: var(--tu-c-primary);
    stroke-width: 2;
    filter: drop-shadow(0 0 3px var(--tu-c-primary));
}

/* 4. Animated Data Flow (The "Shining") */
.tu-c-anim-flow {
    fill: none;
    stroke: var(--tu-c-primary);
    stroke-width: 2;
    stroke-linecap: round;
    filter: drop-shadow(0 0 5px var(--tu-c-primary));
    opacity: 0.9;
    
    /* Animation setup */
    stroke-dasharray: 120 1200; /* Visible segment vs gap */
    animation: tuComponentFlow 8s linear infinite;
    vector-effect: non-scaling-stroke;
}

/* Reverse flow for variety */
.tu-c-anim-flow.reverse {
    animation-direction: reverse;
    stroke-dasharray: 80 1500;
    opacity: 0.6;
}

@keyframes tuComponentFlow {
    from { stroke-dashoffset: 1320; }
    to { stroke-dashoffset: 0; }
}

/* Decoration Dots (Circles) */
.tu-c-dot {
    fill: var(--tu-c-primary);
    filter: drop-shadow(0 0 4px var(--tu-c-primary));
}

/* Helper to center content if needed */
.tu-cyber-c-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* =========================================
   MOBILE RESPONSIVENESS (Added 2026-01-19)
   "Small and Big" - Preserving UI, adjusting scale
   ========================================= */

@media (max-width: 991px) {
    /* Tablet & Below */
    .tu-cyber2-layout {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 0 5px;
    }

    /* REORDERING SECTIONS: Hero -> Booking -> Tabs */
    .tu-col-left, .tu-col-right {
        display: contents;
    }

    /* 1. Hero & Title */
    .tu-col-left > .tu-cyber-c-frame {
        order: 1;
        margin-top: 10px;
    }

    /* 2. Booking Form */
    .tu-sticky-panel {
        order: 2;
        width: 100%;
        margin-bottom: 10px;
    }

    /* 3. Description Tabs */
    .tu-cyber-tabs {
        order: 3;
    }

    /* 4. Related Products / Upsells (Move to bottom) */
    .related.products,
    .up-sells.products {
        order: 10;
        width: 100%;
    }
    
    .tu-cyber-c-content {
        padding: 25px; /* Slightly less padding */
    }
    
    /* Tabs Navigation scrollable */
    .tu-tabs-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch; /* Smooth scroll iOS */
    }
    .tu-tab-btn {
        flex: 0 0 auto;
        margin-bottom: 5px;
    }
}

@media (max-width: 767px) {
    /* Mobile Landscape & Below */
    
    /* 1. Typography Scaling */
    .tu-title {
        font-size: 1rem;
        text-align: center;
    }
    .tu-brand-sub {
        text-align: center;
        display: block;
        margin-bottom: 5px;
    }
    
    /* 2. Hero Section Re-flow */
    .tu-hero-stage {
        height: 100%;
        min-height: 100%;
        flex-direction: column;
        padding: 1px  5px ; /* Add bottom padding for visualizer */
    }
    
    /* Price moved from absolute to stacked for better fit */
    .tu-hero-overlay-group {
        position: relative;
        top: auto; right: auto;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 5px;
        z-index: 5;
    }
    .tu-glass-price {
        min-width: 70%;
        width: 100%;
        max-width: 320px;
        text-align: center;
        padding: 10px;
        margin: 0 auto;
    }
    .tu-price-value {
        font-size: 0.8rem;
    }

    /* 3. Truck Image */
    .tu-image-container {
        width: 100%;
        height: auto;
        margin-bottom: 2px; /* Space between truck and route */
    }
    .tu-hero-img {
        max-height: 200px;
        transform: none !important; /* Disable heavy 3D transform on mobile for performance */
    }
    
    /* 4. Route Visualizer scaling */
    .tu-route-visualizer {
        position: relative;
        bottom: auto;
        width: 100%;
        padding-top: 20px;
        flex-wrap: nowrap;
        gap: 5px;
        transform-origin: center top;
    }
    
    /* Shrink the boxes */
    .tu-route-box {
        width: 45px;
        height: 45px;
        padding: 6px;
        border-radius: 8px;
    }
    .tu-route-label {
        font-size: 0.5rem;
        padding: 2px 4px;
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Adjust Road */
    .tu-route-path {
        height: 55px;
    }

    /* 5. Booking Form - Sticky changes */
    .tu-sticky-panel {
        position: relative;
        top: 0;
        z-index: 20;
    }
    
    /* 6. Tabs Content */
    .tu-cyber-c-content {
        padding: 15px; /* Compact padding */
    }
    .tu-tab-heading {
        font-size: 1.0rem;
        text-align: center;
    }
    .tu-tab-heading::after {
        margin: 8px auto 0 auto; /* Center accent line */
    }
}

@media (max-width: 300px) {
    /* Tiny screens */
    .tu-glass-price {
        padding: 5px; 
    }
    .tu-price-value {
        font-size: 1rem;
    }
    
    /* Hide road middle if too cramped, or keep it tiny */
    .tu-route-path {
        transform: scaleX(0.8);
    }
    
    /* Stack tabs buttons vertically if needed or keep scroll */
    .tu-tabs-nav {
        gap: 10px;
    }
    .tu-tab-btn {
        min-width: 100px;
        font-size: 0.80rem;
    }
}
