/* =====================================================
   Layer 3: Components - Navigation (Global, Drawer, Search)
   Origin: navigation.css (v2.5), lightwinner-mobile.css (v3.1)
   ===================================================== */

/* --- 1. Global Navbar (#global-navbar) & Shimmer --- */
#global-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    /* Base Glass: Dark with a hint of ambient reflection */
    background: var(--lw-panel-bg);
    backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate);
    -webkit-backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

/* Glass Reflection: Shimmer that reacts to CCT */
#global-navbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Simulation of a light source reflecting on the glass pane */
    background: linear-gradient(105deg,
            transparent 20%,
            rgba(var(--cct-raw), 0.15) 35%,
            rgba(var(--cct-raw), 0.25) 40%,
            rgba(var(--cct-raw), 0.1) 45%,
            transparent 60%);
    background-size: 200% 100%;
    background-position: var(--cursor-x) 0;
    /* Follows mouse slightly for parallax feel */
    pointer-events: none;
    opacity: 0.6;
    z-index: -1;
    transition: background-position 0.2s ease-out;
}

#global-navbar.scrolled,
#global-navbar:hover {
    background: var(--lw-panel-bg);
    backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.nav-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

/* --- 2. Navigation Left (Logo) --- */
.nav-left {
    min-width: 100px;
    display: flex;
    align-items: center;
    gap: 15px;
}

#logo-switch {
    display: flex;
    align-items: center;
}

/* Halley Hint */
#halley-hint {
    font-size: 0.75rem;
    color: #00eaff;
    font-weight: 500;
    opacity: 0;
    white-space: nowrap;
    cursor: help;
    text-shadow: 0 0 10px rgba(0, 234, 255, 0.6);
    margin: 0 !important;
    pointer-events: auto;
    margin-top: 4px;
}

@keyframes hint-breath {
    0% {
        text-shadow: 0 0 5px rgba(0, 234, 255, 0.4);
        opacity: 0.6;
    }

    100% {
        text-shadow: 0 0 15px rgba(0, 234, 255, 1);
        opacity: 1;
    }
}

body:not(.light-mode) #halley-hint {
    opacity: 0.9;
    animation: hint-breath 2s infinite alternate;
}

body.light-mode #halley-hint {
    opacity: 0;
    pointer-events: none;
    display: none;
}

/* --- 4. Navigation Center (Links) --- */
.nav-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 16px 18px; /* Step 09: Expanded for Accessibility (44px+ target) */
    transition: color 0.3s;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 5px rgba(255, 255, 255, 0.3);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateX(-50%);
    box-shadow: 0 0 5px var(--accent-color);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-color);
}

/* Active State - Dynamic CCT Color */
.nav-link.active {
    color: var(--cct-ui-color, #fff) !important;
    text-shadow: 0 0 15px var(--cct-ui-color, #fff);
    border: 1px solid var(--cct-ui-color, #fff);
    border-bottom: none;
    background: rgba(var(--cct-raw), 0.1);
    border-radius: 4px;
    animation: breathing-glow 3s infinite ease-in-out;
}

.nav-link.active::after {
    width: 100%;
    background: var(--cct-ui-color, #fff);
    box-shadow: 0 0 10px var(--cct-ui-color, #fff);
    height: 2px;
    bottom: 0px;
    animation: breathing-line 3s infinite ease-in-out;
}

@keyframes breathing-line {

    0%,
    100% {
        box-shadow: 0 0 5px var(--cct-ui-color);
        opacity: 0.7;
    }

    50% {
        box-shadow: 0 0 15px var(--cct-ui-color);
        opacity: 1;
    }
}

@keyframes breathing-glow {

    0%,
    100% {
        text-shadow: 0 0 10px var(--cct-ui-color);
        opacity: 1;
    }

    50% {
        text-shadow: 0 0 20px var(--cct-ui-color);
        opacity: 0.8;
    }
}

/* --- 5. Mega Menu --- */
.mega-menu {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100vw;
    background: var(--lw-panel-bg);
    backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 40px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

body.light-mode .mega-menu {
    background: rgba(220, 235, 255, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 50, 100, 0.1);
}

body.light-mode .mega-menu a {
    color: #445566;
}

body.light-mode .mega-menu a:hover {
    color: var(--accent-color);
}

body.light-mode .mega-col h4 {
    color: #223344;
    border-bottom-color: #ccddee;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.mega-col h4 {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
    margin-bottom: 20px;
    font-size: 16px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.mega-col ul {
    list-style: none;
    padding: 0;
}

.mega-col li {
    margin-bottom: 8px; /* Step 09: Increased gap to prevent mis-clicks */
}

.mega-col a {
    text-decoration: none;
    color: #ccc;
    font-size: 14px;
    padding: 15px 10px; /* Step 09: Expanded for Accessibility (44px height) */
    transition: color 0.2s, padding-left 0.2s;
    display: block;
}

.mega-col a:hover {
    color: #fff;
    text-shadow: 0 0 8px #fff;
    padding-left: 5px;
    border-left: 2px solid var(--accent-color);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--panel-bg);
    padding: 15px;
    border-radius: 4px;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* --- Fireworks Toggle (Refined Position) --- */


/* --- Language Dropdown --- */
.lang-dropdown-container {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    margin-bottom: 0px;
    background: var(--lw-panel-bg);
    backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate);
    -webkit-backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    list-style: none;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

body.light-mode .lang-dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 50, 100, 0.1);
}

.lang-dropdown-container:hover .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-menu li {
    padding: 10px 20px;
    font-size: 13px;
    color: var(--text-color);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
}

body.light-mode .lang-dropdown-menu li {
    color: #445566;
}

.lang-dropdown-menu li:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

body.light-mode .lang-dropdown-menu li:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--accent-color);
}

/* --- 6. Navigation Right (Icons) --- */
.nav-right {
    min-width: 100px;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.nav-icon {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
}

.nav-icon:hover {
    transform: scale(1.1);
    color: var(--accent-color);
}

/* --- 7. Mobile Drawer (Merged from lightwinner-mobile.css) --- */

/* Trigger Container (Hidden on Desktop by default) */
.mobile-menu-toggle {
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    position: static !important;
    width: 40px !important;
    height: 40px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    z-index: var(--z-trigger) !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Icon Animation (Hamburger to X) */
.hamburger-icon {
    width: 20px !important;
    height: 2px !important;
    background: var(--accent-cyan, #00ffff) !important;
    position: relative !important;
    transition: all 0.3s ease-in-out !important;
    pointer-events: none;
    display: block !important;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '' !important;
    position: absolute !important;
    width: 20px !important;
    height: 2px !important;
    background: inherit !important;
    transition: all 0.3s ease-in-out !important;
    left: 0 !important;
}

.hamburger-icon::before {
    top: -6px !important;
}

.hamburger-icon::after {
    top: 6px !important;
}

/* Animation State: [aria-expanded="true"] */
#mobile-menu-trigger[aria-expanded="true"] .hamburger-icon {
    background: transparent !important;
}

#mobile-menu-trigger[aria-expanded="true"] .hamburger-icon::before {
    top: 0 !important;
    transform: rotate(45deg) !important;
}

#mobile-menu-trigger[aria-expanded="true"] .hamburger-icon::after {
    top: 0 !important;
    transform: rotate(-45deg) !important;
}

/* Drawer Container */
.mobile-nav {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 80% !important;
    max-width: 280px !important;
    height: 100vh !important;
    background: var(--lw-panel-bg);
    backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate) !important;
    -webkit-backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate) !important;
    border-left: 1px solid rgba(0, 229, 255, 0.25) !important;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.7) !important;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: var(--z-drawer) !important;
    padding: 20px !important;
    overflow-y: auto !important;
}

