/* 
   !!! CRITICAL CORE FILE - DO NOT DELETE !!! 
   Status: LOCKED (Verified by 15-Step Cross-Audit on 2026-02-07)
   
   [Essential Functions]
   - High-Fidelity Visuals (Hero, Products, About, Contact)
   - Dynamic Modals (Inquiry, Audio, Values)
   - Layout Engine (CSS Grid/Flex)
   - Light Mode & Mobile Adaptations (Self-Contained)

   [Dependencies]
   - lightwinner-mobile.css DEPENDS on this file.
   - All *.js modules DEPEND on classes defined here.
*/

/* --- GLOBAL SPA LAYOUT (Display Toggle & Scroll) --- */
/* v51_BG_FIX: Transparent BG + Specific Display Modes + Layout Fixes */

/* === GLOBAL SCROLLBAR HIDE (User Request) === */
/* Hide scrollbar for Chrome, Safari and Opera */


/* Base Section Class */


/* --- SPECIFIC DISPLAY MODES (Fix Layout Chaos) --- */
#hero.active {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    /* Unified Top Align */
    align-items: center;
    text-align: center;
    min-height: 100vh;
    padding-top: 110px !important;
    /* Unified Standard */
}

/* HERO CONTENT ENHANCEMENT */
.hero-content {
    width: 90%;
    max-width: 1200px;
    z-index: 5;
}

.glitch-text {
    font-size: 6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -4px;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0.4));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
}

.hero-tagline {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #fff;
    /* Changed to white for better contrast */
    margin-bottom: 80px;
    opacity: 0.9;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 255, 255, 0.3);
    /* Stronger shadow + subtle glow */
}

/* QUICK ACCESS TILES ENHANCED */
.hero-quick-access {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100%;
    margin-top: 40px;
}

.hero-tile {
    flex: 1;
    max-width: 340px;
    padding: 50px 30px;
    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);
    /* More visible border */
    border-radius: 24px;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.05);
    /* Outer shadow + Inner Glow */
}

.hero-tile:hover {
    transform: translateY(-20px) scale(1.02);
    background: rgba(20, 25, 45, 0.7);
    border-color: var(--accent-color, #00ffff);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 255, 255, 0.3),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
}

.tile-icon {
    font-size: 3.5rem;
    margin-bottom: 30px;
    color: var(--accent-color, #00ffff);
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.4));
    transition: all 0.5s ease;
}

.hero-tile:hover .tile-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 25px rgba(0, 255, 255, 0.7));
}

.tile-info h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.tile-info p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    /* Increased opacity for legibility */
    line-height: 1.6;
    font-weight: 300;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    /* Added shadow for readability */
}

/* SCROLL DISCOVERY */
.scroll-discovery {
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0.6;
    animation: fadeIn 2s ease-in-out infinite alternate;
}

.scroll-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #fff;
}

.scroll-indicator {
    display: none !important;
    visibility: hidden !important;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color, #00ffff);
    animation: scrollLine 2s infinite ease-in-out;
}

@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* --- MOBILE OPTIMIZATION (iPhone SE / Small Screens) --- */
@media (max-width: 480px) {

    /* Hero Title Scaling */
    .glitch-text {
        font-size: 2.8rem !important;
        /* Force smaller size */
        letter-spacing: -2px;
    }

    .hero-tagline {
        font-size: 1rem !important;
        margin-bottom: 40px;
    }

    /* Reduce Hero Padding */
    .section {
        padding-top: 80px !important;
        /* More headroom */
    }

    /* Section Titles */
    .section-title {
        font-size: 2.2rem !important;
        /* Smaller Global Titles */
        margin-bottom: 40px !important;
        letter-spacing: 4px !important;
    }

    /* Project Cards */
    .projects-grid {
        grid-auto-rows: 250px !important;
        /* Shorter cards */
        gap: 15px !important;
    }

    .p-overlay {
        padding: 20px !important;
    }

    .p-overlay h3 {
        font-size: 1.4rem !important;
    }
}

/* --- MOBILE OPTIMIZATION (iPhone SE / Small Screens) --- */
@media (max-width: 380px) {

    /* Hero Title Scaling */
    .glitch-text {
        font-size: 2.4rem !important;
        /* Force smaller size */
        letter-spacing: -2px;
        margin-bottom: 10px !important;
    }

    .hero-tagline {
        font-size: 0.9rem !important;
        /* Smaller tagline */
        margin-bottom: 25px !important;
        letter-spacing: 2px !important;
        line-height: 1.4;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    /* Reduce Hero Padding */
    .section {
        padding-top: 80px !important;
        /* More headroom */
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Section Titles */
    .section-title {
        font-size: 2rem !important;
        /* Smaller Global Titles */
        margin-bottom: 30px !important;
        letter-spacing: 2px !important;
    }

    /* Hero Quick Access Tiles */
    .hero-quick-access {
        gap: 15px !important;
        margin-top: 20px !important;
    }

    .hero-tile {
        padding: 25px 15px !important;
        /* Compact Tiles */
        max-width: 100% !important;
    }

    .tile-icon {
        font-size: 2.2rem !important;
        margin-bottom: 15px !important;
    }

    .tile-info h3 {
        font-size: 1.2rem !important;
    }
}

/* GLITCH ANIMATION SUBSIDIARY */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    z-index: 2;
    /* Always render on top of base text */
    color: transparent !important;
    /* Ensure they only contribute shadows, not solid strokes */
    -webkit-text-fill-color: transparent !important;
    pointer-events: none;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(31px, 9999px, 94px, 0);
    }

    20% {
        clip: rect(62px, 9999px, 42px, 0);
    }

    40% {
        clip: rect(16px, 9999px, 78px, 0);
    }

    60% {
        clip: rect(58px, 9999px, 84px, 0);
    }

    80% {
        clip: rect(13px, 9999px, 93px, 0);
    }

    100% {
        clip: rect(53px, 9999px, 85px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }

    20% {
        clip: rect(30px, 9999px, 30px, 0);
    }

    40% {
        clip: rect(10px, 9999px, 80px, 0);
    }

    60% {
        clip: rect(50px, 9999px, 10px, 0);
    }

    80% {
        clip: rect(90px, 9999px, 90px, 0);
    }

    100% {
        clip: rect(20px, 9999px, 40px, 0);
    }
}

@media (max-width: 900px) {
    .hero-quick-access {
        flex-direction: column;
        align-items: center;
    }

    .hero-tile {
        width: 100%;
        max-width: 400px;
    }

    .glitch-text {
        font-size: 3.5rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
}

#product-container.active,
#lightwinner-section.active,
#projects-section.active,
#values-section.active,
#about-section.active {
    display: block !important;
}

/* --- SPECIFICITY BUSTER (Hide Inactive) --- */
/* Force hide specific IDs when not active to beat lightwinner.css ID selectors */
#hero:not(.active),
#product-container:not(.active),
#lightwinner-section:not(.active),
#projects-section:not(.active),
#values-section:not(.active),
#about-section:not(.active),
#contact:not(.active) {
    display: none !important;
}

/* --------------------------------------------- */


/* --- PREMIUM LANDING PAGE SECTIONS --- */
.section-premium {
    padding: 110px 5% !important;
    /* Unified Standard */
    padding-bottom: 150px !important;
    position: relative;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

/* HIGH-IMPACT GLOBAL TITLES */
.section-title {
    font-size: 3.5rem;
    /* Standardized for all modes */
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 12px;
    color: var(--text-color);
    /* Adaptive to theme */
    text-align: center;
    margin-top: 0 !important;
    /* V22: CRITICAL FIX for vertical alignment */
    margin-bottom: 60px;
    /* Unified Spacing */
    opacity: 1;
    /* More clear in light mode */
    position: relative;
    z-index: 2;
}

body.light-mode .section-title {
    color: #1a1f2e;
    font-weight: 600;
    /* Better legibility on light background */
}

@media (max-width: 900px) {
    .section-title {
        font-size: 3rem;
        letter-spacing: 6px;
    }
}

/* --- PROJECTS SECTION (Cinematic Mosaic) --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 400px;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}


/* --- CONTACT SECTION (Redesigned) --- */
#contact {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Unified Top Align */
    z-index: 100 !important;
    padding-top: 110px !important;
    /* Ensure override if needed */
}

#contact.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 100 !important;
}

#contact::before {
    display: none;
}

/* TITLE REDESIGN - REUSING GLOBAL .section-title */
#contact h2.section-title {
    opacity: 1;
    flex-shrink: 0;
}

.contact-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* USER FIX: Equal Width (Was 1fr 1.2fr) */
    gap: 40px;
    /* USER FIX: Slightly tighter gap */
    max-width: 1100px;
    /* USER FIX: Slightly narrower total width for elegance */
    width: 90%;
    margin: 0 auto;
    flex-shrink: 0;
    align-items: stretch;
    /* USER FIX: Force Equal Height */
    /* Ensure legibility over stars */
    /* No solid background on wrapper, relying on child cards */
}

/* LEFT SIDE: INFO & SOCIAL */
.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 40px;
    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: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.contact-info:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-info h3 {
    font-size: 2.2rem;
    /* USER FIX: Smaller, Elegant Title (Was 3.2rem) */
    font-weight: 400;
    /* USER FIX: Normal weight */
    margin-bottom: 30px;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    /* USER FIX: More breathing room */
    line-height: 1.2;
    text-align: center;
}

.contact-details {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    /* Spacing between items */
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    /* USER FIX: Even Smaller Font (Was 0.95rem) */
    color: #ddd;
    font-weight: 300;
}

.info-item span {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    /* Soft Square */
    font-size: 1.3rem;
    color: var(--accent-color, cyan);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.info-item:hover span {
    background: var(--accent-color, cyan);
    color: #000;
    box-shadow: 0 0 20px var(--accent-color, cyan);
}

/* SOCIAL SECTION */
.social-section {
    text-align: center;
    margin-top: auto;
}

.social-section h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    width: 100%;
}

.s-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.s-icon:hover {
    transform: translateY(-5px) scale(1.1);
    filter: brightness(1.2);
}

/* BRAND COLORS */
.s-icon.fb {
    background: #1877F2;
    border-color: #1877F2;
}

.s-icon.ins {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
}

.s-icon.yt {
    background: #FF0000;
    border-color: #FF0000;
}

.s-icon.pin {
    background: #E60023;
    border-color: #E60023;
}

/* PULSE ANIMATIONS */
@keyframes pulse-green {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes pulse-cyan {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.5);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(0, 255, 255, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 255, 255, 0);
    }
}

a.info-item.pulse-cyan-active {
    animation: pulse-cyan 3s infinite;
    border-radius: 8px;
    background: rgba(0, 255, 255, 0.05);
    padding: 10px;
    margin-left: -10px;
}

a.info-item.pulse-green-active {
    animation: pulse-green 3s infinite;
    border-radius: 8px;
    background: rgba(37, 211, 102, 0.05);
    padding: 10px;
    margin-left: -10px;
}

/* RIGHT SIDE: FORM */


/* RESPONSIVE */

@media (max-width: 900px) {
    .contact-wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 40px !important;
        width: 92% !important;
        max-width: none !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    .contact-info {
        padding: 40px;
    }
}


/* --- PRODUCT GRID & CARDS (RESTORED) --- */

.product-layout-container {
    display: flex;
    /* height: 100%; REMOVED for Unified Scroll */
    /* overflow: hidden; REMOVED */
    position: relative;
    padding-top: 80px;
    align-items: flex-start;
    /* Required for Sticky Sidebar */
    gap: 0;
}

/* SIDEBAR */
.category-sidebar {
    width: 320px;
    box-sizing: border-box;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 20px 40px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
    border-radius: 0 0 16px 0;
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-section h3,
.cat-group h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color, #00ffff);
    margin-bottom: 12px;
    padding-left: 10px;
    position: relative;
}

.sidebar-section h3::before,
.cat-group h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
}

/* SEARCH & FILTER */
.search-bar-row {
    display: flex;
    gap: 8px;
    height: 40px;
    align-items: center;
    width: 100%;
}

.search-box-container {
    flex: 3;
    position: relative;
    height: 100%;
}

.search-box-container input {
    width: 100%;
    height: 100% !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0 12px;
    color: #fff;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    /* CRITICAL FIX */
    transition: all 0.3s;
}

.browse-all-btn {
    flex: 1.5;
    height: 100%;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.2);
    color: var(--accent-color, #00ffff);
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-sizing: border-box;
}


.browse-all-btn:hover {
    background: var(--accent-color, #00ffff);
    color: #000;
}

.search-box-container input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color, #00ffff);
}

/* SEARCH SUGGESTIONS DROPDOWN */
.suggestions-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 250%;
    /* Wider than input for readability */
    max-height: 300px;
    overflow-y: auto;
    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(0, 255, 255, 0.2);
    border-radius: 12px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    display: none;
    /* Controlled by JS */
}

.suggestion-item {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(0, 255, 255, 0.1);
}

.suggestion-item .s-name {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

.suggestion-item .s-cat {
    color: var(--accent-color, #00ffff);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.sort-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sort-group label {
    font-size: 0.8rem;
    color: #888;
}

.sort-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
}

.sort-btn.active,
.sort-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.sort-btn.active {
    border-color: var(--accent-color, #00ffff);
    color: var(--accent-color, #00ffff);
}

/* MENU LINKS */
.cat-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cat-group li {
    padding: 6px 10px;
    /* FIX: More Compact Padding */
    border-radius: 6px;
    /* Rounded pill shape */
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ffffff;
    /* FIX: Brighter Sidebar Text */
    font-size: 0.88rem;
    /* Slightly smaller for compression */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1px;
    /* FIX: Minimal Margin */
}

.cat-group li:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: translateX(5px);
}

.cat-group li.active {
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.1), transparent);
    color: var(--accent-color, #00ffff);
    border-left: 3px solid var(--accent-color, #00ffff);
    font-weight: 500;
}

.cat-count {
    font-size: 0.8rem;
    opacity: 0.5;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
}



/* LIGHT MODE BACKGROUND (User Request) */
body.light-mode #product-container {
    background-color: #f0f0f0 !important;
    background-image: url('../images/autumn_shadow.webp') !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
}


/* MAIN AREA */
.product-main-area {
    flex: 1;
    /* overflow-y: auto; REMOVED for Unified Scroll */
    padding: 10px 40px;
    /* USER REQUEST: Minimized Top Padding */
    padding-bottom: 50px;
    /* Reduced padding since parent handles it */
    position: relative;
    /* Hide scrollbar for cleaner look, valid in webkit */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

#product-category-title {
    font-size: 2rem;
    /* Compact Title */
    font-weight: 300;
    margin-top: 0;
    /* FIX: Kill default margin */
    margin-bottom: 15px;
    /* FIX: Tighter gap */
    color: #fff;
    /* Default for Dark Mode */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    /* FIX: Tighter underline */
    line-height: 1.2;
}

body.light-mode #product-category-title {
    color: #333 !important;
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}


/* GRID */
/* GRID (Responsive 4-3-2-1) */
.product-grid {
    display: grid;
    /* Default: 4 Columns (Desktop) */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    /* Reduced Gap */
    width: 100%;
}

@media (max-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 950px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}


/* --- PRODUCT CARD STYLES (CRITICAL) --- */
.product-card {
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Subtle Border */
    border-radius: 12px;
    /* Slightly smaller radius */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    position: relative;
    opacity: 0;
    animation: fadeCard 0.6s ease forwards;

    /* Removed Global aspect-ratio to prevent desktop overlap */
    display: flex;
    flex-direction: column;
}

/* Restrict Golden Ratio to Mobile only */
@media (max-width: 768px) {
    .product-card {
        aspect-ratio: 0.618 !important;
    }
}

@keyframes fadeCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(30, 30, 40, 0.9);
}

/* Image Container (Modern 1:1 Symmetry) */
.card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto !important;
    overflow: hidden;
    background: #000;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .card-image img {
    transform: scale(1.08);
    /* Zoom effect */
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    opacity: 0.3;
    transition: opacity 0.3s;
}

.product-card:hover .card-overlay {
    opacity: 0.1;
}

/* Badge - Synced with CCT Fill */
.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    background: var(--accent-color);
    color: #000;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}


/* Info Area (Remaining 38.2%) */
.card-info {
    height: 38.2%;
    padding: 15px 18px;
    /* Compact Padding */
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: space-between;
    /* Distribute vertically */
}

/* Group Name & Desc for flow */
.card-info-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-info h3 {
    margin: 0;
    font-size: 1.1rem;
    /* Smaller Title */
    color: #fff;
    font-weight: 600;
    line-height: 1.2;
}

.desc {
    font-size: 0.8rem;
    /* Smaller Desc */
    color: #d0d0d0;
    /* FIX: Brighter Desc */
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Specs Strip */
.specs {
    display: flex;
    gap: 12px;
    margin-top: auto;
    /* Push to bottom */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    /* Fainter line */
    padding-top: 10px;
}

.specs span {
    font-size: 0.75rem;
    /* Smaller Specs */
    color: #ffffff;
    /* FIX: Brighter Specs */
    display: flex;
    align-items: center;
    gap: 4px;
}

.icon {
    /* Smaller Icons */
    font-size: 0.8em;
    color: var(--accent-color, cyan);
    font-style: normal;
}


/* --- LIGHT MODE OVERRIDES (PRODUCT CARDS) - PROJECT CARD DESIGN --- */
body.light-mode .product-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(214, 126, 46, 0.15);
    box-shadow: 0 8px 20px rgba(93, 64, 55, 0.12),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

body.light-mode .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(93, 64, 55, 0.2),
        0 10px 30px rgba(93, 64, 55, 0.15);
    border-color: #d67e2e;
    background: rgba(255, 255, 255, 0.98);
}

/* Light Mode: Card Image - Warm Ivory Background */
body.light-mode .card-image {
    background-color: rgba(255, 250, 245, 0.98) !important;
}

/* Light Mode: Card Overlay - Soft Gradient */
body.light-mode .card-overlay {
    background: linear-gradient(to top,
            rgba(255, 250, 245, 0.85) 0%,
            rgba(255, 250, 245, 0.6) 30%,
            rgba(255, 250, 245, 0.3) 60%,
            transparent 100%);
    opacity: 0.6;
}

body.light-mode .product-card:hover .card-overlay {
    opacity: 0.3;
}

/* Light Mode: Card Info - Glass Effect */
body.light-mode .card-info {
    background: linear-gradient(to top,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.85) 50%,
            rgba(255, 255, 255, 0.75) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(214, 126, 46, 0.15);
}

body.light-mode .card-info h3 {
    color: #1A1A1A;
}

body.light-mode .desc {
    color: #4A4A4A;
}

body.light-mode .specs {
    border-top-color: rgba(214, 126, 46, 0.12);
}

body.light-mode .specs span {
    color: #5d4037;
}

body.light-mode .badge {
    background: linear-gradient(135deg,
            rgba(214, 126, 46, 0.2) 0%,
            rgba(214, 126, 46, 0.12) 100%);
    color: #d67e2e;
    border: 1px solid rgba(214, 126, 46, 0.35);
    box-shadow: 0 2px 8px rgba(214, 126, 46, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    font-weight: 600;
}

body.light-mode .category-sidebar {
    background: rgba(255, 255, 255, 0.85);
    /* Light glass sidebar */
    border-right-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .cat-group li {
    color: #555;
}

body.light-mode .cat-group li:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

body.light-mode #product-category-title {
    color: #111;
    border-bottom-color: #eee;
}



/* PAGINATION */
.pagination-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
    padding-bottom: 40px;
}

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

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover:not(.disabled) {
    background: var(--accent-color, cyan);
    color: #000;
    border-color: var(--accent-color, cyan);
}

.page-btn.active {
    background: #fff;
    color: #000;
    font-weight: bold;
}

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


/* --- PRODUCT MODAL (RESTORED & FIXED) --- */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    /* USER REQUEST: 100% Transparent */
    backdrop-filter: none;
    /* No blur on background */
    z-index: 15000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-modal-overlay.open {
    opacity: 1;
}

