:root {
            --bg-deep: #05050a;
            --gradient-purple: rgba(106, 36, 227, 0.4);
            --gradient-blue: rgba(26, 115, 232, 0.4);
            --accent-color: #1a73e8; 
            --glass-bg: rgba(255, 255, 255, 0.03);
            --glass-border: rgba(255, 255, 255, 0.08);
            --inner-card: rgba(255, 255, 255, 0.02);
            --text-main: #ffffff;
            --text-muted: rgba(255, 255, 255, 0.5);
            --banner-url: url('https://pbs.twimg.com/profile_banners/1690521306796564481/1753236331/1500x500');
            --star-svg: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M50 80C50 88 49 90 45 90C49 90 50 92 50 100C50 92 51 90 55 90C51 90 50 88 50 80Z'/%3E%3C/svg%3E");
            --star-svg-sm: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M50 88C50 92 49.5 93 48 93C49.5 93 50 94 50 98C50 94 50.5 93 52 93C50.5 93 50 92 50 88Z'/%3E%3C/svg%3E");
        }
        
        /* --- ASSET PREVIEW MODAL --- */
        .asset-modal {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.2); 
            backdrop-filter: blur(4px); 
            -webkit-backdrop-filter: blur(4px);
            z-index: 99999;
            display: none;
            align-items: center;
            justify-content: center;
            /* 1. Ensure the background has some transparency so the blur is visible */
            background: rgba(5, 5, 10, 0.5); 

            /* 2. This is the magic line for the window itself to blur what's behind it */
            backdrop-filter: blur(15px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);

            /* 3. Force it to sit above everything else */
            z-index: 9999; 
        }

        .asset-modal.active { display: flex; }

        .modal-glass-content {
            position: relative;
            width: 90vw; 
            max-width: 2000px;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(45px); 
            -webkit-backdrop-filter: blur(45px);
            border: 1px solid transparent;
            border-radius: 24px; 
            padding: 40px; 
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header-actions {
            display: flex;
            gap: 12px;
        }

        .modal-square-title {
            background: rgba(255, 255, 255, 0.05);
            padding: 10px 20px;
            border-radius: 12px;
            border: 1px solid transparent;
            color: #ffffff;
            font-weight: 700;
            font-size: 14px;
        }

        .modal-action-square {
            background: color-mix(in srgb, var(--accent-color) 15%, transparent);
            width: 42px;
            height: 42px;
            border-radius: 12px;
            border: 1px solid transparent;
            color: var(--accent-color);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: 0.2s;
        }

        .modal-close-square {
            background: rgba(232, 80, 80, 0.15);
            width: 42px;
            height: 42px;
            border-radius: 12px;
            border: 1px solid transparent;
            color: rgb(232, 80, 80);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: 0.2s;
        }

        .modal-action-square:hover { background: color-mix(in srgb, var(--accent-color) 30%, transparent); }
        .modal-close-square:hover { background: rgba(215, 60, 60, 0.28); }

        #enlargedAsset {
            width: 100%;
            height: auto;
            max-height: 65vh;
            object-fit: contain;
            background: transparent;
            border-radius: 12px;
        }
        /* --- SETTINGS SYSTEM --- */
        body.disable-animations * { animation: none !important; transition: none !important; }
        
        /* Fix duplication and layout for static mode */
        body.disable-animations .logo-track { 
            display: flex !important; 
            flex-wrap: wrap !important; /* Allows logos to stack vertically */
            justify-content: center !important;
            gap: 30px !important; 
            width: 100% !important; 
            height: auto !important; /* Essential to prevent clipping */
            animation: none !important; 
            transform: none !important;
            padding: 20px 0 !important;
        }

        body.disable-animations .carousel-wrapper { 
            -webkit-mask-image: none !important; 
            height: auto !important; /* Allow wrapper to expand with content */
            overflow: visible !important; 
        }
        body.disable-animations .logo-item img {
            transform: none !important;
            filter: brightness(0) invert(1) drop-shadow(0 0 0 transparent) !important;
            opacity: 0.6;
            color: var(--accent-color); /* Fallback for some browsers */
        }
        body.disable-animations .logo-track .logo-item.duplicate { display: none !important; }
        
        body.disable-animations .floating-window:hover, 
        body.disable-animations .portal-card:hover { transform: none !important; }
        body.disable-animations .discord-notice:hover { transform: none !important; }
        body.disable-animations::before, body.disable-animations::after { animation: none !important; }

        /* ===== THEME SYSTEM (Glass / Light / Dark) ===== */

        /* --- THEME PICKER CARD --- */
        .theme-picker-card {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 22px;
            background: var(--glass-bg);
            backdrop-filter: blur(35px); -webkit-backdrop-filter: blur(35px);
            border: 1px solid var(--glass-border);
            border-radius: 28px;
            width: 100%;
            box-shadow: 0 15px 30px rgba(0,0,0,0.2);
        }
        .theme-picker-info { display: flex; align-items: center; gap: 18px; }
        .theme-options { display: flex; gap: 12px; }
        .theme-option {
            display: flex; flex-direction: column; align-items: center; gap: 8px;
            cursor: pointer;
        }
        .theme-preview {
            width: 72px; height: 52px;
            border-radius: 14px;
            border: 2px solid transparent;
            overflow: hidden; position: relative;
            transition: border-color 0.2s, transform 0.15s;
        }
        .theme-option:hover .theme-preview { transform: translateY(-2px); }
        .theme-option.active .theme-preview { border-color: var(--accent-color); }
        .theme-preview-inner {
            width: 100%; height: 100%;
            display: flex; flex-direction: column;
        }
        /* Glass preview — translucent cards over space backdrop */
        .theme-preview.glass-prev { background: linear-gradient(135deg, #06060f 0%, #120d2e 50%, #06060f 100%); }
        .theme-preview.glass-prev .prev-topbar { height: 14px; background: rgba(255,255,255,0.10); border-bottom: 1px solid rgba(255,255,255,0.15); }
        .theme-preview.glass-prev .prev-card { margin: 5px 6px; height: 28px; border-radius: 7px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); }
        /* Light preview */
        .theme-preview.light-prev .theme-preview-inner { background: #f0f2f8; }
        .theme-preview.light-prev .prev-topbar { height: 14px; background: rgba(0,0,0,0.04); }
        .theme-preview.light-prev .prev-card { margin: 5px 6px; height: 28px; border-radius: 7px; background: rgba(255,255,255,0.85); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
        /* Dark preview — solid, no glass */
        .theme-preview.dark-prev .theme-preview-inner { background: #0d0d18; }
        .theme-preview.dark-prev .prev-topbar { height: 14px; background: #111116; }
        .theme-preview.dark-prev .prev-card { margin: 5px 6px; height: 28px; border-radius: 7px; background: #18181f; }

        .theme-label {
            font-size: 0.78rem; font-weight: 600; color: var(--text-muted);
            transition: color 0.2s;
        }
        .theme-option.active .theme-label { color: var(--accent-color); }
        .theme-radio {
            width: 16px; height: 16px; border-radius: 50%;
            border: 2px solid rgba(255,255,255,0.2);
            display: flex; align-items: center; justify-content: center;
            transition: border-color 0.2s;
        }
        .theme-option.active .theme-radio { border-color: var(--accent-color); }
        .theme-radio-dot {
            width: 8px; height: 8px; border-radius: 50%;
            background: var(--accent-color);
            opacity: 0; transform: scale(0);
            transition: opacity 0.2s, transform 0.2s;
        }
        .theme-option.active .theme-radio-dot { opacity: 1; transform: scale(1); }

        @media (max-width: 768px) {
            .theme-picker-card { flex-direction: column; align-items: flex-start; gap: 20px; }
            .theme-preview { width: 60px; height: 44px; }
        }

        /* ===== GLASS THEME (default — current dark with blur/glass) ===== */
        /* This is the base :root state — no extra classes needed */

        /* Glass: remove ALL outlines/borders on every card and UI element */
        body:not(.light-mode):not(.dark-mode) .glass-card,
        body:not(.light-mode):not(.dark-mode) .sidebar,
        body:not(.light-mode):not(.dark-mode) .floating-window,
        body:not(.light-mode):not(.dark-mode) .settings-btn-container,
        body:not(.light-mode):not(.dark-mode) .portal-card,
        body:not(.light-mode):not(.dark-mode) .setting-card,
        body:not(.light-mode):not(.dark-mode) .theme-picker-card,
        body:not(.light-mode):not(.dark-mode) .driver-item,
        body:not(.light-mode):not(.dark-mode) .component-card,
        body:not(.light-mode):not(.dark-mode) .asset-btn,
        body:not(.light-mode):not(.dark-mode) .post-card,
        body:not(.light-mode):not(.dark-mode) .modal-glass-content,
        body:not(.light-mode):not(.dark-mode) .backdrop-trigger,
        body:not(.light-mode):not(.dark-mode) .backdrop-dropdown,
        body:not(.light-mode):not(.dark-mode) .page-hero-icon,
        body:not(.light-mode):not(.dark-mode) .page-hero-tag { border-color: transparent !important; }

        /* Modal header buttons — subtle transparent style matching Settings */
        .modal-square-title { background: rgba(255,255,255,0.05); border: 1px solid transparent; color: #ffffff; }
        .modal-action-square { background: color-mix(in srgb, var(--accent-color) 15%, transparent); border: 1px solid transparent; color: var(--accent-color); }
        .modal-close-square { background: rgba(232,80,80,0.15); border: 1px solid transparent; color: rgb(232,80,80); }
        .modal-action-square:hover { background: color-mix(in srgb, var(--accent-color) 30%, transparent); }
        .modal-close-square:hover  { background: rgba(215,60,60,0.28); color: rgb(232,80,80); }

        /* ===== LIGHT THEME ===== */
        body.light-mode {
            --bg-deep: #f0f2f8;
            --gradient-purple: rgba(106, 36, 227, 0.10);
            --gradient-blue: rgba(26, 115, 232, 0.10);
            --glass-bg: rgba(255, 255, 255, 0.03); /* unused in light — overridden below */
            --glass-border: rgba(0, 0, 0, 0.09);
            --inner-card: rgba(255, 255, 255, 0.65);
            --text-main: #0d0d1a;
            --text-muted: rgba(0, 0, 0, 0.42);
            --star-svg: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23aaa' d='M50 80C50 88 49 90 45 90C49 90 50 92 50 100C50 92 51 90 55 90C51 90 50 88 50 80Z'/%3E%3C/svg%3E");
            --star-svg-sm: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23aaa' d='M50 88C50 92 49.5 93 48 93C49.5 93 50 94 50 98C50 94 50.5 93 52 93C50.5 93 50 92 50 88Z'/%3E%3C/svg%3E");
        }
        body.light-mode::before { opacity: 0.04; }
        body.light-mode::after  { opacity: 0.02; }

        /* Light: solid white cards, glass OFF, no borders */
        body.light-mode .glass-card,
        body.light-mode .sidebar,
        body.light-mode .floating-window,
        body.light-mode .settings-btn-container,
        body.light-mode .portal-card,
        body.light-mode .setting-card,
        body.light-mode .theme-picker-card {
            backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
            background: #ffffff !important;
            border-color: transparent !important;
            box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 8px 28px rgba(0,0,0,0.05) !important;
        }
        /* Banner (profile header) — keep a visible backdrop in light mode */
        body.light-mode header.glass-card {
            background: #ffffff !important;
            backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
            border-color: transparent !important;
            box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 8px 28px rgba(0,0,0,0.05) !important;
        }
        body.light-mode .nav-icon { color: rgba(0,0,0,0.4); }
        body.light-mode .nav-icon span { color: #000000 !important; }
        body.light-mode .nav-icon.active { color: var(--accent-color); }
        body.light-mode .nav-icon.active span { color: var(--accent-color) !important; }
        /* Section labels (e.g. "Desktop Specs", "Display") must stay white on Space/Circuit dark backdrops */
        body.light-mode.space-bg .section-label,
        body.light-mode.circuit-bg .section-label { color: rgba(255,255,255,0.45) !important; }
        body.light-mode .icon-box { background: rgba(0,0,0,0.05); color: var(--accent-color); border-color: transparent; }
        body.light-mode .slider { background-color: rgba(0,0,0,0.12); }
        body.light-mode .slider:before { background-color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.18); }
        body.light-mode .section-label { color: rgba(0,0,0,0.32); }
        body.light-mode .dropdown-content { background: rgba(0,0,0,0.025); }
        body.light-mode .experiment-item { border-bottom-color: rgba(0,0,0,0.05); }
        body.light-mode .prev-tech-item { border-bottom-color: rgba(0,0,0,0.05); color: rgba(0,0,0,0.5); }
        body.light-mode .post-text { color: rgba(0,0,0,0.82); }
        body.light-mode .post-card { backdrop-filter: none !important; background: #ffffff !important; border-color: transparent !important; box-shadow: 0 2px 10px rgba(0,0,0,0.07) !important; }
        /* Reset button — solid in light/dark mode */
        body.light-mode button[onclick="resetAllSettings()"],
        body.dark-mode  button[onclick="resetAllSettings()"] { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: rgb(232,80,80) !important; border-color: transparent !important; color: #ffffff !important; }
        body.light-mode button[onclick="resetAllSettings()"]:hover,
        body.dark-mode  button[onclick="resetAllSettings()"]:hover { background: rgb(215,60,60) !important; }
        /* Language buttons — solid in light/dark mode */
        body.light-mode #lang-en-us:not(.lang-btn-active), body.light-mode #lang-en-gb:not(.lang-btn-active) { background: rgba(0,0,0,0.06) !important; border-color: transparent !important; }
        body.dark-mode  #lang-en-us:not(.lang-btn-active), body.dark-mode  #lang-en-gb:not(.lang-btn-active) { background: #1a1a22 !important; border-color: transparent !important; }
        /* Backdrop selected option — solid accent in no-glass modes */
        body.light-mode .backdrop-option.selected,
        body.dark-mode  .backdrop-option.selected { background: var(--accent-color) !important; border-color: var(--accent-color) !important; }
        body.light-mode .backdrop-option.selected .backdrop-option-name,
        body.dark-mode  .backdrop-option.selected .backdrop-option-name { color: #fff !important; }
        body.light-mode .backdrop-option.selected .backdrop-option-desc,
        body.dark-mode  .backdrop-option.selected .backdrop-option-desc { color: rgba(255,255,255,0.7) !important; }
        body.light-mode .color-swatch[style*="#ffffff"] { border: 2px solid rgba(0,0,0,0.15) !important; }
        body.light-mode .modal-glass-content { backdrop-filter: none !important; background: #f5f6fa !important; border-color: transparent !important; box-shadow: 0 8px 40px rgba(0,0,0,0.12) !important; }
        body.light-mode .modal-square-title { background: rgba(0,0,0,0.05); border-color: transparent; color: #0d0d1a; }
        body.light-mode .modal-action-square { background: color-mix(in srgb, var(--accent-color) 15%, transparent); border-color: transparent; color: var(--accent-color); }
        body.light-mode .modal-close-square { background: rgba(232,80,80,0.15); border-color: transparent; color: rgb(232,80,80); }
        body.light-mode .backdrop-trigger { background: rgba(0,0,0,0.08); border-color: transparent; color: var(--text-main); }
        body.light-mode .backdrop-trigger-label { color: var(--text-main); }
        body.light-mode .backdrop-dropdown { backdrop-filter: none !important; background: #f0f2f8; border-color: transparent; box-shadow: 0 8px 30px rgba(0,0,0,0.10); }
        body.light-mode .backdrop-option-name { color: var(--text-main); }
        body.light-mode .backdrop-option:hover { background: rgba(0,0,0,0.04); }
        body.light-mode .driver-category { color: rgba(0,0,0,0.35); }
        body.light-mode .driver-specs { color: rgba(0,0,0,0.42); }
        body.light-mode .header-text h1 { color: #0d0d1a; }
        body.light-mode footer { color: rgba(0,0,0,0.35); }
        body.light-mode kbd { background: rgba(0,0,0,0.07) !important; border-color: transparent !important; color: #0d0d1a !important; }
        body.light-mode .theme-radio { border-color: rgba(0,0,0,0.18); }
        body.light-mode .component-card { background: #f8f9fc; border-color: transparent; }
        body.light-mode .driver-item { background: #f8f9fc; border-color: transparent; }
        body.light-mode .toast-banner { color: #fff; }
        body.light-mode .glass-border, body.light-mode [style*="glass-border"] { border-color: transparent !important; }
        /* Social Presence — portal cards readable in light mode */
        body.light-mode .portal-card { color: var(--text-main) !important; }
        body.light-mode .portal-card span { color: var(--text-main) !important; }
        body.light-mode .portal-card .portal-icon { background-color: var(--text-muted); }
        body.light-mode .portal-card:hover { color: var(--accent-color) !important; background: rgba(0,0,0,0.04); }
        body.light-mode .portal-card:hover span { color: var(--accent-color) !important; }
        body.light-mode .portal-card:hover .portal-icon { background-color: var(--accent-color); }

        /* ===== DARK THEME (solid, no glass, no borders) ===== */
        body.dark-mode {
            --bg-deep: #000000;
            --gradient-purple: rgba(0, 0, 0, 0.0);
            --gradient-blue: rgba(0, 0, 0, 0.0);
            --glass-bg: rgba(255, 255, 255, 0.03);
            --glass-border: rgba(255, 255, 255, 0.08);
            --inner-card: rgba(255, 255, 255, 0.02);
            --text-main: #e8e8f0;
            --text-muted: rgba(232, 232, 240, 0.45);
        }
        body.dark-mode::before { opacity: 0 !important; }
        body.dark-mode::after  { opacity: 0 !important; }

        /* Dark mode: keep dark body background, don't let theme remove gradients */
        body.dark-mode.circuit-bg,
        body.dark-mode.space-bg {
            --bg-deep: #05050a !important;
            --gradient-purple: rgba(106, 36, 227, 0.4) !important;
            --gradient-blue: rgba(26, 115, 232, 0.4) !important;
            background-color: #05050a !important;
        }
        body.dark-mode.circuit-bg::before, body.dark-mode.circuit-bg::after,
        body.dark-mode.space-bg::before,   body.dark-mode.space-bg::after { display: none !important; }
        body.dark-mode .glass-card,
        body.dark-mode .sidebar,
        body.dark-mode .floating-window,
        body.dark-mode .settings-btn-container,
        body.dark-mode .portal-card,
        body.dark-mode .setting-card,
        body.dark-mode .theme-picker-card {
            backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
            background: #111116 !important;
            border-color: transparent !important;
            box-shadow: none !important;
        }
        body.dark-mode .post-card { backdrop-filter: none !important; background: #111116 !important; border-color: transparent !important; box-shadow: none !important; }
        body.dark-mode .modal-glass-content { backdrop-filter: none !important; background: #111116 !important; border-color: transparent !important; }
        body.dark-mode .modal-square-title { background: #1a1a22; border-color: transparent; color: #ffffff; }
        body.dark-mode .modal-action-square { background: color-mix(in srgb, var(--accent-color) 20%, #1a1a22); border-color: transparent; color: var(--accent-color); }
        body.dark-mode .modal-close-square { background: rgba(232,80,80,0.18); border-color: transparent; color: rgb(232,80,80); }
        body.dark-mode .backdrop-trigger { background: rgba(255,255,255,0.1); border-color: transparent; }
        body.dark-mode .backdrop-dropdown { backdrop-filter: none !important; background: #111116; border-color: transparent; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
        body.dark-mode .dropdown-content { background: rgba(0,0,0,0.2); }
        body.dark-mode .experiment-item { border-bottom-color: rgba(255,255,255,0.04); }
        body.dark-mode .component-card { background: #18181f; border-color: transparent; }
        body.dark-mode .driver-item { background: #18181f; border-color: transparent; }
        body.dark-mode .icon-box { background: #1a1a22; border-color: transparent; }

        /* ===== SOLID BUTTON — language, zen, used anywhere a button must be solid not glassy ===== */
        /* Default (Glass): inactive = same shade as off-toggle */
        .solid-btn {
            padding: 7px 14px;
            border-radius: 10px;
            border: 1px solid transparent;
            background: rgba(255, 255, 255, 0.1);
            color: var(--text-main);
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
            transition: background 0.2s, border-color 0.2s;
        }
        .solid-btn:hover { background: rgba(255, 255, 255, 0.16); }
        /* Zen enter button has a touch more padding */
        #zen-enter-btn.solid-btn { padding: 8px 20px; border-radius: 12px; }
        /* Light mode — match light off-toggle shade */
        body.light-mode .solid-btn { background: rgba(0,0,0,0.08); color: var(--text-main); }
        body.light-mode .solid-btn:hover { background: rgba(0,0,0,0.13); }
        /* Dark mode */
        body.dark-mode .solid-btn { background: rgba(255,255,255,0.1); color: var(--text-main); }
        body.dark-mode .solid-btn:hover { background: rgba(255,255,255,0.16); }
        /* Active (selected) language button — solid accent in ALL themes */
        .lang-btn-active { background: var(--accent-color) !important; color: #fff !important; border-color: var(--accent-color) !important; }

        /* Glass theme — backdrop trigger uses off-toggle shade */
        body:not(.light-mode):not(.dark-mode) .backdrop-trigger {
            background: rgba(255, 255, 255, 0.1);
            border-color: transparent;
        }
        body:not(.light-mode):not(.dark-mode) .backdrop-trigger:hover {
            background: rgba(255, 255, 255, 0.16);
        }
        body:not(.light-mode):not(.dark-mode) .backdrop-dropdown {
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            background: #111116;
            border-color: transparent;
            box-shadow: 0 8px 24px rgba(0,0,0,0.5);
        }

        /* ===== BACKDROP PROTECTION — Circuit & Space ignore theme background overrides ===== */
        /* When circuit or space backdrop is active, keep the deep dark background regardless of theme */
        body.light-mode.circuit-bg,
        body.light-mode.space-bg {
            --bg-deep: #05050a !important;
            --gradient-purple: rgba(106, 36, 227, 0.4) !important;
            --gradient-blue: rgba(26, 115, 232, 0.4) !important;
            background-color: #05050a !important;
        }
        /* Suppress the light-mode star pseudo-elements when circuit/space is running (canvas handles it) */
        body.light-mode.circuit-bg::before, body.light-mode.circuit-bg::after,
        body.light-mode.space-bg::before,   body.light-mode.space-bg::after { display: none !important; }

        /* disable-glass (legacy — kept for glass effect toggle in accessibility) */
        body.disable-glass .glass-card, 
        body.disable-glass .sidebar, 
        body.disable-glass .floating-window,
        body.disable-glass .settings-btn-container,
        body.disable-glass .portal-card,
        body.disable-glass .setting-card { 
            backdrop-filter: none !important; -webkit-backdrop-filter: none !important; 
            background: #121217 !important; border-color: rgba(255,255,255,0.1) !important;
        }
        body.disable-glass .asset-modal {
            backdrop-filter: blur(4px) !important;
            -webkit-backdrop-filter: blur(4px) !important;
            background: rgba(0, 0, 0, 0.4) !important;
        }
        body.disable-glass .modal-glass-content {
            backdrop-filter: none !important; 
            -webkit-backdrop-filter: none !important; 
            background: #121217 !important; 
            border-color: rgba(255,255,255,0.1) !important;
        }

        /* Blur off — removes backdrop-filter but keeps glass transparency */
        body.no-glass-blur .glass-card,
        body.no-glass-blur .sidebar,
        body.no-glass-blur .floating-window,
        body.no-glass-blur .settings-btn-container,
        body.no-glass-blur .portal-card,
        body.no-glass-blur .setting-card,
        body.no-glass-blur .theme-picker-card,
        body.no-glass-blur .modal-glass-content,
        body.no-glass-blur .backdrop-dropdown,
        body.no-glass-blur .asset-modal {
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
        }

        body.perf-mode { background-image: none !important; background-color: #000 !important; }
        body.perf-mode::before, body.perf-mode::after { display: none !important; }
        /* Perf mode: grey out unavailable backdrop options and glass theme tile */
        .perf-disabled {
            opacity: 0.35 !important;
            pointer-events: none !important;
            filter: grayscale(1) !important;
        }
        
        body.hide-labels .nav-icon span { display: none !important; }



        #anilist-watching::-webkit-scrollbar { display: none; }
        #anilist-watching { scrollbar-width: none; -ms-overflow-style: none; }
        #anime-scrollbar-track {
            height: 4px; margin: 0 14px 10px; border-radius: 99px;
            background: rgba(255,255,255,0.07); position: relative; cursor: pointer;
        }
        #anime-scrollbar-thumb {
            position: absolute; top: 0; height: 100%; border-radius: 99px;
            background: rgba(255,255,255,0.18); transition: background 0.2s; cursor: pointer;
        }
        #anime-scrollbar-thumb:hover { background: rgba(255,255,255,0.32); }

        /* ===== ANIME SECTION — MOBILE POSTER GRID ===== */
        @media (max-width: 600px) {

            /* Favourites: switch from 3-col row layout to a 3-col poster grid */
            #fave-anime-grid {
                grid-template-columns: repeat(3, 1fr) !important;
                gap: 10px !important;
                padding: 14px !important;
            }
            /* Each fave card: poster stacked above text */
            #fave-anime-grid a {
                flex-direction: column !important;
                align-items: center !important;
                gap: 8px !important;
                padding: 0 0 10px !important;
                border-radius: 10px !important;
                overflow: hidden !important;
                height: auto !important;
                text-align: center !important;
            }
            /* Poster image — full-width tall cover */
            #fave-anime-grid a > div:first-child {
                width: 100% !important;
                height: auto !important;
                aspect-ratio: 2/3 !important;
                border-radius: 8px 8px 0 0 !important;
            }
            #fave-anime-grid a > div:first-child img {
                width: 100% !important;
                height: 100% !important;
            }
            /* Text block below poster */
            #fave-anime-grid a > div:last-child {
                width: 100% !important;
                padding: 0 6px !important;
                align-items: center !important;
                min-width: 0 !important;
            }
            #fave-anime-grid a > div:last-child > div:first-child {
                white-space: normal !important;
                text-align: center !important;
                font-size: 0.7rem !important;
                line-height: 1.3 !important;
                -webkit-line-clamp: 2 !important;
                -webkit-box-orient: vertical !important;
                display: -webkit-box !important;
                overflow: hidden !important;
                text-overflow: unset !important;
            }
            #fave-anime-grid a > div:last-child > div:last-child {
                font-size: 0.65rem !important;
                text-align: center !important;
            }

            /* Watching: horizontal scroll carousel, poster + text, same scale as faves */
            #anilist-watching-wrap {
                overflow: hidden !important;
            }
            #anilist-watching {
                display: flex !important;
                flex-direction: row !important;
                overflow-x: auto !important;
                gap: 10px !important;
                padding: 14px 14px 4px !important;
            }
            /* Keep the custom scrollbar visible */
            #anime-scrollbar-track { display: block !important; }

            /* Each watching card: fixed poster width matching ~1/3 viewport, text below */
            #anilist-watching a {
                flex: 0 0 28vw !important;
                max-width: 110px !important;
                flex-direction: column !important;
                align-items: center !important;
                gap: 6px !important;
                padding: 0 0 8px !important;
                border-radius: 10px !important;
                overflow: hidden !important;
                min-width: 0 !important;
                text-align: center !important;
                box-sizing: border-box !important;
                width: auto !important;
            }
            /* Poster — same 2:3 ratio as faves */
            #anilist-watching a > div:first-child {
                width: 100% !important;
                height: auto !important;
                aspect-ratio: 2/3 !important;
                border-radius: 8px 8px 0 0 !important;
            }
            #anilist-watching a > div:first-child img {
                width: 100% !important;
                height: 100% !important;
            }
            /* Text below poster */
            #anilist-watching a > div:last-child {
                width: 100% !important;
                padding: 0 5px !important;
                align-items: center !important;
                min-width: 0 !important;
            }
            #anilist-watching a > div:last-child > div:first-child {
                white-space: normal !important;
                text-align: center !important;
                font-size: 0.7rem !important;
                line-height: 1.3 !important;
                display: -webkit-box !important;
                -webkit-line-clamp: 2 !important;
                -webkit-box-orient: vertical !important;
                overflow: hidden !important;
                text-overflow: unset !important;
            }
            #anilist-watching a > div:last-child > div:last-child {
                font-size: 0.65rem !important;
                text-align: center !important;
                white-space: normal !important;
            }
        }

        /* ===== SOCIAL PILLS ===== */
        .social-pill {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 14px 8px 8px;
            border-radius: 50px;
            background: var(--glass-bg);
            border: 1px solid transparent;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            text-decoration: none;
            color: var(--text-main);
            transition: background 0.2s, transform 0.15s;
        }
        .social-pill:hover {
            background: rgba(255,255,255,0.07);
            transform: translateY(-2px);
        }
        .social-pill-icon {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            background: color-mix(in srgb, var(--accent-color) 20%, transparent);
            color: var(--accent-color);
        }
        .social-pill-icon img { opacity: 0.9; }
        .social-pill-icon svg { fill: var(--accent-color); opacity: 0.9; }
        .social-pill-text {
            display: flex;
            flex-direction: column;
            gap: 1px;
        }
        .social-pill-name {
            font-size: 0.78rem;
            font-weight: 700;
            color: var(--text-main);
            line-height: 1;
        }
        .social-pill-handle {
            font-size: 0.68rem;
            font-weight: 500;
            color: var(--text-muted);
            line-height: 1;
        }
        body.light-mode .social-pill { background: color-mix(in srgb, var(--accent-color) 8%, #ffffff); box-shadow: 0 2px 10px rgba(0,0,0,0.07); }
        body.light-mode .social-pill:hover { background: color-mix(in srgb, var(--accent-color) 14%, #ffffff); }
        @media (max-width: 600px) {
            .social-pill { padding: 8px !important; gap: 0 !important; }
            .social-pill-text { display: none !important; }
        }
        @media (pointer: coarse) { body.custom-cursor-active, body.custom-cursor-active * { cursor: auto !important; } }
        @media (pointer: fine) {
        body.custom-cursor-active,
        body.custom-cursor-active * { cursor: none !important; }
        }

        #custom-cursor {
            position: fixed; pointer-events: none; z-index: 99980;
            display: none;
            transform: translate(0, 0);
            /* The hotspot is the top-left tip of the arrow — no centering offset needed */
            will-change: transform;
        }
        body.custom-cursor-active #custom-cursor { display: block; }

        #custom-cursor svg {
            filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6)) drop-shadow(0 0 10px color-mix(in srgb, var(--accent-color) 40%, transparent));
            transition: transform 0.1s ease;
        }
        /* Scale up slightly on clickable elements */
        body.custom-cursor-active.cursor-hover  #custom-cursor svg { transform: scale(1.12); }
        /* Press feedback */
        body.custom-cursor-active.cursor-clicking #custom-cursor svg { transform: scale(0.9); }



        
        .setting-card.disabled { opacity: 0.4; pointer-events: none; filter: grayscale(1); }



        * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Figtree', -apple-system, sans-serif; -webkit-tap-highlight-color: transparent; }

        body {
            background-color: var(--bg-deep);
            background-image: 
                radial-gradient(at 10% 10%, var(--gradient-purple) 0px, transparent 50%),
                radial-gradient(at 90% 90%, var(--gradient-blue) 0px, transparent 50%);
            background-attachment: fixed;
            color: var(--text-main);
            display: flex; flex-direction: column; align-items: center; padding: 60px 20px; min-height: 100vh;
            overflow-x: hidden;
        }

        body::before, body::after {
            content: ""; position: fixed; top: -10%; left: -10%; width: 120%; height: 120%;
            background-image: var(--star-svg); z-index: 0; pointer-events: none;
        }
        body::before { background-size: 413px 617px; opacity: 0.1; animation: twinkle-one 12s ease-in-out infinite alternate; }
        body::after { background-size: 337px 521px; opacity: 0.05; animation: twinkle-two 7s ease-in-out infinite alternate-reverse; }

        @keyframes twinkle-one { 0% { transform: translate(0, 0); opacity: 0.1; } 50% { opacity: 0.3; } 100% { transform: translate(2%, 1%); opacity: 0.15; } }
        @keyframes twinkle-two { 0% { transform: translate(0, 0); opacity: 0.05; } 50% { opacity: 0.25; } 100% { transform: translate(-1%, 2%); opacity: 0.05; } }

        /* Hide CSS stars when enhanced space bg or circuit bg is on */
        body.space-bg::before, body.space-bg::after,
        body.circuit-bg::before, body.circuit-bg::after,
        body.color-bg::before, body.color-bg::after,
        body.off-bg::before, body.off-bg::after { display: none; }

        /* Off backdrop: plain solid body colour, no gradient, no canvas */
        body.off-bg {
            background-image: none !important;
        }

        /* Color backdrop: solid accent-tinted gradient, no canvas */
        body.color-bg {
            background-image:
                radial-gradient(at 20% 20%, color-mix(in srgb, var(--accent-color) 35%, transparent) 0px, transparent 55%),
                radial-gradient(at 80% 80%, color-mix(in srgb, var(--accent-color) 20%, transparent) 0px, transparent 55%),
                radial-gradient(at 50% 50%, color-mix(in srgb, var(--accent-color) 10%, transparent) 0px, transparent 70%) !important;
        }



        /* Circuit bg: accent-tinted gradient (colours driven by JS via --circuit-grad-a/b) */
        body.circuit-bg {
            background-image:
                radial-gradient(at 15% 20%, var(--circuit-grad-a, rgba(26,115,232,0.30)) 0px, transparent 55%),
                radial-gradient(at 85% 80%, var(--circuit-grad-b, rgba(26,115,232,0.18)) 0px, transparent 55%),
                radial-gradient(at 50% 50%, var(--circuit-grad-c, rgba(26,115,232,0.08)) 0px, transparent 70%) !important;
        }
        /* === CIRCUIT BOARD BACKGROUND === */
        #circuit-canvas {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            z-index: 1; pointer-events: none; display: none; opacity: 0;
            transition: opacity 1.2s ease;
        }
        body.circuit-bg #circuit-canvas { display: block; }
        body.circuit-bg.circuit-canvas-visible #circuit-canvas { opacity: 1; }
        body.disable-animations #circuit-canvas { display: none !important; }

        /* === ENHANCED SPACE BACKGROUND === */
        #space-canvas {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            z-index: 0; pointer-events: none; display: none;
        }
        body.space-bg #space-canvas { display: block; }

        /* Nebula blobs */
        .nebula {
            position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
            filter: blur(80px); animation: nebula-drift 25s ease-in-out infinite alternate;
        }
        .nebula-1 { width: 600px; height: 400px; top: -10%; left: -15%; background: radial-gradient(ellipse, rgba(106,36,227,0.18) 0%, transparent 70%); animation-duration: 30s; }
        .nebula-2 { width: 500px; height: 500px; top: 20%; right: -10%; background: radial-gradient(ellipse, rgba(26,115,232,0.15) 0%, transparent 70%); animation-duration: 22s; animation-delay: -8s; }
        .nebula-3 { width: 700px; height: 350px; bottom: 0%; left: 20%; background: radial-gradient(ellipse, rgba(80,20,180,0.12) 0%, transparent 70%); animation-duration: 35s; animation-delay: -15s; }
        .nebula-4 { width: 400px; height: 400px; top: 50%; right: 20%; background: radial-gradient(ellipse, rgba(0,180,255,0.08) 0%, transparent 70%); animation-duration: 28s; animation-delay: -5s; }

        @keyframes nebula-drift {
            0%   { transform: translate(0,   0)   scale(1);    opacity: 1; }
            33%  { transform: translate(3%,  2%)  scale(1.05); opacity: 0.8; }
            66%  { transform: translate(-2%, 4%)  scale(0.97); opacity: 1; }
            100% { transform: translate(2%, -3%)  scale(1.03); opacity: 0.85; }
        }

        /* Aurora band */
        .aurora {
            position: fixed; left: -20%; width: 140%; height: 220px;
            pointer-events: none; z-index: 0; opacity: 0;
            background: linear-gradient(180deg, transparent 0%, rgba(80,36,227,0.07) 30%, rgba(26,115,232,0.1) 55%, rgba(0,200,180,0.06) 75%, transparent 100%);
            filter: blur(30px);
            animation: aurora-wave 18s ease-in-out infinite;
        }
        .aurora-1 { top: 15%; animation-delay: 0s; }
        .aurora-2 { top: 55%; animation-delay: -9s; animation-duration: 24s; }

        @keyframes aurora-wave {
            0%   { opacity: 0;    transform: translateX(-5%) skewX(-3deg); }
            20%  { opacity: 1; }
            50%  { opacity: 0.6;  transform: translateX(3%)  skewX(2deg); }
            80%  { opacity: 0.9; }
            100% { opacity: 0;    transform: translateX(-3%) skewX(-2deg); }
        }

        /* Hide nebula/aurora/canvas when in plain mode */
        body:not(.space-bg) .nebula,
        body:not(.space-bg) .aurora,
        body:not(.space-bg) .shooting-star { display: none; }

        /* Disable animations handles space elements too */
        body.disable-animations .nebula,
        body.disable-animations .aurora,
        body.disable-animations #space-canvas { animation: none !important; }

        /* Reduce motion: hide animated canvas + nebula/aurora, keep gradient */
        body.disable-animations.space-bg #space-canvas { display: none !important; }
        body.disable-animations.space-bg .nebula,
        body.disable-animations.space-bg .aurora { display: none !important; }
        /* Restore the CSS pseudo-element gradient (static, no animation) */
        body.disable-animations.space-bg::before,
        body.disable-animations.space-bg::after { display: block; animation: none !important; opacity: 0.08; }

        .sidebar-container {
            position: fixed; left: 30px; top: 50%; transform: translateY(-50%);
            display: flex; flex-direction: column; gap: 15px; z-index: 100;
        }

        .sidebar {
            display: flex; flex-direction: column; gap: 20px; padding: 20px 12px;
            background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
            border: 1px solid var(--glass-border); border-radius: 40px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }

        .settings-btn-container {
            width: 50px; height: 50px; border-radius: 50%;
            background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
            border: 1px solid var(--glass-border);
            display: flex; align-items: center; justify-content: center;
            cursor: pointer; transition: 0.3s; color: var(--text-muted);
            align-self: center;
        }
        .settings-btn-container:hover { color: var(--text-main); background: rgba(255,255,255,0.1); }
        .settings-btn-container.active { color: var(--accent-color); border-color: var(--accent-color); }

        .nav-icon { 
            color: var(--text-muted); cursor: pointer; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
            display: flex; flex-direction: column; align-items: center; gap: 4px;
        }
        .nav-icon span { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
        .nav-icon:hover { color: var(--text-main); }
        .nav-icon.active { color: var(--accent-color); }
        .nav-icon:active { transform: scale(0.9); }

        .page { 
            display: none; 
            width: 100%; 
            max-width: 850px; 
            flex-direction: column; 
            gap: 32px; 
            z-index: 1; 
        }
        .page.active { display: flex; }

        .glass-card {
            background: var(--glass-bg); backdrop-filter: blur(35px); -webkit-backdrop-filter: blur(35px);
            border: 1px solid var(--glass-border); border-radius: 35px; overflow: hidden;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5); width: 100%;
        }

        .concept-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; width: 100%; }
        .floating-window {
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 30px;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 0 20px rgba(255,255,255,0.02);
            display: flex; flex-direction: column;
        }
        .floating-window.full-width { grid-column: 1 / -1; }
        
        .kit-mini-banner {
            flex-direction: row; align-items: center; padding: 25px 40px; gap: 30px;
            background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, transparent 100%);
        }
        .kit-mini-banner img { width: 100px; height: 100px; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3)); flex-shrink: 0; }
        .kit-mini-banner .concept-meta { background: transparent; border: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
        
        .asset-actions { display: flex; gap: 12px; margin-top: 15px; }
        .asset-btn {
            padding: 8px 16px; border-radius: 10px; font-size: 0.8rem; font-weight: 700;
            text-decoration: none; transition: 0.2s; cursor: pointer; border: 1px solid rgba(255,255,255,0.1);
            display: flex; align-items: center; gap: 6px;
        }
        .btn-view { background: var(--accent-color); color: #fff; }
        .btn-view:hover { background: rgba(255,255,255,0.12); color: var(--accent-color); }
        .btn-figma { background: var(--accent-color); color: #ffffff; }
        .btn-figma:hover { background: rgba(255,255,255,0.12); color: var(--accent-color); }

        .concept-preview {
            width: 100%; height: 260px; position: relative;
            background: radial-gradient(circle at center, rgba(255,255,255,0.06) 0%, transparent 80%);
            display: flex; align-items: center; justify-content: center; padding: 20px;
        }
        .floating-window.full-width .concept-preview { height: 380px; }
        .concept-preview img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 15px 30px rgba(0,0,0,0.4)); }
        .concept-meta { padding: 20px 25px; background: rgba(0, 0, 0, 0.25); border-top: 1px solid rgba(255, 255, 255, 0.05); }
        .concept-meta h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; color: #fff; }
        .concept-meta p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }

        /* Light mode: match the dropdown dual-tone — lighter tint bar, dark text */
        body.light-mode .concept-meta {
            background: rgba(0, 0, 0, 0.04);
            border-top: 1px solid rgba(0, 0, 0, 0.06);
        }
        body.light-mode .kit-mini-banner .concept-meta {
            background: transparent !important;
            border-top: none !important;
        }
        body.light-mode .concept-meta h3 { color: var(--text-main); }
        body.light-mode .concept-meta p { color: var(--text-muted); }
        body.light-mode .floating-window { border-color: rgba(0,0,0,0.08) !important; }

        /* Dark mode: same approach — solid dark bar, white text */
        body.dark-mode .concept-meta {
            background: rgba(0, 0, 0, 0.35);
            border-top: 1px solid rgba(255, 255, 255, 0.04);
        }
        body.dark-mode .kit-mini-banner .concept-meta {
            background: transparent !important;
            border-top: none !important;
        }
        body.dark-mode .concept-meta h3 { color: #e8e8f0; }
        body.dark-mode .concept-meta p { color: rgba(232,232,240,0.45); }

        .banner-wrap {
            height: 280px; width: 100%; background-image: var(--banner-url); background-size: cover; background-position: center;
            -webkit-mask-image: linear-gradient(to bottom, black 15%, transparent 92%);
        }
        .profile-info { padding: 0 45px 45px 45px; display: flex; align-items: center; gap: 30px; margin-top: -95px; position: relative; }
        .pfp-container { width: 130px; height: 130px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.15); overflow: hidden; flex-shrink: 0; background: #000; }
        .pfp-container img { width: 100%; height: 100%; object-fit: cover; }
        .header-text h1 { font-size: 2.6rem; font-weight: 600; letter-spacing: -1.2px; }
        .header-text p {
            /* Mixes the accent color with transparency at a 50% weight */
            color: color-mix(in srgb, var(--accent-color), transparent 0%);
            
            font-size: 1.1rem;
            font-style: italic;
            margin-top: 8px;
            line-height: 1.2;
            
            /* Optional: subtle glow adjusted for the lower opacity */
            text-shadow: 0 0 10px color-mix(in srgb, var(--accent-color), transparent 80%);
            
            transition: color 0.3s ease;
        }

        .carousel-wrapper {
            overflow: hidden;
            padding: 20px 0;
            width: 100%;
            max-width: 100vw;
            box-sizing: border-box;
            mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
            -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
        }

        .logo-track { 
            display: flex; 
            align-items: center; 
            width: max-content; 
            gap: 30px; 
            animation: scroll 40s linear infinite;
            will-change: transform;
        }

        /* Container for the logo */
        .logo-item {
            width: 120px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            margin: 0 20px;
            /* We use overflow hidden to "clip" the shadow so it stays on the logo */
            overflow: hidden; 
        }

        .logo-item img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            
            /* 1. Turn logo black 2. Invert to white 3. Project accent color shadow */
            /* Then we move the image slightly so only the shadow is visible */
            filter: brightness(0) invert(1) drop-shadow(120px 0 0 var(--accent-color));
            transform: translateX(-120px);
            
            opacity: 1;
            transition: all 0.3s ease;
        }

        .logo-item:hover img {
            opacity: 1;
        }
        @keyframes scroll {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        .card-body { padding: 45px; }
        h2 { font-size: 1.6rem; margin-bottom: 20px; font-weight: 600; }

        .driver-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
        /* Center orphaned cards on the last row of the services grid */
        .services-grid { justify-items: stretch; }
        .services-grid .driver-item:nth-child(3n+1):last-child,
        .services-grid .driver-item:nth-child(3n+2):last-child {
            grid-column: 2 / 3;
        }
        .services-grid .driver-item:nth-child(4):nth-last-child(2) {
            grid-column: 1 / 2;
        }
        .services-grid .driver-item:nth-child(4):nth-last-child(2) ~ .driver-item {
            grid-column: 3 / 4;
        }
        .laptop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 24px; }
        .driver-item { padding: 28px; background: var(--inner-card); border: 1px solid var(--glass-border); border-radius: 28px; display: flex; align-items: center; gap: 18px; }
        .driver-item.full-width { grid-column: 1 / -1; }
        .icon-box { width: 48px; height: 48px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); display: flex; align-items: center; justify-content: center; color: var(--accent-color); flex-shrink: 0; }
        .driver-content { display: flex; flex-direction: column; min-width: 0; flex-grow: 1; }
        .driver-category { font-size: 0.7rem; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
        .driver-name { font-size: 1.1rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .driver-specs { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
        
        .pc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 0; }
        .component-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); padding: 22px; border-radius: 28px; display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
        .comp-label { font-size: 0.65rem; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
        .comp-name { font-size: 0.95rem; font-weight: 600; }

        .settings-list { display: flex; flex-direction: column; gap: 15px; width: 100%; }
        .setting-card { display: flex; align-items: center; justify-content: space-between; padding: 22px; background: var(--glass-bg); backdrop-filter: blur(35px); -webkit-backdrop-filter: blur(35px); border: 1px solid var(--glass-border); border-radius: 28px; width: 100%; box-shadow: 0 15px 30px rgba(0,0,0,0.2); }
        .setting-info { display: flex; align-items: center; gap: 18px; flex-grow: 1; min-width: 0; }
        .toggle-switch { position: relative; display: inline-block; width: 50px; height: 26px; flex-shrink: 0; }
        .toggle-switch input { opacity: 0; width: 0; height: 0; }
        .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255,255,255,0.1); transition: .4s; border-radius: 34px; }
        .slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
        input:checked + .slider { background-color: var(--accent-color); }
        input:checked + .slider:before { transform: translateX(24px); }
        /* ===== LOFI VOLUME SLIDER ===== */
        #ambient-lofi-volume {
            -webkit-appearance: none;
            appearance: none;
            height: 4px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.15);
            outline: none;
            cursor: pointer;
        }
        #ambient-lofi-volume::-webkit-slider-runnable-track {
            height: 4px;
            border-radius: 999px;
            background: linear-gradient(
                to right,
                var(--accent-color) 0%,
                var(--accent-color) var(--vol-pct, 30%),
                rgba(255,255,255,0.15) var(--vol-pct, 30%),
                rgba(255,255,255,0.15) 100%
            );
        }
        #ambient-lofi-volume::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: var(--accent-color);
            box-shadow: 0 2px 6px rgba(0,0,0,0.35);
            cursor: pointer;
            transition: transform 0.15s;
            margin-top: -5px;
        }
        #ambient-lofi-volume::-webkit-slider-thumb:hover {
            transform: scale(1.2);
        }
        #ambient-lofi-volume::-moz-range-track {
            height: 4px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.15);
        }
        #ambient-lofi-volume::-moz-range-progress {
            height: 4px;
            border-radius: 999px;
            background: var(--accent-color);
        }
        #ambient-lofi-volume::-moz-range-thumb {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            border: none;
            background: var(--accent-color);
            box-shadow: 0 2px 6px rgba(0,0,0,0.35);
            cursor: pointer;
            transition: transform 0.15s;
        }
        body.light-mode #ambient-lofi-volume::-webkit-slider-runnable-track {
            background: linear-gradient(
                to right,
                var(--accent-color) 0%,
                var(--accent-color) var(--vol-pct, 30%),
                rgba(0,0,0,0.12) var(--vol-pct, 30%),
                rgba(0,0,0,0.12) 100%
            );
        }
        body.light-mode #ambient-lofi-volume { background: rgba(0,0,0,0.12); }
        /* Suppress native cursor on slider when custom cursor is active */
        body.custom-cursor-active #ambient-lofi-volume { cursor: none !important; }
        body.custom-cursor-active #ambient-lofi-volume::-webkit-slider-thumb { cursor: none !important; }
        body.custom-cursor-active #ambient-lofi-volume::-moz-range-thumb { cursor: none !important; }

        .section-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); font-weight: 700; margin-bottom: -15px; margin-left: 10px; display: flex; align-items: center; gap: 7px; }
        .section-label svg { width: 13px; height: 13px; opacity: 0.7; flex-shrink: 0; }
        .kit-banner { flex-direction: row; text-align: left; gap: 40px; padding: 50px 60px; background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%); display: flex; align-items: center; }
        .kit-img { width: 160px; height: 160px; border-radius: 28px; object-fit: cover; box-shadow: 0 15px 40px rgba(0,0,0,0.4); }
        .figma-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 14px 28px; background: var(--accent-color); color: #ffffff; border-radius: 14px; font-weight: 700; font-size: 0.95rem; text-decoration: none; transition: 0.3s; }
        .figma-btn:hover { background: rgba(255,255,255,0.12); color: var(--accent-color); border-color: var(--accent-color); }
        
        .discord-notice { 
            display: flex; 
            flex-direction: row; 
            gap: 20px; 
            padding: 22px 30px; 
            border-radius: 28px; 
            border: 1px solid var(--accent-color);
            background: color-mix(in srgb, var(--accent-color), transparent 75%); 
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            justify-content: center; 
            align-items: center; 
            text-decoration: none; 
            color: white; 
        }
        .discord-notice:hover { transform: translateY(-5px); background: color-mix(in srgb, var(--accent-color), transparent 50%); }

        /* Non-glass themes: solid accent button */
        body.light-mode .discord-notice,
        body.dark-mode .discord-notice {
            background: var(--accent-color) !important;
            border-color: var(--accent-color) !important;
            color: #fff !important;
            box-shadow: 0 4px 20px color-mix(in srgb, var(--accent-color) 40%, transparent) !important;
        }
        body.light-mode .discord-notice:hover,
        body.dark-mode .discord-notice:hover {
            background: color-mix(in srgb, var(--accent-color) 85%, black) !important;
            transform: translateY(-5px);
        }
        body.light-mode .discord-notice img,
        body.dark-mode .discord-notice img { filter: brightness(0) invert(1); }

        .portal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; }
        .portal-card { text-decoration: none; color: white; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; align-items: center; gap: 15px; padding: 45px 30px; }
        .portal-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.07); color: var(--accent-color); }
        
        /* 1. Base state: Muted/Gray */
        .portal-card .portal-icon {
            width: 40px;
            height: 40px;
            background-color: var(--text-muted); /* The color of the icon in its "off" state */
            
            /* This uses the icon as a stencil */
            -webkit-mask-image: var(--icon-url);
            mask-image: var(--icon-url);
            -webkit-mask-size: contain;
            mask-size: contain;
            -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
            
            transition: background-color 0.3s ease, opacity 0.3s ease;
            opacity: 0.6;
        }

        /* 2. Highlight state: Turn it the exact Accent Color */
        .portal-card:hover .portal-icon {
            opacity: 1;
            background-color: var(--accent-color); /* No glow, just a clean color swap */
        }

        /* 3. Highlight the text too */
        .portal-card:hover h3 {
            color: var(--accent-color);
        }

        /* --- PREVIOUS TECH DROPDOWN --- */
        .dropdown-container { cursor: pointer; transition: all 0.3s ease; }
        .dropdown-header { display: flex; justify-content: space-between; align-items: center; padding: 28px; }
        .dropdown-icon { transition: transform 0.3s ease; color: var(--text-muted); }
        .dropdown-container.open .dropdown-icon { transform: rotate(180deg); }
        .dropdown-content { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); background: rgba(0, 0, 0, 0.2); }
        .dropdown-container.open .dropdown-content { max-height: 800px; }

        .experiment-list { display: flex; flex-direction: column; }
        .experiment-item { display: flex; align-items: center; justify-content: space-between; padding: 20px 28px; border-bottom: 1px solid var(--glass-border); }
        .experiment-item:last-child { border-bottom: none; }
        .experiment-item:last-child { border-bottom: none; }
        .experiment-item.disabled { opacity: 0.4; pointer-events: none; filter: grayscale(1); }
        .prev-tech-list { list-style: none; padding: 0 28px 28px 28px; display: flex; flex-direction: column; gap: 12px; }
        .prev-tech-item { font-size: 0.95rem; color: var(--text-muted); padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); display: flex; align-items: center; gap: 14px; }
        .prev-tech-item svg { width: 18px; height: 18px; opacity: 0.7; color: var(--accent-color); }
        .prev-tech-item:last-child { border-bottom: none; }

        /* --- FIXED COLOR PICKER --- */
        .color-options { 
            display: grid; 
            grid-template-columns: repeat(6, 1fr); 
            gap: 12px; 
            margin-left: 20px;
        }
        .color-swatch { 
            width: 24px; height: 24px; border-radius: 50%; cursor: pointer; 
            border: 2px solid transparent; transition: 0.2s;
            position: relative; display: flex; align-items: center; justify-content: center;
        }
        .color-swatch.selected { transform: scale(1.1); }
        .color-swatch.selected::after {
            content: '';
            display: block;
            width: 6px; height: 10px;
            border-right: 2.5px solid white;
            border-bottom: 2.5px solid white;
            transform: rotate(45deg) translate(-1px, -1px);
            filter: drop-shadow(0 0 1.5px rgba(0,0,0,0.5));
        }
        .color-swatch[style*="#ffffff"] { border: 1px solid rgba(255,255,255,0.3); }


        /* === BACKDROP PICKER === */
        .backdrop-picker {
            position: relative;
            margin-left: 20px;
        }
        .backdrop-trigger {
            display: flex; align-items: center; gap: 10px;
            padding: 8px 14px 8px 10px;
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 14px;
            cursor: pointer;
            transition: background 0.2s, border-color 0.2s;
            user-select: none;
            min-width: 170px;
        }
        .backdrop-trigger:hover { background: rgba(255,255,255,0.1); }
        .backdrop-preview-thumb {
            width: 38px; height: 26px; border-radius: 6px;
            overflow: hidden; flex-shrink: 0;
            border: 1px solid rgba(255,255,255,0.15);
        }
        .backdrop-preview-thumb canvas { width: 100%; height: 100%; display: block; }
        .backdrop-trigger-label { font-size: 0.82rem; font-weight: 600; color: var(--text-main); flex: 1; }
        .backdrop-trigger-chevron { opacity: 0.5; transition: transform 0.2s; flex-shrink: 0; }
        .backdrop-trigger-chevron.rotated { transform: rotate(180deg); }
        .backdrop-trigger.active-border { border-color: var(--accent-color); }

        .backdrop-dropdown {
            position: fixed;
            background: var(--glass-bg);
            backdrop-filter: blur(35px) saturate(180%); -webkit-backdrop-filter: blur(35px) saturate(180%);
            border: 1px solid var(--glass-border);
            border-radius: 18px;
            padding: 10px;
            display: flex; flex-direction: column; gap: 8px;
            min-width: 210px;
            z-index: 9000;
            box-shadow: 0 25px 50px rgba(0,0,0,0.5);
            opacity: 0; pointer-events: none;
            transform: translateY(-6px);
            transition: opacity 0.18s ease, transform 0.18s ease;
        }
        .backdrop-dropdown.open {
            opacity: 1; pointer-events: all; transform: translateY(0);
        }
        .backdrop-option {
            display: flex; align-items: center; gap: 12px;
            padding: 10px 12px;
            border-radius: 12px;
            cursor: pointer;
            transition: background 0.15s;
            border: 1px solid transparent;
        }
        .backdrop-option:hover { background: rgba(255,255,255,0.06); }
        .backdrop-option.selected {
            background: color-mix(in srgb, var(--accent-color) 12%, transparent);
            border-color: color-mix(in srgb, var(--accent-color) 40%, transparent);
        }
        /* lang-btn-active is solid accent in all themes — defined in solid-btn block above */
        .backdrop-option-thumb {
            width: 54px; height: 36px; border-radius: 8px;
            overflow: hidden; flex-shrink: 0;
            border: 1px solid rgba(255,255,255,0.12);
        }
        .backdrop-option-thumb canvas { width: 100%; height: 100%; display: block; }
        .backdrop-option-info { display: flex; flex-direction: column; gap: 2px; }
        .backdrop-option-name { font-size: 0.85rem; font-weight: 600; color: var(--text-main); }
        .backdrop-option-desc { font-size: 0.72rem; color: var(--text-muted); }
        .backdrop-option-check {
            margin-left: auto; color: var(--accent-color);
            opacity: 0; transition: opacity 0.15s;
        }
        .backdrop-option.selected .backdrop-option-check { opacity: 1; }

        /* Backdrop group labels */
        .backdrop-group-label {
            font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
            letter-spacing: 1.5px; color: var(--text-muted);
            padding: 4px 12px 2px; margin-top: 2px;
        }
        .backdrop-group-divider {
            height: 1px; background: var(--glass-border);
            margin: 4px 0;
        }

        /* ===== ZEN MODE ===== */

        /* Transition defined outside zen-mode so same 0.8s fires in both directions */
        .sidebar-container,
        .settings-btn-container,
        .page,
        footer,
        .toast-banner,
        #discordBanner {
            transition: opacity 0.8s ease;
        }

        body.zen-mode .sidebar-container,
        body.zen-mode .settings-btn-container,
        body.zen-mode .page,
        body.zen-mode footer,
        body.zen-mode .toast-banner,
        body.zen-mode #discordBanner,
        body.zen-mode #custom-cursor {
            opacity: 0 !important;
            pointer-events: none !important;
        }
        body.zen-mode #space-canvas,
        body.zen-mode #circuit-canvas { z-index: 0; }

        /* Applied by JS after the fade-out completes — kills backdrop-filter compositor
           so there's no ghost blur while elements are fully invisible.
           Removed by JS BEFORE the fade-in starts so blur is fully present as they reappear. */
        .zen-hidden {
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
        }

        #zen-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            z-index: 5; pointer-events: none;
            display: flex; align-items: center; justify-content: center;
            opacity: 0; transition: opacity 0.8s ease;
        }
        body.zen-mode #zen-overlay { opacity: 1; }

        .zen-logo-img {
            width: min(320px, 55vw);
            height: auto;
            object-fit: contain;
            position: absolute;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.5s ease;
        }
        /* Active logo — visible */
        .zen-logo-img.zen-logo-active {
            opacity: 1;
            position: relative;
        }
        /* Space: same pulse as Circuit + white glow */
        body.zen-mode.space-bg .zen-logo-img.zen-logo-active {
            animation: zen-pulse 4s ease-in-out infinite;
            filter: drop-shadow(0 0 40px rgba(255,255,255,0.2)) drop-shadow(0 0 80px rgba(255,255,255,0.08));
        }
        /* Circuit: pulse animation + accent glow */
        body.zen-mode.circuit-bg .zen-logo-img.zen-logo-active {
            animation: zen-pulse 4s ease-in-out infinite;
            filter: drop-shadow(0 0 30px color-mix(in srgb, var(--accent-color) 80%, transparent))
                    drop-shadow(0 0 80px color-mix(in srgb, var(--accent-color) 40%, transparent));
        }

        /* Freeze the pulse at its current painted frame so the logo fades out
           from whatever scale it's at — not from a snapped-back scale(1). */
        .zen-logo-img.zen-logo-exiting {
            animation-play-state: paused !important;
            opacity: 0 !important;
            transition: opacity 0.8s ease !important;
        }

        @keyframes zen-pulse {
            0%, 100% { transform: scale(1); opacity: 0.9; }
            50%       { transform: scale(1.05); opacity: 1; }
        }

        /* Holds UI at opacity:0 during the exit overlap window so we control
           exactly when the fade-in starts relative to the overlay fade-out. */
        body.zen-exiting .sidebar-container,
        body.zen-exiting .settings-btn-container,
        body.zen-exiting .page,
        body.zen-exiting footer,
        body.zen-exiting .toast-banner,
        body.zen-exiting #discordBanner,
        body.zen-exiting #custom-cursor {
            opacity: 0 !important;
            pointer-events: none !important;
        }

        /* Zen mode exit hint */
        #zen-hint {
            position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
            font-size: 0.75rem; color: rgba(255,255,255,0.25); font-weight: 500;
            letter-spacing: 1px; z-index: 6; pointer-events: none;
            opacity: 0; transition: opacity 0.8s ease;
        }
        body.zen-mode #zen-hint { opacity: 1; }

        /* === POSTS PAGE === */
        @keyframes spin { to { transform: rotate(360deg); } }

        .post-card {
            background: var(--glass-bg);
            backdrop-filter: blur(35px); -webkit-backdrop-filter: blur(35px);
            border: 1px solid var(--glass-border);
            border-radius: 24px;
            padding: 24px 28px;
            display: flex;
            flex-direction: column;
            gap: 14px;
            box-shadow: 0 15px 35px rgba(0,0,0,0.25);
            width: 100%;
        }
        .post-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
        }
        .post-avatar {
            width: 42px; height: 42px;
            border-radius: 50%;
            border: 2px solid var(--glass-border);
            object-fit: cover;
            flex-shrink: 0;
        }
        .post-author {
            display: flex; flex-direction: column; gap: 2px; flex: 1;
        }
        .post-author-name {
            font-size: 0.92rem; font-weight: 700; color: var(--text-main);
        }
        .post-author-handle {
            font-size: 0.78rem; color: var(--text-muted);
        }
        .post-date {
            font-size: 0.75rem; color: var(--text-muted); white-space: nowrap;
        }
        .post-text {
            font-size: 0.95rem; line-height: 1.65;
            color: rgba(255,255,255,0.88);
            white-space: pre-wrap;
            word-break: break-word;
        }
        .post-text a { color: var(--accent-color); text-decoration: none; }
        .post-text a:hover { text-decoration: underline; }
        .post-images {
            display: grid;
            gap: 8px;
            border-radius: 14px;
            overflow: hidden;
        }
        .post-images.count-1 { grid-template-columns: 1fr; }
        .post-images.count-2 { grid-template-columns: 1fr 1fr; }
        .post-images.count-3 { grid-template-columns: 1fr 1fr; }
        .post-images.count-3 .post-img:first-child { grid-column: 1 / -1; }
        .post-images.count-4 { grid-template-columns: 1fr 1fr; }
        .post-img {
            width: 100%;
            max-height: 400px;
            object-fit: contain;
            border-radius: 10px;
            cursor: pointer;
            transition: opacity 0.2s;
            background: rgba(0,0,0,0.12);
            display: block;
        }
        .post-img:hover { opacity: 0.88; }
        .post-footer {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            padding-top: 4px;
            border-top: 1px solid var(--glass-border);
        }
        .post-open-btn {
            display: inline-flex; align-items: center; gap: 7px;
            padding: 8px 16px;
            background: rgba(255,255,255,0.05);
            border: 1px solid var(--glass-border);
            border-radius: 50px;
            color: var(--text-muted);
            font-size: 0.78rem; font-weight: 600;
            cursor: pointer;
            text-decoration: none;
            transition: background 0.2s, color 0.2s, border-color 0.2s;
            font-family: inherit;
        }
        .post-open-btn:hover {
            background: rgba(255,255,255,0.1);
            color: var(--text-main);
            border-color: rgba(255,255,255,0.2);
        }
        .post-open-btn svg { opacity: 0.7; }

        footer { margin-top: 80px; padding-bottom: 40px; text-align: center; color: var(--text-muted); font-size: 0.8rem; opacity: 0.5; }

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

        @media (max-width: 768px) {
            body { padding: 20px 15px 120px 15px; }
            body::before, body::after { display: none !important; }
            .sidebar-container { left: 50%; top: auto; bottom: 30px; transform: translateX(-50%); flex-direction: row; align-items: center; width: 90%; max-width: 400px; }
            .sidebar { flex-direction: row; padding: 12px 15px; gap: 15px; border-radius: 50px; width: 100%; justify-content: space-around; }
            .settings-btn-container { order: 0; margin-bottom: 0; flex-shrink: 0; }
            .profile-info { flex-direction: column; text-align: center; margin-top: -55px; gap: 12px; padding: 0 20px 45px 20px; }
            .pfp-container { width: 100px; height: 100px; border-width: 2px; }
            .header-text h1 { font-size: 1.8rem; letter-spacing: -0.5px; }
            .header-text p { font-size: 0.9rem; }
            .banner-wrap { height: 160px; -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 95%); }
            .concept-grid { grid-template-columns: 1fr; }
            .floating-window.full-width .concept-preview { height: 260px; }
            .kit-mini-banner { flex-direction: column; text-align: center; padding: 30px 20px; }
            .asset-actions { justify-content: center; }
            .pc-grid, .portal-grid { grid-template-columns: repeat(2, 1fr); }
            .driver-grid, .laptop-grid { grid-template-columns: 1fr; }
            .kit-banner { flex-direction: column; text-align: center; }
            .driver-name { white-space: normal; }
            .toast-banner {
                bottom: 110px !important; /* Positions above nav bar */
                width: 92%;               /* Takes up most of the screen width */
                max-width: none;          /* Removes desktop width limits */
                padding: 8px 12px;        /* Tightens internal vertical/horizontal space */
                min-width: unset;
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 8px;                 /* Shrinks gap between icon and text */
            }

            .toast-left {
                gap: 8px;                 /* Tighter gap between Discord icon and text */
                overflow: hidden;         /* Precents overflow */
            }

            .toast-icon {
                font-size: 18px;          /* Scales down icon slightly to save space */
            }

            .toast-title {
                font-size: 13px;          /* Smaller text size to fit on one line */
                white-space: nowrap;      /* FORCES text to stay on one line */
                overflow: hidden;
                text-overflow: ellipsis;  /* Adds '...' if it absolutely cannot fit */
            }

            .toast-close {
                width: 30px;              /* Slightly smaller X button */
                height: 30px;
                margin-left: 5px;
                flex-shrink: 0;           /* Prevents the X from being squished */
            }
            .btn-view { display: none !important; }
            .setting-card { flex-direction: column; align-items: flex-start; gap: 20px; }
            .color-options { 
                grid-template-columns: repeat(6, 1fr); 
                gap: 10px; 
                margin-left: 0;
                width: 100%;
                justify-items: center;
            }
            .color-swatch { width: 32px; height: 32px; }

            #sound-card-ui { opacity: 0.4; pointer-events: none; filter: grayscale(1); }

            /* Mobile Reduced Animations Grid Fix */
            body.disable-animations .logo-track {
                display: grid !important;
                grid-template-columns: repeat(3, 1fr) !important;
                justify-items: center;
                gap: 20px;
                width: 100% !important;
                padding: 10px 0;
                justify-content: center !important;
                margin: 0 auto !important;
            }
            
            /* Smaller logos for mobile grid */
            body.disable-animations .logo-item {
                width: 60px !important;
                height: 15px !important;
            }

            /* Drop 10th item (Business Standard) and all duplicates on mobile static view */
            body.disable-animations .logo-track .logo-item:nth-child(n+10) { display: none !important; }
            
            body.disable-animations .carousel-wrapper { 
                -webkit-mask-image: none !important; 
                display: flex; 
                justify-content: center;
                overflow: hidden; /* Ensure no overflow out of container */
                width: 100%;
            }
            .logo-item img {
                    /* This cancels the "move 120px to the left" */
                    transform: none !important;
                    
                    /* This removes the brightness/invert/drop-shadow filter */
                    filter: none !important;
                    
                    /* Ensures the icon is centered and visible */
                    opacity: 0.7; /* Optional: makes them slightly muted so they aren't distracting */
                    max-width: 100%;
                    height: auto;
            }
        
        }

                /* --- TOAST BANNER --- */
        /* --- UPDATED SOLID TOAST BANNER --- */
        /* --- UPDATED NARROW PILL TOAST --- */
        .toast-banner {
                    position: fixed;
                    bottom: 30px;
                    left: 50%;
                    transform: translateX(-50%);
                    z-index: 10000;
                    width: auto;
                    min-width: 300px;
                    max-width: 360px;
                    background: var(--accent-color);
                    border-radius: 100px; /* Increased for taller look */
                    padding: 10px 10px 10px 15px; /* Taller padding, right side matches button spacing */
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
                    cursor: pointer;
                    border: 1px solid rgba(255, 255, 255, 0.2);
                }

                .toast-left {
                    display: flex;
                    align-items: center;
                    gap: 16px; /* Slightly more gap for the larger icon */
                }

                .toast-icon {
                    font-size: 25px; /* Significantly larger Discord icon */
                    color: #fff;
                    display: flex;
                    align-items: center;
                }

                .toast-text {
                    display: flex;
                    flex-direction: column;
                }

                .toast-title {
                    font-weight: 800;
                    font-size: 16px;
                    color: #fff;
                    line-height: 1.2;
                }

                .toast-close {
                    background: rgba(0, 0, 0, 0.15);
                    border: none;
                    color: #fff;
                    /* Large X Button with even padding */
                    width: 36px; 
                    height: 36px;
                    border-radius: 50%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    cursor: pointer;
                    margin-left: 20px;
                    transition: 0.2s;
                    flex-shrink: 0;
                    font-size: 16px; /* Larger X icon */
                }

                .toast-close:hover {
                    background: rgba(0, 0, 0, 0.3);
                    transform: scale(1.05);
                }

                .toast-hidden {
                    opacity: 0;
                    transform: translate(-50%, 40px) scale(0.9);
                    pointer-events: none;
                }

                body.disable-animations .toast-banner {
                    transition: none !important;
                    animation: none !important;
                }

        /* ===== PAGE HERO BANNER ===== */
        .page-hero {
            position: relative;
            padding: 28px 36px;
            display: flex;
            align-items: center;
            gap: 28px;
            background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
            overflow: hidden;
        }
        .page-hero-blob-1 {
            position: absolute; top: -30px; right: -30px;
            width: 220px; height: 220px; border-radius: 50%;
            background: radial-gradient(circle, color-mix(in srgb, var(--accent-color) 20%, transparent) 0%, transparent 70%);
            pointer-events: none;
        }
        .page-hero-blob-2 {
            position: absolute; bottom: -40px; left: 38%;
            width: 160px; height: 160px; border-radius: 50%;
            background: radial-gradient(circle, color-mix(in srgb, var(--accent-color) 10%, transparent) 0%, transparent 70%);
            pointer-events: none;
        }
        .page-hero-icons {
            display: flex; flex-direction: column; gap: 8px; flex-shrink: 0;
        }
        .page-hero-icons-row { display: flex; gap: 8px; }
        .page-hero-icon {
            width: 38px; height: 38px; border-radius: 11px;
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
        }
        .page-hero-icon svg { width: 16px; height: 16px; }
        .page-hero-icon.accent {
            background: color-mix(in srgb, var(--accent-color) 15%, rgba(255,255,255,0.05));
            border: 1px solid color-mix(in srgb, var(--accent-color) 25%, rgba(255,255,255,0.08));
            color: var(--accent-color);
        }
        .page-hero-icon.muted {
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.07);
            color: var(--text-muted);
        }
        .page-hero-text { min-width: 0; flex: 1; }
        .page-hero-text h2 {
            font-size: 1.4rem; font-weight: 700; margin-bottom: 6px;
        }
        .page-hero-text p {
            font-size: 0.88rem; color: var(--text-muted); line-height: 1.4;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
        }
        .page-hero-tags {
            display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap;
        }
        .page-hero-tag {
            font-size: 0.72rem; font-weight: 600;
            padding: 4px 12px; border-radius: 50px;
        }
        .page-hero-tag.accent {
            background: color-mix(in srgb, var(--accent-color) 12%, transparent);
            border: 1px solid color-mix(in srgb, var(--accent-color) 30%, transparent);
            color: var(--accent-color);
        }
        .page-hero-tag.muted {
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.08);
            color: var(--text-muted);
        }

        /* Light mode hero adjustments */
        body.light-mode .page-hero-icon.muted {
            background: rgba(0,0,0,0.04);
            border-color: rgba(0,0,0,0.06);
        }
        body.light-mode .page-hero-tag.muted {
            background: rgba(0,0,0,0.04);
            border-color: rgba(0,0,0,0.08);
            color: var(--text-muted);
        }

        @media (max-width: 768px) {
            .page-hero { display: none; }
        }