/* Drawer Header Layout */
.drawer-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-bottom: 20px !important;
}

body.light-mode .drawer-header {
    border-bottom-color: rgba(0, 0, 0, 0.05) !important;
}

.drawer-title {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: var(--accent-cyan, #00ffff) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

body.light-mode .drawer-title {
    color: #333 !important;
}

/* Close Button Styling */
#drawer-close {
    background: none !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 28px !important;
    cursor: pointer !important;
    padding: 0 5px !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#drawer-close:hover {
    color: var(--accent-cyan, #00ffff) !important;
    transform: scale(1.1);
}

body.light-mode #drawer-close {
    color: #444 !important;
}

body.light-mode #drawer-close:hover {
    color: var(--accent-color) !important;
}

/* Light Mode Mobile Drawer Override */
body.light-mode .mobile-nav {
    background: rgba(255, 255, 255, 0.95) !important;
    border-left: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1) !important;
    /* Light Mode Gradient Override if needed, or just solid background */
    background: linear-gradient(165deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(240, 245, 255, 0.95) 100%) !important;
}

.mobile-nav.active {
    right: 0 !important;
}

/* Mobile Links */
.mobile-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mobile-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.mobile-nav-link,
.mobile-item>a,
.mobile-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 16px 0 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-decoration: none !important;
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.mobile-item i {
    margin-right: 12px !important;
    width: 20px !important;
    text-align: center !important;
    color: var(--lw-cyan, #00e5ff) !important;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3) !important;
    font-size: 0.9em !important;
}

.mobile-nav-link:hover,
.mobile-head:hover {
    color: var(--accent-cyan, #00ffff) !important;
}

/* Accordion Icon */
.mobile-head .accordion-icon {
    transition: transform 0.3s ease !important;
    font-size: 1rem !important;
    opacity: 0.9 !important;
    color: var(--lw-gold, #D4AF37) !important;
}

.mobile-item.active .accordion-icon {
    transform: rotate(45deg) !important;
    color: var(--lw-cyan, #00e5ff) !important;
}

/* Submenu */
.mobile-sub {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 12px !important;
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.mobile-item.active .mobile-sub {
    max-height: 800px !important;
    margin-bottom: 10px !important;
}

.mobile-group-title {
    padding: 12px 15px 5px !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: var(--accent-cyan, #00ffff) !important;
    opacity: 0.6 !important;
    font-weight: 700 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    margin-top: 5px !important;
}

.mobile-sub li a {
    display: block !important;
    padding: 15px 20px !important; /* Step 07: Expanded for Accessibility (44px target) */
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.9rem !important;
    border-left: 2px solid transparent !important;
}

.mobile-sub li a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-left-color: var(--accent-cyan, #00ffff) !important;
}

/* Mobile Overlay */
.mobile-nav-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(5px) !important;
    z-index: var(--z-drawer-overlay) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.4s ease !important;
}

.mobile-nav-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Light Mode Text Overrides for Mobile Drawer */
body.light-mode .mobile-nav-link,
body.light-mode .mobile-head,
body.light-mode .mobile-item>a {
    color: #333 !important;
}

body.light-mode .mobile-item {
    border-bottom-color: rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .mobile-item i {
    color: var(--accent-color) !important;
    text-shadow: none !important;
}

body.light-mode .mobile-sub {
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .mobile-sub li a {
    color: #555 !important;
    border-left: 2px solid transparent !important;
}

body.light-mode .mobile-sub li a:hover {
    color: var(--accent-color) !important;
    background: rgba(0, 0, 0, 0.05) !important;
    border-left-color: var(--accent-color) !important;
}

body.light-mode .mobile-group-title {
    color: #888 !important;
    border-bottom-color: rgba(0, 0, 0, 0.05) !important;
}

/* --- 8. Responsive & Light Mode Overrides --- */
@media (max-width: 1024px) {
    .nav-center {
        display: none;
    }

    #mobile-menu-trigger {
        display: flex !important;
    }

    /* Mobile: FAB Style (Bottom Right - Shifted up to avoid Inquiry Bar) */

}

@media (max-width: 600px) {
    .nav-container {
        padding: 0 15px;
    }

    #halley-hint {
        display: none !important;
    }

    .nav-left,
    .nav-right {
        gap: 10px;
    }

    #logo-switch img {
        height: 24px;
    }
}

@media (min-width: 1025px) {
    #mobile-menu-trigger {
        display: none;
    }
}

/* Light Mode Navbar */
body.light-mode #global-navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* V11: Logo Optimization - Clean Text, No Yellow Glow */
body.light-mode #logo-switch {
    color: #000 !important;
    text-shadow: none !important;
    font-weight: 800;
    letter-spacing: -1px;
}

body.light-mode .nav-link {
    color: #333 !important;
}

body.light-mode .nav-link:hover {
    color: var(--lw-accent) !important;
}

/* Mobile Navbar Fixes (from lightwinner-mobile.css) */
@media (max-width: 1024px) {

    .nav-links,
    .nav-center,
    #halley-hint {
        display: none !important;
    }

    #global-navbar {
        padding: 0 20px !important;
        height: 60px !important;
    }

    .nav-container {
        padding: 0 20px !important;
        height: 100% !important;
    }



    .nav-left {
        min-width: 100px;
        display: flex;
        align-items: center;
        gap: 10px !important;
    }

    .nav-right {
        margin-right: 0 !important;
        display: flex !important;
        gap: 15px !important;
        align-items: center !important;
        height: 100% !important;
    }
}


/* --- 9. Mobile Inquiry Bar (Restored from Legacy) --- */
@keyframes bubbleFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(2deg);
    }
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
        filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
    }

    50% {
        transform: scale(1.08);
        opacity: 0.9;
        filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.5));
    }
}

#mobile-inquiry-bar,
.mobile-sticky-inquiry {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 75px !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 9999 !important;
    display: none !important; 
    justify-content: space-between !important;
    align-items: flex-end !important;
    padding: 0 20px 20px !important;
    box-sizing: border-box !important;
}

/* Show Inquiry Bar only on Mobile */
@media (max-width: 1024px) {
    #mobile-inquiry-bar,
    .mobile-sticky-inquiry {
        display: flex !important;
    }
}


.inquiry-btn {
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: auto !important;
    margin: 0 !important;
    text-decoration: none !important;
    animation: bubbleFloat 5s ease-in-out infinite !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.inquiry-btn i {
    font-size: 1.8rem !important;
    margin: 0 !important;
    animation: iconPulse 4s ease-in-out infinite !important;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.4)) !important;
}

.whatsapp-btn {
    color: #25D366 !important;
    animation-delay: 0s !important;
}

.whatsapp-btn i {
    animation-delay: 0s !important;
}

.email-btn {
    color: var(--accent-cyan, #00ffff) !important;
    animation-delay: -0.5s !important;
}

.email-btn i {
    animation-delay: -0.5s !important;
}

/* Active states: Squishy & Fun */
.inquiry-btn:active {
    transform: scale(0.8) rotate(-8deg) !important;
    filter: brightness(1.4) !important;
    transition: all 0.1s ease !important;
}
/* =====================================================
   Layer 3: Components - Hero Section
   Origin: lightwinner-mobile.css (v3.1)
   ===================================================== */

/* Step 20: Hero Layout */
#hero .hero-content {
    padding-top: 50px !important;
    /* EXTREME UP-PUSH: Reduced from 80px to free up space below */
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Step 21: Hero Title (Reinforcement) */
#hero h1,
#hero .glitch-text {
    font-size: clamp(2rem, 9vw, 3rem) !important;
    /* SLIGHTLY SMALLER for compactness */
    margin-bottom: 8px !important;
    line-height: 1.1 !important;
}