.product-modal-content {
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    /* 修改为不透明背景，确保文字清?*/
    background: rgba(40, 45, 60, 0.98);
    backdrop-filter: var(--lw-glass-blur);
    -webkit-backdrop-filter: var(--lw-glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    display: flex;
    /* FLEX LAYOUT */
    overflow: hidden;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-modal-overlay.open .product-modal-content {
    transform: scale(1);
}

/* LEFT: MEDIA SECTION */
.modal-media-section {
    flex: 1.5;
    /* Takes 60% approx */
    background: transparent;
    /* USER REQUEST: No Black Void */
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    /* Separator */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.media-carousel {
    width: 100%;
    height: 100%;
}

.media-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    /* USER REQUEST: Glass Feel */
    /* Ensure black bars for contain */
}

.media-slide img,
.media-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* FIX: Prevent cropping */
}

/* RIGHT: INFO SECTION */
.modal-info-section {
    flex: 1;
    /* Takes 40% approx */
    padding: 35px 30px 60px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.01);
    position: relative;
}

/* Typography & Elements */
/* Info Area: Categories/Tags */
.modal-meta-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.modal-badge {
    display: inline-block;
    background: transparent;
    color: #00e5ff;
    padding: 4px 16px;
    border-radius: 2px;
    /* Rectangle shape */
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid #00e5ff;
    font-weight: 600;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.2);
}

.modal-pos-indicator {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    font-weight: 500;
}

.modal-footer-paging {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    width: 100%;
}

.modal-header-group h2 {
    font-size: 1.8rem;
    margin: 0 0 12px;
    line-height: 1.2;
    color: #fff;
    font-weight: 500;
}

.modal-desc {
    font-size: 0.95rem;
    color: #999;
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px 24px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.02);
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.65rem;
    /* Smaller label */
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.spec-value {
    font-size: 1.0rem;
    /* Smaller value */
    color: #ddd;
    font-family: 'Courier New', monospace;
    /* Tech feel */
    font-weight: 600;
}

/* Controls */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #fff;
    color: #000;
    transform: rotate(90deg);
}

.modal-actions-row {
    display: flex;
    gap: 12px;
    margin-top: auto;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
}

.modal-cta {
    width: 90px;
    height: 28px;
    background: var(--accent-color, cyan);
    color: #000;
    border: none;
    border-radius: 14px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal-cta:hover {
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
}

.prod-nav {
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.prod-nav:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: transparent;
    /* Minimize visual noise: No background */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    /* No border */
    border-radius: 50%;
    color: #00e5ff;
    /* Cyan Arrow */
    font-size: 2rem;
    /* Larger icon for focus */
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
    /* Cyan Glow */
    box-shadow: none;
}

.carousel-nav:hover {
    background: rgba(0, 229, 255, 0.1);
    /* Subtle Cyan Hint */
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* Video Controls */
.cct-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 4;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-media-container:hover .cct-video-controls {
    opacity: 1;
}

.cct-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    border-radius: 2px;
    overflow: hidden;
}

.cct-progress-fill {
    height: 100%;
    background: var(--accent-color, cyan);
    width: 0%;
    transition: width 0.1s linear;
}

.video-pre-roll {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.5s;
}

.video-pre-roll p {
    font-size: 1.5rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    animation: pulse-text 2s infinite;
}

@keyframes pulse-text {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* ===== MOBILE FIX: 移动端产品Modal上下布局 ===== */
@media (max-width: 768px) {
    .product-modal-content {
        flex-direction: column !important;
        /* 改为上下布局 */
        height: auto !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }

    /* 媒体区域：图?视频在上?*/
    .modal-media-section {
        flex: none !important;
        width: 100% !important;
        height: 50vh !important;
        /* 固定高度 */
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    /* 信息区域：参数在下方 */
    .modal-info-section {
        flex: none !important;
        width: 100% !important;
        height: auto !important;
        padding: 20px 0 !important;
        /* 移动?上下20px,左右0 - 让按钮自然居?*/
        overflow-y: visible !important;
    }

    /* 为文字内容添加左右边?*/
    .modal-header-group,
    .modal-tags,
    .modal-desc,
    .modal-specs {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 缩小标题 */
    .modal-header-group h2 {
        font-size: 1.6rem !important;
    }

    /* 缩小规格区域 */
    .modal-specs {
        grid-template-columns: repeat(2, 1fr) !important;
        /* 移动??*/
        gap: 8px 12px !important;
        padding: 12px !important;
    }

    .spec-label {
        font-size: 0.6rem !important;
    }

    .spec-value {
        font-size: 0.9rem !important;
    }

    /* 按钮区域 - 自然居中对齐 */
    .modal-actions-row {
        gap: 8px !important;
        /* 减小按钮间距 */
        justify-content: center !important;
        /* 居中对齐 */
        align-items: center !important;
        padding: 5px 10px !important;
        /* 上下5px,左右10px保持边距 */
    }


    /* 压缩主按钮宽?减小高度 */
    .modal-cta {
        height: 42px !important;
        /* ?4px再减小到42px */
        font-size: 0.85rem !important;
        /* 减小字体 */
        padding: 0 20px !important;
        flex: none !important;
        /* 取消flex:1自动拉伸 */
        max-width: 180px !important;
        /* ?00px减小?80px */
        min-width: 160px !important;
    }

    /* 增大左右导航按钮 */
    .prod-nav {
        width: 48px !important;
        /* ?4px增大?8px */
        height: 48px !important;
        font-size: 1.3rem !important;
        /* 增大箭头图标 */
        flex-shrink: 0 !important;
        /* 防止被压?*/
    }

    /* 关闭按钮位置调整 */
    .modal-close {
        top: 10px !important;
        right: 10px !important;
        width: 36px !important;
        height: 36px !important;
    }
}


/* --- AUDIO ONBOARDING MODAL (PREMIUM GLASS) --- */
.lw-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    /* USER REQUEST: Fully transparent - no overlay blocking view */
    backdrop-filter: none;
    z-index: 999999;
    /* HIGHEST PRIORITY - Above everything including log modal */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeInModal 0.6s ease forwards;
}

@keyframes fadeInModal {
    to {
        opacity: 1;
    }
}

/* Sound modal specific styles - ensure it's a small centered card */
.lw-modal-backdrop .lw-modal-content {
    /* USER REQUEST: Small centered card, not fullscreen */
    background: rgba(40, 45, 60, 0.55);
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    max-width: 550px !important;
    width: 90% !important;
    height: auto !important;
    transform: translateY(20px);
    animation: floatUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.lw-modal-content {
    /* USER REQUEST: Small centered card, not fullscreen */
    background: rgba(40, 45, 60, 0.55);
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    max-width: 550px;
    width: 90%;
    transform: translateY(20px);
    animation: floatUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes floatUp {
    to {
        transform: translateY(0);
    }
}

.lw-modal-content h3 {
    font-size: 2.4rem;
    /* USER REQUEST: Bigger Text */
    color: #fff;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: -1px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.lw-modal-content p {
    font-size: 1.1rem;
    color: #eee;
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 300;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Premium Primary Button (Neon) */
.lw-btn-primary {
    background: linear-gradient(135deg, var(--accent-color, cyan), #00bfff);
    border: none;
    color: #000;
    padding: 12px 28px;
    /* USER REQUEST: Smaller Buttons */
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lw-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.6);
    filter: brightness(1.1);
}

/* Ghost Button (Secondary) */
.lw-btn-text {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.lw-btn-text:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* --- NEW PROJECTS GALLERY (Horizontal Scroll) --- */
.projects-gallery-container {
    width: 100%;
    height: 70vh;
    /* Occupy good vertical space */
    position: relative;
    overflow: hidden;
    margin-top: 40px;
    /* Masking for fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.projects-track {
    display: flex;
    gap: 40px;
    padding: 0 5vw;
    /* Center start */
    overflow-x: auto;
    scroll-behavior: smooth;
    height: 100%;
    align-items: center;
    scrollbar-width: none;
    /* Firefox hide */
}

.projects-track::-webkit-scrollbar {
    display: none;
    /* Chrome hide */
}

.project-slide {
    flex: 0 0 600px;
    /* Base width */
    height: 90%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.project-slide:hover {
    flex: 0 0 700px;
    /* Expand width on hover */
    transform: scale(1.02);
    border-color: var(--accent-color, cyan);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(var(--cct-raw), 0.2);
    z-index: 10;
}

.proj-media {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.proj-media video,
.proj-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.5s ease;
}

.project-slide:hover .proj-media video,
.project-slide:hover .proj-media img {
    opacity: 1;
    /* Brighten on hover */
}

/* Info Overlay */
.proj-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateY(20px);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-slide:hover .proj-info {
    transform: translateY(0);
}

.proj-cat {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s 0.1s;
}

.project-slide:hover .proj-cat {
    opacity: 1;
    transform: translateY(0);
}

.proj-info h3 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    line-height: 1;
}

.proj-info p {
    color: #ccc;
    font-size: 1rem;
    max-width: 80%;
    margin-bottom: 20px;
    opacity: 0.8;
}

.proj-btn {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s 0.2s;
}

.proj-btn:hover {
    background: #fff;
    color: #000;
}

.project-slide:hover .proj-btn {
    opacity: 1;
    transform: translateY(0);
}

/* --- PRODUCT DUAL-PANE SCROLL ARCHITECTURE (FORCE FIX) --- */
.product-dual-pane {
    display: flex !important;
    padding: 0 !important;
    overflow: hidden !important;
    height: 100vh !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
}

/* V50 FIX: Mobile layout should be natural and not forced absolute 100vh */
@media (max-width: 1024px) {
    .product-dual-pane {
        position: relative !important;
        height: auto !important;
        min-height: 10vh !important;
        overflow: visible !important;
        flex-direction: column !important;
    }

    .product-dual-pane .product-layout-container {
        padding-top: 10px !important;
        height: auto !important;
        overflow: visible !important;
        flex-direction: column !important;
    }

    /* Key Fix: Remove the 110px desktop nav-offset padding on mobile */
    .product-dual-pane .product-main-area {
        padding: 20px 4% 60px !important;
        height: auto !important;
        overflow: visible !important;
    }

    .product-dual-pane .category-sidebar {
        width: 100% !important;
        height: auto !important;
        position: fixed !important;
        /* Keep mobile sidebar as drawer */
        z-index: 2000 !important;
    }
}

.product-dual-pane .product-layout-container {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

.product-dual-pane .category-sidebar {
    height: 100% !important;
    position: relative !important;
    top: 0 !important;
    overflow-y: auto !important;
    padding-top: 110px !important;
    padding-bottom: 200px !important;
    flex-shrink: 0 !important;
    scrollbar-width: none !important;
    /* Firefox */
}

.product-dual-pane .category-sidebar::-webkit-scrollbar {
    display: none !important;
    /* Chrome/Safari/Edge */
}

.product-dual-pane .product-main-area {
    flex: 1 !important;
    height: 100% !important;
    overflow-y: auto !important;
    /* V45_FIX: Reduced excessive 300px padding to 60px */
    padding: 110px 4% 60px !important;
    scrollbar-width: none !important;
    /* Firefox */
    box-sizing: border-box !important;
}

/* Hide scrollbars for internal containers while keeping functionality */
.product-main-area::-webkit-scrollbar {
    display: none !important;
}

.product-main-area .product-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 30px !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 0 40px 0 !important;
}

/* V51 FIX (CORRECT ORDER): Override 110px desktop nav-offset on mobile.
   This MUST come AFTER the base rules above to win the cascade. */
@media (max-width: 1024px) {
    .product-dual-pane .product-main-area {
        padding-top: 75px !important;
        /* V53: Increased to clear the fixed header and prevent tag clipping */
        height: auto !important;
        overflow: visible !important;
    }

    .product-dual-pane .product-layout-container {
        height: auto !important;
        overflow: visible !important;
        display: block !important;
        /* Break flex to ensure no stray space */
    }


}

/* --- VALUES SECTION (Premium Glass) --- */
#values-section {
    position: relative;
    /* Deep Radial Gradient to replace Video */
    background: radial-gradient(circle at center, #1a1f2e 0%, #0d1117 100%);
    /* overflow: hidden; REMOVED to allow natural scroll on mobile */
}

@media (min-width: 901px) {
    #values-section {
        overflow: hidden;
        /* Only lock on desktop */
    }
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.value-card {
    /* Subtle Gradient for Depth instead of Flat Color */
    background: linear-gradient(160deg, rgba(30, 35, 45, 0.7) 0%, rgba(10, 15, 20, 0.8) 100%);
    backdrop-filter: var(--lw-glass-blur);
    -webkit-backdrop-filter: var(--lw-glass-blur);
    /* Refined Glass Border */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 60px 35px;
    /* Increased Padding */
    text-align: center;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.45) !important;
    /* V7.7: High-end edge */
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.05) !important;
    /* V7.7: Glass depth */
}

/* V7.7: Architectural Index */
.v-number {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.3;
    font-family: 'Inter', sans-serif;
    transition: all 0.5s;
    z-index: 2;
}

.value-card:hover .v-number {
    opacity: 0.9;
    transform: translateY(-2px);
}

.value-card:hover {
    transform: translateY(-15px);
    /* Cyan Quartz Glow Effect */
    background: rgba(0, 20, 30, 0.75);
    /* Deep Cyan-Black Glass */
    border-color: #00ffff;
    /* Pure Cyan Border */
    /* Complex Glow: Deep Shadow + Outer Neon + Inner Crystal Shine */
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 255, 255, 0.2),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.v-icon-box {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.v-icon {
    font-size: 2.8rem;
    /* Default Fallback (Cyan) */
    background: linear-gradient(135deg, #fff 0%, var(--accent-color, cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.4));
    transition: all 0.5s ease;
    min-width: 50px;
    text-align: center;
    display: inline-block;
}

/* Icon 1: Innovation (Cyan/Blue) */
.value-card:nth-of-type(1) .v-icon {
    background: linear-gradient(135deg, #e0faff 0%, #00ffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.6));
}

/* Icon 2: Sustainability (Green) */
.value-card:nth-of-type(2) .v-icon {
    background: linear-gradient(135deg, #e0ffe0 0%, #4ade80 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(74, 222, 128, 0.6));
}

/* Icon 3: Human Centric (Orange/Warm) */
.value-card:nth-of-type(3) .v-icon {
    background: linear-gradient(135deg, #fff8e0 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.6));
}

.value-card:hover .v-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 25px rgba(var(--cct-raw), 0.8));
}

/* V7.3: Unified Glow Management */
.value-card:nth-of-type(1) .v-glow {
    background: var(--accent-color, cyan);
}

.value-card:nth-of-type(2) .v-glow {
    background: var(--lw-accent-green, #4ade80);
}

.value-card:nth-of-type(3) .v-glow {
    background: var(--lw-accent-orange, #fbbf24);
}

.v-glow {
    position: absolute;
    inset: 10%;
    filter: blur(60px);
    /* V7.7: More atmospheric blur */
    opacity: 0.12;
    /* V7.7: Softer aura */
    border-radius: 50%;
    z-index: -1;
    transition: all 0.5s;
}

@keyframes iconFloat {
    0% {
        transform: translateY(0);
    }

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

    100% {
        transform: translateY(0);
    }
}

.value-card .v-icon-box {
    animation: iconFloat 4s ease-in-out infinite;
}

.value-card:hover .v-glow {
    opacity: 0.6;
    transform: scale(1.4);
    inset: -5%;
}

.value-card h3 {
    font-family: 'Outfit', sans-serif;
    /* Use Outfit for headings if available, else fallback */
    font-size: 2rem;
    /* Larger Title */
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    /* Tech Feel */
    text-transform: uppercase;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to right, #fff, #b0b0b0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.value-card p {
    color: #e0e0e0;
    /* Brighter White-Grey */
    line-height: 1.8;
    /* More breathing room */
    font-size: 1.05rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    max-width: 90%;
    margin: 0 auto;
}

/* Tablet & Mobile Responsiveness */
@media (max-width: 1000px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Columns for Tablet */
        gap: 25px;
    }

    .value-card {
        padding: 40px 25px;
    }
}

@media (max-width: 600px) {
    #values-section {
        padding-top: 60px !important;
        padding-bottom: 40px !important;
        min-height: 100vh;
        /* Consolidated Layout Logic - No Force Patches */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .values-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
        /* V7.7.1: Expand fill */
        padding: 0 15px !important;
    }

    /* V7.7.1: Architectural Screen-Fill Balance */
    .value-card {
        grid-column: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 40px 25px !important;
        /* V7.7.1: Restore fullness */
        box-sizing: border-box !important;
        border-radius: 16px !important;
    }

    .value-card .v-icon-box {
        width: 55px !important;
        height: 55px !important;
        margin-top: 0 !important;
        margin-bottom: 15px !important;
        /* V7.7.1: Gap fix */
    }

    .value-card h3 {
        font-size: 1.3rem !important;
        margin-top: 0 !important;
        margin-bottom: 6px !important;
        line-height: 1.2 !important;
        letter-spacing: 1px !important;
    }

    .value-card p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        max-width: 100% !important;
        opacity: 0.85 !important;
        margin: 0 !important;
    }

    .value-card .v-icon {
        font-size: 2.0rem !important;
    }

    #values-section .section-title {
        font-size: 2.1rem !important;
        font-weight: 300 !important;
        /* V7.7: Cinematic mix */
        letter-spacing: 4px !important;
        margin-bottom: 45px !important;
        /* V7.7.1: Push content down */
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    #values-section .section-title::before {
        content: '';
        width: 35px;
        height: 1.5px;
        background: var(--accent-linear);
        opacity: 0.7;
        margin-bottom: 5px;
        border-radius: 2px;
    }

    /* V7.7: Mobile Index positioning */
    .v-number {
        top: 20px !important;
        right: 25px !important;
        font-size: 0.75rem !important;
        opacity: 0.4 !important;
    }
}

/* --- ABOUT SECTION (Cinematic Layout) --- */
/* === ABOUT SECTION (Cinematic Layout) === */
#about-section {
    padding-top: 180px !important;
    padding-bottom: 150px !important;
    /* Standardized to prevent footer overlap */
}

.about-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
    text-align: left;
    padding: 0 40px;
}

.video-frame {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 255, 255, 0.15),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    /* CINEMATIC PRESENCE: Optimized for height and prominence */
    aspect-ratio: 16/9 !important;
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.5s ease;
}

/* ... existing video-frame:hover ... */

/* ... (Omitted frame-corner styles) ... */

/* Right Column Wrapper */
.about-right-col {
    display: flex;
    flex-direction: column;
    gap: 30px !important;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Founder Quote Box - Centered Editorial Style */
.founder-quote-box {
    padding: 20px;
    /* Removed Border Left */
    border-left: none !important;
    border-top: 2px solid rgba(255, 255, 255, 0.15) !important;
    /* Top Accent */
    margin-top: 20px !important;
    /* Added breath */
    opacity: 0.95;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-top: 40px !important;
    padding: 30px 0;
}

.founder-quote-box:hover {
    opacity: 1;
    border-top-color: var(--accent-color, cyan);
}

.quote-text {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 1.5rem;
    /* Enlarge (User: "Bigger") */
    color: #ddd;
    /* Dark Mode Default */
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 100%;
}

/* ... existing sig row ... */

/* === LIGHT MODE OVERRIDES FOR QUOTE === */
body.light-mode .video-frame {
    box-shadow:
        0 30px 60px rgba(93, 64, 55, 0.3),
        0 0 30px rgba(214, 126, 46, 0.2);
    border: 1px solid rgba(214, 126, 46, 0.3);
    background: rgba(255, 255, 255, 0.3);
}

body.light-mode .founder-quote-box {
    border-left: 4px solid rgba(214, 126, 46, 0.3) !important;
    /* Warm border */
}

body.light-mode .founder-quote-box:hover {
    border-left-color: #d67e2e !important;
}

body.light-mode .quote-text {
    color: #4A4A4A !important;
    /* Readable dark grey */
    font-weight: 600 !important;
    /* Thicker weight */
    text-shadow: none !important;
    /* Remove any lingering shadow */
}

body.light-mode .founder-sig {
    color: #d67e2e !important;
    /* Warm signature */
    font-weight: 600;
}

body.light-mode .sig-line {
    background: #bbb !important;
}

.video-frame:hover {
    border-color: #00ffff;
    box-shadow:
        0 50px 120px rgba(0, 0, 0, 0.9),
        0 0 60px rgba(0, 255, 255, 0.3),
        inset 0 0 30px rgba(0, 255, 255, 0.2);
    transform: scale(1.02);
}

.frame-corner {
    position: absolute;
    width: 20px;
    /* Smaller */
    height: 20px;
    border: 2px solid #00ffff;
    /* Thinner, Pure Cyan */
    z-index: 2;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
    /* Glowing */
    opacity: 0.8;
}

.corn-TL {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.corn-BR {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}



.quote-sig-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sig-line {
    width: 30px;
    height: 1px;
    background: #666;
}

.founder-sig {
    font-family: 'Brush Script MT', 'Bradley Hand', cursive;
    font-size: 2.8rem;
    color: var(--accent-color, cyan);
    letter-spacing: 1px;
    transform: rotate(-2deg);
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}


.about-text .section-title {
    text-align: left;
    margin-bottom: 25px;
    font-size: 3.8rem;
    font-weight: 200;
    letter-spacing: 12px;
    line-height: 1.1;
    background: linear-gradient(to right, #fff 30%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-top: 25px;
    padding-left: 0;
}

/* Magazine Eyebrow Tag */
.about-text .section-title::before {
    content: "/// INSPECT THE VISION";
    position: absolute;
    top: -10px;
    left: 0;
    transform: none;
    font-size: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--accent-color, cyan);
    -webkit-text-fill-color: var(--accent-color, cyan);
    opacity: 0.8;
}

.about-text .lead {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: 0.5px;
    border: none;
    padding-left: 0;
    white-space: normal;
    width: 100%;
}

.about-text p {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 25px;
    font-weight: 300;
    letter-spacing: 0.5px;
    max-width: 800px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    white-space: normal;
    word-wrap: break-word;
}

.stats-row {
    display: flex;
    justify-content: flex-start;
    gap: 60px;
    margin-bottom: 40px;
    margin-top: 20px;
    position: relative;
    padding: 0 0 25px 0;
}

/* Structural Divider Line */
.stats-row::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    transform: none;
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, #00ffff, transparent);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 4.5rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #fff 0%, #00ffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    line-height: 0.9;
    letter-spacing: -2px;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.5));
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    /* Wide tracking for labels */
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    margin-top: 10px;
}

/* --- SECTION BACKGROUND VIDEO --- */
.section-bg-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.content-relative {
    position: relative;
    z-index: 2;
}

@media (max-width: 1000px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .video-frame {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 600px) {
    #about-section {
        padding-top: 85px !important;
        /* V8.4: Increased to prevent eyebrow text overlap */
        padding-bottom: 100px !important;
        /* V8.4: Increased for footer visibility */
        height: auto;
        /* Ensure natural height */
    }

    #about-section .about-container {
        gap: 20px;
        padding-bottom: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        width: 100%;
        overflow-x: hidden;
    }

    #about-section .about-text {
        width: 100%;
        padding: 0 10px;
    }

    #about-section .about-text p,
    #about-section .about-text .lead {
        max-width: 100%;
        width: 100%;
        font-size: 1rem;
        padding: 0 5px;
    }

    .about-right-col {
        gap: 20px !important;
        /* V8.2: Tighten video-to-quote gap */
    }

    #about-section .about-text .section-title {
        font-size: 2.22rem !important;
        padding-left: 0 !important;
        /* V8.3: Purged indent for centering */
        text-align: center !important;
        /* V8.3: Centered */
        letter-spacing: 2px !important;
        margin-bottom: 12px !important;
        /* V8.4: Tightened from desktop 25px */
    }

    #about-section .about-text .section-title::before {
        left: 50% !important;
        /* V8.3: Centered */
        transform: translateX(-50%) !important;
        white-space: nowrap;
        font-size: 0.65rem !important;
        letter-spacing: 2px !important;
    }

    #about-section .stats-row {
        flex-direction: row !important;
        /* Keep horizontal but small */
        justify-content: center !important;
        /* V8.3: Centered */
        gap: 20px !important;
        padding-left: 0 !important;
        /* V8.3: Purged indent */
        margin-bottom: 10px !important;
        /* V8.4: Tightened from 20px */
    }

    #about-section .stats-row::after {
        left: 50% !important;
        /* V8.4: Centered divider */
        /* V8.3: Centered divider */
        transform: translateX(-50%) !important;
    }

    .stat-num {
        font-size: 2.5rem !important;
        /* Prevent overflow */
        letter-spacing: -1px !important;
    }

    .stat-label {
        font-size: 0.7rem !important;
        letter-spacing: 2px !important;
    }

    #about-section .about-text .lead {
        font-size: 1.15rem !important;
        /* V8.4: Slightly smaller for density */
        /* V8.2: Slightly smaller */
        padding-left: 0 !important;
        /* V8.3: Purged indent */
        text-align: center !important;
        /* V8.3: Centered */
        border-left: none !important;
        /* V8.5: Force remove orange border in Light Mode */
        /* V8.3: Symmetry */
        margin-bottom: 8px !important;
        /* V8.4: Tightened from 15px */
        font-weight: 500 !important;
        /* V8.6: Boost weight for legibility */
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
        /* V8.6: Background separation */
    }

    #about-section .about-text p {
        font-size: 0.92rem !important;
        /* V8.4: Slightly smaller */
        /* V8.2: Slightly smaller */
        padding-left: 0 !important;
        /* V8.3: Purged indent */
        text-align: center !important;
        /* V8.3: Centered */
        line-height: 1.4 !important;
        /* V8.4: Tightened from 1.5 */
        margin-bottom: 8px !important;
        /* V8.4: Tightened from 12px */
        margin-left: auto !important;
        margin-right: auto !important;
        /* V8.2: Tightened from 20px */
        /* Tightened from 25px */
        color: #ffffff !important;
        /* V8.6: Pure white for maximum contrast in Dark Mode */
        font-weight: 450 !important;
        /* V8.6: Thicker weight for sharpness */
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
        /* V8.6: Pop from background stars */
    }
}





