@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
            --bg-dark: #050914;
            --bg-panel: rgba(15, 23, 42, 0.45);
            --bg-surface: rgba(30, 41, 59, 0.25);
            --primary-green: oklch(76% 0.18 150); /* Emerald mint */
            --green-glow: 0 0 24px rgba(6, 229, 137, 0.35);
            --primary-gold: oklch(80% 0.15 80); /* Metallic Premium Gold */
            --gold-glow: 0 0 24px rgba(250, 204, 21, 0.3);
            --primary-violet: oklch(62% 0.22 300); /* Electric Violet */
            --violet-glow: 0 0 24px rgba(168, 85, 247, 0.3);
            --text-light: oklch(98% 0.005 250);
            --text-muted: oklch(70% 0.015 250);
            --border-color: rgba(255, 255, 255, 0.06);
            --border-highlight: rgba(255, 255, 255, 0.12);

            /* Wheel Colors */
            --w-1: #1e3a8a;
            --w-2: #166534;
            --w-3: #b45309;
            --w-4: #be123c;
            --w-5: #4338ca;
            --w-6: #0f766e;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            height: auto !important;
            overflow-y: visible !important;
            overscroll-behavior: auto;
        }

        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background-color: #050811;
            background-image:
                radial-gradient(ellipse at 50% 0%, rgba(10, 25, 50, 0.25) 0%, transparent 60%),
                radial-gradient(ellipse at 0% 100%, rgba(5, 12, 30, 0.2) 0%, transparent 50%),
                radial-gradient(ellipse at 100% 50%, rgba(7, 15, 35, 0.15) 0%, transparent 50%);
            color: var(--text-light);
            min-height: 100vh !important;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
            overflow-y: visible !important;
            background-attachment: fixed;
            overscroll-behavior-y: auto;
            padding-top: env(safe-area-inset-top);
            padding-bottom: env(safe-area-inset-bottom);
            padding-left: env(safe-area-inset-left);
            padding-right: env(safe-area-inset-right);
        }

        input,
        textarea {
            user-select: auto;
            -webkit-user-select: auto;
        }

        /* Suppress mobile tap highlight globally for interactive elements */
        button,
        [role="button"],
        .logo,
        .tab,
        .btn,
        .btn-auth {
            -webkit-tap-highlight-color: transparent;
            tap-highlight-color: transparent;
        }

        header {
            background: rgba(10, 14, 23, 0.85);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            padding: 1.2rem 3rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            border-bottom: 1px solid var(--border-highlight);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
            position: sticky;
            top: 0;
            z-index: 50;
            /* DO NOT set overflow:hidden — it clips the dropdown menu */
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 18px;
            transition: transform 0.3s ease;
            cursor: pointer;
            min-width: 0;
            flex-shrink: 1;
        }

        .logo:hover {
            transform: scale(1.02);
        }

        .logo h1 {
            font-family: 'Outfit', sans-serif;
            font-size: 2rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        }

        .logo-text-col {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .logo-tagline {
            font-size: 0.85rem;
            color: var(--primary-green);
            font-weight: 600;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            margin-top: 4px;
            text-shadow: 0 0 10px rgba(0, 255, 135, 0.3);
            white-space: nowrap;
        }

        .gold-text {
            color: var(--primary-gold);
            text-shadow: var(--gold-glow);
        }

        .premium-logo {
            width: 46px;
            height: 46px;
            overflow: visible;
            filter: drop-shadow(0 0 10px rgba(0, 255, 135, 0.4));
            transition: filter 0.4s ease;
            flex-shrink: 0;
        }

        .logo-spin-cw {
            transform-origin: 50px 50px;
            animation: spinCw 12s linear infinite;
        }

        .logo-spin-ccw {
            transform-origin: 50px 50px;
            animation: spinCcw 8s linear infinite;
        }

        .logo-pulse-bg {
            transform-origin: 50px 50px;
            animation: pulseBg 3s ease-in-out infinite alternate;
        }

        .logo-core {
            transform-origin: 50px 50px;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .logo:hover .logo-spin-cw {
            animation-duration: 2.5s;
        }

        .logo:hover .logo-spin-ccw {
            animation-duration: 1.5s;
        }

        .logo:hover .logo-core {
            fill: var(--primary-gold);
            filter: drop-shadow(0 0 10px var(--primary-gold));
            transform: scale(1.2);
        }

        .logo:hover .premium-logo {
            filter: drop-shadow(0 0 18px rgba(251, 191, 36, 0.6));
        }

        @keyframes spinCw {
            100% {
                transform: rotate(360deg);
            }
        }

        @keyframes spinCcw {
            100% {
                transform: rotate(-360deg);
            }
        }

        @keyframes pulseBg {
            0% {
                transform: scale(0.85);
                opacity: 0.3;
            }

            100% {
                transform: scale(1.15);
                opacity: 0.7;
            }
        }

        .menu-container {
            position: relative;
        }

        .hamburger-btn {
            background: linear-gradient(145deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.7));
            border: 1px solid var(--border-highlight);
            color: var(--text-light);
            cursor: pointer;
            padding: 10px 12px;
            border-radius: 12px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .hamburger-btn:hover,
        .hamburger-btn.active {
            background: rgba(30, 41, 59, 0.8);
            border-color: var(--primary-green);
            box-shadow: var(--green-glow);
            color: var(--primary-green);
        }

        .hamburger-btn svg {
            width: 26px;
            height: 26px;
            fill: currentColor;
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .hamburger-btn.active svg {
            transform: rotate(90deg) scale(0.9);
        }

        /* ── Full-Screen Drawer Menu ─────────────────────────────────────── */

        /* Drawer backdrop — separate DOM element, covers FULL screen including left side */
        #drawer-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.82);
            z-index: 9998;  /* Just below drawer (9999) */
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.35s ease;
        }
        #drawer-backdrop.active {
            opacity: 1;
            pointer-events: auto;
        }

        .dropdown-menu {
            /* Full-screen fixed drawer from the right */
            position: fixed;
            top: 0;
            right: 0;
            bottom: 0;
            width: min(340px, 88vw);
            background: linear-gradient(180deg, rgba(10, 16, 32, 0.99) 0%, rgba(5, 10, 22, 0.99) 100%);
            border-left: 1px solid rgba(0, 232, 150, 0.15);
            box-shadow: -20px 0 60px rgba(0, 0, 0, 0.7);
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 0 0 env(safe-area-inset-bottom) 0;
            /* Hidden: translated off-screen to the right */
            transform: translateX(100%);
            transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 9999;
            /* Scrollbar styling */
            scrollbar-width: thin;
            scrollbar-color: rgba(0,232,150,0.3) transparent;
        }
        .dropdown-menu::-webkit-scrollbar { width: 4px; }
        .dropdown-menu::-webkit-scrollbar-track { background: transparent; }
        .dropdown-menu::-webkit-scrollbar-thumb { background: rgba(0,232,150,0.3); border-radius: 4px; }

        .dropdown-menu.active {
            transform: translateX(0);
        }

        /* Drawer header with close button */
        .drawer-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: calc(env(safe-area-inset-top) + 12px) 20px 16px !important;
            border-bottom: 1px solid rgba(255,255,255,0.07);
            position: sticky;
            top: 0;
            background: rgba(10, 16, 32, 0.98);
            z-index: 1;
            flex-shrink: 0;
        }
        .drawer-title {
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--primary-green);
        }
        .drawer-close-btn {
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.12);
            color: var(--text-light);
            width: 42px;
            height: 42px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 1.25rem;
            line-height: 1;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }
        .drawer-close-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }

        /* Drawer content area */
        .drawer-content {
            flex: 1;
            padding: 10px;
            overflow-y: auto;
        }

        .menu-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 12px 16px;
            color: var(--text-light);
            text-decoration: none;
            font-size: 1.1rem;
            font-weight: 600;
            transition: all 0.2s ease;
            border-radius: 10px;
            margin-bottom: 2px;
        }

        .menu-item svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
            opacity: 0.5;
            transition: all 0.3s ease;
        }

        .menu-item:hover {
            background: rgba(255, 255, 255, 0.05);
            color: var(--primary-green);
            transform: translateX(4px);
        }

        .menu-item:hover svg {
            opacity: 1;
            transform: scale(1.15);
        }

        .menu-item.gold-item {
            color: var(--primary-gold);
        }

        .menu-item.gold-item svg {
            opacity: 0.8;
        }

        .menu-item.gold-item:hover {
            color: #fcd34d;
            background: rgba(251, 191, 36, 0.05);
        }

        .menu-divider {
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            margin: 8px 0;
        }

        /* ── Menu auth section (shown in dropdown on mobile only) ── */
        .menu-auth-section {
            padding: 8px 6px 4px;
            display: flex;
            gap: 8px;
        }
        .menu-auth-btn {
            flex: 1;
            padding: 10px 12px;
            border-radius: 10px;
            font-size: 0.9rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
            font-family: inherit;
        }
        .menu-signin-btn {
            background: rgba(255,255,255,0.07);
            border: 1px solid rgba(255,255,255,0.15);
            color: var(--text-light);
        }
        .menu-signin-btn:hover {
            background: rgba(255,255,255,0.12);
        }
        .menu-signup-btn {
            background: linear-gradient(135deg, var(--primary-green), #05d576);
            color: #000;
        }
        .menu-signup-btn:hover {
            filter: brightness(1.1);
        }
        .menu-signout-btn {
            width: 100%;
            background: rgba(239, 68, 68, 0.15);
            border: 1px solid rgba(239, 68, 68, 0.3);
            color: #f87171;
        }
        .menu-user-row {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 4px 6px 8px;
            width: 100%;
        }
        /* On mobile: hide header auth-buttons (they live in the drawer now) */
        @media (max-width: 768px) {
            .auth-buttons,
            .auth-user-info {
                display: none !important;
            }
        }

        /* On desktop: hide menu auth buttons and top divider (already in top banner) */
        @media (min-width: 769px) {
            .menu-auth-section,
            .menu-auth-divider {
                display: none !important;
            }
        }


        .ad-container {
            width: 100%;
            max-width: 1200px;
            margin: 20px auto 30px;
            text-align: center;
            background: rgba(0, 0, 0, 0.3);
            border: 1px dashed rgba(255, 255, 255, 0.15);
            padding: 10px;
            color: var(--text-muted);
            border-radius: 12px;
            font-size: 0.9rem;
            min-height: 100px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative;
            overflow: hidden;
        }

        .ad-container::before {
            content: 'ADVERTISEMENT';
            position: absolute;
            top: 5px;
            left: 10px;
            font-size: 0.7rem;
            color: rgba(255, 255, 255, 0.2);
        }

        .app-container {
            display: grid;
            grid-template-columns: 1fr 420px;
            gap: 30px;
            max-width: 1500px;
            margin: 0 auto;
            width: 100%;
            padding: 20px 20px 40px;
        }

        .wheel-container {
            background: rgba(15, 23, 42, 0.45);
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            border-radius: 24px;
            padding: 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 0;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
            border: 1px solid var(--border-color);
            position: relative;
            overflow: visible;
            align-self: stretch;
            width: 100%;
            /* Promote to its own GPU compositing layer.
               Canvas repaints stay inside this layer and never
               trigger repaint in .controls-container. */
            transform: translateZ(0);
            will-change: transform;
            /* Layout containment: this element's layout changes
               cannot affect elements outside it */
            contain: layout style;
        }

        .wheel-container::after {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            box-shadow: inset 0 0 50px rgba(0, 255, 135, 0.03);
            pointer-events: none;
        }

        .wheel-wrapper {
            position: relative;
            width: 100%;
            max-width: 550px;
            aspect-ratio: 1 / 1;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
            /* Suppress tap highlight and scroll interference */
            touch-action: none;
            -webkit-tap-highlight-color: transparent;
        }

        canvas#wheel {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 40px rgba(255,210,0,0.2);
            background: transparent;
            /* Prevent mobile tap flash on canvas */
            -webkit-tap-highlight-color: transparent;
            touch-action: none;
        }

        .pointer {
            display: none; /* pointer is now drawn on canvas for perfect integration */
        }

        .spin-btn-container {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 116px;
            height: 116px;
            border-radius: 50%;
            background: transparent;
            border: none;
            outline: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 20;
            transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s;
            /* Suppress mobile tap highlight / dark flash */
            -webkit-tap-highlight-color: transparent;
            touch-action: none;
        }

        .spin-btn-container:hover:not(.disabled) {
            transform: translate(-50%, -50%) scale(1.06);
            filter: brightness(1.15);
        }

        .spin-btn-container.disabled {
            filter: brightness(0.55) !important;
            transform: translate(-50%, -50%) scale(0.94) !important;
            cursor: not-allowed !important;
        }

        .spin-btn-container::before {
            content: '';
            position: absolute;
            inset: -14px;
            border-radius: 50%;
            background: conic-gradient(from 0deg, transparent 60%, rgba(255,220,0,0.45) 80%, transparent);
            z-index: -1;
            animation: spin-glow 3s linear infinite;
        }

        .spin-btn-container.disabled::before {
            animation-play-state: paused;
        }

        @keyframes spin-glow {
            100% {
                transform: rotate(360deg);
            }
        }

        .spin-btn-text {
            font-family: 'Outfit', sans-serif;
            font-size: 1.45rem;
            font-weight: 900;
            color: #ffd700;
            letter-spacing: 3px;
            text-shadow:
                0 1px 0 rgba(120,70,0,0.9),
                0 0 10px rgba(255,210,0,0.35);
            pointer-events: none;
        }

        .controls-container {
            background: rgba(15, 23, 42, 0.45);
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            border-radius: 24px;
            border: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
            /* Separate GPU compositing layer from .wheel-container.
               Now the wheel card and controls card are independent GPU layers
               — canvas repaints inside .wheel-container never propagate here. */
            transform: translateZ(0);
            will-change: transform;
            contain: layout style;
        }

        .tabs {
            display: flex;
            background: rgba(0, 0, 0, 0.2);
            padding: 10px;
            margin: 20px 20px 0 20px;
            border-radius: 12px;
            gap: 10px;
        }

        .tab {
            flex: 1;
            text-align: center;
            padding: 12px;
            cursor: pointer;
            font-weight: 700;
            font-size: 1.1rem;
            color: var(--text-muted);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 8px;
            text-transform: uppercase;
            letter-spacing: 1px;
            border: 1px solid transparent;
        }

        .tab:hover {
            color: var(--text-light);
            background: rgba(255, 255, 255, 0.05);
        }

        .tab.active {
            color: var(--primary-green);
            background: rgba(0, 255, 135, 0.1);
            border-color: rgba(0, 255, 135, 0.2);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .tab-badge {
            background: rgba(255, 255, 255, 0.1);
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 0.9rem;
            margin-inline-start: 5px;
            color: #fff;
        }

        .tab.active .tab-badge {
            background: var(--primary-green);
            color: #000;
            font-weight: bold;
        }

        .tab-content {
            display: none;
            flex-direction: column;
            flex: 1;
            padding: 20px;
            animation: fadeIn 0.4s ease;
        }

        .tab-content.active {
            display: flex;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(5px);
            }

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

        .charge-svg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
        }

        .spin-btn-container.charging {
            transform: translate(-50%, -50%) scale(0.92);
            box-shadow: 0 0 50px rgba(251, 191, 36, 0.8), inset 0 0 30px rgba(239, 68, 68, 0.4);
            border-color: #ef4444;
        }

        .emote-bar {
            display: flex;
            gap: 15px;
            background: rgba(15, 23, 42, 0.9);
            padding: 12px 25px;
            border-radius: 40px;
            border: 1px solid var(--primary-gold);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(251, 191, 36, 0.2);
            transition: opacity 0.3s;
        }

        .emote-bar button {
            background: none;
            border: none;
            font-size: 2.2rem;
            cursor: pointer;
            transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
        }

        .emote-bar button:hover {
            transform: scale(1.4) translateY(-8px);
        }

        .floating-emote {
            position: absolute;
            bottom: -20px;
            font-size: 3.5rem;
            z-index: 50;
            pointer-events: none;
            animation: floatUp 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
            filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.8));
        }

        .emote-user {
            font-size: 0.85rem;
            color: #fff;
            background: rgba(0, 0, 0, 0.8);
            padding: 3px 8px;
            border-radius: 6px;
            position: absolute;
            bottom: -25px;
            left: 50%;
            transform: translateX(-50%);
            white-space: nowrap;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-weight: 700;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        @keyframes floatUp {
            0% {
                transform: translateY(30px) scale(0.3);
                opacity: 0;
            }

            15% {
                transform: translateY(-40px) scale(1.2);
                opacity: 1;
            }

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

        .analytics-row {
            display: flex;
            justify-content: space-between;
            font-size: 1.1rem;
            margin-bottom: 5px;
            color: #fff;
            font-weight: 600;
        }

        .analytics-bar-bg {
            width: 100%;
            background: rgba(0, 0, 0, 0.4);
            height: 10px;
            border-radius: 5px;
            overflow: hidden;
            margin-bottom: 15px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .analytics-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--primary-green), #05d576);
            border-radius: 5px;
            transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .toolbar {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
            flex-wrap: wrap;
        }

        .btn {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-light);
            padding: 10px 18px;
            border-radius: 8px;
            cursor: pointer;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-size: 0.95rem;
            flex: 1 1 auto;
            min-width: 100px;
        }

        .btn:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

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

        .btn-action {
            background: linear-gradient(135deg, var(--primary-green), #05d576);
            border: none;
            color: #000;
            box-shadow: 0 4px 15px rgba(0, 255, 135, 0.3);
        }

        .btn-action:hover {
            background: linear-gradient(135deg, #05d576, var(--primary-green));
            box-shadow: var(--green-glow);
        }

        .btn-danger {
            color: #ef4444;
            border-color: rgba(239, 68, 68, 0.3);
        }

        .btn-danger:hover {
            background: rgba(239, 68, 68, 0.1);
            border-color: #ef4444;
            box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
        }

        .btn-customize {
            border-color: rgba(251, 191, 36, 0.3);
            color: var(--primary-gold);
            background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(251, 191, 36, 0.02));
        }

        .btn-customize:hover {
            background: rgba(251, 191, 36, 0.12);
            border-color: var(--primary-gold);
            box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2);
            transform: translateY(-2px);
        }

        textarea {
            flex: 1;
            background: rgba(0, 0, 0, 0.4);
            border: 2px solid rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            color: var(--text-light);
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 1.2rem;
            padding: 20px;
            resize: none;
            outline: none;
            line-height: 1.6;
            min-height: 350px;
            transition: all 0.3s ease;
            box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
        }

        textarea:focus {
            border-color: var(--primary-green);
            box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(0, 255, 135, 0.15);
        }

        .history-list {
            flex: 1;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 10px;
            max-height: 400px;
            padding-right: 5px;
        }

        .history-list::-webkit-scrollbar {
            width: 6px;
        }

        .history-list::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 10px;
        }

        .history-list::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 10px;
        }

        .history-list::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.4);
        }

        .history-item {
            background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent);
            padding: 15px 20px;
            border-radius: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-inline-start: 4px solid var(--primary-gold);
            font-size: 1.2rem;
            font-weight: 600;
            transition: all 0.2s ease;
        }

        .history-item:hover {
            background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent);
            transform: translateX(4px);
        }

        .history-item.removed {
            border-left-color: var(--text-muted);
            opacity: 0.4;
            text-decoration: line-through;
        }

        .history-action {
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.3);
            border-radius: 6px;
            color: #ef4444;
            cursor: pointer;
            padding: 6px 12px;
            font-weight: bold;
            transition: all 0.2s;
        }

        .history-action:hover {
            background: rgba(239, 68, 68, 0.2);
            box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
        }

        /* SEO CONTENT SECTION */
        .content-section {
            max-width: 1400px;
            margin: 40px auto;
            padding: 0 20px;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
        }

        .seo-card {
            background: rgba(15, 23, 42, 0.45);
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            border: 1px solid var(--border-color);
            border-radius: 24px;
            padding: 35px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s, border-color 0.4s;
            position: relative;
            overflow: hidden;
        }

        .seo-card.full-width {
            grid-column: span 3;
        }

        .seo-card.col-2 {
            grid-column: span 2;
        }

        .seo-card.col-1 {
            grid-column: span 1;
        }

        .seo-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 255, 135, 0.08);
            border-color: rgba(255, 255, 255, 0.15);
        }

        .seo-card h2 {
            font-family: 'Outfit', sans-serif;
            font-size: 1.8rem;
            color: var(--text-light);
            margin-bottom: 25px;
            display: flex;
            align-items: center;
            gap: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 700;
        }

        .seo-card h2 svg {
            fill: var(--primary-gold);
            width: 28px;
            height: 28px;
            filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.5));
        }

        .seo-card p,
        .seo-card li {
            font-size: 1.05rem;
            line-height: 1.7;
            color: #cbd5e1;
            margin-bottom: 15px;
        }

        .seo-card ul {
            list-style: none;
            margin: 20px 0;
            padding: 0;
        }

        .seo-card li {
            position: relative;
            padding-left: 28px;
            margin-bottom: 12px;
        }

        .seo-card li::before {
            content: "";
            position: absolute;
            left: 4px;
            top: 5px;
            width: 14px;
            height: 14px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300ff87'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
            background-size: contain;
            background-repeat: no-repeat;
        }

        .seo-card strong {
            color: var(--primary-green);
            font-weight: 700;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 25px;
        }

        .stat-box {
            background: rgba(0, 0, 0, 0.3);
            padding: 25px 20px;
            border-radius: 12px;
            border-inline-start: 4px solid var(--primary-green);
        }

        .stat-label {
            font-size: 1.2rem;
            color: var(--text-muted);
            margin-bottom: 8px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .stat-value {
            font-size: 3.5rem;
            font-family: 'Outfit', sans-serif;
            color: var(--text-light);
            line-height: 1;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
            transition: color 0.3s;
        }

        .stat-value span {
            color: var(--primary-green);
        }

        .app-download-btn {
            display: flex;
            align-items: center;
            background: #000;
            color: #fff;
            text-decoration: none;
            padding: 12px 24px;
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.15);
            gap: 15px;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
            min-width: 220px;
            justify-content: center;
        }

        .app-download-btn:hover {
            transform: translateY(-5px);
            border-color: var(--primary-green);
            box-shadow: 0 15px 30px rgba(0, 255, 135, 0.25), 0 0 15px rgba(0, 255, 135, 0.1) inset;
        }

        .app-download-btn svg {
            width: 32px;
            height: 32px;
        }

        .app-btn-text {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            line-height: 1.1;
        }

        .app-btn-text .small-text {
            font-size: 0.75rem;
            font-family: 'Plus Jakarta Sans', sans-serif;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #cbd5e1;
        }

        .app-btn-text .big-text {
            font-size: 1.4rem;
            font-family: 'Outfit', sans-serif;
            font-weight: 600;
        }

        /* APP COMING SOON STATES */
        .app-btn-wrapper {
            position: relative;
            display: inline-flex;
        }

        .app-download-btn.app-coming-soon {
            opacity: 0.72;
            cursor: not-allowed;
            pointer-events: none;
            position: relative;
            filter: grayscale(0.25);
        }

        .coming-soon-badge {
            position: absolute;
            top: -10px;
            right: -10px;
            background: linear-gradient(135deg, #fbbf24, #f59e0b);
            color: #000;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 0.68rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            padding: 4px 10px;
            border-radius: 999px;
            box-shadow: 0 4px 12px rgba(251, 191, 36, 0.55), 0 0 0 2px rgba(0,0,0,0.4);
            white-space: nowrap;
            animation: badgePop 2.8s ease-in-out infinite alternate;
            z-index: 5;
        }

        @keyframes badgePop {
            0%   { transform: scale(1);    box-shadow: 0 4px 12px rgba(251,191,36,0.45); }
            100% { transform: scale(1.08); box-shadow: 0 6px 18px rgba(251,191,36,0.75); }
        }

        /* ── LAUNCH WINDOW BANNER ─────────────────────────────── */
        .launch-window-banner {
            margin-top: 24px;
            width: 100%;
        }

        .launch-window-inner {
            display: flex;
            align-items: center;
            gap: 18px;
            background: linear-gradient(135deg, rgba(251,191,36,0.08) 0%, rgba(251,191,36,0.03) 100%);
            border: 1px solid rgba(251,191,36,0.25);
            border-radius: 16px;
            padding: 16px 22px;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            flex-wrap: wrap;
        }

        .launch-window-icon {
            width: 36px;
            height: 36px;
            max-width: 36px;
            max-height: 36px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .launch-window-icon svg {
            width: 36px;
            height: 36px;
            min-width: 36px;
        }

        .launch-window-text {
            display: flex;
            flex-direction: column;
            gap: 2px;
            flex: 1;
            min-width: 140px;
        }

        .launch-window-label {
            font-size: 0.72rem;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: #fbbf24;
            opacity: 0.8;
        }

        .launch-window-date {
            font-family: 'Outfit', sans-serif;
            font-size: 1.3rem;
            font-weight: 700;
            color: #fff;
            line-height: 1.2;
        }

        .launch-progress-wrap {
            display: flex;
            flex-direction: column;
            gap: 6px;
            min-width: 140px;
        }

        .launch-progress-track {
            width: 100%;
            height: 6px;
            background: rgba(255,255,255,0.08);
            border-radius: 99px;
            overflow: hidden;
        }

        .launch-progress-fill {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, #fbbf24, #00ff87);
            border-radius: 99px;
            animation: progressGrow 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
        }

        @keyframes progressGrow {
            to { width: 78%; }
        }

        .launch-progress-pct {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 0.78rem;
            font-weight: 700;
            color: #00ff87;
            text-align: right;
            letter-spacing: 0.04em;
        }

        /* ── WAITLIST SECTION ─────────────────────────────────── */
        .waitlist-section {
            margin-top: 28px;
            background: linear-gradient(135deg, rgba(0,255,135,0.05) 0%, rgba(0,0,0,0) 100%);
            border: 1px solid rgba(0,255,135,0.15);
            border-radius: 20px;
            padding: 28px 26px 22px;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        .waitlist-heading {
            display: flex;
            align-items: center;
            gap: 10px;
            font-family: 'Outfit', sans-serif;
            font-size: 1.25rem;
            font-weight: 700;
            color: #fff;
            margin-bottom: 8px;
        }

        .waitlist-heading svg {
            width: 22px;
            height: 22px;
            min-width: 22px;
            flex-shrink: 0;
        }

        .waitlist-sub {
            font-size: 0.95rem;
            color: #94a3b8;
            margin-bottom: 20px;
            line-height: 1.5;
        }

        .waitlist-form-wrap {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .waitlist-input-row {
            display: flex;
            align-items: center;
            background: rgba(0,0,0,0.35);
            border: 1.5px solid rgba(255,255,255,0.1);
            border-radius: 14px;
            overflow: hidden;
            transition: border-color 0.3s, box-shadow 0.3s;
        }

        .waitlist-input-row:focus-within {
            border-color: rgba(0,255,135,0.5);
            box-shadow: 0 0 0 3px rgba(0,255,135,0.1);
        }

        .waitlist-input-icon {
            padding: 0 10px 0 14px;
            color: rgba(255,255,255,0.35);
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 18px;
        }

        .waitlist-input-icon svg {
            width: 18px;
            height: 18px;
            min-width: 18px;
            flex-shrink: 0;
        }

        .waitlist-email-input {
            flex: 1;
            background: transparent;
            border: none;
            outline: none;
            color: #fff;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 1rem;
            padding: 14px 8px;
            min-width: 0;
        }

        .waitlist-email-input::placeholder {
            color: rgba(255,255,255,0.25);
        }

        .waitlist-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(135deg, #00ff87, #05d576);
            border: none;
            border-radius: 0 12px 12px 0;
            color: #000;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-weight: 800;
            font-size: 0.9rem;
            padding: 14px 20px;
            cursor: pointer;
            white-space: nowrap;
            transition: background 0.25s, box-shadow 0.25s, transform 0.15s;
            flex-shrink: 0;
        }

        .waitlist-btn:hover {
            background: linear-gradient(135deg, #05d576, #00ff87);
            box-shadow: 0 0 20px rgba(0,255,135,0.45);
            transform: translateX(-2px);
        }

        .waitlist-btn:active {
            transform: translateX(0) scale(0.97);
        }

        .waitlist-btn-icon {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
            transition: transform 0.2s;
        }

        .waitlist-btn:hover .waitlist-btn-icon {
            transform: translateX(3px);
        }

        .waitlist-btn-spinner {
            display: flex;
            align-items: center;
        }

        .waitlist-btn-spinner svg {
            width: 16px;
            height: 16px;
            animation: spinnerRotate 0.8s linear infinite;
        }

        @keyframes spinnerRotate {
            to { transform: rotate(360deg); }
        }

        .waitlist-trust {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            font-size: 0.8rem;
            color: rgba(255,255,255,0.3);
            font-family: 'Plus Jakarta Sans', sans-serif;
        }

        /* Success state */
        .waitlist-success {
            display: flex;
            align-items: center;
            gap: 16px;
            background: linear-gradient(135deg, rgba(0,255,135,0.1), rgba(0,255,135,0.04));
            border: 1px solid rgba(0,255,135,0.3);
            border-radius: 14px;
            padding: 18px 20px;
            animation: successFadeIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        }

        @keyframes successFadeIn {
            from { opacity: 0; transform: translateY(8px) scale(0.96); }
            to   { opacity: 1; transform: translateY(0) scale(1); }
        }

        .waitlist-success-icon {
            font-size: 2rem;
            flex-shrink: 0;
        }

        .waitlist-success-text {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .waitlist-success-text strong {
            font-family: 'Outfit', sans-serif;
            font-size: 1.1rem;
            color: #00ff87;
        }

        .waitlist-success-text span {
            font-size: 0.9rem;
            color: #94a3b8;
        }

        /* Error state */
        .waitlist-error {
            font-size: 0.9rem;
            color: #f87171;
            background: rgba(239,68,68,0.08);
            border: 1px solid rgba(239,68,68,0.25);
            border-radius: 10px;
            padding: 12px 16px;
            animation: successFadeIn 0.3s ease forwards;
        }

        /* PRICING SECTION */
        .pricing-section {
            max-width: 1200px;
            margin: 80px auto 40px;
            padding: 0 20px;
        }

        .pricing-header {
            text-align: center;
            margin-bottom: 50px;
        }

        .pricing-header-label {
            display: inline-block;
            background: rgba(251, 191, 36, 0.1);
            border: 1px solid rgba(251, 191, 36, 0.3);
            color: var(--primary-gold);
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-weight: 700;
            font-size: 0.85rem;
            letter-spacing: 0.08em;
            padding: 6px 18px;
            border-radius: 999px;
            margin-bottom: 20px;
        }

        .pricing-header h2 {
            font-family: 'Outfit', sans-serif;
            font-size: 3rem;
            color: var(--text-light);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 15px;
        }

        .pricing-title-gradient {
            background: linear-gradient(135deg, var(--primary-gold) 0%, #fde68a 50%, var(--primary-green) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .pricing-header p {
            color: var(--text-muted);
            font-size: 1.2rem;
            max-width: 600px;
            margin: 0 auto;
        }

        .pricing-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
            align-items: start;
            isolation: isolate;
        }

        .pricing-card {
            background: rgba(15, 23, 42, 0.45);
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            border: 1px solid var(--border-color);
            border-radius: 28px;
            padding: 40px 30px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
            transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
            position: relative;
            overflow: hidden;
            will-change: transform;
        }

        .pricing-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
            border-color: rgba(255, 255, 255, 0.15);
        }

        .pricing-card.premium {
            background: linear-gradient(135deg, rgba(20, 24, 33, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
            border: 1px solid rgba(251, 191, 36, 0.4);
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(251, 191, 36, 0.18);
            margin-top: -16px;
            margin-bottom: -16px;
            z-index: 2;
            animation: goldPulse 4s infinite alternate ease-in-out;
        }

        @keyframes goldPulse {
            0% {
                box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(251, 191, 36, 0.18);
            }
            100% {
                box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 55px rgba(251, 191, 36, 0.38);
            }
        }

        .pricing-card.premium:hover {
            transform: translateY(-8px);
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 55px rgba(251, 191, 36, 0.45);
        }

        .pricing-badge {
            position: absolute;
            top: 20px;
            right: -35px;
            background: var(--primary-gold);
            color: #000;
            padding: 5px 40px;
            font-weight: 700;
            font-family: 'Outfit', sans-serif;
            transform: rotate(45deg);
            letter-spacing: 1px;
            font-size: 0.9rem;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }

        .pricing-tier {
            font-size: 1.4rem;
            color: var(--text-muted);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 10px;
        }

        .pricing-card.premium .pricing-tier {
            color: var(--primary-gold);
        }

        .pricing-price {
            font-family: 'Outfit', sans-serif;
            font-size: clamp(2.2rem, 4vw, 3.8rem);
            color: var(--text-light);
            line-height: 1.1;
            margin-bottom: 10px;
            display: flex;
            align-items: baseline;
            justify-content: center;
            flex-wrap: nowrap;
            gap: 6px;
        }

        .pricing-price span {
            font-size: clamp(0.85rem, 1.5vw, 1.1rem);
            color: var(--text-muted);
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-weight: 500;
            text-transform: none;
            white-space: nowrap;
        }

        .plan-active-indicator {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: rgba(0, 255, 135, 0.08);
            border: 1px solid rgba(0, 255, 135, 0.35);
            border-radius: 10px;
            padding: 10px 16px;
            margin-bottom: 12px;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--primary-green);
            text-transform: uppercase;
            letter-spacing: 1px;
            animation: planActivePulse 2.5s infinite alternate ease-in-out;
        }

        @keyframes planActivePulse {
            0% { box-shadow: 0 0 0 rgba(0,255,135,0); }
            100% { box-shadow: 0 0 14px rgba(0,255,135,0.25); }
        }

        .pricing-features {
            list-style: none;
            margin: 30px 0;
            padding: 0;
            text-align: left;
        }

        .pricing-features li {
            font-size: 1.15rem;
            color: #cbd5e1;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .pricing-features li svg {
            width: 20px;
            height: 20px;
            fill: var(--primary-green);
            flex-shrink: 0;
        }

        .pricing-features li.disabled {
            color: var(--text-muted);
            opacity: 0.6;
        }

        .pricing-features li.disabled svg {
            fill: #ef4444;
        }

        .btn-pricing {
            width: 100%;
            padding: 18px;
            border-radius: 12px;
            font-size: 1.2rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            cursor: pointer;
            transition: all 0.3s;
            font-family: 'Outfit', sans-serif;
        }

        .btn-pricing-outline {
            background: transparent;
            border: 2px solid rgba(255, 255, 255, 0.2);
            color: var(--text-light);
        }

        .btn-pricing-outline:hover {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(255, 255, 255, 0.4);
        }

        .btn-pricing-gold {
            background: linear-gradient(135deg, var(--primary-gold), #d97706);
            border: none;
            color: #000;
            box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
        }

        .btn-pricing-gold:hover {
            background: linear-gradient(135deg, #fcd34d, var(--primary-gold));
            box-shadow: 0 6px 20px rgba(251, 191, 36, 0.6);
            transform: translateY(-2px);
        }

        .btn-pricing-green {
            background: rgba(0, 255, 135, 0.1);
            border: 2px solid var(--primary-green);
            color: var(--primary-green);
        }

        .btn-pricing-green:hover {
            background: rgba(0, 255, 135, 0.2);
            box-shadow: var(--green-glow);
        }

        /* FAQ SECTION */
        .faq-section {
            max-width: 1000px;
            margin: 40px auto 80px;
            padding: 0 20px;
        }

        .faq-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .faq-header h2 {
            font-family: 'Outfit', sans-serif;
            font-size: 3rem;
            color: var(--text-light);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 15px;
        }

        .faq-header p {
            color: var(--text-muted);
            font-size: 1.2rem;
        }

        .faq-item {
            background: linear-gradient(145deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.6));
            border: 1px solid var(--border-highlight);
            border-radius: 16px;
            margin-bottom: 15px;
            overflow: hidden;
            transition: border-color 0.3s, box-shadow 0.3s;
        }

        .faq-item:hover {
            border-color: rgba(255, 255, 255, 0.3);
        }

        .faq-item.active {
            border-color: var(--primary-green);
            box-shadow: 0 0 20px rgba(0, 255, 135, 0.1);
        }

        .faq-question {
            width: 100%;
            background: transparent;
            border: none;
            padding: 20px 25px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: var(--text-light);
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 1.35rem;
            font-weight: 700;
            cursor: pointer;
            text-align: left;
            outline: none;
            transition: color 0.3s;
        }

        .faq-question:hover,
        .faq-item.active .faq-question {
            color: var(--primary-green);
        }

        .faq-arrow {
            width: 24px;
            height: 24px;
            fill: currentColor;
            transition: transform 0.3s ease;
            flex-shrink: 0;
        }

        .faq-item.active .faq-arrow {
            transform: rotate(180deg);
        }

        .faq-answer-wrapper {
            max-height: 0;
            transition: max-height 0.35s ease;
        }

        .faq-item.active .faq-answer-wrapper {
            max-height: 500px; /* Large enough to fit any answer */
        }

        .faq-answer {
            overflow: hidden;
        }

        .faq-answer-content {
            padding: 0 25px 20px;
            color: #cbd5e1;
            font-size: 1.15rem;
            line-height: 1.7;
        }

        /* FOOTER */
        footer {
            background: rgba(10, 14, 23, 0.95);
            border-top: 1px solid var(--border-highlight);
            padding: 60px 20px 40px;
            margin-top: auto;
            position: relative;
        }

        .footer-grid {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 40px;
        }

        .footer-link {
            color: var(--text-muted);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 18px;
            font-size: 1.15rem;
            font-weight: 500;
            transition: all 0.2s;
            cursor: pointer;
            background: transparent;
            border: none;
            font-family: inherit;
        }

        .footer-link svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
            transition: transform 0.2s;
        }

        .footer-link:hover {
            color: var(--primary-green);
        }

        .footer-link:hover svg {
            transform: translateX(3px);
        }

        /* ── Footer: Free Tools Button ───────────────────────────── */
        .footer-free-tools-btn {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            background: transparent;
            border: 1px solid rgba(251, 191, 36, 0.35);
            border-radius: 10px;
            padding: 9px 14px;
            text-decoration: none;
            color: var(--primary-gold);
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 0.95rem;
            font-weight: 600;
            transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
            cursor: pointer;
            letter-spacing: 0.2px;
            margin-bottom: 4px;
        }

        .footer-free-tools-btn .fft-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            flex-shrink: 0;
            color: var(--primary-gold);
            opacity: 0.85;
        }

        .footer-free-tools-btn .fft-icon svg {
            width: 16px;
            height: 16px;
        }

        .footer-free-tools-btn .fft-arrow {
            width: 14px;
            height: 14px;
            opacity: 0.7;
            transition: transform 0.2s, opacity 0.2s;
            flex-shrink: 0;
        }

        .footer-free-tools-btn:hover {
            background: rgba(251, 191, 36, 0.08);
            border-color: rgba(251, 191, 36, 0.6);
            color: #fcd34d;
            transform: translateX(2px);
        }

        .footer-free-tools-btn:hover .fft-arrow {
            transform: translateX(3px);
            opacity: 1;
        }

        /* MODALS */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 100;
            opacity: 0;
            pointer-events: none;
            transition: 0.4s ease;
        }

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

        .modal-content {
            background: rgba(15, 23, 42, 0.75);
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            border: 1px solid var(--border-highlight);
            border-radius: 28px;
            width: 90%;
            max-width: 450px;
            overflow: hidden;
            transform: scale(0.7) translateY(50px);
            opacity: 0;
            transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(251, 191, 36, 0.2);
            position: relative;
        }

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

        .modal-header {
            background: linear-gradient(180deg, #ffca28 0%, #ff9800 100%);
            color: #000;
            padding: 35px 20px 25px;
            font-family: 'Outfit', sans-serif;
            font-size: 2rem;
            font-weight: 700;
            text-align: center;
            text-transform: uppercase;
            letter-spacing: 2px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.2);
        }

        .modal-header svg {
            width: 45px;
            height: 45px;
            fill: #000;
        }

        .modal-body {
            padding: 60px 30px;
            text-align: center;
            background-color: #121928;
            background-image: url('data:image/svg+xml;utf8,<svg width="50" height="50" xmlns="http://www.w3.org/2000/svg"><path d="M25 20v10m-5-5h10" stroke="rgba(255,255,255,0.03)" stroke-width="2" fill="none"/></svg>');
            border-bottom: 1px solid rgba(0, 0, 0, 0.5);
        }

        .modal-winner-name {
            display: inline-block;
            font-size: clamp(2rem, 9vw, 3.8rem);
            color: #fff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-family: 'Outfit', sans-serif;
            line-height: 1.1;
            text-transform: uppercase;
            text-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
            animation: pulseText 2s infinite alternate;
            letter-spacing: 1px;
            max-width: 100%;
            box-sizing: border-box;
        }

        @keyframes pulseText {
            from {
                text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
            }

            to {
                text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 10px var(--primary-gold);
            }
        }

        .modal-footer {
            padding: 25px;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
            background: #0b101a;
        }

        .modal-footer .btn {
            flex: 1 1 calc(33.333% - 10px);
            min-width: 100px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 15px 5px;
            font-size: 1rem;
            font-family: 'Outfit', sans-serif;
            letter-spacing: 1px;
            line-height: 1.2;
            text-transform: uppercase;
            border-radius: 10px;
            background: #161e2e;
            white-space: normal;
            text-align: center;
            transition: all 0.2s ease;
            font-weight: 600;
            cursor: pointer;
        }

        .modal-footer .btn-close {
            color: #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .modal-footer .btn-close:hover {
            background: #1e293b;
            border-color: rgba(255, 255, 255, 0.3);
        }

        .modal-footer .btn-spin-again {
            color: #000;
            background: linear-gradient(135deg, var(--primary-gold), #f59e0b);
            border: none;
        }

        .modal-footer .btn-spin-again:hover {
            box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
            filter: brightness(1.1);
        }

        .modal-footer .btn-remove {
            color: #ef4444;
            border: 1px solid rgba(239, 68, 68, 0.3);
        }

        .modal-footer .btn-remove:hover {
            background: rgba(239, 68, 68, 0.05);
            box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
            border-color: rgba(239, 68, 68, 0.6);
        }

        .legal-modal-content {
            max-width: 800px;
            max-height: 85vh;
            display: flex;
            flex-direction: column;
            background: rgba(15, 23, 42, 0.85);
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            border: 1px solid var(--border-color);
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 255, 137, 0.1);
        }

        .legal-header {
            background: #1e293b;
            color: var(--text-light);
            text-align: left;
            padding: 20px 30px;
            flex-direction: row;
            justify-content: space-between;
            border-bottom: 1px solid var(--border-color);
        }

        .legal-body {
            padding: 30px;
            text-align: left;
            overflow-y: auto;
            background: none;
            flex: 1;
        }

        .legal-body h3 {
            color: var(--primary-green);
            margin: 25px 0 10px;
            font-family: 'Outfit', sans-serif;
            font-size: 1.4rem;
        }

        .legal-body p {
            color: var(--text-muted);
            font-size: 1.1rem;
            line-height: 1.7;
            margin-bottom: 15px;
        }

        .legal-body ul {
            color: var(--text-muted);
            margin-inline-start: 20px;
            font-size: 1.1rem;
            line-height: 1.7;
            margin-bottom: 15px;
        }

        .legal-close-btn {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            padding: 5px;
            opacity: 0.7;
            transition: opacity 0.2s;
        }

        .legal-close-btn:hover {
            opacity: 1;
            color: var(--primary-gold);
        }

        .customize-modal-content {
            max-width: 400px;
            background: rgba(15, 23, 42, 0.85);
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            border-radius: 28px;
            border: 1px solid var(--border-color);
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
            padding: 30px;
        }

        .customize-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
        }

        .customize-header h2 {
            font-family: 'Outfit', sans-serif;
            font-size: 1.6rem;
            color: #fff;
            letter-spacing: 1px;
            text-transform: uppercase;
            margin: 0;
        }

        .setting-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #1e2532;
            border: 1px solid #2e3645;
            border-radius: 10px;
            padding: 15px 20px;
            margin-bottom: 12px;
            cursor: pointer;
            transition: border-color 0.2s;
            flex-shrink: 0;
        }

        .setting-row:hover {
            border-color: #3b4455;
        }

        .setting-label {
            display: flex;
            align-items: center;
            gap: 12px;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-weight: 700;
            font-size: 1.15rem;
            color: #fff;
        }

        .custom-check {
            width: 44px;
            height: 24px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.1);
            position: relative;
            border: 1px solid rgba(255, 255, 255, 0.1);
            cursor: pointer;
            transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s;
        }

        .custom-check::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #fff;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .custom-check.checked {
            background: var(--primary-green);
            border-color: var(--primary-green);
        }

        .custom-check.checked::after {
            transform: translateX(20px);
        }

        .custom-check svg {
            display: none;
        }

        /* RTL Adjustments for Arabic & Persian */
        [dir="rtl"] .dropdown-menu {
            transform-origin: top left;
            right: auto;
            left: 0;
        }

        [dir="rtl"] .history-item:hover {
            transform: translateX(-4px);
        }

        [dir="rtl"] .footer-link svg {
            transform: rotate(180deg);
        }

        [dir="rtl"] .footer-link:hover svg {
            transform: translateX(-3px) rotate(180deg);
        }

        [dir="rtl"] .faq-question,
        [dir="rtl"] .seo-card,
        [dir="rtl"] .legal-body,
        [dir="rtl"] .legal-header {
            text-align: right;
        }

        [dir="rtl"] .faq-arrow {
            margin-right: auto;
            margin-left: 0;
        }

        [dir="rtl"] .setting-row {
            flex-direction: row-reverse;
        }

        
        .custom-select {
            background: rgba(15, 23, 42, 0.65) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 12px center;
            background-size: 20px;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            color: #fff;
            border: 1px solid var(--border-color);
            padding: 8px 40px 8px 12px !important; /* Ensure 40px padding on right to clear the arrow entirely */
            border-radius: 8px;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 1rem;
            font-weight: 500;
            outline: none;
            cursor: pointer;
            width: 195px !important; /* Fixed width to prevent shrinking and fit Emerald Casino [PRO] */
            flex-shrink: 0 !important; /* Prevent flexbox from squeezing the select element */
            transition: all 0.3s;
        }

        .custom-select:focus {
            border-color: var(--primary-green);
            box-shadow: 0 0 10px rgba(0, 255, 135, 0.2);
        }


        .pro-badge {
            background: linear-gradient(135deg, var(--primary-gold), #d97706);
            color: #000;
            font-size: 0.7rem;
            font-weight: 800;
            padding: 2px 6px;
            border-radius: 4px;
            margin-inline-start: 8px;
            letter-spacing: 1px;
            font-family: 'Outfit', sans-serif;
        }

        .dialog-content {
            background: #121826;
            border-radius: 16px;
            border: 1px solid #1e293b;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
            padding: 30px;
            text-align: center;
            max-width: 400px;
        }

        .dialog-title {
            font-family: 'Outfit', sans-serif;
            font-size: 1.8rem;
            color: #fff;
            text-transform: uppercase;
            margin-bottom: 10px;
        }

        .dialog-msg {
            color: var(--text-muted);
            font-size: 1.1rem;
            line-height: 1.6;
            margin-bottom: 25px;
        }

        .multiplayer-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-top: 20px;
        }

        .multi-card {
            background: rgba(30, 41, 59, 0.5);
            border: 1px solid var(--border-highlight);
            padding: 20px;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .multi-card:hover {
            border-color: var(--primary-green);
            background: rgba(0, 255, 135, 0.05);
        }

        .multi-card h3 {
            font-family: 'Outfit', sans-serif;
            font-size: 1.4rem;
            color: #fff;
            margin-bottom: 10px;
        }

        .multi-card p {
            color: var(--text-muted);
            font-size: 0.95rem;
        }

        .room-input {
            width: 100%;
            background: #0b101a;
            border: 2px solid #2e3645;
            color: #fff;
            padding: 15px;
            border-radius: 10px;
            font-family: 'Outfit', sans-serif;
            font-size: 1.5rem;
            text-align: center;
            text-transform: uppercase;
            letter-spacing: 4px;
            margin-bottom: 15px;
            outline: none;
        }

        .room-input:focus {
            border-color: var(--primary-green);
        }

        .live-badge { display: none; } /* replaced by live-room-bar */

        /* ── Live Room Session Bar ─────────────────────────────────────── */
        #live-room-bar {
            position: sticky;
            top: 0;
            z-index: 200;
            background: linear-gradient(90deg, rgba(0,20,10,0.97) 0%, rgba(0,15,30,0.97) 100%);
            border-bottom: 1px solid rgba(0,255,135,0.25);
            box-shadow: 0 2px 20px rgba(0,255,135,0.08);
            backdrop-filter: blur(12px);
            animation: slideDown 0.3s ease;
        }
        @keyframes slideDown {
            from { transform: translateY(-100%); opacity: 0; }
            to   { transform: translateY(0);    opacity: 1; }
        }
        .lrb-inner {
            max-width: 1200px;
            margin: 0 auto;
            padding: 10px 20px;
            display: flex;
            align-items: center;
            gap: 16px;
        }
        .lrb-left {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }
        .lrb-dot {
            width: 8px; height: 8px;
            background: var(--primary-green);
            border-radius: 50%;
            animation: pulseBg 1.2s infinite alternate;
        }
        .lrb-label {
            font-family: 'Outfit', sans-serif;
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 2px;
            color: var(--primary-green);
            text-transform: uppercase;
        }
        .lrb-code {
            font-family: 'Courier New', monospace;
            font-size: 1rem;
            font-weight: 900;
            color: #fff;
            letter-spacing: 4px;
            background: rgba(255,255,255,0.07);
            padding: 3px 12px;
            border-radius: 6px;
        }
        .lrb-copy-btn {
            background: none; border: 1px solid rgba(255,255,255,0.15);
            color: rgba(255,255,255,0.5); cursor: pointer;
            border-radius: 6px; padding: 4px 7px;
            display: flex; align-items: center;
            transition: all 0.2s;
        }
        .lrb-copy-btn:hover { border-color: var(--primary-green); color: var(--primary-green); }
        .lrb-copy-btn svg { width: 14px; height: 14px; }
        .lrb-players {
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1;
            flex-wrap: wrap;
        }
        .lrb-player-chip {
            display: flex;
            align-items: center;
            gap: 5px;
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 20px;
            padding: 3px 10px 3px 5px;
            font-size: 0.82rem;
            color: #e2e8f0;
            font-family: 'Outfit', sans-serif;
            transition: border-color 0.2s;
        }
        .lrb-player-chip.is-host {
            border-color: rgba(255,200,0,0.4);
            background: rgba(255,200,0,0.07);
        }
        .lrb-player-chip.is-you {
            border-color: rgba(0,255,135,0.35);
        }
        .lrb-player-avatar {
            width: 22px; height: 22px;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 0.7rem;
            font-weight: 700;
            color: #0a0e17;
            flex-shrink: 0;
        }
        .lrb-right {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
        }
        .lrb-spinner-label {
            font-size: 0.8rem;
            color: var(--primary-gold);
            font-weight: 600;
            animation: pulse 1s infinite alternate;
        }
        .lrb-info-btn {
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.12);
            color: rgba(255,255,255,0.7);
            border-radius: 8px; padding: 5px 12px;
            font-size: 0.8rem; font-weight: 600;
            cursor: pointer; display: flex; align-items: center; gap: 5px;
            transition: all 0.2s; font-family: 'Outfit', sans-serif;
        }
        .lrb-info-btn:hover { border-color: var(--primary-green); color: var(--primary-green); }
        .lrb-info-btn svg { width: 14px; height: 14px; }

        .live-dot {
            width: 10px;
            height: 10px;
            background: var(--primary-green);
            border-radius: 50%;
            animation: pulseBg 1.5s infinite alternate;
        }

        .live-badge:hover .live-dot {
            background: #000;
        }

        .player-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin: 15px 0;
            text-align: left;
            background: rgba(0, 0, 0, 0.3);
            padding: 15px;
            border-radius: 10px;
            max-height: 200px;
            overflow-y: auto;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .player-item {
            display: flex;
            align-items: center;
            gap: 12px;
            color: #fff;
            font-size: 1.1rem;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-weight: 600;
        }

        .player-item svg {
            fill: var(--primary-green);
            width: 18px;
            height: 18px;
        }

        .current-segment-display {
            font-family: 'Outfit', sans-serif;
            font-size: 2.4rem;
            font-weight: 700;
            color: #fbbf24;
            letter-spacing: 3px;
            text-transform: uppercase;
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.88) translateY(-4px);
            transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            white-space: nowrap;
            max-width: 90%;
            overflow: hidden;
            text-overflow: ellipsis;
            text-align: center;
            pointer-events: none;
            background: rgba(10, 14, 23, 0.8);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border: 1px solid rgba(251, 191, 36, 0.28);
            border-radius: 50px;
            padding: 10px 36px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
            text-shadow: 0 0 10px rgba(251, 191, 36, 0.12);
            height: 58px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
            contain: layout paint;
            position: absolute;
            left: 50%;
            top: 50%;
        }

        .current-segment-display.visible {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1) translateY(0);
        }

        .spin-indicator {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            background: rgba(15, 23, 42, 0.95);
            border: 1px solid var(--primary-gold);
            color: var(--primary-gold);
            padding: 8px 25px;
            border-radius: 20px;
            font-family: 'Outfit', sans-serif;
            font-size: 1.1rem;
            z-index: 30;
            display: none;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.9), 0 0 15px rgba(251, 191, 36, 0.3);
            letter-spacing: 1px;
            text-transform: uppercase;
            align-items: center;
            gap: 10px;
            white-space: nowrap;
        }

        .spin-indicator.active {
            display: flex;
            animation: slideDownCentered 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        @keyframes slideDownCentered {
            from {
                opacity: 0;
                transform: translate(-50%, -50%) translateY(-12px);
            }

            to {
                opacity: 1;
                transform: translate(-50%, -50%) translateY(0);
            }
        }

        .spin-loader {
            width: 16px;
            height: 16px;
            border: 2px solid rgba(251, 191, 36, 0.3);
            border-top-color: var(--primary-gold);
            border-radius: 50%;
            animation: spin-glow 1s linear infinite;
        }

        input[type=range] {
            -webkit-appearance: none;
            width: 100%;
            background: transparent;
            margin-top: 10px;
            outline: none;
        }

        input[type=range]::-webkit-slider-thumb {
            -webkit-appearance: none;
            height: 20px;
            width: 20px;
            border-radius: 50%;
            background: var(--primary-green);
            cursor: pointer;
            margin-top: -8px;
            box-shadow: 0 0 12px var(--primary-green);
            border: 2px solid #fff;
            transition: transform 0.1s, box-shadow 0.1s;
        }

        input[type=range]::-webkit-slider-thumb:hover {
            transform: scale(1.15);
            box-shadow: 0 0 16px var(--primary-green), 0 0 4px #fff;
        }

        input[type=range]::-webkit-slider-runnable-track {
            width: 100%;
            height: 4px;
            cursor: pointer;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 2px;
        }

        #confetti-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 150;
        }

        @media (max-width: 1200px) {
            header {
                padding: 1rem 2rem;
            }

            .app-container {
                grid-template-columns: 1fr 380px;
            }

            .content-section {
                grid-template-columns: repeat(2, 1fr);
            }

            .seo-card.full-width {
                grid-column: span 2;
            }

            .seo-card.col-2 {
                grid-column: span 2;
            }

            .pricing-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 20px;
            }

            .pricing-card {
                padding: 28px 18px;
            }

            .pricing-price {
                font-size: clamp(1.8rem, 3.5vw, 3rem);
            }
        }

        @media (max-width: 1024px) {
            .pricing-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 16px;
            }

            .pricing-card {
                padding: 24px 14px;
            }

            .pricing-tier {
                font-size: 1.1rem;
                letter-spacing: 1px;
            }

            .pricing-features li {
                font-size: 0.95rem;
            }

            .btn-pricing {
                font-size: 1rem;
                padding: 14px;
            }
        }

        @media (max-width: 992px) {
            .app-container {
                grid-template-columns: 1fr;
                padding: 20px;
                gap: 20px;
            }

            .content-section {
                grid-template-columns: 1fr;
            }

            .seo-card.full-width,
            .seo-card.col-2,
            .seo-card.col-1 {
                grid-column: span 1;
            }

            .stats-grid {
                grid-template-columns: 1fr;
            }

            .pricing-grid {
                grid-template-columns: 1fr;
                gap: 40px;
                max-width: 500px;
                margin: 0 auto;
            }

            .pricing-card.premium {
                transform: scale(1);
            }

            .pricing-card.premium:hover {
                transform: translateY(-10px);
            }

            .wheel-container {
                padding: 30px;
                margin-top: 20px;
                /* Disable expensive backdrop-filter on lower-res screens */
                backdrop-filter: none;
                -webkit-backdrop-filter: none;
                background: rgba(15, 23, 42, 0.72);
            }

            .controls-container {
                backdrop-filter: none;
                -webkit-backdrop-filter: none;
                background: rgba(15, 23, 42, 0.72);
            }
        }

        @media (max-width: 768px) {
            header h1 {
                font-size: 1.5rem;
            }

            header {
                padding: 0.75rem 1.25rem;
            }

            .logo {
                gap: 10px;
            }

            .premium-logo {
                width: 34px;
                height: 34px;
            }

            .logo h1 {
                font-size: 1.3rem;
                letter-spacing: 2px;
            }

            .logo-tagline {
                font-size: 0.68rem;
                letter-spacing: 0.8px;
            }

            .btn-auth {
                padding: 7px 13px;
                font-size: 0.82rem;
                border-radius: 8px;
            }

            .auth-buttons {
                gap: 6px;
            }

            .header-right {
                gap: 8px;
                flex-shrink: 0;
            }

            .wheel-container {
                padding: 20px;
                border-radius: 16px;
                margin-top: 20px;
                backdrop-filter: none;
                -webkit-backdrop-filter: none;
                background: rgba(15, 23, 42, 0.78);
            }

            .controls-container {
                backdrop-filter: none;
                -webkit-backdrop-filter: none;
                background: rgba(15, 23, 42, 0.78);
            }

            .wheel-wrapper {
                width: 100% !important;
                max-width: 380px !important;
                height: auto !important;
                aspect-ratio: 1 / 1 !important;
                flex-shrink: 0 !important;
                flex-grow: 0 !important;
                margin: 0 auto !important;
                padding: 0 !important;
            }

            .pointer {
                top: -18px;
                width: 34px;
                height: 44px;
            }

            .spin-btn-container {
                width: 85px;
                height: 85px;
                border-width: 3px;
            }

            .spin-btn-text {
                font-size: 1.4rem;
            }

            .current-segment-display {
                font-size: 2.2rem;
                height: 52px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                box-sizing: border-box;
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%) scale(0.88) translateY(-4px);
            }
            .current-segment-display.visible {
                transform: translate(-50%, -50%) scale(1) translateY(0);
            }

            .spin-indicator {
                font-size: 0.95rem;
                padding: 6px 16px;
            }

            .emote-bar {
                padding: 8px 15px;
            }

            .emote-bar button {
                font-size: 1.8rem;
            }

            .stat-value {
                font-size: 2.8rem;
            }

            .btn {
                padding: 12px 10px;
                font-size: 0.9rem;
            }

            .modal-winner-name {
                font-size: clamp(1.8rem, 8vw, 3rem);
            }

            .modal-body {
                padding: 40px 15px;
            }

            .modal-footer {
                flex-direction: column;
            }

            .modal-footer .btn {
                width: 100%;
                flex: 1 1 auto;
                padding: 15px;
            }

            textarea {
                min-height: 250px;
            }

            .legal-header {
                padding: 15px 20px;
            }

            .legal-body {
                padding: 20px;
            }
        }

        @media (max-width: 480px) {
            header {
                padding: 0.6rem 0.85rem;
            }

            .logo {
                gap: 8px;
            }

            .premium-logo {
                width: 28px;
                height: 28px;
            }

            .logo h1 {
                font-size: 1.1rem;
                letter-spacing: 1.5px;
            }

            /* Hide the tagline on very small screens to save horizontal space */
            .logo-tagline {
                display: none;
            }

            /* Hide Sign In — keep only Sign Up to prevent header overflow */
            .btn-signin {
                display: none;
            }

            /* Compact Sign Up button */
            .btn-signup {
                padding: 7px 14px;
                font-size: 0.82rem;
            }

            .auth-buttons {
                gap: 0;
            }

            .header-right {
                gap: 8px;
                flex-shrink: 0;
            }

            .app-container {
                padding: 10px 10px 30px;
                gap: 15px;
            }

            .wheel-container {
                padding: 15px;
                border-radius: 12px;
                margin-top: 10px;
            }

            .tabs {
                margin: 10px 10px 0 10px;
                padding: 6px;
                gap: 6px;
            }

            .tab {
                padding: 8px 6px;
                font-size: 0.85rem;
                letter-spacing: 0.5px;
            }

            .tab-badge {
                padding: 1px 5px;
                font-size: 0.75rem;
            }

            .tab-content {
                padding: 12px;
            }

            .toolbar {
                gap: 6px;
                margin-bottom: 10px;
            }

            .toolbar .btn {
                padding: 8px 6px;
                font-size: 0.8rem;
                min-width: 80px;
            }

            .stat-value {
                font-size: 2.2rem;
            }

            .seo-card {
                padding: 20px;
                border-radius: 16px;
            }

            .pricing-card {
                padding: 25px 15px;
                border-radius: 16px;
            }

            .pricing-price {
                font-size: 2.5rem;
            }

            /* --- MOBILE APP SECTION RESPONSIVE FIXES --- */
            #mobile-apps {
                padding: 30px 16px !important;
            }

            .launch-window-inner {
                padding: 12px 16px !important;
                gap: 12px !important;
                justify-content: center !important;
            }

            .launch-window-text, .launch-progress-wrap {
                min-width: 120px !important;
                flex: 1 1 auto !important;
                text-align: center !important;
                align-items: center !important;
            }

            .launch-progress-pct {
                text-align: center !important;
            }

            .waitlist-section {
                padding: 20px 16px !important;
                width: 100% !important;
                box-sizing: border-box !important;
            }

            .waitlist-input-row {
                flex-direction: column !important;
                background: transparent !important;
                border: none !important;
                gap: 10px !important;
                overflow: visible !important;
            }

            .waitlist-input-icon {
                display: none !important;
            }

            .waitlist-email-input {
                width: 100% !important;
                background: rgba(0, 0, 0, 0.35) !important;
                border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
                border-radius: 12px !important;
                padding: 14px 16px !important;
                text-align: center !important;
            }

            .waitlist-btn {
                width: 100% !important;
                border-radius: 12px !important;
                justify-content: center !important;
                padding: 14px 20px !important;
                margin: 0 !important;
            }

            /* --- CUSTOMIZE WHEEL MODAL RESPONSIVE FIXES --- */
            .customize-modal-content {
                padding: 20px !important;
                width: 95% !important;
                max-width: 90vw !important;
            }

            .customize-header {
                margin-bottom: 15px !important;
            }

            .customize-header h2 {
                font-size: 1.35rem !important;
            }

            #customize-scroll-area {
                max-height: 48vh !important;
                margin-bottom: 15px !important;
            }

            .setting-row {
                padding: 12px 14px !important;
                margin-bottom: 8px !important;
            }

            .setting-label {
                font-size: 0.95rem !important;
                gap: 8px !important;
            }

            .setting-label svg {
                width: 18px !important;
                height: 18px !important;
            }

            .custom-select {
                padding: 6px 36px 6px 10px !important; /* 36px right padding on mobile */
                font-size: 0.85rem !important;
                width: 180px !important; /* Comfortably fits long option text on mobile */
                flex-shrink: 0 !important;
            }
        }

        /* --- AMBIENT GLOW SYSTEM --- */
        .ambient-glow {
            position: fixed;
            width: 45vw;
            height: 45vw;
            border-radius: 50%;
            background: radial-gradient(circle, var(--primary-green) 0%, transparent 70%);
            opacity: 0.08;
            filter: blur(140px);
            pointer-events: none;
            z-index: -1;
            top: -10vw;
            left: -10vw;
            animation: floatGlow1 30s infinite alternate ease-in-out;
        }
        .ambient-glow-2 {
            position: fixed;
            width: 40vw;
            height: 40vw;
            border-radius: 50%;
            background: radial-gradient(circle, var(--primary-violet) 0%, transparent 70%);
            opacity: 0.06;
            filter: blur(140px);
            pointer-events: none;
            z-index: -1;
            right: -10vw;
            bottom: -10vw;
            animation: floatGlow2 25s infinite alternate ease-in-out;
        }
        @keyframes floatGlow1 {
            0% { transform: translate(-5%, -5%) rotate(0deg) scale(1); }
            100% { transform: translate(10%, 15%) rotate(360deg) scale(1.15); }
        }
        @keyframes floatGlow2 {
            0% { transform: translate(5%, 5%) rotate(0deg) scale(1.1); }
            100% { transform: translate(-10%, -15%) rotate(-360deg) scale(0.9); }
        }

        /* --- PREMIUM BUTTON STYLING --- */
        .btn-pricing-gold {
            background: linear-gradient(135deg, #fbbf24 0%, #d97706 50%, #fcd34d 100%);
            background-size: 200% auto;
            border: none;
            color: #050914 !important;
            font-weight: 800;
            box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .btn-pricing-gold:hover {
            background-position: right center;
            box-shadow: 0 8px 30px rgba(251, 191, 36, 0.7);
            transform: translateY(-2px) scale(1.02);
        }

        /* --- PRICING BUTTON FIX --- */
        .btn-pricing {
            display: block;
            width: 100%;
            padding: 18px;
            border-radius: 12px;
            font-size: 1.15rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Outfit', sans-serif;
            border: none;
            text-align: center;
            margin-top: auto;
        }

        .btn-pricing-outline {
            background: transparent;
            border: 2px solid rgba(255, 255, 255, 0.25);
            color: var(--text-light);
        }

        .btn-pricing-outline:hover {
            background: rgba(255, 255, 255, 0.07);
            border-color: rgba(255, 255, 255, 0.5);
        }

        .btn-pricing-green {
            background: rgba(0, 255, 135, 0.12);
            border: 2px solid var(--primary-green);
            color: var(--primary-green);
        }

        .btn-pricing-green:hover {
            background: rgba(0, 255, 135, 0.22);
            box-shadow: var(--green-glow);
        }

        /* --- HEADER AUTH BUTTONS --- */
        .header-right {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .auth-buttons {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .btn-auth {
            padding: 9px 20px;
            border-radius: 10px;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 0.95rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            letter-spacing: 0.3px;
            white-space: nowrap;
        }

        .btn-signin {
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: var(--text-light);
        }

        .btn-signin:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.4);
            transform: translateY(-1px);
        }

        .btn-signup {
            background: linear-gradient(135deg, var(--primary-green), #05d576);
            border: none;
            color: #000;
            box-shadow: 0 3px 12px rgba(0, 255, 135, 0.3);
        }

        .btn-signup:hover {
            box-shadow: var(--green-glow);
            transform: translateY(-2px);
            filter: brightness(1.05);
        }

        .btn-signout {
            background: transparent;
            border: 1px solid rgba(239, 68, 68, 0.35);
            color: #ef4444;
        }

        .btn-signout:hover {
            background: rgba(239, 68, 68, 0.1);
            border-color: #ef4444;
        }

        .auth-user-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .user-avatar {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-green), #05d576);
            color: #000;
            font-family: 'Outfit', sans-serif;
            font-weight: 800;
            font-size: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            text-transform: uppercase;
            box-shadow: 0 0 10px rgba(0, 255, 135, 0.3);
            cursor: default;
        }

        .user-email {
            color: var(--text-light, #ffffff);
            font-size: 0.9rem;
            font-weight: 500;
            font-family: 'Plus Jakarta Sans', sans-serif;
            opacity: 0.85;
        }

        @media (max-width: 576px) {
            .user-email {
                display: none !important;
            }
        }

        /* --- AUTH MODAL --- */
        .auth-modal-content {
            max-width: 420px;
            padding: 0;
            overflow: hidden;
        }

        .auth-modal-tabs {
            display: flex;
            align-items: center;
            background: rgba(0, 0, 0, 0.4);
            border-bottom: 1px solid var(--border-highlight);
            padding: 0 10px;
            position: relative;
        }

        .auth-tab {
            flex: 1;
            padding: 18px 10px;
            background: transparent;
            border: none;
            color: var(--text-muted);
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-weight: 700;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
            letter-spacing: 0.5px;
        }

        .auth-tab::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 10%;
            width: 80%;
            height: 2px;
            background: var(--primary-green);
            transform: scaleX(0);
            transition: transform 0.3s;
        }

        .auth-tab.active {
            color: var(--text-light);
        }

        .auth-tab.active::after {
            transform: scaleX(1);
        }

        .auth-modal-close {
            margin-left: auto;
            flex-shrink: 0;
        }

        .auth-modal-body {
            padding: 30px 35px 35px;
        }

        .auth-icon-wrap {
            display: flex;
            justify-content: center;
            margin-bottom: 16px;
            filter: drop-shadow(0 0 12px rgba(0, 255, 135, 0.25));
        }

        .auth-modal-title {
            font-family: 'Outfit', sans-serif;
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--text-light);
            text-align: center;
            margin-bottom: 8px;
            letter-spacing: 0.5px;
        }

        .auth-modal-subtitle {
            color: var(--text-muted);
            font-size: 0.95rem;
            text-align: center;
            margin-bottom: 24px;
            line-height: 1.5;
        }

        .auth-field {
            margin-bottom: 16px;
        }

        .auth-field label {
            display: block;
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 8px;
        }

        .auth-field .room-input {
            width: 100%;
            margin: 0;
            font-size: 1rem;
            text-transform: none;
            letter-spacing: normal;
            text-align: left;
            font-size: 0.95rem;
            padding: 13px 16px;
        }

        .auth-submit-btn {
            width: 100%;
            justify-content: center;
            margin-top: 8px;
            padding: 14px;
            border-radius: 10px;
            font-size: 1rem;
        }

        .auth-switch-text {
            text-align: center;
            color: var(--text-muted);
            font-size: 0.9rem;
            margin-top: 18px;
        }

        .auth-switch-text a {
            color: var(--primary-green);
            text-decoration: none;
            font-weight: 700;
        }

        .auth-switch-text a:hover {
            text-decoration: underline;
        }

        .auth-divider {
            display: flex;
            align-items: center;
            text-align: center;
            margin: 16px 0;
            color: var(--text-muted);
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .auth-divider::before,
        .auth-divider::after {
            content: '';
            flex: 1;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }
        .auth-divider:not(:empty)::before {
            margin-right: .5em;
        }
        .auth-divider:not(:empty)::after {
            margin-left: .5em;
        }
        .btn-google {
            background: #ffffff;
            color: #000000;
            border: none;
            width: 100%;
            padding: 12px;
            border-radius: 8px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
            font-family: 'Plus Jakarta Sans', sans-serif;
            text-transform: none;
            letter-spacing: 0.5px;
            font-size: 0.95rem;
        }
        .btn-google:hover {
            background: #f1f1f1;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
        }
        .btn-apple {
            background: #000000;
            color: #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.25);
            width: 100%;
            padding: 12px;
            border-radius: 8px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
            font-family: 'Plus Jakarta Sans', sans-serif;
            text-transform: none;
            letter-spacing: 0.5px;
            font-size: 0.95rem;
            margin-top: 12px;
        }
        .btn-apple:hover {
            background: #151515;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
        }

        @media (max-width: 600px) {
            .auth-buttons {
                gap: 6px;
            }
            .btn-auth {
                padding: 8px 12px;
                font-size: 0.85rem;
            }
            .btn-signin {
                display: none;
            }
        }

        /* --- CHECKOUT CARD INPUT --- */
        .checkout-card-input {
            display: flex;
            align-items: center;
            gap: 10px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--border-highlight);
            border-radius: 10px;
            padding: 12px 16px;
            transition: border-color 0.2s;
        }
        .checkout-card-input:focus-within {
            border-color: rgba(255, 255, 255, 0.3);
        }
        .checkout-card-input .room-input {
            box-shadow: none;
            text-transform: none;
            letter-spacing: normal;
            text-align: left;
            font-size: 0.95rem;
            padding: 0;
        }

        /* --- PAYMENT METHOD SELECTOR --- */
        .checkout-method-label {
            font-size: 0.78rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--text-muted);
            margin-bottom: 10px;
            font-weight: 600;
        }
        .checkout-method-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
            margin-bottom: 20px;
        }
        .checkout-method-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 12px 8px;
            background: rgba(255,255,255,0.04);
            border: 1.5px solid var(--border-highlight);
            border-radius: 10px;
            color: var(--text-muted);
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        .checkout-method-btn:hover {
            background: rgba(255,255,255,0.08);
            color: var(--text-light);
            border-color: rgba(255,255,255,0.2);
        }
        .checkout-method-btn.active {
            background: rgba(0,255,135,0.07);
            border-color: var(--primary-green);
            color: var(--primary-green);
        }

        /* --- TEST CARD HINT --- */
        .stripe-test-hint {
            background: rgba(251,191,36,0.07);
            border: 1px solid rgba(251,191,36,0.2);
            border-radius: 8px;
            padding: 10px 14px;
            font-size: 0.8rem;
            color: #fbbf24;
            margin-bottom: 16px;
            line-height: 1.5;
        }

        /* --- UNIVERSAL PAY BUTTON --- */
        .checkout-pay-btn {
            width: 100%;
            justify-content: center;
            padding: 14px;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 4px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .checkout-pay-btn:hover {
            filter: brightness(1.08);
            transform: translateY(-1px);
        }
        .checkout-pay-btn:active {
            transform: translateY(0);
        }

        /* --- SPIN GATE OVERLAY --- */
        .spin-gate-overlay {
            position: absolute;
            inset: 0;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.72);
            backdrop-filter: blur(6px);
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 12px;
            z-index: 20;
            pointer-events: all;
            cursor: pointer;
            transition: opacity 0.3s;
            text-align: center;
            padding: 20px;
        }
        .spin-gate-overlay.active {
            display: flex;
        }
        .spin-gate-icon {
            font-size: 2.4rem;
            line-height: 1;
        }
        .spin-gate-text {
            font-family: 'Outfit', sans-serif;
            font-weight: 700;
            font-size: 1.05rem;
            color: var(--text-light);
            line-height: 1.4;
        }
        .spin-gate-cta {
            display: flex;
            gap: 8px;
            margin-top: 4px;
            flex-wrap: wrap;
            justify-content: center;
        }
        .spin-gate-cta button {
            padding: 8px 18px;
            border-radius: 8px;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-weight: 700;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        .spin-gate-cta .gate-signin {
            background: transparent;
            border: 1px solid rgba(255,255,255,0.25);
            color: var(--text-light);
        }
        .spin-gate-cta .gate-signin:hover {
            background: rgba(255,255,255,0.08);
        }
        .spin-gate-cta .gate-signup {
            background: linear-gradient(135deg, var(--primary-green), #05d576);
            border: none;
            color: #000;
        }
        .spin-gate-cta .gate-signup:hover {
            filter: brightness(1.1);
        }

        /* ═══════════════════════════════════════════════════════════════════
           MOBILE PERFORMANCE — THE ONLY RELIABLE ANTI-SHAKE FIX
           ═══════════════════════════════════════════════════════════════════
           position:fixed on body COMPLETELY decouples the layout from the
           mobile browser chrome (address bar / nav bar). When the address bar
           shows or hides, a fixed body is never resized — it is nailed to the
           physical screen coordinates. This eliminates 100% of the
           "cards become bigger/smaller" zoom effect on mobile browsers.
           ═══════════════════════════════════════════════════════════════════ */
        @media (max-width: 768px) {
            body {
                position: static !important;
                width: 100% !important;
                height: auto !important;
                overflow-y: visible !important;
                overflow-x: hidden !important;
                /* Kill background-attachment:fixed (non-GPU on mobile) */
                background-attachment: scroll !important;
            }

            .wheel-container,
            .controls-container {
                transform: none !important;
                will-change: auto !important;
            }

            /* filter:blur on fixed elements triggers full-page recomposite */
            .ambient-glow,
            .ambient-glow-2 {
                display: none !important;
            }

            /* Remove backdrop-filter from header (GPU expensive on mobile) */
            header {
                backdrop-filter: none !important;
                -webkit-backdrop-filter: none !important;
                background: rgba(4, 8, 18, 0.96) !important;
                position: sticky !important;
                top: 0 !important;
                z-index: 9500 !important;
            }

            /* Starfield off on mobile */
            #starfield-canvas {
                display: none !important;
            }

            /* Prevent pinch zoom / tap zoom on wheel area but allow scroll on container */
            .wheel-wrapper,
            canvas#wheel,
            .spin-btn-container {
                touch-action: none !important;
            }

            /* Allow normal pan-scroll on the rest */
            main, .wheel-container, .controls-container {
                touch-action: pan-y !important;
            }
        }


        /* ── SPIN FREEZE — while wheel is animating, kill all other CSS animations ── */
        /* This class is added to body by script.js during spin and removed when done  */
        body.spinning .ambient-glow,
        body.spinning .ambient-glow-2 {
            animation-play-state: paused !important;
        }
        body.spinning::before {
            animation-play-state: paused !important;
        }
        /* On desktop: also freeze logo/UI micro-animations during spin */
        @media (min-width: 769px) {
            body.spinning .logo-spin-cw,
            body.spinning .logo-spin-ccw,
            body.spinning .logo-pulse-bg,
            body.spinning .logo-core {
                animation-play-state: paused !important;
            }
        }