/* Tagline Visibility */
#hero .hero-tagline,
#hero .tagline {
    font-size: 0.9rem !important;
    margin-bottom: 22px !important;
    /* INCREASED from 15px for breathing room */
    opacity: 0.9 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Step 22: Card Base (Premium Glass - MORE TRANSPARENT) */
.glass-card,
.hero-tile,
.quick-card {
    /* Lighter, more ethereal glass */
    background: var(--lw-panel-bg);
    backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate) !important;
    -webkit-backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate) !important;

    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
    /* Top light */
    border-bottom: 1px solid rgba(0, 0, 0, 0.2) !important;
    /* Bottom shadow */
    border-radius: 14px !important;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.3),
        /* Deeper shadow */
        0 4px 12px rgba(0, 0, 0, 0.2) !important;

    margin-bottom: 15px !important;
    padding: 10px !important;
    transition: transform 0.2s ease !important;
}

.glass-card:active,
.hero-tile:active,
.quick-card:active {
    transform: scale(0.97) !important;
    filter: brightness(1.2) !important;
    border-color: rgba(0, 255, 255, 0.3) !important;
}

/* Step 23: Quick Access - COMPACT VERTICAL STACK */
.hero-quick-access {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    /* RESTORED from 8px for better breathing room */
    padding: 0 45px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 10px !important;
    /* SLIGHTLY INCREASED from 5px for air */
}

/* Target the actual cards inside */
.hero-quick-access .hero-tile {
    width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    padding: 12px 20px !important;
    /* COMPACT: Reduced from 22px to save space */

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;

    margin-bottom: 0 !important;
    /* More rounded for aesthetic */
}

/* Icon Polishing (Grid) */
.hero-quick-access .tile-icon,
.quick-access-grid .tile-icon,
.hero-grid .tile-icon {
    font-size: 1.4rem !important;
    margin-bottom: 5px !important;
    height: 28px !important;
    width: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 50% !important;
}

/* Title Polishing */
.hero-quick-access h3,
.quick-access-grid h3,
.hero-grid h3 {
    font-size: 0.95rem !important;
    margin: 0 0 2px 0 !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

/* Description Polishing */
.hero-quick-access p,
.quick-access-grid p,
.hero-grid p {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
    opacity: 0.9 !important;
    margin: 0 !important;
    max-width: 90% !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
}

/* --- Light Mode Overrides --- */

.light-mode .glass-card,
.light-mode .hero-tile,
.light-mode .quick-card {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.05),
        0 4px 6px rgba(0, 0, 0, 0.02) !important;
    color: #333 !important;
}

.light-mode #hero h1,
.light-mode .glitch-text {
    color: #1a1a1a !important;
    text-shadow: none !important;
}

.light-mode #hero .tagline {
    color: #444 !important;
    /* Darker grey */
    text-shadow: none !important;
    font-weight: 500 !important;
}

/* Fix Invisible Hero Card Text in Light Mode */
.light-mode .hero-quick-access .hero-tile {
    background: rgba(255, 255, 255, 0.85) !important;
    /* Whiter background */
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05) !important;
}

.light-mode .hero-quick-access h3 {
    color: #1a1a1a !important;
    /* Dark Text */
    text-shadow: none !important;
}

.light-mode .hero-quick-access p {
    color: #555555 !important;
    /* Dark Grey Text */
    opacity: 1 !important;
    text-shadow: none !important;
}

.light-mode .hero-quick-access .tile-icon {
    background: rgba(0, 0, 0, 0.05) !important;
    color: var(--accent-warm) !important;
}

/* --- Desktop Restoration (Fix 49.7) --- */
@media (min-width: 1024px) {
    .hero-quick-access {
        flex-direction: row !important;
        justify-content: center !important;
        /* Center the cards */
        gap: 20px !important;
        padding: 0 20px !important;
        /* Reduced padding */
        margin: 30px auto 0 !important;
        /* Auto margin for container centering */
        max-width: 1200px !important;
    }

    .hero-quick-access .hero-tile {
        flex: 1 !important;
        /* Allow growing */
        min-width: 280px !important;
        /* Minimum width */
        max-width: 380px !important;
        /* Cap width */
        height: auto !important;
        /* Let content dictate height */
        min-height: 180px !important;
        /* Restore substantial height */
        padding: 35px 25px !important;
        /* Restore generous padding */
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .hero-quick-access .tile-icon {
        margin-bottom: 20px !important;
        /* More space */
        width: 48px !important;
        /* Larger icon container */
        height: 48px !important;
        font-size: 2rem !important;
        /* Larger icon */
    }

    .hero-quick-access h3 {
        font-size: 1.3rem !important;
        /* Larger title */
        margin-bottom: 10px !important;
    }

    .hero-quick-access p {
        font-size: 0.95rem !important;
        /* Larger text */
        -webkit-line-clamp: 3 !important;
        line-clamp: 3 !important;
    }
}
/* =====================================================
   Layer 3: Components - Forms & Input
   Origin: sections.css (v51), lightwinner-mobile.css, warm-theme.css
   ===================================================== */

/* --- Base Form Container (from sections.css) --- */
.contact-form-container {
    padding: 15px 40px;
    /* USER FIX: Ultra-Minimal Vertical Padding */
    background: var(--lw-panel-bg);
    backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate);
    -webkit-backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* USER FIX: Removed height: 100% to let Grid stretch naturally */
}

.contact-form-container h3 {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    letter-spacing: 1px;
    line-height: 1.4;
    /* USER FIX: Increase line-height */
    padding-bottom: 5px;
    /* USER FIX: Prevent clipping of 'g' */
}

.contact-form-container:hover {
    border-color: rgba(0, 255, 255, 0.3);
}

/* --- Input Groups --- */
.lw-form-group {
    margin-bottom: 25px;
    /* USER FIX: Tighter spacing to fit title */
    position: relative;
}

.lw-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02) !important;
    /* Subtle Fill */
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    /* Thicker Line */
    border-radius: 4px 4px 0 0;
    padding: 20px 10px;
    /* USER FIX: Taller Inputs (Was 15px 12px) */
    /* Taller Input */
    color: #fff;
    font-size: 1.05rem;
    outline: none;
    transition: all 0.3s;
    font-family: inherit;
    min-height: 65px;
    /* USER FIX: Bigger Input Boxes */
}

textarea.lw-input {
    height: 240px !important;
    /* USER FIX: Balanced height with title */
    min-height: 240px !important;
}

.lw-input:focus {
    border-bottom-color: var(--accent-color, cyan);
    background: rgba(255, 255, 255, 0.05) !important;
}

.lw-label {
    position: absolute;
    top: 15px;
    left: 12px;
    color: #888;
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.lw-input:focus~.lw-label,
.lw-input:not(:placeholder-shown)~.lw-label {
    top: -24px;
    left: 0;
    font-size: 0.9rem;
    color: var(--accent-color, cyan);
    font-weight: 500;
}

/* --- Submit Button --- */
.lw-submit {
    width: 100%;
    /* Full Width Button */
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin: 15px auto 0;
    background: rgba(255, 255, 255, 0.08);
    /* Slightly lighter glass */
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 0 40px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 8px;
    /* Tighter radius matching inputs */
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: var(--lw-glass-blur);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.lw-submit:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    letter-spacing: 4px;
    border-color: var(--accent-color, cyan);
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-color, cyan);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
}