/* === FIX: CONTACT FORM INPUT OVERFLOW === */
/* Compel inputs to stay within container independent of padding */
.lw-input,
.lw-textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* === USER FIX: CONTACT HEADER GAP === */
/* Reduce top padding for Contact section to match others */
#contact {
    padding-top: 80px !important;
    /* Reduced from potential default */
}

@media (max-width: 900px) {
    #contact {
        height: auto;
        min-height: 100vh;
        display: block !important;
        /* Ensure block flow for scrolling */
    }
}

/* Ensure title doesn't have excess top margin */
#contact .section-title {
    margin-top: 0 !important;
}



/* === INQUIRY MODAL STYLES === */
/* === INQUIRY MODAL STYLES (Redesigned v2) === */
.inquiry-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 200000;
    /* SUPER HIGH to fix mobile overlap */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    /* Ensure it's truly gone from interaction/flow */
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    /* Hide visibility AFTER opacity fades */
    padding: 0px;
    /* Safe padding for mobile */
}

.inquiry-modal-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    cursor: auto;
    /* Restore system cursor over modal */
    transition: opacity 0.3s ease, visibility 0s linear 0s;
    /* Show visibility IMMEDIATELY */
}

.inquiry-modal-content {
    cursor: default;
    /* Ensure cursor is visible inside */
    width: 90%;
    max-width: 550px;
    background: #ffffff;
    /* Clean White */
    border-radius: 20px;
    padding: 0;
    /* Reset padding, structured layout */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Dark Mode Support */
body.dark-mode .inquiry-modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.inquiry-modal-overlay.open .inquiry-modal-content {
    transform: translateY(0) scale(1);
}

.inquiry-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.inquiry-close:hover {
    color: #000;
}

body.dark-mode .inquiry-close:hover {
    color: #fff;
}

/* Header */
.inquiry-header {
    background: transparent;
    /* Seamless design */
    padding: 30px 40px 10px 40px;
    /* Reduced bottom padding */
    border-bottom: none;
    /* Remove border for cleaner look */
    text-align: center;
    /* Center align title */
}

/* Mobile Overrides */
@media (max-width: 600px) {
    .inquiry-modal-content {
        padding: 0;
        width: 95%;
        max-height: 85vh;
        /* Prevent overflow on small screens */
        overflow-y: auto;
        /* Scrollable */
    }

    .inquiry-header {
        padding: 25px 20px 5px 20px;
    }

    #inquiry-form {
        padding: 20px 25px 30px 25px;
        /* Adjust form padding */
    }

    .inquiry-subtitle {
        font-size: 0.85rem;
        margin-top: 5px;
    }
}

body.dark-mode .inquiry-header {
    background: transparent;
    border-color: transparent;
}

.inquiry-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #111;
    font-weight: 700;
    letter-spacing: -0.5px;
}

body.dark-mode .inquiry-header h2 {
    color: #fff;
}

.inquiry-subtitle {
    margin: 8px 0 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

body.dark-mode .inquiry-subtitle {
    color: #aaa;
}

/* Product Summary Snippet */
.inquiry-product-summary {
    background: rgba(var(--accent-rgb, 64, 224, 208), 0.05);
    padding: 15px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center horizontally */
    text-align: center;
    /* Center text */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .inquiry-product-summary {
    border-color: #333;
    background: rgba(255, 255, 255, 0.02);
}

.summary-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 8px;
    /* Slightly more space */
}

.summary-details {
    display: flex;
    gap: 10px;
    align-items: center;
    /* Align vertically center */
    justify-content: center;
    /* Center content */
    flex-wrap: wrap;
    /* Allow wrapping on very small screens */
}

.summary-sku {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--accent-color, #333);
}

.summary-name {
    font-weight: 500;
    color: #333;
}

body.dark-mode .summary-name {
    color: #eee;
}


/* Form Layout */
#inquiry-form {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

/* Mobile responsive for rows */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .submit-btn {
        width: 100%;
        /* Full width on mobile */
        padding: 18px;
        /* Taller touch target */
    }
}

/* Floating Label Inputs */
.input-group {
    position: relative;
    flex: 1;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    color: #333;
    background: transparent;
    border: none;
    border-bottom: 2px solid #eee;
    outline: none;
    transition: border-color 0.3s;
    border-radius: 0;
    /* Remove default radius */
}

body.dark-mode .input-group input,
body.dark-mode .input-group textarea {
    color: #fff;
    border-color: #444;
}




.inquiry-modal-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    cursor: auto;
    /* Restore system cursor over modal */
    transition: opacity 0.3s ease, visibility 0s linear 0s;
    /* Show visibility IMMEDIATELY */
}

.inquiry-modal-content {
    cursor: default;
    /* Ensure cursor is visible inside */
    width: 90%;
    max-width: 550px;
    background: #ffffff;
    /* Clean White */
    border-radius: 20px;
    padding: 0;
    /* Reset padding, structured layout */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Dark Mode Support */
body.dark-mode .inquiry-modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.inquiry-modal-overlay.open .inquiry-modal-content {
    transform: translateY(0) scale(1);
}

.inquiry-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.inquiry-close:hover {
    color: #000;
}

body.dark-mode .inquiry-close:hover {
    color: #fff;
}

/* Header */
.inquiry-header {
    background: transparent;
    /* Seamless design */
    padding: 30px 40px 10px 40px;
    /* Reduced bottom padding */
    border-bottom: none;
    /* Remove border for cleaner look */
    text-align: center;
    /* Center align title */
}

/* Mobile Overrides */
@media (max-width: 600px) {
    .inquiry-modal-content {
        padding: 0;
        width: 95%;
        max-height: 85vh;
        /* Prevent overflow on small screens */
        overflow-y: auto;
        /* Scrollable */
    }

    .inquiry-header {
        padding: 25px 20px 5px 20px;
    }

    #inquiry-form {
        padding: 20px 25px 30px 25px;
        /* Adjust form padding */
    }

    .inquiry-subtitle {
        font-size: 0.85rem;
        margin-top: 5px;
    }
}

body.dark-mode .inquiry-header {
    background: transparent;
    border-color: transparent;
}

.inquiry-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #111;
    font-weight: 700;
    letter-spacing: -0.5px;
}

body.dark-mode .inquiry-header h2 {
    color: #fff;
}

.inquiry-subtitle {
    margin: 8px 0 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

body.dark-mode .inquiry-subtitle {
    color: #aaa;
}

/* Product Summary Snippet */
.inquiry-product-summary {
    background: rgba(var(--accent-rgb, 64, 224, 208), 0.05);
    padding: 15px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center horizontally */
    text-align: center;
    /* Center text */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .inquiry-product-summary {
    border-color: #333;
    background: rgba(255, 255, 255, 0.02);
}

.summary-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 8px;
    /* Slightly more space */
}

.summary-details {
    display: flex;
    gap: 10px;
    align-items: center;
    /* Align vertically center */
    justify-content: center;
    /* Center content */
    flex-wrap: wrap;
    /* Allow wrapping on very small screens */
}

.summary-sku {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--accent-color, #333);
}

.summary-name {
    font-weight: 500;
    color: #333;
}

body.dark-mode .summary-name {
    color: #eee;
}


/* Form Layout */
#inquiry-form {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

/* Mobile responsive for rows */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .submit-btn {
        width: 100%;
        /* Full width on mobile */
        padding: 18px;
        /* Taller touch target */
    }
}

/* Floating Label Inputs */
.input-group {
    position: relative;
    flex: 1;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    color: #333;
    background: transparent;
    border: none;
    border-bottom: 2px solid #eee;
    outline: none;
    transition: border-color 0.3s;
    border-radius: 0;
    /* Remove default radius */
}

body.dark-mode .input-group input,
body.dark-mode .input-group textarea {
    color: #fff;
    border-color: #444;
}

.input-group label {
    position: absolute;
    top: 12px;
    left: 0;
    font-size: 16px;
    color: #999;
    pointer-events: none;
    transition: .3s ease all;
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom-color: var(--accent-color, #000);
}

/* Floating Label Logic: When placeholder is not shown (content exists) or focused */
.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:focus~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -10px;
    font-size: 12px;
    color: var(--accent-color, #000);
    font-weight: 600;
}

/* Submit Button */
.submit-btn {
    margin-top: 10px;
    padding: 16px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 80px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

body.dark-mode .submit-btn {
    background: #eee;
    color: #000;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.submit-btn:active {
    transform: translateY(0);
}

.inquiry-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    color: #111;
    margin-bottom: 10px;
}

.inquiry-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 30px;
}

.product-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f5f5f7;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.prod-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #ddd;
}

.prod-details {
    display: flex;
    flex-direction: column;
}

.prod-sku {
    font-size: 0.75rem;
    color: #888;
    font-family: 'Courier New', monospace;
}

.prod-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Form Styles */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s;
    border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: #000;
}

.form-group label {
    position: absolute;
    top: 12px;
    left: 0;
    font-size: 1rem;
    color: #999;
    pointer-events: none;
    transition: all 0.2s ease;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -10px;
    font-size: 0.75rem;
    color: #111;
}

.inquiry-submit-btn {
    width: 100%;
    padding: 15px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.2s, background 0.2s;
    position: relative;
    overflow: hidden;
}

.inquiry-submit-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

.inquiry-submit-btn.loading .btn-text {
    opacity: 0;
}

.inquiry-submit-btn.loading .btn-loader {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.form-status {
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-align: center;
    min-height: 20px;
}

.form-status.success {
    color: #28a745;
}

.form-status.error {
    color: #dc3545;
}

/* Dark Mode Inquiry Modal */
body:not(.light-mode) .inquiry-modal-content {
    background: #1a1a1a;
    color: #fff;
}

body:not(.light-mode) .inquiry-header h2,
body:not(.light-mode) .prod-name {
    color: #fff;
}

body:not(.light-mode) .inquiry-close {
    color: #fff;
}

body:not(.light-mode) .product-summary {
    background: #252525;
}

body:not(.light-mode) .form-group input,
body:not(.light-mode) .form-group textarea {
    color: #fff;
    border-bottom-color: #444;
}

body:not(.light-mode) .form-group input:focus,
body:not(.light-mode) .form-group textarea:focus {
    border-bottom-color: var(--cct-ui-color, #ffaa00);
}

body:not(.light-mode) .inquiry-submit-btn {
    background: var(--cct-ui-color, #ffaa00);
    color: #000;
}
/* 
 * 精选项目板块样?(Projects Section Wrapper) - v6.52 (Revised)
 * -----------------------------------------------
 * 用途：负责首页“精选项目”板块的展示，包括分类过滤、横向卡片滚动、自动放大效果?
 */

#projects-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 60px;
    will-change: transform, opacity;
    background: transparent;
}

#projects-section .section-title {
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    color: var(--pj-text-dark);
    text-align: center;
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 25px auto;
    max-width: 1400px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 20px;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    z-index: 10;
}

.projects-filter::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 12px 28px;
    background: var(--pj-bg-light);
    color: var(--pj-text-muted);
    border: 1px solid var(--pj-border);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: var(--pj-bg-hover);
    border-color: var(--pj-accent);
    color: var(--pj-text-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--pj-glow-cyan);
}

.filter-btn.active {
    background: #00e5ff !important;
    border-color: #00e5ff !important;
    color: #000000 !important;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.6) !important;
    text-shadow: none !important;
}

.projects-gallery-wrapper {
    position: relative;
    width: 90%;
    max-width: 1600px;
    height: 700px;
    /* Aligned for 800px cards */
    overflow: hidden;
    border-radius: 20px;
    margin: 0 auto 20px;
}

.projects-track {
    display: flex;
    gap: 40px;
    height: 100%;
    align-items: flex-start;
    padding: 60px 6% 40px 6%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.projects-track::-webkit-scrollbar {
    display: none;
}

.project-card {
    position: relative;
    min-width: 800px;
    /* User Request: 800px */
    width: 800px;
    height: 450px;
    /* 16:9 ratio */
    border-radius: 16px;
    overflow: hidden !important;
    cursor: pointer;
    scroll-snap-align: center;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
        opacity 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;
    will-change: transform, opacity, box-shadow;
    background: #000;
    border: 1px solid var(--pj-border-normal);
    box-shadow: 0 10px 40px var(--pj-shadow-medium);
    transform: scale(0.9);
    opacity: 1;
    z-index: 1;
}

.project-card:hover {
    transform: scale(1.25);
    /* User Request: Restore 1.25x */
    z-index: 2147483647 !important;
    box-shadow: 0 20px 60px var(--pj-shadow-darker), 0 0 40px var(--pj-glow-cyan);
    border-color: var(--pj-accent);
}

.project-card.featured {
    min-width: 850px;
    width: 850px;
    height: 478px;
}

.project-card.large {
    min-width: 820px;
    width: 820px;
    height: 461px;
}

.project-card.center {
    transform: scale(1.0);
    z-index: 2147483645;
    opacity: 1;
}

.project-card.center:hover {
    transform: scale(1.25);
    z-index: 2147483647;
}

.proj-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
}

.proj-media img,
.proj-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1 !important;
    transition: transform 0.6s ease;
}

.project-card:hover .proj-media img,
.project-card:hover .proj-media video {
    transform: scale(1.1);
    /* Internal media zoom */
}

.proj-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 30px;
    z-index: 2;
    background: transparent !important;
    transition: padding 0.4s ease;
}

.project-card:hover .proj-content {
    padding-bottom: 35px;
}

.proj-category {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--pj-accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 10px;
}

.proj-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.proj-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin: 5px 0 0;
    max-width: 90%;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.proj-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.proj-nav-prev {
    left: 20px;
}

.proj-nav-next {
    right: 20px;
}

.proj-nav-btn:hover {
    background: var(--pj-accent);
    color: #000;
    border-color: var(--pj-accent);
}

.projects-nav-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.nav-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--pj-accent);
}

/* =====================================================
   MOBILE / TABLET RECOVERY
   Based on original v6.50 styles to fix layout regression
   ===================================================== */

@media (max-width: 1024px) {
    #projects-section {
        padding-top: 65px;
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    #projects-section .section-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
        letter-spacing: 1px;
    }

    .projects-filter {
        display: flex;
        justify-content: flex-start;
        overflow-x: auto;
        gap: 6px;
        margin-bottom: 15px;
        /* Better spacing to avoid being pushed */
        padding: 0 10px 10px;
        flex-shrink: 0;
        scrollbar-width: none;
        mask-image: linear-gradient(to right, black 85%, transparent 100%);
    }

    .filter-btn {
        padding: 6px 16px;
        font-size: 0.75rem;
        border-radius: 12px;
        flex-shrink: 0;
        white-space: nowrap;
        background: rgba(255, 255, 255, 0.05);
        /* Softer background */
    }

    .projects-gallery-wrapper {
        width: 100%;
        height: 520px !important;
        min-height: 520px !important;
        border-radius: 0;
        margin: 5px 0 0;
        position: relative;
        display: block;
    }

    .projects-track {
        gap: 0;
        padding: 0;
        display: flex;
        align-items: stretch;
        height: 100% !important;
        scroll-snap-type: x mandatory;
        overflow-x: auto;
    }

    .project-card,
    .project-card.large,
    .project-card.featured {
        position: relative !important;
        min-width: 100vw;
        width: 100vw;
        height: 520px !important;
        min-height: 520px !important;
        transform: none !important;
        /* Lock transform for mobile */
        opacity: 1;
        margin-top: 0;
        display: flex;
        flex-direction: column;
        border-radius: 0;
        overflow: hidden;
        background: transparent !important;
        scroll-snap-align: center;
        transition: none;
    }

    .proj-media {
        position: absolute !important;
        inset: 0 !important;
        z-index: 1 !important;
    }

    .proj-media img,
    .proj-media video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        opacity: 1 !important;
    }

    /* Fixed visibility for mobile content */
    .proj-content {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 20px 20px 40px 20px !important;
        z-index: 5 !important;
        background: transparent !important;
    }

    .proj-title {
        font-size: 1.6rem !important;
        color: #fff !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8) !important;
        margin-bottom: 5px !important;
    }

    .proj-desc {
        font-size: 0.85rem !important;
        color: rgba(255, 255, 255, 0.9) !important;
        margin-bottom: 15px !important;
    }

    .proj-nav-btn {
        width: 44px !important;
        height: 44px !important;
        background: rgba(0, 0, 0, 0.4) !important;
    }

    .projects-nav-dots {
        position: absolute !important;
        bottom: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 10 !important;
        margin-top: 0;
    }
}
/* 
 * 历史时间轴综合包 (Timeline Bundle CSS) - v1.3
 * -------------------------------------------
 * 用途：负责品牌历史、里程碑时间轴的视觉呈现，包含时间选择器（Time Island）和事件卡片?
 * 组成：由 timeline-light.css (亮色模式) ?timeline-compact.css (响应式压? 合并而成?
 * 
 * 主要内容?
 * 1. 亮色模式基础样式 (body.light-mode .row-timeline, .timeline-dot, .timeline-event)
 * 2. 时间选择?(Chronometer) 亮色适配：年/月胶囊按?
 * 3. 时间选择器通用优化：轨道遮罩、悬停缩放及选定指示?
 * 4. 响应式布局优化 (max-width: 1200px)：竖向间距压缩、卡片高度自适应
 * 
 *
 * 注意：由于本文件包含大量亮色模式特定?!important 覆盖，建议后续逐步?warm-theme.css 迁移?
 */

/* ==================== SECTION 1: LIGHT MODE STYLES ==================== */
/* Source: timeline-light.css */

/* Timeline Container */
body.light-mode .row-timeline {
    background: var(--tm-bg-row) !important;
    backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate) !important;
    -webkit-backdrop-filter: var(--lw-glass-blur) var(--lw-glass-saturate) !important;
    border-top: 2px solid var(--tm-border) !important;
    border-bottom: 2px solid var(--tm-border) !important;
}

/* Timeline Line */
body.light-mode .timeline-line::after {
    box-shadow: 0 0 15px var(--tm-glow) !important;
}

/* Timeline Nodes */
body.light-mode .timeline-dot {
    background: var(--tm-accent) !important;
    border-color: var(--tm-text-rich) !important;
    box-shadow: 0 0 15px var(--tm-glow),
        inset 0 2px 4px var(--tm-glare) !important;
}

body.light-mode .timeline-dot.active {
    background: linear-gradient(135deg, var(--tm-accent), var(--palette-orange-500)) !important;
    box-shadow: 0 0 25px var(--tm-glow-strong),
        inset 0 2px 6px var(--tm-glare-strong) !important;
}

/* Event Cards */
body.light-mode .timeline-event {
    background: var(--tm-card-bg) !important;
    border: 2px solid var(--tm-border) !important;
    color: var(--tm-text-rich) !important;
    box-shadow: 0 4px 12px var(--tm-shadow) !important;
}

body.light-mode .timeline-event:hover {
    background: var(--tm-hover-bg) !important;
    border-color: var(--tm-accent) !important;
    box-shadow: 0 6px 20px var(--tm-border) !important;
}

/* Event Titles */
body.light-mode .event-title {
    color: var(--tm-text-rich) !important;
    font-weight: 700 !important;
}

body.light-mode .event-location,
body.light-mode .event-date {
    color: var(--tm-text-muted) !important;
    font-weight: 600 !important;
}

/* ==================== SECTION 2: CHRONOMETER (TIME ISLAND) ==================== */

/* Year Pills */
body.light-mode .year-pill {
    background: var(--tm-accent-light) !important;
    color: var(--tm-text-rich) !important;
    border: 1px solid var(--tm-border) !important;
    font-weight: 700 !important;
}

body.light-mode .year-pill:hover {
    background: var(--tm-accent-light) !important;
    border-color: var(--tm-accent) !important;
    color: var(--tm-accent) !important;
    transform: scale(1.05) !important;
}

body.light-mode .year-pill.active {
    background: linear-gradient(135deg, var(--tm-accent), var(--palette-orange-500)) !important;
    color: var(--palette-white) !important;
    border-color: var(--tm-accent) !important;
    box-shadow: 0 4px 12px var(--tm-glow-soft),
        inset 0 1px 3px var(--tm-glare) !important;
    font-weight: 800 !important;
}

/* Month Pills */
body.light-mode .month-pill {
    background: var(--tm-accent-light) !important;
    color: var(--palette-brown-500) !important;
    border: 1px solid var(--tm-border) !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
}

body.light-mode .month-pill:hover {
    background: var(--tm-accent-light) !important;
    border-color: var(--tm-accent) !important;
    color: var(--tm-accent) !important;
}

body.light-mode .month-pill.active {
    background: var(--tm-accent) !important;
    color: var(--palette-white) !important;
    border-color: var(--tm-accent) !important;
    box-shadow: 0 2px 8px var(--tm-border) !important;
    font-weight: 700 !important;
}

/* Months Track Border */
body.light-mode .timeline-chronometer.active-island .chrono-months-track:not(:empty) {
    border-top-color: var(--tm-border) !important;
}

/* Navigation Arrows */
body.light-mode .timeline-nav-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid var(--tm-border) !important;
    color: var(--tm-accent) !important;
}

body.light-mode .timeline-nav-btn:hover {
    background: var(--tm-accent) !important;
    border-color: var(--tm-accent) !important;
    color: var(--palette-white) !important;
    box-shadow: 0 4px 15px var(--tm-glow-soft) !important;
}

/* Chrono Year/Month Elements */
body.light-mode .chrono-year:hover {
    background: var(--tm-glow-soft) !important;
    color: var(--tm-accent) !important;
    transform: scale(1.1) !important;
}

body.light-mode .chrono-year.active {
    background: linear-gradient(135deg, var(--tm-accent), var(--palette-orange-500)) !important;
    color: var(--palette-white) !important;
    text-shadow: 0 2px 4px var(--tm-text-shadow) !important;
}

body.light-mode .chrono-month:hover,
body.light-mode .chrono-month.active {
    background: var(--tm-accent) !important;
    color: var(--palette-white) !important;
}

/* ==================== SECTION 3: CHRONOMETER OPTIMIZATION ==================== */
/* Universal (Not Light Mode Specific) */

.chrono-year,
.chrono-month {
    border: none !important;
    background: transparent !important;
}

.chrono-years-track {
    gap: 6px !important;
}

.chrono-months-track {
    gap: 1px !important;
}

.chrono-year {
    min-width: 28px !important;
    padding: 2px 5px !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

.chrono-year:hover,
.chrono-year.active {
    color: var(--accent-secondary) !important;
}

.chrono-month {
    min-width: 28px !important;
    padding: 3px 8px !important;
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.85rem !important;
}

.chrono-month:hover,
.chrono-month.active {
    color: var(--palette-white) !important;
}

/* Edge Visibility Mask */
.chrono-years-track,
.chrono-months-track {
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%) !important;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%) !important;
}

/* Chrono Surface Padding */
.chrono-surface {
    padding: 4px 12px !important;
}

.timeline-chronometer.active-island .chrono-surface {
    padding: 6px 15px !important;
}

body.light-mode .chrono-surface {
    padding: 2px 12px !important;
}

body.light-mode .timeline-chronometer.active-island .chrono-surface {
    padding: 4px 15px !important;
}

/* Timeline Navigation Buttons - Light Mode */
body.light-mode .t-nav,
body.light-mode .timeline-nav-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--tm-accent) !important;
    border: 2px solid var(--tm-border) !important;
    box-shadow: 0 4px 12px var(--tm-shadow-nav) !important;
}

body.light-mode .t-nav:hover,
body.light-mode .timeline-nav-btn:hover {
    background: var(--tm-accent-light) !important;
    color: var(--tm-accent) !important;
    border-color: var(--tm-accent) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.3) !important;
}

/* Selected Month Indicator */
.chrono-month.selected {
    color: var(--tm-accent) !important;
    font-weight: 800 !important;
    transform: scale(1.15) !important;
}

body.light-mode .chrono-month.selected {
    color: var(--tm-accent) !important;
    background: var(--tm-accent-light) !important;
    border-radius: 6px !important;
}

/* ==================== SECTION 4: RESPONSIVE COMPACT MODE ==================== */
/* Source: timeline-compact.css */

@media (max-width: 1200px) {

    /* 1. Compressing Vertical Spacing (40% Reduction) */
    .row-timeline {
        min-height: auto !important;
        padding: 40px 0 !important;
        gap: 30px !important;
    }

    .timeline-item {
        margin-bottom: 30px !important;
        min-height: auto !important;
        padding-bottom: 0 !important;
    }

    .timeline-event {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* 2. Auto-Adjust Height (Text Content Adaptation) */
    .timeline-event {
        height: auto !important;
        min-height: 100px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 15px !important;
    }

    .event-content-wrapper {
        height: auto !important;
        flex: 1 !important;
    }

    .event-desc {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        height: auto !important;
        max-height: none !important;
        margin-top: 8px !important;
        line-height: 1.4 !important;
    }

    .event-title {
        margin-bottom: 5px !important;
    }

    /* FIX: Force transparency for 1200px breakpoint */
    .static-poster,
    #global-player-stage,
    .row-atlas,
    .atlas-sidebar,
    .atlas-list {
        background: transparent !important;
        box-shadow: none !important;
    }

    /* 3. Event Gap Compression */
    .timeline-event-wrapper,
    .timeline-node {
        margin-bottom: 25px !important;
    }

    .timeline-grid {
        grid-row-gap: 20px !important;
    }
}

/* ==================== END OF TIMELINE BUNDLE ==================== */
/* 
 * 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(0, 0, 0, 0.06);
    color: #555;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .cat-group li.active .cat-count {
    color: #000;
    background: rgba(255, 255, 255, 0.4);
}

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: #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: #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: #f36110 !important;
        /* The Target Orange */
        color: #ffffff !important;
        border-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: #f36110 !important;
        font-weight: 800 !important;
    }

    .cat-count {
        background: rgba(255, 255, 255, 0.08) !important;
        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(0, 0, 0, 0.04) !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;
    }
}
/* 
 * Lighting Control Dock Component (_control-dock.css)
 * ----------------------------------------------------
 * Handles the fixed dock, CCT/Beam sliders, tabs, and breathing animations.
 */

/* Control Dock Container */
#control-dock {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.02), rgba(var(--cct-raw), 0.05));
    backdrop-filter: blur(15px) saturate(120%);
    border: 3px solid rgba(var(--cct-raw), 0.4);
    border-right: none;
    border-radius: 20px 0 0 20px;
    display: flex !important;
    flex-direction: row !important;
    padding: 0 !important;
    width: 380px;
    height: 350px !important;
    z-index: 2147483640;
    transition: transform 0.3s ease, background 1s ease, border 0.5s ease;
    user-select: none;
    -webkit-user-select: none;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 223, 0, 0.1),
        inset 1px 1px 2px rgba(255, 255, 255, 0.3),
        inset 0 0 10px 2px rgba(255, 215, 0, 0.4) !important;
    overflow: hidden;
}

/* Dock Content */
.dock-content {
    overflow: hidden;
    flex: 1;
    padding: 20px;
}

/* Lighting Tab Specific Tweaks */
#tab-content-lighting {
    gap: 25px !important;
    justify-content: flex-start !important;
    padding-top: 45px;
}

.tab-pane {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: none;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
}

.tab-pane.active {
    opacity: 1;
    transform: translateY(0);
    display: flex !important;
}

/* User Feedback for Mute */
.muted-text {
    color: #888 !important;
    text-decoration: line-through;
    opacity: 0.7;
}

/* Dock Tabs Container */
.dock-tabs {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 60px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center !important;
    align-items: center;
    gap: 20px;
    padding-top: 0 !important;
    background: transparent !important;
    border-right: none !important;
    z-index: 2;
}

/* Individual Tabs & Toggle Icons */
#control-dock .dock-tabs .dock-tab,
#control-dock .dock-tabs .dock-toggle-icon {
    position: relative !important;
    width: 44px !important;
    height: 44px !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    line-height: 0 !important;
    font-size: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    color: var(--text-color) !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0.7;
}

#control-dock .dock-tabs .dock-tab:hover,
#control-dock .dock-tabs .dock-toggle-icon:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    opacity: 1;
    color: var(--accent-color) !important;
}

#control-dock .dock-tabs .dock-tab.active,
#control-dock .dock-tabs .dock-toggle-icon.active {
    width: 44px !important;
    margin: 0 !important;
    opacity: 1;
    background: rgba(255, 215, 0, 0.1) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1) !important;
    color: var(--accent-color) !important;
    animation: breathActive 4s ease-in-out infinite !important;
}