/* --- Responsive Layout (Unified Mobile Patch) --- */
@media (max-width: 1024px) {

    .contact-info,
    .contact-form-container {
        width: 100% !important;
        max-width: none !important;
        padding: 25px 20px !important;
    }

    .contact-form-container h3 {
        font-size: 1.8rem;
    }

    .lw-input,
    .lw-textarea {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* --- Light Mode Overrides (from warm-theme.css) --- */
/* --- Light Mode Refinement --- */
body.light-mode .contact-form-container {
    background: linear-gradient(160deg, rgba(255, 250, 245, 0.92) 0%, rgba(255, 255, 255, 0.88) 100%) !important;
    backdrop-filter: blur(25px) !important;
    border: 1.5px solid rgba(214, 126, 46, 0.2) !important;
    box-shadow: 0 12px 35px rgba(93, 64, 55, 0.18), inset 0 1px 2px rgba(255, 255, 255, 0.8) !important;
}

body.light-mode .contact-form-container h3 {
    color: #1A1A1A !important;
    background: none !important;
    -webkit-text-fill-color: #1A1A1A !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

body.light-mode .lw-input,
body.light-mode .lw-textarea {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1.5px solid rgba(214, 126, 46, 0.25) !important;
    color: #2C2C2C !important;
}

body.light-mode .lw-input:focus,
body.light-mode .lw-textarea:focus {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: #d67e2e !important;
    box-shadow: 0 0 0 3px rgba(214, 126, 46, 0.1) !important;
}

body.light-mode .lw-submit {
    background: linear-gradient(135deg, rgba(214, 126, 46, 0.15) 0%, rgba(214, 126, 46, 0.08) 100%) !important;
    border: 1.5px solid rgba(214, 126, 46, 0.4) !important;
    color: #5d4037 !important;
}

body.light-mode .lw-submit:hover {
    background: linear-gradient(135deg, #d67e2e 0%, #ff9800 100%) !important;
    border-color: #d67e2e !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(214, 126, 46, 0.35) !important;
}
/* 
 * ITCSS - Component Layer: Video Player
 * -------------------------------------
 */

#lw-stage-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    background: transparent !important;
    border-radius: 12px !important;
}

#lw-stage-placeholder,
#global-player-stage,
.video-wrapper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#lw-stage-placeholder {
    z-index: 5;
}

#global-player-stage {
    z-index: 10 !important;
    background: rgba(0, 0, 0, 0.3) !important;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
}

#global-player-stage.playing {
    display: flex !important;
}

/* 浮窗模式 */
#global-player-stage.floating {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 320px !important;
    height: 180px !important;
    border: 1px solid var(--accent-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    z-index: 100000;
}

/* 控制条样式 (V19: Class-based visibility for Touch/Mobile) */
.vid-controls-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    /* Ensure above overlay */
}

#global-player-stage.controls-active .vid-controls-bar,
#global-player-stage:hover .vid-controls-bar {
    opacity: 1;
    pointer-events: auto;
}

.vid-progress-container {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    position: relative;
    border-radius: 2px;
}

.vid-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--lw-accent);
    border-radius: 2px;
}

@media (max-width: 768px) {
    #global-player-stage.floating {
        width: 90vw !important;
        height: 30vw !important;
        bottom: 80px !important;
        right: 5vw !important;
    }
}
/* 
 * ITCSS - Component Layer: Audio Modal
 * -----------------------------------
 */

#sound-prompt-modal .lw-modal-backdrop {
    background: transparent !important;
    backdrop-filter: none !important;
}

#sound-prompt-modal .lw-modal-content {
    background: #0a0f19 !important;
    /* Solid, Non-transparent */
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 255, 255, 0.15) !important;
    padding: 60px 50px !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 24px !important;
}

/* Day Mode Branch (Step 37 Fix) */
body.light-mode #sound-prompt-modal .lw-modal-content {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1) !important;
}

#sound-prompt-modal h3 {
    font-size: 2.2rem !important;
    margin-bottom: 10px !important;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode #sound-prompt-modal h3 {
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: #222 !important;
}

#sound-prompt-modal p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

body.light-mode #sound-prompt-modal p {
    color: #555 !important;
}

/* Modal Actions Layout */
.modal-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin-top: 25px;
}

.modal-actions button {
    flex: 1;
    min-width: 0;
    /* Prevent overflow */
    justify-content: center;
}

/* Premium Primary Button (Yes) */
#btn-enable-sound {
    background: linear-gradient(90deg, #ffcc00, #00ffff) !important;
    /* Gold to Cyan Gradient */
    color: #000 !important;
    border: none !important;
    padding: 16px 40px !important;
    border-radius: 50px !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.3) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
    overflow: hidden;
}

#btn-enable-sound::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#btn-enable-sound:hover {
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 20px 50px rgba(0, 255, 255, 0.5) !important;
}

#btn-enable-sound:hover::after {
    opacity: 1;
}

/* Premium Secondary Button (No) */
#btn-keep-silent {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    padding: 16px 30px !important;
    border-radius: 50px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px);
}

#btn-keep-silent:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    #sound-prompt-modal .lw-modal-content {
        padding: 24px 18px !important;
        width: 90% !important;
        max-width: 320px !important;
    }

    #btn-enable-sound,
    #btn-keep-silent {
        width: 100% !important;
        border-radius: 50px !important;
    }
}
/* 
/* 
 * ITCSS - Component Layer: Theater
 * --------------------------------
 * 核心目标：管理视频舞台与播放列表页。
 * 包含：播放触发器、网格网局、手风琴列表及移动端适配。
 */

/* --- Desktop Styles (Migrated from lightwinner.css) --- */

/* --- Row 1: Theater (Video + Playlist) --- */
.row-theater {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    height: 500px;
}

/* Stage Placeholder - The Container */
#lw-stage-placeholder {
    position: relative;
    /* CRITICAL for absolute child */
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.theater-stage {
    /* Legacy Class - maps to placeholder usually, or wrapper */
    /* Video always dark backing */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    /* FIX: Constrain to grid row height */
}

.theater-stage video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    /* Slightly dim for overlay visibility */
}

/* FIX: Global Player Stage & Placeholder Layout */
#lw-stage-placeholder {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    background: rgba(0, 0, 0, 0.3);
}

/* Static Player needs to sit ON TOP of placeholder when active */
#global-player-stage {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    /* Default is hidden via class, or flex when active */
    display: none;
    align-items: center;
    justify-content: center;
}

#global-player-stage.playing {
    display: flex !important;
}

#global-player-stage.hidden {
    display: none !important;
}

/* Ensure wrapper fills stage */
#global-player-stage .video-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#global-player-stage video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Push title up to clear the controls bar */
    padding: 40px 40px 90px 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    transition: opacity 0.5s;
    color: var(--lw-text);
    /* Fix: Let clicks pass through to controls */
    pointer-events: none;
    /* Fix: Hide by default, show on hover/activity */
    opacity: 0;
}

#global-player-stage.controls-active .video-overlay,
#global-player-stage:hover .video-overlay {
    opacity: 1;
}

.vid-info h2 {
    font-size: 2rem;
    font-weight: 500;
    margin: 0 0 5px 0;
    letter-spacing: 0.5px;
    /* Clean solid white instead of dirty gradient */
    color: #ffffff !important;
    background: none;
    -webkit-text-fill-color: initial;
    -webkit-background-clip: initial;
    background-clip: initial;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
}

.vid-info .vid-meta {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    /* Restore brand accent color! */
    color: var(--lw-accent) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
    font-weight: 600;
}

.play-trigger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Centered */
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: var(--lw-glass-blur);
    -webkit-backdrop-filter: var(--lw-glass-blur);
    color: var(--lw-text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    /* Optical center */
    z-index: 20;
    /* Stronger Play Button Glow */
    box-shadow: 0 0 30px rgba(var(--cct-raw, 255, 204, 0), 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.play-trigger:hover {
    background: var(--lw-accent);
    color: #000;
    transform: translate(-50%, -50%) scale(1.1);
    border-color: var(--lw-accent);
    box-shadow: 0 0 30px var(--lw-accent);
}


/* --- Floating Player Mode --- */
.theater-stage.floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 400px !important;
    height: 225px !important;
    /* 16:9 Aspect */
    z-index: 9999;
    /* Neon Glow Override */
    border: none;
    /* Combine animations: SlideUp (once) only */
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 12px;
}

.theater-stage.floating .video-overlay .vid-info {
    display: none;
}

.theater-stage.floating .play-trigger {
    width: 50px;
    height: 50px;
    font-size: 1rem;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- Playlist & Search --- */
.theater-playlist {
    background: var(--lw-panel-bg);
    backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate);
    -webkit-backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate);
    border: 1px solid var(--lw-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.playlist-search-container {
    padding: 15px 20px;
    background: var(--lw-bg);
    border-bottom: 1px solid var(--lw-border);
    position: relative;
}

.playlist-search-input {
    width: 100%;
    box-sizing: border-box;
    /* Fix width overflow */
    display: block;
    padding: 10px 15px;
    border-radius: 20px;
    /* border: 1px solid var(--lw-border); REMOVED for Glow */
    background: var(--lw-panel-bg);
    color: var(--lw-text);
    outline: none;
    font-family: inherit;
    transition: all 0.3s;
}

.playlist-search-input:focus {
    box-shadow: 0 0 25px rgba(var(--cct-raw, 255, 204, 0), 0.4), inset 0 0 0 1px var(--lw-accent);
}

.lw-modal-body {
    position: relative;
    padding: 0;
    /* USER FIX: Fill available space, enable scrolling for content */
    flex: 1;
    width: 100%;
    overflow: hidden !important;
    /* Body itself doesn't scroll, children do */
    display: flex;
    flex-direction: column;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    background: var(--lw-panel-bg);
    opacity: 0.98;
    /* Nearly solid to block text below */
    backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate);
    -webkit-backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate);
    border: 1px solid var(--lw-border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: none;
}

body.light-mode .search-dropdown {
    background: var(--lw-bg);
    /* Solid white for light mode from variables */
}

.search-dropdown .playlist-item {
    background: transparent !important;
    border-bottom: 1px solid var(--lw-border);
}

.search-dropdown .playlist-item:hover {
    background: var(--lw-panel-hover) !important;
}

.search-dropdown.active {
    display: block;
}

.playlist-accordion {
    flex: 1;
    overflow-y: auto;
}

/* 3-Level Accordion Styles */
.region-header {
    padding: 15px 20px;
    background: var(--lw-bg);
    border-bottom: 1px solid var(--lw-border);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--lw-text-muted);
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.region-header:hover {
    background: var(--lw-panel-hover);
    color: var(--lw-text);
}

.region-content,
.country-content {
    display: none;
}

.region-content {
    background: var(--lw-panel-bg);
}

.region-content.active,
.country-content.active {
    display: block;
}

.j-continent-header {
    padding: 12px 16px 12px 16px !important;
    /* USER FIX: Align with country and log items */
    margin: 2px 0 0 0 !important;
    background: var(--lw-border);
    border-radius: 8px;
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--lw-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left !important;
}

.country-header {
    padding: 12px 20px 12px 30px;
    /* Indent */
    border-bottom: 1px solid var(--lw-border);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--lw-text);
    display: flex;
    justify-content: space-between;
    background: var(--lw-border);
    opacity: 0.8;
}

.country-header:hover {
    background: var(--lw-panel-hover);
}

/* Enhanced Playlist Item */
.playlist-item {
    padding: 12px 20px 12px 30px;
    display: grid;
    grid-template-columns: 80px 3fr 2fr;
    /* Thumb | Main | Details */
    gap: 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--lw-border);
    background: var(--lw-bg);
    transition: background 0.2s;
    align-items: center;
}

.playlist-item:hover {
    background: var(--lw-panel-hover);
}

.playlist-item.playing {
    background: rgba(var(--cct-raw, 255, 204, 0), 0.1);
    /* Subtle Glass Tint */
    border-left: 4px solid var(--lw-accent);
}

[data-theme="dark"] .playlist-item.playing {
    background: rgba(var(--cct-raw, 255, 204, 0), 0.15);
}

.playlist-item .thumb {
    width: 80px;
    height: 50px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}

.playlist-item .meta-left {
    display: flex;
    flex-direction: column;
}

.playlist-item .title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--lw-text);
    line-height: 1.2;
    margin-bottom: 4px;
}

.playlist-item .dur {
    font-size: 0.75rem;
    color: var(--lw-text-muted);
}

.playlist-item .meta-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.playlist-item .city {
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--lw-accent);
}

.playlist-item .date {
    font-size: 0.7rem;
    color: var(--lw-text-muted);
    margin-top: 2px;
}

/* --- Mobile Styles (Migrated from lightwinner-mobile.css) --- */
@media screen and (max-width: 1024px) {
    .row-theater {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        gap: 4px !important;
    }

    .row-theater .theater-stage,
    .row-theater #lw-stage-wrapper {
        height: 250px !important;
        position: relative !important;
        width: 100% !important;
        flex: none !important;
        box-shadow: none !important;
        animation: none !important;
    }

    .row-theater .theater-stage {
        border: none !important;
        background: transparent !important;
    }

    .row-theater #lw-stage-wrapper {
        border: 1px solid var(--lw-border) !important;
        background: var(--lw-border) !important;
        opacity: 1;
        /* V19.2: Bring back opacity */
        border-radius: 12px !important;
        overflow: hidden !important;
    }

    html.light-mode .row-theater #lw-stage-placeholder,
    body.light-mode .row-theater #lw-stage-placeholder {
        background: var(--lw-panel-bg) !important;
        border: 1px solid var(--lw-border) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    }

    /* Mobile Typography Fixes */
    .vid-info h2 {
        font-size: 1.1rem !important;
        margin-bottom: 2px !important;
    }

    .vid-info .vid-meta {
        font-size: 0.75rem !important;
    }

    .theater-playlist {
        height: 350px !important;
        width: 100% !important;
        flex: none !important;
        display: flex !important;
        flex-direction: column !important;
        /* V4: Shadows and borders now handled by variables & base class */
    }

    /* V3 Mobile Search Optimization */
    .playlist-search-container {
        padding: 8px 10px !important;
        margin: 0 !important;
        background: transparent !important;
        border-bottom: none !important;
        flex-shrink: 0 !important;
    }

    .playlist-search-input {
        background: var(--lw-border) !important;
        border: none !important;
        border-radius: 8px !important;
        /* Modern softer corner */
        padding: 8px 12px !important;
        font-size: 0.9rem !important;
        color: var(--lw-text) !important;
        box-shadow: none !important;
        height: 36px !important;
        /* Subtle transition */
        transition: all 0.2s ease !important;
    }

    .light-mode .playlist-search-input {
        background: var(--lw-panel-hover) !important;
        color: var(--lw-text) !important;
    }

    .playlist-search-input:focus {
        background: var(--lw-panel-hover) !important;
        box-shadow: 0 0 0 2px var(--lw-accent) !important;
    }

    .light-mode .playlist-search-input:focus {
        background: var(--lw-panel-hover) !important;
        box-shadow: 0 0 0 1px var(--lw-accent) !important;
    }

    /* Accordion Scroll Area */
    .playlist-accordion {
        flex: 1 !important;
        overflow-y: auto !important;
        padding-top: 0 !important;
    }
}
/* 
 * Product Catalog & Display Subsystem (_product-catalog.css)
 * ----------------------------------------------------
 * Handles product grids, cards, category sidebars, and pagination.
 */