/* CCT Synced Breath for Icons */
@keyframes breathIconCCT {

    0%,
    100% {
        filter: drop-shadow(0 0 0px var(--cct-ui-color, #ffaa00));
        color: var(--text-color);
        opacity: 0.6;
        transform: scale(0.95);
    }

    50% {
        filter: drop-shadow(0 0 10px var(--cct-ui-color, #ffaa00));
        color: var(--cct-ui-color, #ffaa00);
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Collapsed States */
#control-dock.collapsed {
    transform: translate(calc(100% - 60px), -50%);
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

#control-dock.collapsed .dock-tab.active,
#control-dock.collapsed .dock-tab {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    animation: none !important;
}

#control-dock.collapsed .dock-tab svg {
    animation: breathIconCCT 6s ease-in-out infinite !important;
}

/* Icon Alignment FIX */
#control-dock .dock-tabs .dock-tab svg {
    display: block !important;
    position: static !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 24px !important;
    height: 24px !important;
}

#dock-toggle {
    display: none;
}

#dock-toggle.visible {
    display: flex;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100px;
}

/* Sliders */
.control-group {
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Auto-Cycle Visual Indicator */
.control-group.auto-cycle-active #cct-value-label {
    position: relative;
    animation: cctPulse 2s ease-in-out infinite;
    text-shadow: 0 0 10px var(--accent-color);
}

@keyframes cctPulse {

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

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

input[type=range] {
    width: 100%;
    cursor: pointer;
    background: transparent;
}

/* CCT Slider Gradient */
#cct-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #ff8c00 0%, #ffcc99 30%, #ffffff 50%, #ccddff 70%, #ff8c00 100%);
    outline: none;
    margin-top: 5px;
    margin-bottom: 5px;
}

#cct-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--cct-ui-color, #fff);
    border: 2px solid var(--text-color);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    margin-top: -2px;
}

/* Beam Slider Customization */
#beam-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 40px;
    min-height: 40px;
    padding: 0;
    box-sizing: border-box;
    background-color: transparent;
    background-image:
        linear-gradient(#555, #555),
        repeating-linear-gradient(90deg, var(--text-color) 0, var(--text-color) 1px, transparent 1px, transparent 16.666%),
        linear-gradient(var(--text-color), var(--text-color));
    background-repeat: no-repeat;
    background-size:
        calc(100% - 80px) 4px,
        calc(100% - 80px) 8px,
        1px 8px;
    background-position:
        40px 18px,
        40px 14px,
        calc(100% - 40px) 14px;
    background-origin: border-box;
    background-clip: border-box;
    outline: none;
    margin-top: 20px;
    margin-bottom: 5px;
    border: none;
}

#beam-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 40px;
    width: 80px;
    border-radius: 0 0 40px 40px;
    background: transparent;
    --d: var(--beam-deg, 36);
    --start: calc(180deg - (var(--d) * 0.5deg));
    background-image: conic-gradient(from var(--start) at 50% 0%,
            var(--cct-ui-color, #ffcc00) 0deg,
            var(--cct-ui-color, #ffcc00) calc(var(--d) * 1deg),
            transparent calc(var(--d) * 1deg));
    cursor: pointer;
    border: none;
    filter: drop-shadow(0 0 15px var(--cct-ui-color, #ffcc00));
    transform: translateY(-20px);
    margin-top: -10px;
}

.labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.7;
    width: calc(100% - 80px);
    margin-left: 40px;
    padding: 0;
    margin-top: 5px;
    box-sizing: border-box;
}

.labels span {
    width: 0;
    display: flex;
    justify-content: center;
    white-space: nowrap;
}

.labels span.active {
    color: var(--cct-ui-color, var(--accent-color));
    font-weight: bold;
    opacity: 1;
    transform: scale(1.2);
    transition: all 0.2s ease;
    text-shadow: 0 0 5px var(--cct-ui-color, var(--accent-color));
}

.icon-btn {
    background: transparent;
    border: 1px solid var(--cct-ui-color, var(--text-color));
    color: var(--cct-ui-color, var(--text-color));
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 5px var(--cct-ui-color, transparent);
    text-shadow: 0 0 5px var(--cct-ui-color, transparent);
}

.icon-btn:hover {
    background: var(--cct-ui-color, var(--text-color));
    color: var(--panel-bg);
    box-shadow: 0 0 15px var(--cct-ui-color, transparent);
}

/* Responsive Dock */
/* Responsive Dock: Right-Side Drawer */
@media (max-width: 768px) {


    /* Light Mode Support */
    /* Force Dark Mode (User Request) - Removed automatic light mode switching */

    /* Floating Card Design (Mobile) - EMERGENCY FIX (Agile Compact) */
    #control-dock {
        position: fixed;
        /* Vertically Center & Compact */
        top: 50%;
        bottom: auto;
        right: 15px;
        left: auto;

        width: 300px;
        max-width: 85vw;
        height: auto !important;
        /* Fit content */
        min-height: 280px !important;
        /* Fixed min-height for consistency */
        max-height: 60vh !important;
        /* Cap height */

        /* Center transform + Slide transition */
        transform: translate(-50%, -50%);
        /* True Center */

        border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, 0.1);

        background: rgba(10, 15, 30, 0.9) !important;
        /* Default: DARK GLASS */
        color: #fff;

        backdrop-filter: blur(30px) !important;
        -webkit-backdrop-filter: blur(30px) !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;

        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        z-index: 2147483647 !important;

        display: flex;
        flex-direction: row;
        overflow: visible !important;
        padding-bottom: 0 !important;
    }

    /* LIGHT MODE SUPPORT (Mobile) */
    body.light-mode #control-dock {
        background: rgba(255, 255, 255, 0.9) !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        color: #333 !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    }

    /* Light Mode: Update Text Colors */
    body.light-mode #control-dock .dock-tab {
        color: #666 !important;
        /* Inactive Icons */
    }

    body.light-mode #control-dock .dock-tab:hover {
        background: rgba(0, 0, 0, 0.05) !important;
        color: var(--accent-color) !important;
    }

    body.light-mode #control-dock .dock-tab.active {
        background: rgba(255, 215, 0, 0.1) !important;
        border: 1px solid rgba(255, 215, 0, 0.4) !important;
        color: var(--accent-color) !important;
    }

    body.light-mode #control-dock .control-group label,
    body.light-mode #control-dock .labels {
        color: #666 !important;
    }

    /* Light Mode: Beam Slider Track */
    body.light-mode #beam-slider {
        background: rgba(0, 0, 0, 0.1) !important;
        background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 2px, transparent 0) !important;
    }

    /* Light Mode: Beam Slider Labels */
    body.light-mode #tab-content-lighting .control-group:nth-child(2) .labels {
        color: #444 !important;
    }

    /* Fix Right Positioning for Mobile */
    #control-dock {
        position: fixed !important;
        /* Force Viewport Centering */
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        /* Center transform */
        transform: translate(-50%, -50%) !important;
        /* VISUAL CENTERING: User wants the whole dock centered */
        margin-left: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* MOBILE EXCLUSIVE COLLAPSED STATE */
    #control-dock.collapsed {
        /* Move Dock to right edge */
        left: 100% !important;
        transform: translate(0, -50%) !important;

        /* Ensure content doesn't clip the toggle which hangs to the left */
        overflow: visible !important;

        /* Keep opacity 1 so child toggle is visible */
        opacity: 1 !important;

        /* Disable clicks on the empty dock area */
        pointer-events: none !important;

        /* Clear any shadows that might bleed */
        box-shadow: none !important;
        background: transparent !important;
        /* Make sure main dock bg is invisible if it bleeds */
        border: none !important;
    }

    /* Toggle Button - Force Visible */
    #control-dock.collapsed #dock-toggle {
        pointer-events: auto !important;
        opacity: 1 !important;
        cursor: pointer !important;
        /* Ensure it's above everything */
        z-index: 2147483647 !important;
        display: flex !important;
    }

    /* Ensure toggle is always visible on mobile and positioned correctly */
    /* Ensure toggle is always visible on mobile and positioned correctly */
    /* Ensure toggle is always visible on mobile and positioned correctly */
    #control-dock #dock-toggle {
        display: flex !important;
        position: absolute !important;
        left: -40px !important;
        /* HANG OUTSIDE TO THE LEFT */
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 40px !important;
        height: 60px !important;

        /* User Request: NO BACKGROUND, NO BORDER, JUST THE SYMBOL */
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;

        align-items: center;
        justify-content: center;
        z-index: 2147483647 !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        opacity: 1 !important;

        /* THEME ADAPTIVE COLOR - GOLD ACCENT */
        /* Works on both Dark BG (Space) and Light BG (White/Grey) */
        color: var(--accent-color, #ffaa00) !important;
        text-shadow: 0 0 2px rgba(0, 0, 0, 0.5) !important;
        /* Subtle shadow for contrast on white */
        font-size: 2rem !important;
        /* Large Symbol */
        font-family: monospace, sans-serif !important;
    }

    /* Light Mode Override - KEEP GOLD (User disliked Black) */
    body.light-mode #control-dock #dock-toggle {
        color: var(--accent-color, #ffaa00) !important;
        text-shadow: 0 0 3px rgba(0, 0, 0, 0.3) !important;
    }

    /* Double-ensure toggle works in collapsed state */
    #control-dock.collapsed #dock-toggle {
        pointer-events: auto !important;
        opacity: 1 !important;
    }

    /* ... (Light Mode Styles) ... */

    /* Layout: Sidebar (Tabs) + Content */
    .dock-tabs {
        width: 44px !important;
        /* Fixed slim width */
        min-width: 44px !important;
        flex: 0 0 auto !important;
        /* Do NOT grow */
        height: auto !important;
        /* Allow it to fill flex parent */
        border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
        display: flex;
        flex-direction: column;
        justify-content: center !important;
        padding-top: 0 !important;
        gap: 20px !important;
        /* Consistent gap */
    }

    /* Fix Vertical Centering for Icons */
    .dock-tabs>div {
        margin: 0 !important;
        /* Reset any desktop margins */
        transform: none !important;
        /* Reset any transforms */
        flex-shrink: 0 !important;
        /* Prevent squishing */
    }

    /* Specific fix for fireworks toggle if it has loose styles */
    #fireworks-toggle {
        margin-bottom: 0 !important;
        transform: none !important;
    }

    .dock-content {
        flex: 1;
        padding: 0 12px !important;
        /* Remove vertical padding completely */
        /* MINI MODE: Almost no padding */
        height: auto !important;
        /* Allow flex to control height */
        overflow-y: auto;
        display: flex !important;
        /* Enable Flex for Centering */
        flex-direction: column !important;
        justify-content: center !important;
        /* Vertically Center Content */
    }

    /* Reset Sliders to Horizontal & Tighten Gaps */
    #tab-content-lighting.active,
    #tab-content-audio.active {
        display: flex !important;
        flex: 1 !important;
        /* Grow to fill the dock content area */
        flex-direction: column !important;
        gap: 6px !important;
        /* MINI MODE: Tiny Gap */
        padding: 0 !important;
        /* Remove ALL padding */
        height: auto !important;
        /* Let flex handle height */
        justify-content: center !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* HIDE ONLY TIME ROW */
    /* MINI MODE: Hide decorative scale labels to save space */
    #tab-content-lighting .labels {
        display: none !important;
    }

    .control-group {
        width: 100% !important;
        height: auto !important;
        margin-bottom: 5px !important;
        /* MINI MODE: Tiny Margin */
        display: flex !important;
        flex-direction: column;
        align-items: center;
        /* Center children horizontally */
        justify-content: center;
    }

    /* Restore Labels to Mini Size */
    .control-group label,
    .labels {
        display: flex !important;
        justify-content: space-between;
        margin-bottom: 2px;
        width: 100% !important;
        /* Use full width */
        padding: 0 4px;
        /* Add slight padding */
        /* MINI MODE */
        font-size: 0.75rem;
        /* Smaller text */
        color: rgba(255, 255, 255, 0.7);
    }

    /* === MOBILE SLIDER REDESIGN (Clean & Premium) === */

    /* 1. Reset Global Slider Styles for Mobile */
    #control-dock input[type=range] {
        margin: 5px 0 !important;
        /* Tighten margins */
        height: 6px !important;
        /* Slim track */
    }

    /* 2. CCT Slider (Color Temp) - Child 1 */
    #control-dock #cct-slider {
        /* Keep gradient but ensure dimensions are clean */
        height: 4px !important;
        /* Ultra Thin Track */
        border-radius: 2px !important;
        margin-top: 10px !important;
        margin-bottom: 2px !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        /* Fix Lint: Standard Property */
        /* Ensure standard behavior */
    }

    #control-dock #cct-slider::-webkit-slider-runnable-track {
        height: 4px !important;
        border-radius: 2px !important;
        background: transparent !important;
        /* Gradient is on input */
    }

    #control-dock #cct-slider::-webkit-slider-thumb {
        -webkit-appearance: none !important;
        appearance: none !important;
        /* Fix Lint: Standard Property */
        width: 20px !important;
        /* Slightly smaller thumb */
        height: 20px !important;
        margin-top: -8px !important;
        /* Center on 4px track: (4 - 20) / 2 = -8 */
        border: 2px solid white !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
        border-radius: 50% !important;
    }

    /* 3. Beam Slider (The "Ugly" Ruler) - Child 2 */
    #control-dock #beam-slider {
        width: 100% !important;
        /* Full width relative to container */
        height: 4px !important;
        /* Thin Track */
        min-height: 4px !important;
        /* CRITICAL: Override desktop min-height */
        border-radius: 2px;
        /* Neutral Track Background */
        background: transparent !important;
        /* Move bg to track */
        margin: 15px 0 5px !important;
        /* Tighter layout */
        /* Space for labels above */
        position: relative;
        -webkit-appearance: none !important;
        appearance: none !important;
        /* Fix Lint: Standard Property */
        border: none !important;
        padding: 0 !important;
    }

    /* Track Style for Beam */
    #control-dock #beam-slider::-webkit-slider-runnable-track {
        height: 4px !important;
        border-radius: 2px;
        background: rgba(255, 255, 255, 0.2) !important;
        border: none !important;
    }

    /* Light Mode Beam Track */
    body.light-mode #control-dock #beam-slider::-webkit-slider-runnable-track {
        background: rgba(0, 0, 0, 0.1) !important;
    }

    /* Simple Thumb (Round) */
    #control-dock #beam-slider::-webkit-slider-thumb {
        -webkit-appearance: none !important;
        appearance: none !important;
        width: 20px !important;
        height: 20px !important;
        border-radius: 50% !important;
        background: white !important;
        border: 2px solid var(--accent-color) !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
        transform: none !important;
        margin-top: -8px !important;
        /* Center on 4px track */
    }

    /* Force Beam Angle Labels Visible & Positioned ABOVE */
    #tab-content-lighting .control-group:nth-child(2) .labels {
        display: flex !important;
        width: 104% !important;
        /* Slightly wider to align numbers with ticks edge-to-edge */
        margin-left: -2% !important;
        /* Center the wider container */
        justify-content: space-between !important;
        font-size: 0.7rem !important;
        color: rgba(255, 255, 255, 0.9) !important;
        position: absolute !important;
        top: 0 !important;
        /* Align to top of control group */
        margin-top: -5px !important;
        pointer-events: none;
    }

    /* Ensure Container has space */
    #tab-content-lighting .control-group:nth-child(2) {
        position: relative !important;
        padding-top: 20px !important;
        /* Make room for labels */
        margin-bottom: 20px !important;
    }

    /* Sidebar Toggle Icon */
    .dock-toggle-icon {
        margin-bottom: 5px !important;
    }

    /* Remove Vertical Slider Overrides & Slim Down */
    input[type=range] {
        writing-mode: horizontal-tb !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        width: 100% !important;
        height: 4px !important;
        transform: none !important;
        margin: 2px 0 !important;
    }

    /* Squashed Sliders (CCT removed to avoid height conflict) */
    #fireworks-slider,
    #ui-slider {
        height: 15px !important;
        /* Mini Touch Target */
        margin: 0 !important;
    }

    /* MOBILE SLIDER THUMBS (Generic) */
    #fireworks-slider::-webkit-slider-thumb,
    #ui-slider::-webkit-slider-thumb {
        -webkit-appearance: none !important;
        appearance: none !important;
        width: 18px !important;
        height: 18px !important;
        border-radius: 50% !important;
        background: #fff !important;
        border: 2px solid var(--accent-color) !important;
        cursor: pointer !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3) !important;
        margin-top: -7px !important;
        /* Center on 4px track */
    }

    /* COLOR OVERRIDES (Fix for Audio Tab Inline Styles) */
    #tab-content-audio .control-group div,
    #tab-content-audio .control-group span {
        color: rgba(255, 255, 255, 0.9) !important;
        /* Default: White-ish */
        font-size: 0.8rem !important;
    }

    body.light-mode #tab-content-audio .control-group div,
    body.light-mode #tab-content-audio .control-group span {
        color: #333 !important;
        /* Light Mode: Dark Grey */
    }

    /* Hide pseudo-labels added for vertical mode */
    .control-group:has(#beam-slider)::after,
    .control-group:has(#cct-slider)::after {
        content: none !important;
    }

    /* === TOGGLE ICON (Mobile Only) === */
    .dock-toggle-icon {
        position: relative !important;
        width: 36px !important;
        /* Mini Icon */
        height: 36px !important;
        box-sizing: border-box !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        font-size: 1rem !important;
        background: transparent !important;
        backdrop-filter: none !important;
        border: none !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        color: var(--text-color) !important;
        transition: all 0.3s ease !important;
        margin-bottom: 5px !important;
        opacity: 0.7;
    }

    .dock-toggle-icon:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        opacity: 1;
        color: var(--accent-color) !important;
        transform: scale(1.05);
    }

    .dock-toggle-icon.active {
        opacity: 1;
        background: rgba(255, 170, 0, 0.15) !important;
        /* Gold Tint */
        border: 1px solid rgba(255, 170, 0, 0.5) !important;
        box-shadow: 0 0 15px rgba(255, 170, 0, 0.4) !important;
        color: #ffaa00 !important;
        /* Strong Gold */
        text-shadow: 0 0 10px #ffaa00;
    }

    .dock-toggle-icon.active svg {
        filter: drop-shadow(0 0 5px #ffaa00);
    }

    /* Off state (Overrides active) */
    .dock-toggle-icon.off {
        opacity: 0.3 !important;
        background: transparent !important;
        border: 1px solid transparent !important;
        box-shadow: none !important;
        color: var(--text-color) !important;
        text-shadow: none !important;
        filter: grayscale(100%);
    }

    .dock-toggle-icon.off:hover {
        opacity: 0.8 !important;
        background: rgba(255, 255, 255, 0.05) !important;
    }
}

/* Specific Hit-Area Expansion for Audio Controls */
#tab-content-audio .control-group {
    padding: 15px 0 35px 0;
}

/* Laser Audio Flow Animation */
@keyframes laserFlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* Audio Sliders: Laser Strip Style */
#fireworks-slider,
#ui-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    margin-top: 10px;
    background: transparent;
    outline: none;
    border: none;
}

#fireworks-slider::-webkit-slider-runnable-track,
#ui-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    border-radius: 5px;
    cursor: pointer;
    background: linear-gradient(90deg, #00ffff, #0088ff, #00ffff);
    background-size: 200% 100%;
    animation: laserFlow 3s linear infinite;
    -webkit-mask-image: linear-gradient(to right,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 1) var(--val-percent, 50%),
            rgba(0, 0, 0, 0.2) var(--val-percent, 50%),
            rgba(0, 0, 0, 0.2) 100%);
    mask-image: linear-gradient(to right,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 1) var(--val-percent, 50%),
            rgba(0, 0, 0, 0.2) var(--val-percent, 50%),
            rgba(0, 0, 0, 0.2) 100%);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5), 0 0 20px rgba(0, 255, 255, 0.3);
}

#fireworks-slider::-webkit-slider-thumb,
#ui-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 15px #00ffff, 0 0 5px #fff;
    cursor: pointer;
    margin-top: -5px;
    transform: translateY(1px);
}
/*
 * COMPONENT: Atlas & Map
 * ----------------------------
 * 核心图集模块，包含：
 * 1. .row-atlas (布局容器)
 * 2. .atlas-directory, .log-card (侧边栏与列表)
 * 3. .atlas-map (Leaflet 地图容器)
 * 4. .gallery-image (模态框图集)
 * 
 * 依赖: _variables.css
 */

/* --- Row 3: Atlas --- */
.row-atlas {
    display: grid;
    grid-template-columns: 300px 1fr 1fr;
    height: 600px;
    gap: 20px;
    gap: 20px;
    /* overflow: hidden; REMOVED to allow left shadow */
    padding-left: 0px;
    /* Safety padding for shadow */
}

.atlas-directory {
    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-y: auto;
}

.atlas-directory h3 {
    padding: 20px;
    margin: 0;
    font-size: 0.9rem;
    color: var(--lw-accent);
    border-bottom: 1px solid var(--lw-border);
    background: var(--lw-bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.log-entry {
    padding: 18px 20px;
    border-bottom: 1px solid var(--lw-border);
    cursor: pointer;
    transition: background 0.2s;
    background: var(--lw-bg);
}

.log-entry:hover,
.log-entry.active {
    background: var(--lw-panel-hover);
    border-left: 3px solid var(--lw-accent);
}

/* USER FIX: Title + View count row */
.log-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.log-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--lw-text);
    flex: 1;
}

/* USER FIX: View count display - compact version */
.log-card-views {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: rgba(212, 175, 55, 0.7);
    font-family: monospace;
    flex-shrink: 0;
}

.log-card-views svg {
    opacity: 0.6;
}

.log-card-views span {
    font-weight: 500;
}

.log-date {
    font-size: 0.7rem;
    color: var(--lw-text-muted);
    display: block;
    margin-bottom: 4px;
}

.log-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 500;
    color: var(--lw-text);
}

.log-tags {
    margin-top: 5px;
}

.tag {
    font-size: 0.65rem;
    background: var(--lw-border);
    padding: 2px 5px;
    border-radius: 3px;
    margin-right: 4px;
    color: var(--lw-text-muted);
}

.atlas-reader {
    background: var(--lw-bg);
    padding: 40px;
    overflow-y: auto;
    border-radius: 12px;
    /* border: 1px solid var(--lw-border); REMOVED */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.reader-empty {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lw-text-muted);
    font-style: italic;
}

.reader-content .meta-tag {
    color: var(--lw-accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reader-content h2 {
    font-size: 2rem;
    margin: 10px 0;
    color: var(--lw-text);
    font-weight: 300;
}

.reader-date {
    color: var(--lw-text-muted);
    font-size: 0.8rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--lw-border);
    padding-bottom: 10px;
}

.reader-body p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--lw-text);
    font-size: 1.05rem;
}

.atlas-map {
    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);
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    /* Map gets its own glow via shared class */
    z-index: 50;
    /* Ensure map sits above potential invisible siblings */
    isolation: isolate;
    /* Create new stacking context */
    min-height: 400px;
    /* Safe default */
    height: 100%;
}

/* Leaflet Map Container */
#lw-leaflet-map {
    width: 100%;
    height: 100%;
    z-index: 1;
    background: rgba(0, 0, 0, 0.01);
    /* Hit-test surface */
    /* FORCE INTERACTIVITY */
    pointer-events: auto !important;
    touch-action: none;
    /* Let Leaflet handle touches */
}

/* Ensure Leaflet internal layers are clickable */
.leaflet-container,
.leaflet-pane,
.leaflet-top,
.leaflet-bottom {
    pointer-events: auto !important;
    z-index: auto;
    /* Let Leaflet manage internal Z */
}

/* Hide static bg elements */
.map-bg,
.map-projection-wrapper {
    display: none !important;
}

/* Custom Marker CSS */
.leaflet-div-icon {
    background: transparent;
    border: none;
}

/* Fullscreen Map Mode */
/* Fullscreen Map Mode -> Modal Card Mode */
.atlas-map.fullscreen {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw !important;
    height: 85vh !important;
    max-width: 1200px;
    z-index: 9999;
    background: #0a0f1e !important;
    /* Dark background */
    border-radius: 24px;
    border: 1px solid var(--lw-border) !important;
    padding: 0;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.7);
    /* Improve map container inside modal */
}

/* Add backdrop when map is fullscreen? Requires JS change or pseduo-element on body. 
   For now, a huge shadow helps. */

body.light-mode .atlas-map.fullscreen {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.2);
}

.map-fs-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--lw-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s;
    backdrop-filter: blur(5px);
}

.map-fs-btn:hover {
    background: var(--lw-accent);
    color: #000;
}

body.light-mode .map-fs-btn {
    background: rgba(255, 255, 255, 0.8);
    color: #000;
    border-color: rgba(0, 0, 0, 0.1);
}

.map-pin.log {
    background: var(--lw-accent);
    border-radius: 50%;
}

.map-pin.video {
    background: #fff;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 10px solid #fff;
    border-radius: 0;
}

.pin-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 1px solid var(--lw-accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }

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

/* --- Row 3: Atlas (Journal & Map) Redesign --- */
.row-atlas {
    display: grid;
    grid-template-columns: 250px 1fr 1fr;
    gap: 20px;
    height: 550px !important;
    /* Force Height Increase */
    min-height: 550px;
}

.atlas-directory,
.atlas-reader,
.atlas-map {
    background: var(--lw-panel-bg);
    border: 1px solid var(--lw-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100% !important;
    /* Force fill parent */
}

/* Journal Filter Bar (Replaces H3 Header) */
.log-filter-bar {
    padding: 10px;
    border-bottom: 1px solid var(--lw-border);
    display: flex;
    gap: 10px;
    height: 70px;
    box-sizing: border-box;
    /* Fix box model issue */
    flex-shrink: 0;
    /* Prevent shrinking */
}

/* Dynamic Island: Stacked Style */
.filter-island {
    flex: 1;
    background: #008080;
    border-radius: 12px;
    border: 1px solid var(--lw-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.filter-island:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.15);
    background: #008b8b;
}

.island-top,
.island-bot {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lw-text);
    position: relative;
    width: 100%;
}

.island-top {
    flex: 3;
    background: rgba(0, 0, 0, 0.1);
    font-weight: 700;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.island-bot {
    flex: 2;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.island-bot:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Log List Layout */
.log-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    height: 100%;
    /* Explicit height */
}

.log-entry {
    padding: 15px;
    border-bottom: 1px solid var(--lw-border);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log-entry:hover,
.log-entry.active {
    background: var(--lw-panel-hover);
    border-left: 3px solid var(--lw-accent);
}

/* USER FIX: Modal view count - clean minimal */
.modal-views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: rgba(212, 175, 55, 0.85);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    text-shadow: none;
}

.modal-views svg {
    opacity: 0.7;
    flex-shrink: 0;
}

/* USER FIX: Modal location - clean text only */
.modal-location {
    font-size: 0.8rem;
    color: var(--lw-text-muted);
    font-weight: 400;
    text-shadow: none;
}

body.light-mode .modal-location {
    color: #6d4c41;
}

.modal-date {
    font-size: 0.75rem;
    color: var(--lw-text-muted);
    font-family: 'Monaco', 'Courier New', monospace;
    opacity: 0.75;
    font-weight: 500;
    text-shadow: none;
}

.log-title {
    font-size: 0.95rem;
    color: var(--lw-text);
    margin: 0;
    line-height: 1.3;
    font-weight: 600;
}

.log-meta-row {
    display: flex;
    justify-content: space-between;
    /* This should push items apart */
    align-items: center;
    margin-top: 4px;
    width: 100%;
}

.log-tags {
    display: flex;
    gap: 5px;
}

.log-tags .tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    font-size: 0.7rem;
    border-radius: 4px;
    color: var(--lw-text-muted);
}