/* Main Container */
#product-container {
    width: 100%;
    min-height: 50vh;
    position: relative;
    z-index: 10;
}

/* Product Layout Wrapper */
.product-layout-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: 0;
    min-height: 80vh;
}

/* Sidebar & Categories */
.category-sidebar {
    width: 280px !important;
    flex-shrink: 0 !important;
    padding: 20px !important;
    position: relative !important;
    z-index: 5 !important;
    display: block !important;
    background: transparent !important;
    height: 100% !important;
    overflow-y: auto !important;
}

.cat-group {
    margin-bottom: 30px;
}

.cat-group h3 {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.cat-group ul {
    list-style: none;
    padding: 0;
}

.cat-group li {
    padding: 10px 15px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    position: relative;
    border-radius: 4px;
    user-select: none;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.cat-group li:hover {
    color: #fff;
    padding-left: 20px;
    background: rgba(255, 255, 255, 0.05);
}

.cat-group li.active {
    color: var(--cct-ui-color, #fff);
    font-weight: bold;
    padding-left: 20px;
    background: rgba(var(--cct-raw), 0.15);
    border-left: 3px solid var(--cct-ui-color, #fff);
}

.cat-group li:active {
    transform: scale(0.98);
}

.cat-count {
    font-size: 0.75em;
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 20px;
    min-width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

.reset-filter {
    background: transparent;
    border: 1px solid #444;
    color: #888;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
}

.reset-filter:hover {
    border-color: #fff;
    color: #fff;
}

.sidebar-search-row {
    display: flex !important;
    gap: 6px !important;
    margin-bottom: 20px !important;
    align-items: stretch !important;
}

#prod-search {
    flex: 1 !important;
    min-width: 0 !important;
    /* Allow shrinking below text size */
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    padding: 10px 10px !important;
    border-radius: 4px !important;
    font-size: 0.85rem !important;
    outline: none !important;
    height: 42px !important;
    box-sizing: border-box !important;
}

body.light-mode #prod-search {
    background: #ffffff !important;
    border-color: #d1d1d1 !important;
    color: #111 !important;
}

.reset-filter-btn {
    background: var(--accent-color, #f36110) !important;
    /* High Visibility Vibrant Orange */
    color: #fff !important;
    border: none !important;
    padding: 0 10px !important;
    /* Reduced to fit sidebar */
    border-radius: 4px !important;
    font-size: 0.65rem !important;
    /* Slightly smaller for long text */
    font-weight: 700 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
    height: 42px !important;
    /* Match input height */
    box-shadow: 0 2px 8px rgba(var(--cct-raw), 0.3) !important;
    display: flex !important;
    align-items: center !important;
}

.reset-filter-btn:hover {
    filter: brightness(1.2) !important;
    box-shadow: 0 4px 15px rgba(var(--cct-raw), 0.5) !important;
}

body.light-mode .reset-filter-btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Main Display Area */
.product-main-area {
    flex-grow: 1;
    padding-left: 40px;
    z-index: 1;
    position: relative;
    min-height: 400px;
}

#product-category-title {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Product Grid System */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

.no-results-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    text-align: center;
    color: var(--lw-text-dim);
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.no-results-state i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results-state p {
    font-size: 1.2rem;
    font-weight: 300;
}

.product-card {
    background: var(--panel-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    animation: slideUpFade 0.5s ease-out backwards;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(var(--cct-raw), 0.3);
    border-color: var(--cct-ui-color);
}

.card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #222;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%,
            rgba(var(--cct-raw), 0.03) 0%,
            rgba(var(--cct-raw), 0.08) 100%);
    pointer-events: none;
    transition: background 0.8s ease;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    color: #111;
    background: rgba(var(--cct-raw), 0.7);
    z-index: 5;
    transition: all 0.8s ease, background 0.3s ease;
}

/* V54: Fix for undefined category tag */
.badge:empty,
.badge[data-i18n*="undefined"] {
    display: none !important;
}


.badge.new {
    background: var(--accent-color);
}

.badge.hot {
    background: #ff4444;
    color: #fff;
}

.card-info {
    padding: 1.5rem;
}

.card-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.specs {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-bottom: 20px;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #888;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(.disabled) {
    border-color: var(--accent-color);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.page-btn.active {
    color: #000;
    border-color: var(--accent-color);
    font-weight: bold;
    background: var(--accent-color);
    box-shadow: 0 0 10px rgba(var(--cct-raw), 0.5);
}

.page-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
    border-color: transparent;
}

/* Animations */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Light Mode Overrides */
body.light-mode .cat-count {
    background: rgba(214, 126, 46, 0.08); /* Pale yellow tint */
    color: #cc7800; /* Darker readable yellow */
    border: 1px solid rgba(214, 126, 46, 0.15);
}

body.light-mode .cat-group li.active .cat-count {
    color: #fff;
    background: rgba(214, 126, 46, 0.9);
}

body.light-mode .page-btn {
    border-color: #ccc;
    color: #555;
}

body.light-mode .page-btn.active {
    color: #fff;
}

/* Mobile Optimization */
/* V11 Fix: Default hide on desktop to prevent leaking */
#mobile-filter-trigger {
    display: none;
}

@media (max-width: 1024px) {
    .product-layout-container {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        min-height: 100vh !important;
    }

    /* Restored Off-Canvas Logic (V3) */
    .product-category-title {
        font-size: 1.5rem !important;
        font-weight: 800 !important;
        margin-bottom: 25px !important;
        display: flex !important;
        align-items: baseline !important;
        color: var(--accent-color, #f36110) !important;
    }

    .sort-indicator {
        font-size: 0.6em !important;
        opacity: 0.6 !important;
        margin-left: 10px !important;
        color: #999 !important;
        font-weight: 400 !important;
    }

    /* Mobile Sidebar - Pixel Perfect Restoration (V65) */
    .category-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 85% !important;
        max-width: 320px !important;
        height: 100vh !important;
        background: #111111 !important;
        /* Solid Dark Background */
        opacity: 1 !important;
        /* V66: Force fully opaque */
        z-index: 20000 !important;
        /* V66: Elevate above product badges (top layer) */
        transition: left 0.4s cubic-bezier(0.19, 1, 0.22, 1) !important;
        padding: 30px 20px !important;
        overflow-y: auto !important;
        box-shadow: 15px 0 50px rgba(0, 0, 0, 0.9) !important;
        border: none !important;
    }

    .category-sidebar.active {
        left: 0 !important;
    }

    .light-mode .category-sidebar {
        background: #ffffff !important;
        /* Solid Light Background */
        box-shadow: 15px 0 50px rgba(0, 0, 0, 0.1) !important;
    }

    /* Sidebar Labels (SEARCH, FILTER & SORT, etc.) */
    .sidebar-label {
        font-size: 0.85rem !important;
        font-weight: 800 !important;
        letter-spacing: 1.5px !important;
        color: var(--accent-color, #f36110) !important;
        /* Iconic Orange */
        margin-bottom: 12px !important;
        margin-top: 25px !important;
        text-transform: uppercase !important;
        border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
        padding-bottom: 8px !important;
        display: block !important;
    }

    .sidebar-section:first-child .sidebar-label {
        margin-top: 0 !important;
    }

    .light-mode .sidebar-label {
        border-bottom-color: rgba(0, 0, 0, 0.08) !important;
    }

    /* Search row with integrated VIEW ALL */
    .sidebar-search-row {
        display: flex !important;
        gap: 8px !important;
        margin-bottom: 15px !important;
        align-items: stretch !important;
    }

    #prod-search {
        flex: 1 !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        color: #fff !important;
        padding: 10px 14px !important;
        border-radius: 4px !important;
        font-size: 0.9rem !important;
        outline: none !important;
    }

    .light-mode #prod-search {
        background: #ffffff !important;
        border-color: #d1d1d1 !important;
        color: #111 !important;
    }

    .reset-filter-btn {
        background: var(--accent-color, #f36110) !important;
        color: #fff !important;
        border: none !important;
        padding: 0 10px !important;
        border-radius: 4px !important;
        font-size: 0.65rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        cursor: pointer !important;
        white-space: nowrap !important;
        transition: all 0.3s ease !important;
        height: 42px !important;
        display: flex !important;
        align-items: center !important;
        box-shadow: 0 2px 8px rgba(var(--cct-raw), 0.3) !important;
    }

    .light-mode .reset-filter-btn {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }

    /* Sort By Section */
    .sidebar-sort h4 {
        font-size: 0.75rem !important;
        color: #777 !important;
        font-weight: 400 !important;
        margin-bottom: 10px !important;
    }

    .light-mode .sidebar-sort h4 {
        color: #666 !important;
    }

    .sort-options-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
    }

    .sort-btn {
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: #999 !important;
        padding: 12px 4px !important;
        border-radius: 4px !important;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        transition: all 0.2s ease !important;
        text-align: center !important;
    }

    .light-mode .sort-btn {
        background: #ffffff !important;
        border-color: #ddd !important;
        color: #777 !important;
    }

    .sort-btn.active {
        background: var(--accent-color, #f36110) !important;
        /* The Target Orange */
        color: #ffffff !important;
        border-color: var(--accent-color, #f36110) !important;
        box-shadow: 0 4px 12px rgba(243, 97, 16, 0.3) !important;
    }

    /* Category List Items */
    .cat-group ul {
        margin: 0 !important;
        padding: 0 !important;
    }

    .cat-group li {
        list-style: none !important;
        padding: 14px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        color: #bbbbbb !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        font-size: 1rem !important;
    }

    .light-mode .cat-group li {
        color: #333333 !important;
        border-bottom-color: rgba(0, 0, 0, 0.05) !important;
    }

    .cat-group li.active {
        color: var(--accent-color, #f36110) !important;
        font-weight: 800 !important;
    }

    .cat-count {
        background: rgba(255, 255, 255, 0.08) !important;
        color: var(--accent-color, #f36110) !important;
        padding: 2px 10px !important;
        border-radius: 4px !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        min-width: 40px !important;
        text-align: center !important;
    }

    .light-mode .cat-count {
        background: rgba(214, 126, 46, 0.08) !important;
        color: #cc7800 !important; /* Darker yellow applied to mobile too */
        border: 1px solid rgba(214, 126, 46, 0.15) !important;
    }
    .light-mode .cat-group li.active .cat-count {
        color: #fff !important;
        background: rgba(214, 126, 46, 0.9) !important;
    }

    /* Floating Trigger - Icon Only (V68 Restoration) */
    #mobile-filter-trigger {
        position: fixed !important;
        bottom: 85px !important;
        right: 20px !important;
        height: 52px !important;
        width: 52px !important;
        background: transparent !important;
        color: #fff !important;
        box-shadow: none !important;
        border: none !important;
        z-index: 10010 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s ease !important;
    }

    #mobile-filter-trigger i {
        font-size: 1.6rem !important;
        /* Slightly larger as it's alone */
        color: #fff !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        /* Help visibility on light images */
    }

    .light-mode #mobile-filter-trigger i {
        color: #000 !important;
        text-shadow: none;
    }

    /* Filter Overlay - Transparent Mask */
    .filter-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: transparent !important;
        /* Clear mask to prevent darkening */
        z-index: 19999 !important;
        /* Just below sidebar */
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.3s ease !important;
    }

    .filter-overlay.active {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* FAB logic merged into V68 above */

    /* Show Animation */
    #mobile-filter-trigger[style*="display: flex"] {
        opacity: 1 !important;
        pointer-events: auto !important;
        animation: pillPopInRight 0.3s ease-out forwards !important;
    }

    @keyframes pillPopInRight {
        0% {
            transform: translateY(20px) scale(0.9);
            opacity: 0;
        }

        100% {
            transform: translateY(0) scale(1);
            opacity: 1;
        }
    }
}

@media (max-width: 400px) {
    .product-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
        padding: 15px !important;
    }
}
/* 
 * UI Feedback & Universal Utilities (_ui-feedback.css)
 * ----------------------------------------------------
 * Contains generic modals, tooltips, and interaction feedback elements.
 */