.log-date-bottom {
    font-size: 0.75rem;
    color: var(--lw-text-muted);
    font-family: 'Outfit', sans-serif;
    opacity: 0.8;
    display: flex;
    gap: 10px;
    height: 70px;
    /* Fixed height for the islands */
    box-sizing: content-box;
}

/* Dynamic Island: Stacked Style */
.filter-island {
    flex: 1;
    /* Equal width */
    background: #008080;
    /* Teal Base */
    border-radius: 12px;
    border: 1px solid var(--lw-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.filter-island:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.15);
    background: #008b8b;
}

.island-top,
.island-bot {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lw-text);
    position: relative;
    /* transition: background 0.2s; */
}

/* Level 1 (Top): Region / Year */
.island-top {
    flex: 3;
    /* Taller */
    background: rgba(0, 0, 0, 0.1);
    font-weight: 700;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Level 2 (Bottom): Country / Month */
.island-bot {
    flex: 2;
    /* Shorter */
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.island-bot:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Log List Layout (Minor Tweak: ensure full height) */
.log-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}


/* --- Journal V3 Redesign: Sidebar | List | Map --- */

.row-atlas {
    display: grid;
    grid-template-columns: 1.2fr 2fr 1.5fr;
    /* USER FIX: Golden ratio - Left 24% | Center 41% | Right 35% */
    gap: 20px;
    height: 688px !important;
    /* USER FIX: Increased by 25% (550px -> 688px) */
    min-height: 688px;
}

.atlas-sidebar,
.atlas-list,
.atlas-map {
    background: transparent !important;
    border: none !important;
    border-radius: 12px;
    overflow: hidden;
    height: 100% !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* USER FIX: Hide sidebar scrollbar */
.atlas-sidebar {
    position: relative;
    overflow-y: auto !important;
    padding: 10px;
    gap: 10px;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    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-right: 1px solid var(--lw-border);
}

.atlas-sidebar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.journal-sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 15px;
}

/* Time Island Override for Sidebar */
#journal-date-picker.timeline-chronometer {
    position: relative !important;
    /* Force out of absolute floating */
    top: 0 !important;
    left: auto !important;
    width: 100% !important;
    margin-bottom: 5px;
    z-index: 10;
}

#journal-date-picker .chrono-surface {
    max-width: 160px !important;
    width: 160px !important;
    margin: 0 auto;
}

/* Sync legacy island-date styling with journal-date-picker */
#island-date,
#journal-date-picker {
    flex: 0 0 auto;
    background: transparent !important;
}

/* USER FIX: Premium year button design */
#island-date button {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(255, 215, 0, 0.2));
    border: 1.5px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #D4AF37;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.1);
}

#island-date button:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(255, 215, 0, 0.3));
    border-color: #D4AF37;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

#island-date button.active {
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    border-color: #D4AF37;
    color: var(--lw-text);
    box-shadow: 0 44px 12px rgba(212, 175, 55, 0.4);
}

/* Location Accordion */
.journal-accordion {
    flex: 1;
    overflow-y: auto;
    border-top: 1px solid var(--lw-border);
    padding-top: 10px;
}

.j-country-header {
    padding: 10px 16px 10px 16px !important;
    /* USER FIX: Align with continent */
    margin: 3px 0 !important;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--lw-text-muted);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.2s ease;
    text-align: left !important;
}

.j-region-header {
    padding: 8px 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--lw-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px;
    margin-bottom: 2px;
    background: rgba(255, 255, 255, 0.03);
}

.j-region-header:hover {
    background: rgba(255, 255, 255, 0.08);
}

.j-continent-content {
    display: none;
    padding: 0 !important;
    /* USER FIX: Remove ALL padding */
    margin: 0 !important;
    /* USER FIX: Remove ALL margin */
}

.j-continent-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.j-country-content {
    display: none;
    padding: 0 !important;
    /* USER FIX: Remove ALL padding */
    margin: 0 !important;
    /* USER FIX: Remove ALL margin */
}

.j-country-content.active {
    display: block;
}


.j-country-item {
    font-size: 0.85rem;
    /* USER FIX: Enlarged for better readability */
    padding: 6px 10px;
    color: var(--lw-text-muted);
    cursor: pointer;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* USER FIX: Premium hover effect */
.j-country-item:hover {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.08), transparent);
    border-left: 3px solid #D4AF37;
    color: #FFD700;
    transform: translateX(2px);
    padding-left: 12px;
}

/* --- Col 2: Log List (Cards) --- */
.log-list-scroll {
    overflow-y: auto;
    flex: 1;
    padding: 10px 0;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    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-top: 1px solid var(--lw-border);
    border-radius: 12px;
}

/* USER FIX: Hide scrollbar for WebKit browsers */
.log-list-scroll::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.log-card-item {
    padding: 15px 10px;
    border-bottom: 1px solid var(--lw-border);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

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

.log-card-row-1 {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.log-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.log-card-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--lw-text);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.log-card-views {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--lw-text-muted);
    opacity: 0.7;
    white-space: nowrap;
}

.log-card-tags-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag-mini {
    font-size: 0.5rem;
    padding: 1px 4px;
    background: rgba(var(--lw-accent-raw), 0.1);
    border: 1px solid rgba(var(--lw-accent-raw), 0.2);
    border-radius: 3px;
    color: var(--lw-accent);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.log-card-row-2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.log-card-summary {
    font-size: 0.65rem;
    color: var(--lw-text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    opacity: 0.8;
}

.log-card-meta-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
    min-width: 80px;
}

.log-card-city {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--lw-text);
}

.log-card-date {
    font-size: 0.65rem;
    font-family: 'Outfit', sans-serif;
    color: var(--lw-text-muted);
    opacity: 0.6;
}

/* --- Gallery & Modal Cards --- */

.gallery-image {
    width: 100%;
    height: 0;
    padding-bottom: 60%;
    /* 4:3 Aspect Ratio */
    /* Fallback if URL fails */
    background-color: rgba(255, 255, 255, 0.05);
    /* Lighter placeholder for transparent bg */
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    /* Overlay the actual image URL logic via style tag in HTML, this supports basic fallback visual */
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    /* Stronger shadow for floating effect */
    position: relative;
    border: 1px solid var(--lw-border);
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.02);
    border-color: var(--lw-accent);
    box-shadow: 0 0 30px var(--lw-accent-glow);
}

/* 1. Floating Label: Bottom Right, Capsule Style */
#lw-log-modal .gallery-label {
    position: absolute;
    top: auto;
    bottom: 20px;
    right: 20px;

    background: rgba(0, 0, 0, 0.3) !important;
    /* Force Transparent */
    backdrop-filter: blur(12px) !important;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    /* Visible Border */

    color: rgba(255, 255, 255, 0.95);
    font-size: 0.75rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;

    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    z-index: 20 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.05) !important;
}

.label-icon {
    opacity: 0.9;
    color: var(--lw-accent);
}

/* --- Mobile Adaptation (Breakpoints consistent with Theater/Timeline) --- */
@media (max-width: 1024px) {

    /* 5. Journal Filter (Sidebar) Floating Card */
    html.light-mode .atlas-sidebar,
    body.light-mode .atlas-sidebar {
        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;
        border-radius: 12px !important;
        margin-bottom: 15px !important;
        padding: 5px !important;
    }

    /* 6. Journal List Floating Card */
    html.light-mode .atlas-list,
    body.light-mode .atlas-list {
        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;
        border-radius: 12px !important;
        /* V5.12: Standardized Harmony */
        margin-bottom: 15px !important;
    }

    /* 7. Map Container Floating Card */
    html.light-mode .atlas-map,
    body.light-mode .atlas-map {
        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;
        border-radius: 12px !important;
    }

    /* Row 3: Atlas Stacking (Constrained) */
    .row-atlas {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        gap: 0 !important;
        /* COMPACT NO GAP */
    }

    .atlas-sidebar {
        width: 100% !important;
        flex: none !important;
        /* Unified Padding for Height Consistency (5px matches Light Mode Card) */
        padding: 5px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        margin: 0 !important;
        /* FORCE NO MARGIN */
    }

    .journal-sidebar-inner {
        gap: 0 !important;
    }

    .journal-accordion {
        padding-top: 0 !important;
        border-top: none !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        /* NO BOTTOM */
    }

    .j-continent-header {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    /* Fixed height container for journal list */
    .atlas-list {
        width: 100% !important;
        height: 485px !important;
        /* Fixed viewport for Journal List */
        flex: none !important;
        background: rgba(255, 255, 255, 0.03) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border: 1px solid var(--lw-border) !important;
        border-radius: 20px !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        box-shadow: none !important;
        margin: 0 0 15px 0 !important;
        /* Unified Gap for Light/Dark Mode */
    }

    /* Target inner list specifically for scroll */
    .atlas-list .log-list-scroll {
        flex: 1 !important;
        overflow-y: auto !important;
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
        padding: 0 15px !important;
        /* REMOVED 5px TOP/BOT */
    }

    .atlas-list .log-list-scroll::-webkit-scrollbar {
        display: none !important;
    }

    .chrono-years-track,
    .chrono-months-track {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        width: 100% !important;
        mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%) !important;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%) !important;
    }

    .chrono-years-track::-webkit-scrollbar,
    .chrono-months-track::-webkit-scrollbar {
        display: none !important;
    }

    .atlas-map {
        width: 100% !important;
        height: 350px !important;
        flex: none !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        border: 1px solid var(--lw-border) !important;
        margin: 0 !important;
        /* FORCE NO MARGIN */
    }

    /* Chronometer Mobile Polish */
    #journal-date-picker {
        margin-bottom: 0 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .sidebar-chrono-surface {
        width: 130px !important;
        max-width: 130px !important;
        overflow: hidden !important;
        background: rgba(255, 255, 255, 0.05) !important;
    }

    /* Fix log items in mobile list - Minimalist Floating Style */
    .log-card-item {
        padding: 12px 0 !important;
        margin-bottom: 0 !important;
        background: transparent !important;
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        transition: opacity 0.2s ease !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 3px !important;
    }

    .log-card-item:last-child {
        border-bottom: none !important;
    }

    .log-card-item:active {
        transform: none !important;
        opacity: 0.7;
    }

    .log-card-title {
        font-size: 0.68rem !important;
    }

    /* Mobile specific tweaks for Row 2 */
    .log-card-row-2 {
        gap: 10px !important;
    }

    .log-card-meta-col {
        min-width: 65px !important;
    }

    .log-card-summary {
        font-size: 0.65rem !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
    }

    /* Light Mode Minimalist Overrides */
    body.light-mode .log-card-item {
        background: transparent !important;
        border-bottom-color: rgba(0, 0, 0, 0.05) !important;
        box-shadow: none !important;
    }

    body.light-mode .log-card-title {
        color: var(--lw-text) !important;
    }

    body.light-mode .log-card-summary {
        color: var(--lw-text-muted) !important;
    }
}
/* ==========================================================================
   Component: Reader (Log Modal)
   ========================================================================== */

/* 
 * The Reader module handles the full-screen modal used for reading logs.
 * It features a split layout (Text Left, Gallery Right) and deep-linking support.
 * 
 * Structure:
 * .lw-modal-overlay (Fixed Container)
 * └── #lw-log-modal (Content Wrapper)
 *     └── .modal-split-layout
 *         ├── .modal-content-scroll (Left: Header + Text)
 *         └── .modal-gallery-scroll (Right: Images)
 */

/* --- Modal Overlay --- */
.lw-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    /* Transparent overlay to show stars behind */
    background: var(--lw-modal-overlay-bg, #000);
    z-index: 99999;
    /* INCREASED: Ensure on top */
    display: flex !important;
    justify-content: center;
    align-items: center;
    overflow: hidden !important;
    /* Prevent scrolling */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.lw-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Lock background scrolling when modal is open */
html.modal-open,
body.modal-open {
    overflow: hidden !important;
}


/* --- LOG MODAL CONTENT --- */
.lw-modal-overlay .lw-modal-content {
    position: relative;
    width: 95%;
    max-width: 1600px;
    /* CRITICAL: Fixed height constraint */
    height: 90vh !important;
    max-height: 90vh !important;
    margin: 3vh auto;
    /* USER FIX: Add vertical margin */

    /* REMOVED Background from Parent to allow split transparency */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    border: 1px solid var(--lw-border-subtle, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    box-shadow: 0 0 100px var(--lw-shadow-heavy, rgba(0, 0, 0, 0.8));

    /* CRITICAL: Flex container setup */
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    overflow: hidden !important;
    /* Prevent modal itself from scrolling */
    animation: cyber-breath 8s ease-in-out infinite alternate;
    pointer-events: auto !important;
}

/* CRITICAL: Ensure content doesn't overflow rounded corners */
#lw-log-modal .lw-modal-body,
#lw-log-modal .modal-split-layout {
    border-radius: 12px;
    overflow: hidden;
}

#lw-log-modal .modal-content-scroll {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

#lw-log-modal .modal-gallery-scroll {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Modal Body Container */
.lw-modal-body {
    flex: 1 1 auto;
    /* Fill available space and allow shrinking */
    min-height: 0;
    /* CRITICAL: Allow flex child to shrink */
    width: 100%;
    overflow: hidden !important;
    /* Prevent body from scrolling */
    display: flex !important;
    flex-direction: row !important;
    /* USER FIX: Ensure children are side-by-side */
}

/* Split Layout (Left Text + Right Gallery) */
.modal-split-layout {
    display: flex !important;
    flex-direction: row !important;
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    min-height: 0;
    /* CRITICAL: Allow flex child to shrink */
    overflow: hidden !important;
}

/* CRITICAL: Force containers to fixed viewport height */
.lw-modal-overlay.active #lw-log-modal .modal-content-scroll,
.lw-modal-overlay.active #lw-log-modal .modal-gallery-scroll {
    max-height: 75vh !important;
}

.modal-content-scroll {
    width: 50%;
    /* USER CRITICAL FIX: Force maximum height */
    height: auto !important;
    max-height: 70vh !important;
    min-height: 0;
    /* CRITICAL: Allow flexbox child to shrink below content size */

    /* Warm Eye-Protection Glass Background - slightly more opaque for readability */
    background: var(--lw-modal-bg, rgba(35, 32, 30, 0.85));
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);

    /* Scroll Logic */
    overflow-y: scroll;
    overflow-x: hidden;
    padding: 60px 60px 60px 70px;
    /* More breathing room */
    display: flex;
    flex-direction: column;

    direction: rtl;

    /* Laser Gradient Separator (Right Edge) */
    position: relative;
    border-right: none !important;
    /* Force remove hard line */
    box-shadow: none !important;
}

/* HIGH SPECIFICITY SELECTOR */
#lw-log-modal .modal-content-scroll::after {
    content: '';
    position: absolute;
    top: 5%;
    bottom: 5%;
    right: 0;
    width: 2px;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 0%,
            var(--lw-accent) 50%,
            rgba(255, 255, 255, 0) 100%) !important;
    opacity: 0.9 !important;
    pointer-events: none;
    z-index: 9999 !important;
    /* Nuclear Z-Index */
}

/* Reset Direction for Content */
.modal-content-scroll>* {
    direction: ltr;
    /* Text reads normal */
    text-align: left;
}

/* RIGHT: Gallery Scroll (Scroll on RIGHT edge via LTR) */
.modal-gallery-scroll {
    width: 50%;
    /* USER CRITICAL FIX: Force maximum height */
    height: auto !important;
    max-height: 70vh !important;
    min-height: 0;
    /* CRITICAL: Allow flexbox child to shrink below content size */
    overflow-y: scroll;
    overflow-x: hidden;
    padding: 60px 40px 60px 50px;
    display: flex;
    flex-direction: column;
    gap: 40px;

    direction: ltr;

    /* TRUE TRANSPARENCY: Reveal Stars */
    background: transparent;
    backdrop-filter: none;
}

.gallery-item-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    /* direction: ltr is inherited */
}

/* Override Old Header */
.modal-header {
    margin-bottom: 15px;
    /* USER FIX: Reduce spacing below header */
    direction: ltr;
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* USER FIX: Reduce gap between title and meta */
}

.modal-header h2 {
    font-size: 2.5rem;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* 2. Meta Row: Tags (Left) | Date (Right) */
.modal-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /* USER FIX: Enhanced border with gradient and shadow */
    border-bottom: 2px solid rgba(var(--lw-accent-rgb), 0.3);
    box-shadow: 0 2px 8px rgba(var(--lw-accent-rgb), 0.1);
    padding-bottom: 12px;
    margin-bottom: 0px;
    /* USER FIX: Add spacing below the line */
}

.modal-tags {
    display: flex;
    gap: 8px;
    /* Fixed missing px unit */
}

/* Renamed to avoid global conflict if needed, but keeping .tag for now as per HTML */
.tag {
    /* USER FIX: Premium tag design */
    background: linear-gradient(135deg, rgba(var(--lw-accent-rgb), 0.15), rgba(var(--lw-accent-rgb), 0.2));
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--lw-accent, #D4AF37);
    border: 1.5px solid rgba(var(--lw-accent-rgb), 0.4);
    box-shadow:
        0 2px 8px rgba(var(--lw-accent-rgb), 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag:hover {
    background: linear-gradient(135deg, rgba(var(--lw-accent-rgb), 0.25), rgba(var(--lw-accent-rgb), 0.3));
    border-color: var(--lw-accent, #D4AF37);
    box-shadow:
        0 4px 12px rgba(var(--lw-accent-rgb), 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.modal-date {
    font-size: 0.9rem;
    color: var(--lw-text-dim, rgba(255, 255, 255, 0.5));
    font-family: monospace;
    letter-spacing: 1px;
}

.modal-text {
    padding: 0;
    /* USER FIX: Remove excessive padding */
    /* 3. Text: Comfort Optimization */
    font-size: 1.5rem;
    /* Upgraded to 1.5rem */
    line-height: 2.2;

    /* Heavier Weight for less fatigue */
    font-weight: 500 !important;
    font-family: 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;

    color: var(--lw-text-primary, #f2f2f2);
    direction: ltr;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
}

/* Explicitly target text inside the ID to override anything else */
#lw-log-modal .modal-text {
    font-weight: 500 !important;
}

.modal-excerpt {
    font-size: 1.45rem;
    color: var(--lw-text-white, #fff);
    margin-bottom: 25px;
    /* USER FIX: Reduce spacing below excerpt */
    margin-top: 0;
    /* USER FIX: Remove top margin */
    border-left: 4px solid var(--lw-accent);
    padding-left: 25px;
    font-style: italic;
    opacity: 1;
    line-height: 1.6;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent);
}

/* HIDE Native Scrollbars */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Revert previous FORCE scroll */
.modal-content-scroll,
.modal-gallery-scroll {
    overflow-y: scroll;
    /* Keep scroll behavior */
}


/* Custom Scroll Tracks */
.lw-cust-scroll-track {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    /* Very thin rail line */
    background: var(--lw-bg-dim, rgba(255, 255, 255, 0.05));
    z-index: 10;
    pointer-events: auto !important;
    /* Catch clicks so they don't hit overlay */
    cursor: pointer;
}

.lw-cust-scroll-track.left-track {
    left: 0;
}

.lw-cust-scroll-track.right-track {
    right: 0;
}

/* Custom Scroll Thumb (Dynamic "Reading Light") */
.lw-cust-scroll-thumb {
    position: absolute;
    /* IDLE STATE: Thin & Subtle */
    width: 4px;
    left: -1px;
    /* Center for 2px track: (4-2)/2 overhang = 1. Left -1. */
    height: 61.8%;
    background: rgba(255, 255, 255, 0.8);
    /* White core when idle */
    border-radius: 4px;
    cursor: grab;
    top: 0;

    /* Idle Glow: Weak */
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    border: none;

    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.lw-cust-scroll-track:hover .lw-cust-scroll-thumb,
.lw-cust-scroll-thumb:hover,
.lw-cust-scroll-thumb.grabbing {
    /* ACTIVE STATE: Thick & Neon */
    width: 12px;
    left: -5px;
    /* (12-2)/2 = 5 overhang. Left -5 */
    background: var(--lw-accent);

    /* Neon Glow Explosion */
    box-shadow:
        0 0 15px var(--lw-accent),
        0 0 30px var(--lw-accent),
        0 0 5px #fff;
    /* Core */

    border: 1px solid #fff;
}

.lw-cust-scroll-thumb.grabbing {
    cursor: grabbing;
    background: #fff;
    /* Hot white when grabbing */
    box-shadow:
        0 0 20px #fff,
        0 0 40px var(--lw-accent);
}

.lw-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--lw-border-subtle, rgba(255, 255, 255, 0.1));
    color: var(--lw-text-white, #fff);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.lw-modal-close:hover {
    background: var(--lw-danger-bg, rgba(255, 0, 0, 0.6));
    transform: rotate(90deg);
}

.lw-modal-body {
    overflow-y: auto;
    padding: 0;
    height: 100%;
}

.modal-cover-img {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    /* Blend with glass */
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

/* --- Mobile Overrides (Max-Width: 1024px) --- */
@media (max-width: 1024px) {
    /* Step 36: [Reader] Mobile Fullscreen Adaptation */

    /* Reset Modal Base */
    #lw-log-modal .lw-modal-content {
        width: 100% !important;
        height: 100vh !important;
        max-width: 100% !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        /* Nuclear Radius Kill */
        padding: 0 !important;
        top: 0 !important;
        left: 0 !important;
        margin: 0 !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        background: var(--lw-modal-bg, #fff) !important;
    }

    /* Scrollbar Suppression */
    #lw-log-modal .lw-modal-content,
    .modal-content-scroll,
    .modal-gallery-scroll {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    #lw-log-modal *::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    /* Close Button (Top Right) */
    #lw-log-modal .lw-modal-close {
        transform: scale(0.6) !important;
        top: 15px !important;
        right: 15px !important;
        left: auto !important;
        background: rgba(0, 0, 0, 0.05) !important;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
        color: #000 !important;
        z-index: 10005 !important;
        position: fixed !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Nuclear Axis Kill: Ensure timeline axis is GONE when modal opens */
    body.modal-open #lightwinner-section .timeline-line.fixed-axis,
    body:has(#lw-log-modal.active) #lightwinner-section .timeline-line.fixed-axis,
    #lw-log-modal.active~#lightwinner-section .timeline-line.fixed-axis {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    #lw-log-modal .lw-modal-body {
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        background: var(--lw-modal-bg, #fff) !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    /* Scrollable Layout (Global Scroll v5.1) */
    #lw-log-modal .modal-split-layout {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        width: 100% !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        background: var(--lw-modal-bg, #fff) !important;
    }

    /* Text Content */
    #lw-log-modal .modal-content-scroll {
        flex: 0 0 auto !important;
        width: 100% !important;
        order: 1 !important;
        padding: 0 !important;
        background: var(--lw-modal-bg, #fff) !important;
        overflow: visible !important;
        min-height: 160px !important;
        max-height: none !important;
        /* Override desktop max-height */
        height: auto !important;
    }

    #lw-log-modal .modal-header {
        padding: 30px 25px 0 25px !important;
        margin-top: 0 !important;
        text-align: left !important;
    }

    #lw-log-modal .modal-tags {
        display: flex !important;
        justify-content: flex-start !important;
        gap: 5px !important;
        margin-bottom: 2px !important;
        margin-top: 0 !important;
    }

    #lw-log-modal .modal-tags .tag {
        font-size: 0.55rem !important;
        padding: 1px 5px !important;
        font-weight: 700 !important;
        color: var(--lw-accent, #d4af37) !important;
        border: 1px solid rgba(212, 175, 55, 0.2) !important;
        border-radius: 2px !important;
        text-transform: uppercase !important;
    }

    #lw-log-modal .modal-header h2 {
        font-size: 1.25rem !important;
        font-weight: 800 !important;
        color: var(--lw-text-black, #000) !important;
        line-height: 1.1 !important;
        margin: 2px 0 5px 0 !important;
        text-align: left !important;
        max-width: 95% !important;
    }

    #lw-log-modal .modal-meta-row {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
        padding: 0 !important;
        font-size: 0.6rem !important;
        color: #999 !important;
        opacity: 0.8 !important;
        border-bottom: none !important;
        /* Remove desktop border */
        box-shadow: none !important;
    }

    #lw-log-modal .modal-text {
        padding: 0 25px 10px 25px !important;
        text-align: left !important;
        color: var(--lw-text-dark, #333) !important;
        /* Mobile Light Mode Default */
        font-size: 0.92rem !important;
        line-height: 1.6 !important;
    }

    #lw-log-modal .modal-excerpt {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        color: var(--lw-text-dim-3, #555) !important;
        font-style: italic !important;
        margin-bottom: 15px !important;
        padding: 10px 12px 10px 18px !important;
        border-left: 3px solid var(--lw-gold, #D4AF37) !important;
        background: rgba(var(--lw-accent-rgb), 0.03) !important;
        text-align: left !important;
        border-top: none !important;
        border-bottom: none !important;
    }

    /* Horizontal Gallery Peek (v5.4 - Editorial Style) */
    #lw-log-modal .modal-gallery-scroll {
        flex: 0 0 auto !important;
        width: 100% !important;
        order: 2 !important;
        background: transparent !important;
        margin-top: 20px !important;
        padding: 0 0 40px 0 !important;
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        gap: 0 !important;
        border: none !important;
        box-shadow: none !important;
        max-height: none !important;
        /* Override desktop max-height */
        height: auto !important;
    }

    #lw-log-modal .gallery-item-wrapper {
        flex: 0 0 90% !important;
        width: 90% !important;
        padding: 0 10px !important;
        margin-bottom: 0 !important;
        scroll-snap-align: center !important;
        display: flex !important;
        justify-content: center !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* First & Last padding */
    #lw-log-modal .gallery-item-wrapper:first-child {
        margin-left: 5% !important;
    }

    #lw-log-modal .gallery-item-wrapper:last-child {
        margin-right: 5% !important;
    }

    #lw-log-modal .gallery-image {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        /* V5.4: Purged RADIUS */
        background: transparent !important;
        box-shadow: none !important;
        position: relative !important;
        overflow: hidden !important;
    }

    /* Fixed Bottom-Right Label */
    #lw-log-modal .gallery-image .gallery-label {
        position: absolute !important;
        bottom: 10px !important;
        right: 15px !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        background: rgba(255, 255, 255, 0.45) !important;
        backdrop-filter: blur(14px) saturate(180%) !important;
        padding: 4px 10px !important;
        border-radius: 4px !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        color: #000 !important;
        font-size: 0.5rem !important;
        font-weight: 600 !important;
        z-index: 20 !important;
    }

    /* V5.7 DARK MODE: DEEP COCOA GLASS PORT */
    body:not(.light-mode) #lw-log-modal .lw-modal-content,
    /* Added selector for specificity */
    body:not(.light-mode) #lw-log-modal {
        --lw-modal-bg: var(--lw-modal-bg-dark, rgba(26, 24, 22, 0.98));
        --lw-modal-text: var(--lw-text-white, #FFFFFF);
        --lw-modal-dim: var(--lw-text-dim, rgba(255, 255, 255, 0.6));
    }

    body:not(.light-mode) #lw-log-modal .lw-modal-body,
    body:not(.light-mode) #lw-log-modal .modal-split-layout,
    body:not(.light-mode) #lw-log-modal .modal-content-scroll {
        background: var(--lw-modal-bg) !important;
        backdrop-filter: blur(50px) !important;
    }

    body:not(.light-mode) #lw-log-modal h2 {
        color: var(--lw-text-white, #FFFFFF) !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
    }

    body:not(.light-mode) #lw-log-modal .lw-modal-close {
        background: rgba(var(--lw-accent-rgb), 0.2) !important;
        border: 1px solid rgba(var(--lw-accent-rgb), 0.4) !important;
        color: var(--lw-gold, #D4AF37) !important;
        box-shadow: 0 0 15px rgba(var(--lw-accent-rgb), 0.1) !important;
    }

    body:not(.light-mode) #lw-log-modal .modal-text {
        color: var(--lw-text-primary-alpha, rgba(255, 255, 255, 0.9)) !important;
    }

    body:not(.light-mode) #lw-log-modal .modal-date {
        color: var(--lw-gold, #D4AF37) !important;
        opacity: 0.9 !important;
    }

    body:not(.light-mode) #lw-log-modal .tag {
        background: rgba(var(--lw-accent-rgb), 0.15) !important;
        color: var(--lw-gold, #D4AF37) !important;
        border: 1px solid rgba(var(--lw-accent-rgb), 0.3) !important;
    }

    body:not(.light-mode) #lw-log-modal .modal-excerpt {
        color: var(--lw-text-white, #FFFFFF) !important;
        background: rgba(var(--lw-accent-rgb), 0.06) !important;
    }
}
/*
 * Warm Theme (Light Mode) Styling Layer
 * -------------------------------------
 * Purpose: Decoupled "Skin" layer for the Light Mode theme.
 * Strategy: Overrides default (Dark Mode) styles when body.light-mode is active.
 *
 * Architecture:
 * - Managed under ITCSS Standards (Phase 4 Optimization)
 * - Contains NO layout/structure; ONLY colors, backgrounds, and visual skinning.
 */

/* ==========================================
   Light Mode Design Philosophy:
   - "Clean Luxury": High contrast, neutral backgrounds, vibrant accents.
   - Depth over Borders: Use shadows to define hierarchy.
   ========================================== */

body.light-mode {
    /* --- Palette: Clean Slate & Vibrant Orange --- */
    --accent-warm: #EA580C;
    /* International Orange (High Visibility) */
    --accent-warm-light: #F97316;
    /* Lighter Orange for Hover */
    --accent-warm-dark: #C2410C;
    /* Deep Orange for Active */

    /* Backgrounds */
    --bg-page: #F1F5F9;
    /* Slate 100 - Cool Neutral Page BG */
    --bg-card: #FFFFFF;
    /* Pure White - Component BG */
    --bg-overlay: rgba(255, 255, 255, 0.9);
    /* Glassy White */

    /* Typography */
    --text-primary: #0F172A;
    /* Slate 900 - Headings (Sharp Black) */
    --text-secondary: #475569;
    /* Slate 600 - Body Text */
    --text-muted: #94A3B8;
    /* Slate 400 - Meta Info */

    /* Borders & Shadows */
    --border-subtle: #E2E8F0;
    /* Slate 200 */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

/* ==========================================
   Global Overrides
   ========================================== */

/* Remove Dark Mode Stars/Canvas in Light Mode if visible */
body.light-mode canvas {
    opacity: 0.1 !important;
    /* Subtle texture instead of black void */
    mix-blend-mode: multiply;
}

/* Page Background */
body.light-mode #product-container,
body.light-mode #projects-section,
body.light-mode #lightwinner-section,
body.light-mode #values-section,
body.light-mode #about-section {
    background-color: var(--bg-page) !important;
    background-image: none !important;
    /* Remove rustic texture */
}

/* Links */
body.light-mode a {
    color: var(--text-primary);
    transition: color 0.2s ease;
}

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

/* ==========================================
   Navigation
   ========================================== */

/* Nav Links */
body.light-mode .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
}

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

body.light-mode .nav-link.active {
    color: var(--accent-warm) !important;
    font-weight: 700;
    background: transparent;
    border-bottom: 2px solid var(--accent-warm);
    border-radius: 0;
    text-shadow: none;
    box-shadow: none;
}

/* Mobile Menu Trigger */
body.light-mode #mobile-nav-trigger {
    color: var(--text-primary);
}

/* ==========================================
   Sidebar (Filters)
   ========================================== */

body.light-mode .category-sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border-subtle);
    box-shadow: none;
    /* Flat design for sidebar */
    backdrop-filter: none;
}

body.light-mode .cat-group h3,
body.light-mode .sidebar-section h3 {
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
    font-weight: 700;
    letter-spacing: 0.5px;
}

body.light-mode .cat-group li {
    color: var(--text-secondary);
    border-radius: 6px;
    margin-bottom: 2px;
}

body.light-mode .cat-group li:hover {
    background: #F8FAFC;
    color: var(--accent-warm);
}

body.light-mode .cat-group li.active {
    background: #FFF7ED;
    /* Very light orange tint */
    color: var(--accent-warm);
    border-left: 3px solid var(--accent-warm);
    font-weight: 600;
}

/* Count Badge */
body.light-mode .cat-count {
    background: #F1F5F9;
    color: var(--text-muted);
    border: none;
    font-size: 0.75rem;
}

body.light-mode .cat-group li.active .cat-count {
    background: #FED7AA;
    color: var(--accent-warm-dark);
}

/* ==========================================
   Product Cards - Clean & Depth
   ========================================== */

body.light-mode .product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    border-radius: 12px;
    /* Softer corners */
    backdrop-filter: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

body.light-mode .product-card:hover {
    border-color: var(--accent-warm-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    /* Lift effect */
}

/* Image Area */
body.light-mode .card-image {
    background: #F8FAFC;
    /* Slight contrast for image container */
    border-bottom: 1px solid var(--border-subtle);
}

/* Typography in Card */
body.light-mode .card-info h3 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

body.light-mode .desc,
body.light-mode .card-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

body.light-mode .specs {
    border-top: 1px solid var(--border-subtle);
    padding-top: 12px;
    margin-top: 12px;
}

body.light-mode .spec-item,
body.light-mode .specs span {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

body.light-mode .badge {
    background: var(--accent-warm);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(234, 88, 12, 0.3);
}

/* ==========================================
   Controls (Search, Filter, Sort)
   ========================================== */

/* Search Input */
body.light-mode #product-search-input {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

body.light-mode #product-search-input:focus {
    border-color: var(--accent-warm);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
    outline: none;
}

body.light-mode #product-search-input::placeholder {
    color: var(--text-muted);
}

/* Dropdowns */
body.light-mode .suggestions-dropdown {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
}

body.light-mode .suggestion-item {
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

body.light-mode .suggestion-item:hover {
    background: #F8FAFC;
    color: var(--accent-warm);
}

/* Buttons */
body.light-mode .sort-btn,
body.light-mode .reset-filter,
body.light-mode .browse-all-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

body.light-mode .sort-btn:hover,
body.light-mode .reset-filter:hover,
body.light-mode .browse-all-btn:hover {
    border-color: var(--accent-warm);
    color: var(--accent-warm);
    background: white;
}

body.light-mode .sort-btn.active {
    background: var(--accent-warm);
    color: white;
    border-color: var(--accent-warm);
    box-shadow: var(--shadow-sm);
}

/* ==========================================
   Product Modal (Detail View)
   ========================================== */

/* Overlay - Clean Light Glass */
body.light-mode .product-modal-overlay {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(16px) !important;
}

/* Modal Content - White Box */
body.light-mode .product-modal-content {
    background: #FFFFFF !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    /* Deep elegant shadow */
    border-radius: 20px;
}

body.light-mode .modal-info-section {
    background: #FFFFFF;
}

/* Typography within Modal */
body.light-mode .modal-header-group h2 {
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.03em;
}

body.light-mode .modal-desc {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Specs Box */
body.light-mode .modal-specs {
    background: #F8FAFC;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
}

body.light-mode .spec-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.light-mode .spec-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* CTA Button */
body.light-mode .modal-cta {
    background: var(--accent-warm);
    color: white;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 50px;
    /* Pill shape */
    transition: transform 0.2s, box-shadow 0.2s;
}

body.light-mode .modal-cta:hover {
    background: var(--accent-warm-dark);
    box-shadow: 0 10px 25px -5px rgba(234, 88, 12, 0.4);
    transform: translateY(-2px);
}

/* Navigation Arrows in Modal */
body.light-mode .prod-nav {
    background: white;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

body.light-mode .prod-nav:hover {
    border-color: var(--accent-warm);
    color: var(--accent-warm);
}

/* Close Button */
body.light-mode .modal-close {
    background: #F1F5F9;
    color: var(--text-secondary);
}

body.light-mode .modal-close:hover {
    background: #E2E8F0;
    color: var(--text-primary);
}

/* ==========================================
   Projects Section (Cards)
   RESTRICTED TO DESKTOP: Mobile cards are always image-based (require dark mode styles)
   ========================================== */
@media (min-width: 1025px) {

    /* Desktop Project Cards: Text must be WHITE because background is IMAGE */
    body.light-mode .project-card {
        background: #000;
        /* Dark background behind image */
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: var(--shadow-md);
    }

    body.light-mode .project-card:hover {
        box-shadow: var(--shadow-lg);
        border-color: var(--accent-warm);
    }

    /* Project Text - Force White with Shadow for Legibility */
    body.light-mode .proj-title {
        color: #FFFFFF !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
    }

    body.light-mode .proj-desc {
        color: rgba(255, 255, 255, 0.95) !important;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8) !important;
    }

    /* Category Tag - High Contrast Mobile Style adopted for Desktop too */
    body.light-mode .proj-category {
        background: rgba(255, 152, 0, 0.85) !important;
        color: #FFFFFF !important;
        border: 1px solid #ff9800 !important;
        box-shadow: 0 0 10px rgba(255, 152, 0, 0.4) !important;
    }
}

/* ==========================================
   Bug Fixes & Utilities (Preserved)
   ========================================== */

/* Fix: Video loading black screen */
body.light-mode .media-slide {
    background: #F8FAFC !important;
    /* Clean placeholder */
}

/* Transparent Backgrounds where needed */
body.light-mode .media-slide video,
body.light-mode .video-pre-roll,
body.light-mode .modal-media-section,
body.light-mode .lw-cust-video-wrapper,
body.light-mode .video-wrapper,
body.light-mode #global-player-stage,
body.light-mode #lw-stage-placeholder,
body.light-mode .theater-stage,
body.light-mode .static-poster {
    background: transparent !important;
}

/* Video Pre-roll Text */
body.light-mode .video-pre-roll {
    color: var(--text-muted) !important;
}

/* FIX: Navbar Light Mode Override */
body.light-mode #global-navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05) !important;
}

body.light-mode #global-navbar::after {
    display: none !important;
    opacity: 0 !important;
}

body.light-mode #global-navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

/* --- MIGRATED FROM SECTIONS.CSS (START) --- */

/* --- GLOBAL & MISC MIGRATION (Step 24-30) --- */

/* ====================================
   FIX ALL LIGHT TEXT - GLOBAL OVERRIDES
   ==================================== */

/* Section Titles - Force Dark Color */
body.light-mode .section-title,
body.light-mode #product-category-title,
body.light-mode #values-section .section-title,
body.light-mode #about-section .section-title,
body.light-mode #contact .section-title {
    color: #2C2C2C !important;
    background: none !important;
    -webkit-text-fill-color: #2C2C2C !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    opacity: 1 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

/* About Stats Numbers - Force Dark Color */
body.light-mode .stat-value {
    color: #d67e2e !important;
    background: none !important;
    -webkit-text-fill-color: #d67e2e !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    filter: none !important;
}

body.light-mode .stat-label {
    color: #5d4037 !important;
}

/* Contact Info - All Text Elements */
body.light-mode .contact-info i {
    color: #d67e2e !important;
}

body.light-mode .contact-info a,
body.light-mode .contact-info span {
    color: #4A4A4A !important;
    -webkit-text-fill-color: #4A4A4A !important;
}

/* Social Section */
body.light-mode .social-section h4 {
    color: #5d4037 !important;
}

/* ====================================
   CONTACT PAGE ENHANCEMENTS
   ==================================== */

/* Make Address More Prominent */
body.light-mode .contact-info .contact-detail {
    color: #2C2C2C !important;
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    -webkit-text-fill-color: #2C2C2C !important;
}

/* Simplify Social Media Icons */
body.light-mode .s-icon {
    background: rgba(214, 126, 46, 0.12) !important;
    color: #d67e2e !important;
    border: 1.5px solid rgba(214, 126, 46, 0.3) !important;
    transition: all 0.3s ease !important;
}