/* Universal Modal Backdrop */
.lw-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    backdrop-filter: none;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

/* Modal Content Card (Grand Glass Style) */
.lw-modal-backdrop .lw-modal-content {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 60px 50px;
    text-align: center;
    width: 90% !important;
    max-width: 550px !important;
    height: auto !important;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: scale(0.95);
    animation: scaleIn 0.4s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

.lw-modal-content h3 {
    margin: 0 0 20px 0;
    font-size: 2.2rem;
    color: #fff;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.lw-modal-content p {
    margin: 0 0 40px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
}

/* Primary Action Buttons */
.lw-btn-primary {
    background: #fff;
    color: #000;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    flex: 1;
    max-width: 200px;
}

.lw-btn-primary:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.lw-btn-text {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s;
    flex: 1;
    max-width: 200px;
}

.lw-btn-text:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Guide Tooltips */
.guide-tooltip {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    right: 80px;
    z-index: 9998;
    animation: pulse-guide 2s infinite;
    pointer-events: none;
}

.tooltip-text {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.4);
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.tooltip-arrow {
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid rgba(0, 255, 255, 0.4);
}

/* Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse-guide {
    0% {
        transform: translate(0, -50%);
    }

    50% {
        transform: translate(-10px, -50%);
    }

    100% {
        transform: translate(0, -50%);
    }
}

/* Mobile Hiding */
@media (max-width: 768px) {
    .guide-tooltip {
        display: none !important;
    }
}
/* Component: Site Footer (Synced with Navbar Glass) */

/* --- 0. Shared Glass Tokens (Implicitly from variables.css) --- */
/* 
   We use the exact same vars as #global-navbar for consistency.
   Navbar uses: 
   background: var(--lw-panel-bg);
   backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate);
*/

.site-footer {
    padding: 15px 20px;
    margin-top: 0;

    /* 1. Base Glass - Synced with Navbar */
    background: var(--lw-panel-bg, rgba(10, 10, 15, 0.6));
    backdrop-filter: var(--lw-glass-blur, blur(12px)) var(--lw-glass-saturate, saturate(180%));
    -webkit-backdrop-filter: var(--lw-glass-blur, blur(12px)) var(--lw-glass-saturate, saturate(180%));

    /* 2. Border - Synced with Navbar (Top instead of Bottom) */
    border-top: 1px solid rgba(255, 255, 255, 0.05);

    /* Layout */
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
    transition: background-color 0.3s, border-color 0.3s;
    overflow: hidden;
    /* For shimmer containment */
}

/* Optional: Shimmer Effect (Subtle reflection) */
.site-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(105deg,
            transparent 20%,
            rgba(255, 255, 255, 0.03) 35%,
            rgba(255, 255, 255, 0.05) 40%,
            rgba(255, 255, 255, 0.03) 45%,
            transparent 60%);
    background-size: 200% 100%;
    pointer-events: none;
    opacity: 0.4;
    z-index: -1;
}

.footer-content {
    max-width: 1600px;
    /* Match Nav Max-Width */
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.footer-copyright {
    color: var(--text-color, rgba(255, 255, 255, 0.95)); /* Increased contrast */
    /* Use theme var */
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    opacity: 0.95; /* Increased from 0.8 */
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-color, rgba(255, 255, 255, 0.95)); /* Increased contrast */
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.2s, opacity 0.2s, text-shadow 0.2s;
    position: relative;
    opacity: 0.9; /* Increased from 0.7 */
}

.footer-legal a:hover {
    color: var(--accent-color, #00ffff);
    opacity: 1;
    text-shadow: 0 0 10px var(--accent-color, rgba(0, 255, 255, 0.5));
}

.footer-legal .sep {
    color: rgba(255, 255, 255, 0.25); /* More visible */
    font-size: 10px;
}

.ccpa-link {
    color: var(--lw-text-dim) !important;
}

/* --- Light Mode Overrides (Synced with Nav Light) --- */
body.light-mode .site-footer {
    background: rgba(255, 255, 255, 0.95) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .site-footer::after {
    opacity: 0;
    /* No shimmer in light mode */
}

body.light-mode .footer-copyright {
    color: rgba(0, 0, 0, 0.85) !important; /* Significant darkening */
    opacity: 1 !important; /* Lock opacity for light mode */
}

body.light-mode .footer-legal a,
body.light-mode .ccpa-link {
    color: rgba(0, 0, 0, 0.9) !important;
    opacity: 1 !important; /* Remove transparency for maximum contrast */
}

body.light-mode .footer-legal a:hover {
    color: var(--accent-color, #00ffff) !important;
    text-shadow: none;
}

body.light-mode .footer-legal .sep {
    color: rgba(0, 0, 0, 0.25);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .site-footer {
        padding: 15px 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        padding: 0;
        text-align: center;
    }

    .footer-copyright {
        order: 2;
        opacity: 0.8; /* Increased from 0.3 for mobile sync */
        font-size: 10px;
        letter-spacing: 0.5px;
        margin-top: -5px;
    }

    .footer-legal {
        order: 1;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 12px;
        width: 100%;
        display: flex;
        align-items: center;
    }

    .footer-legal a {
        font-size: 11px;
        font-weight: 400;
        letter-spacing: 0.5px;
        opacity: 0.9; /* Increased from 0.5 */
        text-transform: uppercase;
        display: inline-block;
        padding: 0;
    }

    .footer-legal .sep {
        display: none;
    }

    .footer-legal .ccpa-link {
        margin-top: 0;
        opacity: 0.6; /* Increased from 0.3 */
        font-size: 9px;
        letter-spacing: 0.5px;
        width: 100%;
    }
}

/* --- Search Modal (Deferred from Critical) --- */
.lw-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lw-search-modal.active {
    display: flex;
    opacity: 1;
}

.search-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.search-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    margin: auto;
    background: var(--panel-bg, rgba(20, 20, 30, 0.95));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

body.light-mode .search-container {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.1);
}
/**
 * LIGHTWINNER CSS ARCHITECTURE V4
 * 7-TRUMPS / CRITICAL CSS
 * 
 * 此文件由 index.html 内联样式物理提取生成。
 * 承载第一秒渲染的关键路径样式，包括全局变量、Navbar、Hero 骨架及搜索模态框。
 */

/* ==========================================================================
   PART 1: 全局变量与基础骨架 (Original id="critical-css")
   ========================================================================== */
:root {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --accent-color: #ffcc00;
    --panel-bg: rgba(40, 40, 40, 0.9);
    --cct-filter: sepia(0) hue-rotate(0deg);
    --cursor-size: 150px;
    --cursor-x: 50%;
    --cursor-y: 50%;
    --font-main: 'Inter', sans-serif;
    --z-background: 1;
    --z-content: 5;
    --z-flashlight: 9999;
    --z-ui: 10000;
    --lw-gold: #D4AF37;
    --lw-gold-light: #F9F1D8;
    --lw-gold-muted: #C6A355;
    --lw-cyan: #00e5ff;
    --lw-bg-main: #0a0a14;
    --lw-text-main: #ffffff;
    --lw-text-dim: rgba(255, 255, 255, 0.7);
}

body {
    background-color: transparent;
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 0;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

#app-container {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    z-index: var(--z-content);
    padding-top: 60px;
    margin: 0;
}

/* 导航栏基础视觉 */
#global-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(var(--cct-raw), 0.15) 0%, rgba(20, 20, 20, 0.8) 50%, rgba(var(--cct-raw), 0.05) 100%);
    display: flex;
    align-items: center;
    backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate);
    -webkit-backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate);
}

/* Search Modal moved to _footer.css */

/* ==========================================================================
   PART 4: 引导窗体 (Onboarding Overlay) & 响应式补丁
   ========================================================================== */
#onboarding-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle, rgba(0,0,0,0.3), rgba(0,0,0,0.85));
    backdrop-filter: var(--lw-glass-blur); -webkit-backdrop-filter: var(--lw-glass-blur);
    z-index: 2147483647; display: flex; justify-content: center; align-items: center;
    cursor: auto !important; user-select: none;
    transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1);
}
body.onboarding-active #global-navbar, body.onboarding-active #control-dock,
body.onboarding-active #custom-cursor, body.onboarding-active #hero,
body.onboarding-active #product-container { opacity: 0 !important; pointer-events: none; }

#onboarding-overlay .content {
    background: var(--lw-panel-bg, rgba(15,20,30,0.75));
    padding: 60px 50px; border-radius: 24px; text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
    backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate);
    -webkit-backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate);
    max-width: 460px; width: 90%; opacity: 0;
    animation: overlayIn 1s cubic-bezier(0.2,0.8,0.2,1) 0.1s forwards;
}
@keyframes overlayIn { to { opacity: 1; transform: translateY(0) scale(1); } }

#onboarding-overlay h2 { margin-bottom: 25px; line-height: 1.1; }
#onboarding-overlay .sub-title {
    display: block; color: rgba(255,255,255,0.6); font-size: 1rem;
    text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 5px;
}
#onboarding-overlay .brand-title {
    font-size: 3.5rem; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, #fff 0%, #00eaff 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(0, 234, 255, 0.3);
}
#onboarding-overlay p {
    color: rgba(255,255,255,0.7) !important; font-size: 1.1rem;
    margin-bottom: 40px; line-height: 1.6; font-weight: 300;
}
#onboarding-overlay #onboarding-hint {
    margin-bottom: 30px; font-style: italic; color: rgba(0, 234, 255, 0.7); font-size: 0.95rem;
}

/* Glowing CTA Button */
#onboarding-overlay button {
    padding: 16px 45px;
    background: linear-gradient(135deg, rgba(0, 234, 255, 0.15), rgba(0, 234, 255, 0.02));
    color: #00eaff !important;
    border: 1px solid rgba(0, 234, 255, 0.4);
    border-radius: 50px;
    /* Pill shape */
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.05);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    #onboarding-overlay .content {
        padding: 40px 25px !important;
        max-width: 340px !important;
    }

    #onboarding-overlay .brand-title {
        font-size: 2.5rem;
    }
}

/* ==========================================================================
   PART 6: 页脚骨架 (Footer Skeleton - Fix FOUC)
   ========================================================================== */
.site-footer {
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
    background: rgba(10, 10, 15, 0.6);
}

/* Light Mode Override for Critical Path */
body.light-mode .site-footer {
    background: rgba(255, 255, 255, 0.95);
    color: rgba(0, 0, 0, 0.9) !important; /* Force legibility */
}

.footer-content {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 24px;
}

@media (max-width: 768px) {
    .site-footer { padding: 15px 20px; }
    .footer-content { flex-direction: column; gap: 12px; text-align: center; }
    .footer-legal {
        flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px;
    }
    .footer-copyright { opacity: 0.8 !important; } /* Patch redundant skeleton */
    .footer-legal a { opacity: 0.9 !important; }
}