body.light-mode .s-icon:hover {
    background: linear-gradient(135deg, #d67e2e, #ff9800) !important;
    color: #fff !important;
    border-color: #d67e2e !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 16px rgba(214, 126, 46, 0.3) !important;
}

/* === USER FIX: CONTACT HEADER GAP === */
/* Reduce top padding for Contact section to match others */
/* applied globally but specifically for layout tuning */


/* === USER FIX: MODAL SPECS VISUALS === */
/* Better appearance for specs box in Light Mode */
body.light-mode .modal-specs {
    background: transparent !important;
    border: none !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: none !important;
    padding: 30px 0 !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px 10px !important;
}

body.light-mode .spec-label {
    color: #999 !important;
    font-size: 0.65rem !important;
    letter-spacing: 2px !important;
}

body.light-mode .spec-value {
    color: #222 !important;
    font-weight: 700 !important;
    margin-top: 5px !important;
}

body.light-mode .spec-item.placeholder .spec-label {
    color: #ccc !important;
}

/* FIX: Custom Cursor Visibility in Light Mode */
body.light-mode #custom-cursor {
    border-color: #00eaff !important;
    /* Lightwinner Cyan */
    box-shadow: 0 0 8px rgba(0, 234, 255, 0.6) !important;
    background-color: rgba(0, 234, 255, 0.1) !important;
    /* Slight tint to make it more visible */
}

/* === CONTACT SECTION === */
body.light-mode .contact-info,
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 #hero h1,
body.light-mode .glitch-text {
    color: #b0b0b0 !important;
    /* Elegant light silver base */
    background: none !important;
    -webkit-text-fill-color: #b0b0b0 !important;
    text-shadow: none !important;
    position: relative !important;
    isolation: isolate !important;
    /* Create new stacking context */
}

body.light-mode .glitch-text::before,
body.light-mode .glitch-text::after {
    opacity: 0.9 !important;
    z-index: 10 !important;
    /* Force to VERY TOP of the silver base */
    pointer-events: none;
}

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

body.light-mode #contact h2.section-title {
    color: #1A1A1A !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #1A1A1A !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    background: none !important;
}

body.light-mode .contact-info p,
body.light-mode .contact-detail {
    color: #4A4A4A !important;
    -webkit-text-fill-color: #4A4A4A !important;
}

body.light-mode .contact-detail i {
    color: #d67e2e !important;
}



/* === VALUES SECTION === */
/* === VALUES SECTION - FROSTED GLASS TRANSITION V7.0 === */
body.light-mode .value-card {
    background: rgba(255, 255, 255, 0.45) !important;
    /* Premium Transparency */
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4) !important;
}

body.light-mode .value-card:hover {
    border-color: rgba(214, 126, 46, 0.4) !important;
    box-shadow: 0 15px 40px rgba(93, 64, 55, 0.25),
        0 0 30px rgba(214, 126, 46, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-10px) !important;
}

body.light-mode .value-card h3 {
    color: #1A1A1A !important;
    text-shadow: none !important;
    /* CRITICAL: Override transparent text-fill */
    -webkit-text-fill-color: #1A1A1A !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    background: none !important;
}

body.light-mode .value-card p {
    color: #4A4A4A !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #4A4A4A !important;
}

body.light-mode .value-icon {
    color: #d67e2e !important;
    filter: drop-shadow(0 2px 4px rgba(214, 126, 46, 0.3)) !important;
}

body.light-mode .about-text .section-title,
body.light-mode .about-text .lead {
    color: #1A1A1A !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.06) !important;
    -webkit-text-fill-color: #1A1A1A !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    background: none !important;
}

body.light-mode .about-content p,
body.light-mode .about-text p {
    color: #4A4A4A !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #4A4A4A !important;
}

body.light-mode .about-content strong,
body.light-mode .about-content em {
    color: #2C2C2C !important;
    -webkit-text-fill-color: #2C2C2C !important;
}

body.light-mode .about-btn {
    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;
    text-shadow: none !important;
}

body.light-mode .about-btn: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;
}

/* === EFFECTS: LIGHT MODE OVERRIDES === */

/* Flashlight effect is disabled in light mode for clarity */
body.light-mode #flashlight-overlay {
    opacity: 0;
    pointer-events: none;
}

body.light-mode #flashlight-tint {
    opacity: 0;
}

/* === JOURNAL ACCORDION: LIGHT MODE OVERRIDES === */
body.light-mode .j-continent-header {
    background: rgba(214, 126, 46, 0.08) !important;
    border-left-color: rgba(214, 126, 46, 0.4) !important;
    color: #5d4037 !important;
}

body.light-mode .j-continent-header:hover {
    background: rgba(214, 126, 46, 0.15) !important;
    border-left-color: #d67e2e !important;
}

body.light-mode .j-country-header {
    background: rgba(214, 126, 46, 0.03) !important;
    color: #6d4c41 !important;
    border-left: 2px solid transparent !important;
}

body.light-mode .j-country-header:hover {
    background: rgba(214, 126, 46, 0.1) !important;
}

body.light-mode .j-log-item {
    color: rgba(93, 64, 55, 0.8) !important;
}

body.light-mode .j-log-item:hover {
    color: #d67e2e !important;
    background: rgba(214, 126, 46, 0.1) !important;
    border-left-color: #d67e2e !important;
}

body.light-mode .j-log-item.active {
    background: rgba(214, 126, 46, 0.2) !important;
    color: #d67e2e !important;
    border-left-color: #d67e2e !important;
}

body.light-mode .log-card-item.highlighted,
body.light-mode .log-card-item.selected {
    background: rgba(214, 126, 46, 0.15) !important;
    border-left-color: #d67e2e !important;
    box-shadow: 0 0 20px rgba(214, 126, 46, 0.3), 0 4px 12px rgba(214, 126, 46, 0.1) !important;
}
/* 
 * Journal Accordion (Atlas Sidebar) Layer
 * --------------------------------------
 * Purpose: Styles for the hierarchical navigation (Continent > Country > Log)
 *          used in the "Immersive Archive / Atlas" section.
 * Dependencies: Rendered dynamically in js/modules/lightwinner.js.
 * 
 * Contents:
 * 1. Continent Groups & Headers
 * 2. Country Headers & Transition Arrows
 * 3. Log Item (Playlist-style) interaction states
 */

/* Continent Group (like Region) */
.j-continent-group {
    margin-bottom: 8px;
}

.j-continent-header {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-left-color: rgba(0, 255, 255, 0.5);
}

.j-country-header .arrow {
    font-size: 0.9rem;
    /* USER FIX: Slightly larger */
    opacity: 0.7;
    /* USER FIX: More visible */
    transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease;
    color: #D4AF37;
    /* Gold arrow */
    display: inline-block;
}

.j-country-header.active .arrow {
    transform: rotate(90deg);
    opacity: 1;
    color: #FFD700;
}

.j-country-logs {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.j-country-logs.active {
    max-height: 500px;
}

/* Log Item (like Playlist Item) */
.j-log-item {
    margin: 4px 0 4px 25px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.01);
    border-left: 2px solid transparent;
    border-radius: 3px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.j-log-item:hover {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(0, 255, 255, 0.05);
    border-left-color: var(--lw-accent);
    transform: translateX(3px);
}

.j-log-item.active,
.j-log-item.selected {
    background: rgba(0, 255, 255, 0.08);
    border-left-color: var(--lw-accent);
    color: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(0, 255, 255, 0.2);
}

/* Log Card Highlighted State (when clicked from sidebar) */
.log-card-item.highlighted,
.log-card-item.selected {
    background: rgba(0, 255, 255, 0.1);
    border-left: 3px solid var(--lw-accent);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateX(3px);
}
/* 
 * 基础标签样式 (Base Styles) - v1.0
 * -----------------------------------
 * 用途：存放无类名的 HTML 标签基础样式，属?ITCSS 中的 Base 层?
 * 依赖：依?variables.css 中提供的设计令牌?
 */

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

/* 亮色模式基础渲染覆盖 */
body.light-mode {
    /* 基础渲染层覆盖主要由 variables.css 中的变量切换驱动 */
    background-color: transparent;
    /* 保持透明以支持底层的 Canvas 特效 */
}
/* 
 * lightwinner_map.css - 地图模块样式
 * Refactored: 2026-02-08 (Step 42: Theming Integration)
 */

:root {
    /* --- Local Map Tokens (Default: Dark Mode) --- */
    --map-popup-bg: var(--sm-bg-dark, rgba(20, 20, 30, 0.95));
    --map-popup-border: rgba(255, 255, 255, 0.1);
    --map-card-text: #fff;
    --map-type-text: rgba(255, 255, 255, 0.7);
    --map-title-text: #fff;
    --map-meta-text: rgba(255, 255, 255, 0.6);

    --map-marker-video-shadow: rgba(0, 149, 204, 0.3);
    --map-marker-log-shadow: rgba(0, 149, 204, 0.3);
    /* Default shared */

    /* Leaflet Controls */
    --leaflet-ctrl-text: var(--lw-cyan, rgba(0, 255, 230, 0.9));
    --leaflet-ctrl-shadow: 0 0 8px var(--pj-glow-cyan, rgba(0, 255, 230, 0.6));
    --leaflet-ctrl-hover-bg: rgba(0, 255, 230, 0.1);
    --leaflet-ctrl-hover-text: #fff;
}

body.light-mode {
    /* --- Light Mode Overrides --- */
    --map-popup-bg: var(--sm-bg-light, rgba(255, 255, 255, 0.98));
    --map-popup-border: rgba(0, 0, 0, 0.1);
    --map-card-text: #333;
    --map-type-text: rgba(0, 0, 0, 0.6);
    --map-title-text: #222;
    --map-meta-text: rgba(0, 0, 0, 0.5);

    --map-marker-video-shadow: rgba(255, 107, 107, 0.6);
    --map-marker-log-shadow: rgba(78, 205, 196, 0.6);

    /* Leaflet Controls (Light) */
    --leaflet-ctrl-text: rgba(0, 0, 0, 0.5);
    --leaflet-ctrl-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
    --leaflet-ctrl-hover-bg: rgba(0, 0, 0, 0.05);
    --leaflet-ctrl-hover-text: #000;
}

/* 地图标记样式 */
.lw-marker {
    background: transparent !important;
    border: none !important;
}

.marker-pin {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 15px var(--pj-shadow-medium, rgba(0, 149, 204, 0.3));
    animation: pulse 2s ease-in-out infinite;
}

.marker-video .marker-pin {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px var(--map-marker-video-shadow);
}

.marker-log .marker-pin {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px var(--map-marker-log-shadow);
}

/* 标记脉冲动画 */
@keyframes pulse {

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

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* 悬停效果 */
.lw-marker:hover .marker-pin {
    transform: scale(1.3);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.8);
    animation: none;
}

/* 弹窗卡片样式 */
.lw-map-popup .leaflet-popup-content-wrapper {
    background: var(--map-popup-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--map-popup-border);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lw-map-popup .leaflet-popup-content {
    margin: 0;
    padding: 0;
    width: auto !important;
}

.lw-map-popup .leaflet-popup-tip {
    background: var(--map-popup-bg);
    border: 1px solid var(--map-popup-border);
}

.map-popup-card {
    padding: 16px;
    color: var(--map-card-text);
    min-width: 220px;
}

.popup-type {
    font-size: 12px;
    color: var(--map-type-text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.popup-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--map-title-text);
    line-height: 1.4;
}

.popup-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--map-meta-text);
}

.popup-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 
 * [DELETED] Old "Override Pattern" blocks for light-mode 
 * (L107-L140 replaced by variables above) 
 */

/* 响应?*/
@media (max-width: 768px) {
    .map-popup-card {
        padding: 12px;
        min-width: 180px;
    }

    .popup-title {
        font-size: 14px;
    }

    .popup-meta {
        font-size: 12px;
    }
}

/* --- CAROUSEL POPUP STYLES (V229) --- */

/* Title Interaction */
.popup-title.clickable-title {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 4px;
    transition: color 0.2s, text-decoration-color 0.2s;
}

.popup-title.clickable-title:hover {
    color: var(--lw-accent, #ffaa00);
    text-decoration-color: var(--lw-accent, #ffaa00);
}

/* Light Mode Title Hover (Kept as logic is specific) */
body.light-mode .popup-title.clickable-title:hover {
    color: #d4a017;
    text-decoration-color: #d4a017;
}

/* Header Row (Type + Nav) */
.popup-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    height: 24px;
}

.popup-type {
    margin-bottom: 0 !important;
}

/* Nav Controls */
.popup-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 12px;
}

body.light-mode .popup-nav {
    background: rgba(0, 0, 0, 0.05);
    /* Could be variable, but simple enough */
}

.nav-counter {
    font-size: 11px;
    font-family: monospace;
    opacity: 0.8;
}

.nav-btn {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 10px;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}

.nav-btn:hover {
    opacity: 1;
    transform: scale(1.2);
    color: var(--lw-accent, #ffaa00);
}

/* Hint Text */
.popup-hint {
    font-size: 10px;
    opacity: 0.5;
    margin-top: 10px;
    text-align: right;
    font-style: italic;
}

/* --- LEAFLET ZOOM CONTROLS CUSTOMIZATION (V225) --- */

/* 1. Clear Default Containers */
.leaflet-bar {
    border: none !important;
    box-shadow: none !important;
}

/* 2. Style Buttons (Variable Driven) */
.leaflet-bar a {
    background-color: transparent !important;
    border-bottom: none !important;
    color: var(--leaflet-ctrl-text) !important;
    font-weight: 300 !important;
    font-size: 24px !important;
    line-height: 26px !important;
    transition: all 0.3s ease !important;
    text-shadow: var(--leaflet-ctrl-shadow);
    border-radius: 4px !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hover Glow (Variable Driven) */
.leaflet-bar a:hover {
    color: var(--leaflet-ctrl-hover-text) !important;
    /* Use variables for simplified shadow logic or keep complex shadow here if needed */
    text-shadow: 0 0 5px #fff, 0 0 20px #00ffe0;
    background-color: var(--leaflet-ctrl-hover-bg) !important;
    transform: scale(1.15);
}

body.light-mode .leaflet-bar a:hover {
    /* Override specific complex shadow for light mode that variables handled poorly */
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* 
 * [DELETED] Old Light Mode Overrides for Leaflet (L282-L293)
 * Handled by variables 
 */

/* Disabled state */
.leaflet-bar a.leaflet-disabled {
    color: rgba(128, 128, 128, 0.3) !important;
    text-shadow: none !important;
    cursor: default !important;
    background: transparent !important;
    pointer-events: none;
}

/* --- [OPTIMIZATION FINAL] GPU HARDWARE ACCELERATION --- */
.leaflet-map-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane,
.leaflet-proxy,
.lw-marker {
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
}

#lw-leaflet-map {
    contain: strict;
    isolation: isolate;
}
/* 
 * Lightwinner Optimized Main CSS (Phase 3.1)
 * Extracted from index.html inline styles.
 * 
 * Contains:
 * 1. Mobile UI Overrides
 * 2. Nuclear Layout Fix
 * 3. Global Video Player Stage
 * 4. CCT Overlay
 * 5. Desktop Safety Patch
 * 6. Audio Onboarding Modal
 */

/* --- CONSOLIDATED INLINE STYLES (Phase 2 Clean) --- */
/* 1. Mobile UI Overrides */
@media (max-width: 1024px) {
    #app-container {
        border: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        width: 100% !important;
    }

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

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

    body:has(#onboarding-overlay[style*="block"]) #mobile-inquiry-bar,
    body:has(#onboarding-overlay[style*="block"]) #global-navbar,
    body:has(#onboarding-overlay[style*="block"]) .mobile-menu-toggle,
    body:has(#onboarding-overlay:not([style*="none"])) #mobile-inquiry-bar,
    body:has(#onboarding-overlay:not([style*="none"])) #global-navbar,
    body:has(#onboarding-overlay:not([style*="none"])) .mobile-menu-toggle,
    body.onboarding-active #global-navbar,
    body.onboarding-active .mobile-menu-toggle {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* 2. Nuclear Layout Fix */
#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 {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 5;
}

#global-player-stage {
    z-index: 10 !important;
    background: rgba(0, 0, 0, 0.3) !important;
    display: none;
}

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

.video-wrapper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 3. Global Video Player Stage */
#global-player-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.stage-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

#lw-stage-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

#global-player-stage.playing {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
}

#global-player-stage.floating {
    position: fixed !important;
    top: auto !important;
    left: auto !important;
    bottom: 30px !important;
    right: 30px !important;
    transform: none !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;
}

#global-player-stage.floating .vid-controls-bar {
    padding: 5px 8px;
    gap: 5px;
    bottom: 0;
    justify-content: space-between;
}

#global-player-stage.floating .vid-time,
#global-player-stage.floating .vid-vol-container {
    display: none !important;
}

#global-player-stage.floating .vid-btn {
    font-size: 14px;
    padding: 4px;
}

#global-player-stage.floating .vid-progress-container {
    height: 4px;
    margin: 0 5px;
}

#global-player-stage.floating .play-trigger {
    display: none !important;
}

#global-player-stage.floating .vid-close-btn {
    top: -12px;
    right: -12px;
    background: red;
    border: 2px solid white;
    z-index: 999999;
}

.vid-controls-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
}

#global-player-stage:hover .vid-controls-bar,
#global-player-stage.paused .vid-controls-bar {
    opacity: 1;
}

.vid-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.vid-btn:hover {
    opacity: 1;
    color: var(--accent-color);
}

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

.vid-progress-container:hover .vid-progress-fill::after {
    display: block;
}

.vid-progress-fill {
    height: 100%;
    background: var(--accent-color);
    width: 0;
    border-radius: 3px;
    position: relative;
}

.vid-progress-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: -3px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    display: none;
}

.vid-time {
    font-size: 0.8rem;
    color: #ddd;
    font-family: monospace;
    min-width: 80px;
    text-align: center;
}

.vid-vol-container {
    position: relative;
    display: flex;
    align-items: center;
}

.vid-vol-slider {
    width: 0;
    overflow: hidden;
    transition: width 0.3s;
    margin-left: 5px;
}

.vid-vol-container:hover .vid-vol-slider {
    width: 60px;
}

.vid-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.vid-close-btn:hover {
    background: rgba(255, 0, 0, 0.7);
    border-color: red;
}

.video-wrapper .video-overlay {
    pointer-events: none;
}

.video-wrapper .video-overlay>* {
    pointer-events: auto;
}

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

/* 4. CCT Overlay */
#cct-overlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9000;
    mix-blend-mode: overlay;
    background-color: transparent !important;
    transition: none;
}

/* 5. Desktop Safety Patch */
@media (min-width: 1025px) {

    .quick-access-grid,
    .mobile-menu-toggle,
    .mobile-nav,
    .mobile-nav-overlay,
    .scroll-prompt,
    #mobile-inquiry-bar {
        display: none !important;
    }
}

/* --- RESCUED BLOCK 1 CONTENT (Audio Modal) --- */
#sound-prompt-modal .lw-modal-backdrop {
    background: transparent !important;
    backdrop-filter: none !important;
}

#sound-prompt-modal .lw-modal-content {
    background: rgba(25, 30, 40, 0.8) !important;
    backdrop-filter: blur(50px) !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9) !important;
    padding: 50px 40px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

#sound-prompt-modal h3 {
    font-size: 2.2rem !important;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) !important;
    z-index: 2;
    position: relative;
}

#btn-enable-sound {
    padding: 14px 32px !important;
    font-size: 0.8rem !important;
    white-space: nowrap !important;
    min-width: 200px !important;
    letter-spacing: 0.5px !important;
}

#btn-keep-silent {
    padding: 12px 25px !important;
    font-size: 0.9rem !important;
    white-space: nowrap !important;
    min-width: 200px !important;
}

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

    #sound-prompt-modal h3 {
        font-size: 1.25rem !important;
        margin-bottom: 15px !important;
    }

    #sound-prompt-modal p {
        font-size: 0.85rem !important;
        margin-bottom: 25px !important;
        opacity: 0.8 !important;
    }

    #sound-prompt-modal .modal-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
        margin-top: 10px !important;
    }

    #btn-enable-sound {
        width: 100% !important;
        max-width: 260px !important;
        height: 44px !important;
        padding: 0 20px !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px !important;
        background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%) !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 50px !important;
        box-shadow: 0 4px 15px rgba(58, 123, 213, 0.4) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: transform 0.2s ease !important;
    }

    #btn-keep-silent {
        width: 100% !important;
        max-width: 260px !important;
        height: 44px !important;
        font-size: 0.85rem !important;
        color: rgba(255, 255, 255, 0.7) !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-radius: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

#lw-log-modal .modal-split-layout::after {
    display: none !important;
}
