
        :root {
            --bg: #08080e;
            --surface: #10101a;
            --surface2: #181825;
            --border: #252535;
            --border2: #2e2e45;
            --accent: #00ffcc;
            --accent2: #7c3aed;
            --red: #ff4757;
            --yellow: #ffd32a;
            --ai: #f59e0b;
            --text: #e2e2f0;
            --muted: #5a5a7a;
            --muted2: #8888aa;
            --font-mono: 'JetBrains Mono', monospace;
            --font-display: 'Epilogue', sans-serif;
            --font-body: 'Plus Jakarta Sans', sans-serif;
            --font-alt: 'Lexend Deca', sans-serif;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; }
        html { scroll-behavior: smooth; }
        body { background: var(--bg); color: var(--text); font-family: var(--font-body); min-height: 100vh; overflow-x: hidden; }
        body::before { content: ''; position: fixed; inset: 0; background-image: linear-gradient(rgba(0, 255, 204, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 204, .025) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; z-index: 0; }
        #mainPage { position: relative; z-index: 1; }
        .page-inner { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
        .full-bleed { width: 100%; }

        /* ── NAVBAR ── */
        nav { position: fixed; left: 0; right: 0; z-index: 1000; padding: 16px 20px; top: 0; }
        .nav-container { max-width: 1400px; margin: 0 auto; }
        nav .nav-inner { background: linear-gradient(135deg, rgba(18, 25, 45, 0.7), rgba(10, 15, 30, 0.8)); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); border: 1px solid rgba(100, 140, 255, 0.15); border-radius: 60px; padding: 8px 24px 8px 28px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(100, 150, 255, 0.1) inset; }
        .logo { font-family: var(--font-alt); font-size: 1.3rem; font-weight: 600; color: white; text-decoration: none; letter-spacing: -0.5px; background: linear-gradient(135deg, #fff, var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
        .logo span { background: linear-gradient(135deg, var(--accent), #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
        .nav-links { display: flex; align-items: center; gap: 8px; }
        .nav-links a { padding: 10px 18px; font-size: .95rem; font-weight: 500; color: rgba(255, 255, 255, 0.8); text-decoration: none; border-radius: 40px; transition: all 0.2s; letter-spacing: -0.01em; }
        .nav-links a:hover { color: white; background: rgba(255, 255, 255, 0.05); }
        .nav-links a.nav-cta { background: linear-gradient(135deg, var(--accent), #00ccaa); color: #000; font-weight: 700; margin-left: 8px; box-shadow: 0 8px 20px rgba(0, 255, 204, 0.2); }
        .nav-links a.nav-cta:hover { background: linear-gradient(135deg, #00ffcc, #00b397); transform: translateY(-2px); }
        .ham-btn { display: none; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(100, 140, 255, 0.2); border-radius: 40px; color: white; width: 46px; height: 46px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; transition: all .2s; }
        .ham-btn:hover { border-color: var(--accent); background: rgba(0, 255, 204, 0.1); }
        .ham-line { width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; }
        .ham-btn.open .ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
        .ham-btn.open .ham-line:nth-child(2) { opacity: 0; }
        .ham-btn.open .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
        .nav-dropdown { display: none; position: fixed; top: 88px; left: 20px; right: 20px; background: linear-gradient(135deg, rgba(18, 25, 45, 0.95), rgba(10, 15, 30, 0.98)); backdrop-filter: blur(20px); border: 1px solid rgba(100, 140, 255, 0.2); border-radius: 24px; padding: 16px; z-index: 999; opacity: 0; transform: translateY(-10px); transition: all 0.3s ease; pointer-events: none; }
        .nav-dropdown.open { opacity: 1; transform: translateY(0); pointer-events: all; display: block; }
        .nav-dropdown-inner { display: flex; flex-direction: column; gap: 4px; }
        .nav-dropdown a { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, 0.8); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 12px 16px; border-radius: 16px; transition: all .15s; }
        .nav-dropdown a:hover { color: white; background: rgba(0, 255, 204, 0.1); }
        .nav-dropdown a .nav-link-icon { width: 24px; text-align: center; color: var(--accent); }
        .nav-divider { height: 1px; background: rgba(255, 255, 255, 0.1); margin: 10px 0; }
        .nav-badge-row { padding: 8px 16px; display: flex; align-items: center; gap: 8px; }
        @media(max-width:900px) { .nav-links { display: none; } .ham-btn { display: flex; } }

        .nav-user-btn { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; background: rgba(0, 255, 204, 0.07); border: 1px solid rgba(0, 255, 204, 0.2); border-radius: 40px; cursor: pointer; transition: all .2s; font-family: var(--font-body); color: white; text-decoration: none; border: none; position: relative; }
        .nav-user-btn:hover { background: rgba(0, 255, 204, 0.12); }
        .nav-user-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(0, 255, 204, 0.3); }
        .nav-user-name { font-size: .8rem; font-weight: 600; color: white; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .nav-user-arrow { font-size: .6rem; opacity: .6; color: white; }
        .crown-badge { position: absolute; top: -8px; right: -8px; background: var(--accent); color: #000; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .7rem; box-shadow: 0 0 10px var(--accent); animation: pulse 2s infinite; }
        @keyframes pulse { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.1) } }
        .nav-user-mobile { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: rgba(0, 255, 204, 0.05); border: 1px solid rgba(0, 255, 204, 0.15); border-radius: 14px; cursor: default; margin-bottom: 4px; position: relative; }
        .dd-user-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(0, 255, 204, 0.25); flex-shrink: 0; position: relative; }
        .dd-crown-badge { position: absolute; top: -5px; left: 25px; background: var(--accent); color: #000; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .6rem; box-shadow: 0 0 8px var(--accent); }
        .dd-user-name { font-weight: 700; font-size: .88rem; color: white; }
        .dd-user-email { font-size: .72rem; color: var(--muted2); font-family: var(--font-mono); }
        .dd-open-profile { margin-left: auto; background: none; border: none; color: var(--accent); font-size: 1.1rem; cursor: pointer; padding: 6px; border-radius: 8px; transition: background .2s; }
        .dd-open-profile:hover { background: rgba(0, 255, 204, 0.1); }

        /* ── HERO ── */
        .hero { padding: 160px 0 52px; text-align: center; max-width: 900px; margin: 0 auto; }
        @media(max-width:768px) { .hero { padding: 120px 0 40px; } }
        .hero-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(0, 255, 204, .06); border: 1px solid rgba(0, 255, 204, .18); border-radius: 40px; padding: 7px 18px; font-family: var(--font-mono); font-size: .7rem; color: var(--accent); margin-bottom: 26px; letter-spacing: .5px; }
        .hero-tag .dot-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.5s infinite; }
        .hero h1 { font-family: var(--font-display); font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 900; line-height: 1.0; letter-spacing: -3px; margin-bottom: 18px; }
        .hero h1 em { font-style: normal; color: var(--accent); position: relative; }
        .hero h1 em::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), transparent); border-radius: 2px; }
        .hero h1 .h1-sub { color: var(--muted2); font-size: clamp(1.4rem, 3vw, 2.4rem); display: block; margin-top: 8px; letter-spacing: -1.5px; font-weight: 700; }
        .hero-desc { color: var(--muted2); font-size: .98rem; line-height: 1.75; margin-bottom: 40px; max-width: 560px; margin-left: auto; margin-right: auto; }
        .hero-stats { display: flex; justify-content: center; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
        .hero-stat { text-align: center; }
        .hero-stat-num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 900; color: var(--accent); display: block; letter-spacing: -1px; }
        .hero-stat-label { font-size: .73rem; color: var(--muted2); margin-top: 3px; font-weight: 500; }

        /* ── INPUT SECTION ── */
        .input-section { max-width: 740px; margin: 0 auto; }
        .input-wrap { display: flex; border: 1.5px solid var(--border2); border-radius: 14px; overflow: hidden; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
        .input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 255, 204, .07); }
        .url-prefix { padding: 16px 14px; font-family: var(--font-mono); font-size: .72rem; color: var(--accent); background: rgba(0, 255, 204, .05); border-right: 1px solid var(--border); white-space: nowrap; display: flex; align-items: center; }
        #urlInput { flex: 1; background: transparent; border: none; outline: none; padding: 16px 18px; color: var(--text); font-family: var(--font-mono); font-size: 16px; min-width: 0; touch-action: manipulation; }
        #urlInput::placeholder { color: var(--muted); }
        #fetchBtn { padding: 16px 28px; background: var(--accent); color: #000; border: none; font-family: var(--font-display); font-weight: 800; font-size: .88rem; cursor: pointer; transition: background .2s, transform .1s; white-space: nowrap; flex-shrink: 0; }
        #fetchBtn:hover { background: #00e6b8; }
        #fetchBtn:active { transform: scale(.97); }
        #fetchBtn:disabled { background: var(--muted); cursor: not-allowed; }

        .fetch-options { display: flex; justify-content: center; gap: 8px; margin: 18px 0 8px; padding: 6px 12px; background: rgba(0, 255, 204, 0.02); border: 1px solid rgba(0, 255, 204, 0.08); border-radius: 40px; width: fit-content; margin-left: auto; margin-right: auto; flex-wrap: wrap; }
        .fetch-option { display: flex; align-items: center; gap: 4px; cursor: pointer; font-size: .75rem; color: var(--muted2); transition: all .2s; padding: 4px 8px; border-radius: 30px; }
        .fetch-option:hover { color: var(--text); background: rgba(0, 255, 204, 0.05); }
        .fetch-option.active { color: var(--accent); background: rgba(0, 255, 204, 0.08); }
        .fetch-option .tick-circle { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-size: .5rem; transition: all .2s; }
        .fetch-option.active .tick-circle { background: var(--accent); border-color: var(--accent); color: #000; }
        .fetch-option i { font-size: .7rem; }
        .proxy-note { margin-top: 9px; font-family: var(--font-mono); font-size: .63rem; color: var(--muted); text-align: center; line-height: 1.6; }
        #statusBar { max-width: 740px; margin: 12px auto 0; padding: 10px 15px; border-radius: 8px; font-family: var(--font-mono); font-size: .76rem; display: none; align-items: center; gap: 10px; }
        #statusBar.loading { display: flex; background: rgba(124, 58, 237, .12); border: 1px solid var(--accent2); color: #a78bfa; }
        #statusBar.success { display: flex; background: rgba(0, 255, 204, .07); border: 1px solid var(--accent); color: var(--accent); }
        #statusBar.error { display: flex; background: rgba(255, 71, 87, .08); border: 1px solid var(--red); color: var(--red); }
        .spinner { width: 13px; height: 13px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; flex-shrink: 0; }
        @keyframes spin { to { transform: rotate(360deg) } }

        /* ── SECTION HEADINGS ── */
        .section-head { text-align: center; margin-bottom: 40px; }
        .section-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .6rem; color: var(--accent); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px; }
        .section-eyebrow::before, .section-eyebrow::after { content: ''; width: 28px; height: 1px; background: var(--accent); opacity: .4; }
        .section-title { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 900; letter-spacing: -2.5px; line-height: 1.0; margin-bottom: 12px; }
        .section-title em { font-style: normal; color: var(--accent); }
        .section-sub { color: var(--muted2); font-size: .9rem; max-width: 500px; margin: 0 auto; line-height: 1.75; }
        .section-label { font-family: var(--font-mono); font-size: .63rem; color: var(--muted2); letter-spacing: 3px; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
        .section-label::before { content: ''; width: 18px; height: 1px; background: var(--accent); }

        /* ── FEATURES ── */
        #featuresSection { padding: 72px 0; position: relative; overflow: hidden; }
        @media(max-width:768px) { #featuresSection { display: none; } }
        .features-header { text-align: center; margin-bottom: 56px; opacity: 0; transform: translateY(20px); animation: fadeInUp 0.8s ease forwards; }
        .features-header h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 4.5vw, 3.1rem); font-weight: 900; letter-spacing: -2px; line-height: 1.05; margin-bottom: 16px; }
        .features-header h2 em { font-style: normal; color: var(--accent); position: relative; display: inline-block; }
        .features-header p { color: var(--muted2); font-size: .92rem; max-width: 500px; margin: 0 auto; line-height: 1.7; opacity: 0; animation: fadeIn 1s ease 0.3s forwards; }
        @keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
        @keyframes fadeIn { to { opacity: 1; } }

        /* ── MOBILE CAROUSEL ── */
        @media(max-width:768px) {
            .cards-grid { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 4px 4px 16px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
            .cards-grid::-webkit-scrollbar { display: none; }
            .cards-grid .site-card { flex: 0 0 280px; scroll-snap-align: start; }
            .carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
            .carousel-dot { width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.2); transition: all 0.3s; cursor: pointer; }
            .carousel-dot.active { width: 24px; background: var(--accent); }
        }

        /* ── SITE CARDS ── */
        #trendingSection { padding: 96px 0 0; }
        #recentSection { padding: 96px 0 96px; background: linear-gradient(180deg, var(--bg) 0%, rgba(0, 255, 204, 0.018) 40%, var(--bg) 100%); }
        #trendingSection .section-head, #recentSection .section-head { max-width: 1400px; margin-left: auto; margin-right: auto; padding: 0 32px 48px; }
        .cards-grid-wrap { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
        .cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; width: 100%; }
        #emptyRecent { display: none; color: var(--muted2); font-family: var(--font-mono); font-size: .76rem; text-align: center; padding: 56px 20px; border: 1px dashed var(--border2); border-radius: 16px; }
        .site-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 16px; cursor: pointer; overflow: hidden; position: relative; transition: border-color .22s, box-shadow .22s, transform .22s; display: flex; flex-direction: column; }
        .site-card:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 12px 40px rgba(0, 255, 204, .1); transform: translateY(-3px); }
        .site-card-browser { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--surface); border-bottom: 1px solid var(--border); flex-shrink: 0; }
        .sc-dot { width: 8px; height: 8px; border-radius: 50%; }
        .sc-dot-r { background: #ff5f57; }
        .sc-dot-y { background: #ffbd2e; }
        .sc-dot-g { background: #28c840; }
        .sc-url-bar { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; font-family: var(--font-mono); font-size: .48rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .site-card-thumb { width: 100%; height: 175px; position: relative; overflow: hidden; background: #0a0a14; flex-shrink: 0; }
        .site-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .site-card-thumb-overlay { position: absolute; inset: 0; z-index: 2; background: linear-gradient(to bottom, transparent 55%, rgba(8, 8, 14, .92) 100%); }
        .site-card-info { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
        .site-card-badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 20px; padding: 3px 9px; font-family: var(--font-mono); font-size: .5rem; margin-bottom: 8px; letter-spacing: .3px; width: fit-content; }
        .site-card-badge i { font-size: .55rem; }
        .site-card-badge.green { background: rgba(0, 255, 204, .07); border: 1px solid rgba(0, 255, 204, .18); color: var(--accent); }
        .site-card-badge.purple { background: rgba(124, 58, 237, .08); border: 1px solid rgba(124, 58, 237, .22); color: #a78bfa; }
        .site-card-title { font-family: var(--font-display); font-weight: 800; font-size: .93rem; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.25px; }
        .site-card-url { font-family: var(--font-mono); font-size: .52rem; color: var(--muted2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .site-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 11px; border-top: 1px solid var(--border); gap: 8px; }
        .site-card-sub { font-family: var(--font-mono); font-size: .51rem; color: var(--muted); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 5px; }
        .site-card-sub i { font-size: .55rem; flex-shrink: 0; }
        .site-card-btn { background: var(--accent); color: #000; border: none; border-radius: 7px; padding: 5px 13px; font-family: var(--font-display); font-size: .64rem; font-weight: 800; cursor: pointer; transition: background .15s, transform .1s; flex-shrink: 0; display: flex; align-items: center; gap: 5px; }
        .site-card-btn:hover { background: #00e6b8; transform: scale(1.05); }
        .hot-badge { position: absolute; top: 38px; right: 10px; background: var(--red); color: #fff; font-family: var(--font-mono); font-size: .49rem; padding: 3px 8px; border-radius: 20px; font-weight: 700; z-index: 4; letter-spacing: .3px; display: flex; align-items: center; gap: 4px; }
        .site-card-del { position: absolute; top: 34px; left: 8px; background: rgba(0, 0, 0, .72); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .06); color: var(--muted2); cursor: pointer; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 7px; z-index: 4; transition: color .18s, background .18s; }
        .site-card-del:hover { color: var(--red); background: rgba(255, 71, 87, .22); }
        @media(max-width:1200px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
        @media(max-width:820px) { .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } .site-card-thumb { height: 150px; } .cards-grid-wrap { padding: 0 16px; } #trendingSection .section-head, #recentSection .section-head { padding: 0 16px 36px; } }
        @media(max-width:500px) { .cards-grid { grid-template-columns: 1fr; gap: 12px; } .site-card-thumb { height: 185px; } }

        /* ── VIDEO SECTION ── */
        .video-section { padding: 60px 0 40px; position: relative; background: linear-gradient(180deg, rgba(0, 255, 204, 0.02) 0%, transparent 100%); }
        .video-container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
        .video-wrapper { position: relative; width: 100%; border-radius: 24px; overflow: hidden; background: #000; margin-top: 30px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset; animation: borderPulse 2s ease-in-out infinite; }
        .video-wrapper::before { content: ''; position: absolute; inset: -3px; border-radius: 27px; padding: 3px; background: linear-gradient(90deg, #00ffcc, #7cffb0, #b3ffb0, #7cffb0, #00ffcc); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.7; animation: borderGlow 3s linear infinite; pointer-events: none; z-index: 2; }
        @keyframes borderPulse { 0%, 100% { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(0, 255, 204, 0.2), 0 0 30px rgba(0, 255, 204, 0.3); } 50% { box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 0 4px rgba(0, 255, 204, 0.5), 0 0 50px rgba(0, 255, 204, 0.5); } }
        @keyframes borderGlow { 0% { background: linear-gradient(90deg, #00ffcc, #7cffb0, #b3ffb0, #7cffb0, #00ffcc); opacity: 0.5; } 50% { background: linear-gradient(270deg, #00ffcc, #7cffb0, #b3ffb0, #7cffb0, #00ffcc); opacity: 0.8; } 100% { background: linear-gradient(90deg, #00ffcc, #7cffb0, #b3ffb0, #7cffb0, #00ffcc); opacity: 0.5; } }
        .video-player { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; cursor: pointer; border-radius: 24px; position: relative; z-index: 1; background: #0a0a1a; }
        .video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(0, 255, 204, 0.1), rgba(124, 58, 237, 0.1)); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: 3; }
        .video-wrapper:hover .video-overlay { opacity: 1; }
        .video-play-btn { width: 80px; height: 80px; border-radius: 50%; background: var(--accent); border: none; color: #000; font-size: 2rem; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 0 30px var(--accent), 0 10px 20px rgba(0, 0, 0, 0.3); transform: scale(1); transition: transform 0.2s; pointer-events: all; animation: playButtonPulse 2s ease-in-out infinite; }
        @keyframes playButtonPulse { 0%, 100% { box-shadow: 0 0 30px var(--accent), 0 10px 20px rgba(0, 0, 0, 0.3); } 50% { box-shadow: 0 0 50px var(--accent), 0 15px 30px rgba(0, 0, 0, 0.4); transform: scale(1.05); } }
        .video-play-btn:hover { transform: scale(1.1); background: #00e6b8; }
        .video-caption { text-align: center; margin-top: 20px; font-size: 0.9rem; color: var(--muted2); }
        .video-caption i { color: var(--accent); margin-right: 5px; }

        /* ── TESTIMONIALS ── */
        #testimonialsSection { padding: 72px 0; overflow: hidden; }
        .testi-header { text-align: center; margin-bottom: 48px; }
        .testi-header h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 900; letter-spacing: -2px; margin-bottom: 10px; }
        .testi-header h2 em { font-style: normal; color: var(--accent); }
        .testi-header p { color: var(--muted2); font-size: .9rem; }
        .testi-outer { overflow: hidden; position: relative; }
        .testi-outer::before, .testi-outer::after { content: ''; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none; }
        .testi-outer::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
        .testi-outer::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
        @media(max-width:768px) { .testi-outer::before, .testi-outer::after { display: none; } .testi-slide { scroll-snap-align: center; } }
        .testi-track { display: flex; gap: 18px; transition: transform .5s cubic-bezier(.25, .46, .45, .94); }
        .testi-slide { flex: 0 0 340px; }
        .testi-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 16px; padding: 24px; height: 100%; transition: border-color .3s, box-shadow .3s; }
        .testi-slide.active .testi-card { border-color: rgba(0, 255, 204, .28); box-shadow: 0 18px 48px rgba(0, 255, 204, .07); background: rgba(0, 255, 204, .02); }
        .testi-stars { color: var(--yellow); font-size: .7rem; margin-bottom: 12px; display: flex; gap: 3px; }
        .testi-text { font-size: .84rem; line-height: 1.75; color: var(--text); margin-bottom: 18px; font-style: italic; }
        .testi-author { display: flex; align-items: center; gap: 11px; }
        .testi-avatar { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: .78rem; flex-shrink: 0; }
        .testi-name { font-family: var(--font-display); font-weight: 700; font-size: .86rem; letter-spacing: -.3px; }
        .testi-role { font-size: .66rem; color: var(--muted2); font-family: var(--font-mono); margin-top: 1px; }
        .testi-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; }
        .testi-nav-btn { background: var(--surface2); border: 1px solid var(--border2); color: var(--muted2); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: .9rem; display: flex; align-items: center; justify-content: center; transition: all .2s; }
        .testi-nav-btn:hover { border-color: var(--accent); color: var(--accent); }
        .testi-dots { display: flex; gap: 6px; align-items: center; }
        .testi-dot { height: 7px; width: 7px; border-radius: 4px; background: var(--border2); cursor: pointer; transition: background .2s, width .3s; }
        .testi-dot.active { background: var(--accent); width: 20px; }

        /* ── CTA ── */
        #ctaSection { padding: 72px 0; }
        .cta-box { background: linear-gradient(135deg, rgba(0, 255, 204, .05), rgba(124, 58, 237, .05)); border: 1px solid var(--border2); border-radius: 22px; padding: 64px 36px; position: relative; overflow: hidden; text-align: center; }
        .cta-box::before { content: ''; position: absolute; top: -70px; right: -70px; width: 240px; height: 240px; background: radial-gradient(circle, rgba(0, 255, 204, .09), transparent 70%); pointer-events: none; }
        .cta-box h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 3rem); font-weight: 900; letter-spacing: -2px; margin-bottom: 13px; }
        .cta-box h2 em { font-style: normal; color: var(--accent); }
        .cta-box p { color: var(--muted2); margin-bottom: 30px; font-size: .92rem; }
        .cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

        /* ── FOOTER ── */
        footer { border-top: 1px solid var(--border); padding: 44px 0 28px; }
        .footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
        .footer-top { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
        .footer-brand .logo { font-size: 1rem; display: inline-block; margin-bottom: 11px; }
        .footer-brand p { font-size: .8rem; color: var(--muted2); line-height: 1.75; max-width: 250px; }
        .footer-tags-row { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 13px; }
        .footer-tag { font-family: var(--font-mono); font-size: .56rem; color: var(--muted); background: var(--surface2); border: 1px solid var(--border); border-radius: 20px; padding: 3px 9px; }
        .footer-col h4 { font-family: var(--font-mono); font-size: .6rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 13px; }
        .footer-col a { display: block; font-size: .8rem; color: var(--muted2); text-decoration: none; margin-bottom: 8px; transition: color .2s; }
        .footer-col a:hover { color: var(--accent); }
        .footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
        .footer-copy { font-family: var(--font-mono); font-size: .63rem; color: var(--muted); line-height: 1.7; }
        .footer-copy a { color: var(--accent); text-decoration: none; }
        .footer-heart { color: var(--red); }
        .footer-right { font-family: var(--font-mono); font-size: .6rem; color: var(--muted); }
        .footer-right a { color: var(--muted2); text-decoration: none; margin: 0 5px; }
        .footer-right a:hover { color: var(--accent); }
        @media(max-width:768px) { .footer-top { grid-template-columns: 1fr; gap: 24px; } .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 8px; } }
        @media(max-width:900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; } }
        @media(max-width:680px) { .footer-top { grid-template-columns: 1fr; gap: 24px; } }

        /* ── BUTTONS ── */
        .btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 10px; font-family: var(--font-display); font-weight: 700; font-size: .83rem; cursor: pointer; border: none; transition: all .18s; white-space: nowrap; text-decoration: none; }
        .btn-ghost { background: transparent; color: var(--muted2); border: 1px solid var(--border2); }
        .btn-ghost:hover { color: var(--text); border-color: var(--muted2); }
        .btn-accent { background: var(--accent); color: #000; }
        .btn-accent:hover { background: #00e6b8; transform: translateY(-1px); }
        .btn-purple { background: var(--accent2); color: #fff; }
        .btn-purple:hover { background: #6d28d9; }
        .btn-green { background: #10b981; color: #fff; }
        .btn-green:hover { background: #059669; }
        .btn-deploy { background: linear-gradient(135deg, #7c3aed, #5b21b6); color: #fff; }
        .btn-deploy:hover { background: linear-gradient(135deg, #6d28d9, #4c1d95); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,58,237,0.35); }
        .btn-ai { background: var(--ai); color: #000; }
        .btn-lg { padding: 13px 30px; font-size: .93rem; border-radius: 12px; }

        /* ── WORKSPACE ── */
        #wsOverlay { position: fixed; inset: 0; z-index: 2000; background: var(--bg); display: none; flex-direction: column; }
        #wsOverlay.open { display: flex; animation: wsIn .22s ease; }
        @keyframes wsIn { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: translateY(0) } }
        .ws-topbar { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--surface2); border-bottom: 1px solid var(--border); flex-shrink: 0; flex-wrap: wrap; }
        .ws-back { background: transparent; border: 1px solid var(--border2); color: var(--muted2); border-radius: 8px; padding: 6px 13px; font-family: var(--font-body); font-weight: 600; font-size: .76rem; cursor: pointer; display: flex; align-items: center; gap: 5px; transition: all .2s; flex-shrink: 0; }
        .ws-back:hover { color: var(--text); border-color: var(--text); }
        .ws-favicon { width: 17px; height: 17px; border-radius: 4px; flex-shrink: 0; }
        .ws-title { font-family: var(--font-display); font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
        .ws-url { font-family: var(--font-mono); font-size: .66rem; color: var(--muted2); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .ws-actions { display: flex; gap: 7px; margin-left: auto; flex-shrink: 0; flex-wrap: wrap; }
        #wsStatus { padding: 6px 16px; font-family: var(--font-mono); font-size: .73rem; display: none; align-items: center; gap: 8px; flex-shrink: 0; }
        #wsStatus.success { display: flex; background: rgba(0, 255, 204, .07); color: var(--accent); border-bottom: 1px solid rgba(0, 255, 204, .15); }
        #wsStatus.error { display: flex; background: rgba(255, 71, 87, .07); color: var(--red); border-bottom: 1px solid rgba(255, 71, 87, .15); }
        #wsStatus.loading { display: flex; background: rgba(124, 58, 237, .1); color: #a78bfa; border-bottom: 1px solid rgba(124, 58, 237, .2); }
        .ws-tabs { display: flex; background: var(--surface2); border-bottom: 1px solid var(--border); flex-shrink: 0; overflow-x: auto; }
        .ws-tab { padding: 12px 20px; background: transparent; border: none; color: var(--muted2); font-family: var(--font-body); font-size: .8rem; font-weight: 600; cursor: pointer; position: relative; transition: color .2s; white-space: nowrap; flex-shrink: 0; }
        .ws-tab.active { color: var(--accent); }
        .ws-tab.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--accent); }
        .ws-tab:hover:not(.active) { color: var(--text); }
        .ws-panel { display: none; flex: 1; overflow: hidden; flex-direction: column; }
        .ws-panel.active { display: flex; }
        .preview-bar { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--surface2); border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: .68rem; color: var(--muted2); flex-shrink: 0; }
        .dot { width: 9px; height: 9px; border-radius: 50%; }
        .dot-r { background: var(--red); }
        .dot-y { background: var(--yellow); }
        .dot-g { background: var(--accent); }
        #previewFrame { flex: 1; border: none; width: 100%; background: #fff; }
        .code-bar { display: flex; align-items: center; gap: 9px; padding: 8px 14px; background: var(--surface2); border-bottom: 1px solid var(--border); flex-shrink: 0; }
        .lang-badge { font-family: var(--font-mono); font-size: .63rem; padding: 3px 9px; border-radius: 20px; background: rgba(0, 255, 204, .07); color: var(--accent); border: 1px solid rgba(0, 255, 204, .18); }
        #codePanel { display: none; flex: 1; overflow: hidden; flex-direction: column; }
        #codePanel.active { display: flex; }
        #aceEditor { flex: 1; width: 100%; font-size: 14px; line-height: 1.5; }
        @media (max-width: 768px) { #aceEditor { font-size: 14px; min-height: 200px; -webkit-text-size-adjust: 100%; touch-action: pan-y pinch-zoom; } }
        .edit-bar { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--surface2); border-bottom: 1px solid var(--border); flex-shrink: 0; flex-wrap: wrap; }
        .edit-hint { font-family: var(--font-mono); font-size: .66rem; color: var(--muted2); flex: 1; }
        .edit-hint strong { color: var(--accent); }
        #editFrame { flex: 1; border: none; width: 100%; background: #fff; }
        #aiPanel { background: var(--bg); }
        .ai-layout { display: flex; flex: 1; overflow: hidden; height: 100%; position: relative; }
        .ai-chat-col { display: flex; flex-direction: column; flex: 1; min-width: 0; border-right: 1px solid var(--border); transition: all 0.3s ease; }
        .ai-chat-col.collapsed { flex: 0; width: 0; min-width: 0; overflow: hidden; border-right: none; }
        .ai-chat-toggle { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 56px; background: var(--accent); border: 2px solid var(--border); border-left: none; border-radius: 0 12px 12px 0; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 20; color: #000; font-size: 1rem; transition: all 0.3s ease; box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3); }
        .ai-chat-toggle:hover { background: #00e6b8; width: 32px; }
        @keyframes pulseArrow { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
        .ai-chat-header { padding: 12px 16px; background: var(--surface2); border-bottom: 1px solid var(--border); flex-shrink: 0; display: flex; align-items: center; gap: 9px; }
        .ai-chat-header h3 { font-family: var(--font-display); font-size: .88rem; font-weight: 700; }
        .ai-device-switcher { display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 2px; margin-left: auto; }
        @media (max-width: 768px) { .ai-device-switcher { display: none; } }
        .ai-device-btn { background: transparent; border: none; color: var(--muted2); padding: 4px 10px; border-radius: 18px; font-size: .7rem; cursor: pointer; transition: all .2s; display: flex; align-items: center; gap: 4px; }
        .ai-device-btn.active { background: var(--ai); color: #000; }
        .ai-messages { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 13px; }
        .ai-msg { display: flex; gap: 9px; animation: msgIn .2s ease; }
        @keyframes msgIn { from { opacity: 0; transform: translateY(5px) } to { opacity: 1; transform: translateY(0) } }
        .ai-msg-avatar { width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: .76rem; font-family: var(--font-display); font-weight: 800; }
        .ai-msg.user .ai-msg-avatar { background: var(--accent2); color: #fff; }
        .ai-msg.ai .ai-msg-avatar { background: rgba(245, 158, 11, .15); color: var(--ai); border: 1px solid rgba(245, 158, 11, .3); }
        .ai-msg-bubble { flex: 1; min-width: 0; }
        .ai-msg-name { font-family: var(--font-mono); font-size: .6rem; color: var(--muted2); margin-bottom: 4px; }
        .ai-msg-text { font-size: .82rem; line-height: 1.65; color: var(--text); white-space: pre-wrap; word-break: break-word; }
        .ai-msg.ai .ai-msg-text { color: #c5cee0; }
        .ai-typing { display: flex; flex-direction: column; gap: 6px; padding: 6px 0; width: 100%; }
        .ai-typing-indicator { display: flex; gap: 6px; align-items: center; padding: 4px 0; }
        .ai-typing-dots { display: flex; gap: 4px; }
        .ai-typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--ai); animation: bounce 0.9s infinite; }
        .ai-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
        .ai-typing-dots span:nth-child(3) { animation-delay: 0.3s; }
        @keyframes bounce { 0%, 80%, 100% { transform: translateY(0) } 40% { transform: translateY(-5px) } }
        .ai-progress-bar { width: 100%; height: 4px; background: rgba(245, 158, 11, 0.1); border-radius: 4px; overflow: hidden; margin-top: 4px; }
        .ai-progress-fill { height: 100%; background: linear-gradient(90deg, var(--ai), #ffaa33); width: 0%; transition: width 0.3s ease; border-radius: 4px; }
        .ai-progress-text { font-family: var(--font-mono); font-size: .55rem; color: var(--muted2); margin-top: 2px; text-align: right; }
        .ai-applied { display: inline-flex; align-items: center; gap: 5px; background: rgba(0, 255, 204, .07); border: 1px solid rgba(0, 255, 204, .18); border-radius: 20px; padding: 4px 11px; font-family: var(--font-mono); font-size: .63rem; color: var(--accent); margin-top: 7px; cursor: pointer; transition: background .2s; }
        .ai-applied:hover { background: rgba(0, 255, 204, .13); }
        .ai-quick { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 16px 12px; }
        .ai-quick-btn { background: var(--surface2); border: 1px solid var(--border); border-radius: 20px; padding: 5px 12px; font-family: var(--font-mono); font-size: .62rem; color: var(--muted2); cursor: pointer; transition: all .15s; white-space: nowrap; }
        .ai-quick-btn:hover { border-color: var(--ai); color: var(--ai); background: rgba(245, 158, 11, .05); }
        .ai-input-row { padding: 12px 16px; border-top: 1px solid var(--border); background: var(--surface2); flex-shrink: 0; display: flex; flex-direction: column; gap: 7px; }
        .ai-textarea-wrap { display: flex; gap: 7px; align-items: flex-end; }
        #aiPrompt { flex: 1; background: var(--bg); border: 1.5px solid var(--border2); border-radius: 9px; padding: 9px 13px; color: var(--text); font-family: var(--font-mono); font-size: .78rem; outline: none; resize: none; min-height: 42px; max-height: 110px; line-height: 1.5; transition: border-color .2s; }
        #aiPrompt:focus { border-color: var(--ai); }
        #aiSendBtn { background: var(--ai); color: #000; border: none; border-radius: 9px; padding: 9px 14px; font-family: var(--font-display); font-weight: 700; font-size: .8rem; cursor: pointer; transition: background .2s, transform .1s; white-space: nowrap; flex-shrink: 0; }
        #aiSendBtn:hover { background: #f59e0b; }
        #aiSendBtn:disabled { background: var(--muted); cursor: not-allowed; }
        .ai-input-hint { font-family: var(--font-mono); font-size: .6rem; color: var(--muted); }
        .ai-input-hint strong { color: var(--ai); }
        .ai-preview-col { display: flex; flex-direction: column; flex: 1; min-width: 280px; background: var(--bg); transition: all 0.3s ease; }
        .ai-preview-col.expanded { flex: 2; }
        .ai-preview-header { padding: 11px 14px; background: var(--surface2); border-bottom: 1px solid var(--border); flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 9px; }
        .ai-preview-header h4 { font-size: .78rem; font-weight: 600; color: var(--muted2); }
        #aiPreviewFrame { flex: 1; border: none; width: 100%; background: #fff; transition: all 0.3s ease; margin: 0 auto; }
        .ai-preview-actions { display: flex; gap: 5px; }

        /* ── COLOR PICKER ── */
        #colorPickerPopup { position: fixed; background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 16px; z-index: 10001; display: none; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
        .color-picker-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
        .color-picker-close { background: transparent; border: none; color: var(--muted2); cursor: pointer; font-size: 1rem; }
        .color-picker-close:hover { color: var(--red); }
        .color-picker-footer { margin-top: 12px; display: flex; justify-content: flex-end; gap: 8px; }
        .style-label { font-family: var(--font-mono); font-size: .7rem; color: var(--muted2); margin-bottom: 8px; display: block; }
        .style-value { font-family: var(--font-mono); font-size: .7rem; color: var(--accent); margin-left: 8px; }
        .style-color-preview { width: 24px; height: 24px; border-radius: 4px; border: 1px solid var(--border); margin-left: 8px; }

        /* Toast */
        #toastNotification { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--surface2); border: 1px solid var(--accent); border-radius: 40px; padding: 12px 24px; font-family: var(--font-body); font-size: .85rem; color: white; display: flex; align-items: center; gap: 10px; z-index: 10000; transition: transform 0.3s ease; box-shadow: 0 10px 30px rgba(0, 255, 204, 0.2); }
        #toastNotification.show { transform: translateX(-50%) translateY(0); }
        #toastNotification i { color: var(--accent); }

        /* Edit Modal */
        #editModal { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .82); backdrop-filter: blur(8px); z-index: 3000; align-items: center; justify-content: center; }
        #editModal.open { display: flex; animation: fadeIn .16s ease; }
        .modal-box { background: var(--surface2); border: 1px solid var(--border2); border-radius: 15px; width: min(520px, 96vw); box-shadow: 0 36px 72px rgba(0, 0, 0, .7); animation: popIn .2s cubic-bezier(.34, 1.56, .64, 1); }
        @keyframes popIn { from { transform: scale(.87); opacity: 0 } to { transform: scale(1); opacity: 1 } }
        .modal-header { padding: 16px 20px 13px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
        .modal-header h3 { font-family: var(--font-display); font-size: .9rem; font-weight: 700; }
        .modal-type { font-family: var(--font-mono); font-size: .62rem; color: var(--accent); background: rgba(0, 255, 204, .08); padding: 3px 9px; border-radius: 20px; margin-left: 7px; }
        .modal-close { background: transparent; border: none; color: var(--muted2); font-size: 1.25rem; cursor: pointer; line-height: 1; }
        .modal-body { padding: 16px 20px; max-height: 68vh; overflow-y: auto; }
        .modal-label { font-family: var(--font-mono); font-size: .64rem; color: var(--muted2); margin-bottom: 6px; margin-top: 11px; display: block; letter-spacing: .5px; }
        .modal-label:first-child { margin-top: 0; }
        .modal-input, .modal-textarea { width: 100%; background: var(--bg); border: 1.5px solid var(--border2); border-radius: 8px; padding: 9px 12px; color: var(--text); font-family: var(--font-mono); font-size: .8rem; outline: none; transition: border-color .2s; resize: vertical; }
        .modal-input:focus, .modal-textarea:focus { border-color: var(--accent); }
        .modal-textarea { min-height: 75px; }
        .modal-preview-img { max-width: 100%; border-radius: 8px; margin-top: 9px; border: 1px solid var(--border); max-height: 140px; object-fit: contain; background: var(--surface2); display: block; }
        .upload-area { border: 2px dashed var(--border2); border-radius: 9px; padding: 18px; text-align: center; margin-top: 9px; cursor: pointer; transition: border-color .2s, background .2s; position: relative; }
        .upload-area:hover, .upload-area.drag { border-color: var(--accent); background: rgba(0, 255, 204, .03); }
        .upload-area input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
        .upload-area p { font-family: var(--font-mono); font-size: .7rem; color: var(--muted2); pointer-events: none; }
        .upload-area p strong { color: var(--accent); }
        .modal-tabs { display: flex; margin-bottom: 13px; border: 1px solid var(--border2); border-radius: 8px; overflow: hidden; }
        .modal-tab { flex: 1; padding: 7px; background: transparent; border: none; color: var(--muted2); font-family: var(--font-body); font-size: .74rem; font-weight: 600; cursor: pointer; transition: all .15s; }
        .modal-tab.active { background: var(--accent); color: #000; }
        .modal-footer { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 9px; }

        /* Image Modal */
        #imageModal { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .95); backdrop-filter: blur(20px); z-index: 4000; align-items: center; justify-content: center; }
        #imageModal.open { display: flex; animation: fadeIn .2s ease; }
        .image-modal-box { background: linear-gradient(145deg, rgba(25, 25, 45, 0.98), rgba(15, 15, 35, 0.98)); border: 1px solid rgba(0, 255, 204, 0.15); border-radius: 28px; width: min(1100px, 95vw); max-height: 90vh; overflow: hidden; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8); }
        .image-modal-header { padding: 20px 28px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); display: flex; align-items: center; justify-content: space-between; }
        .image-modal-header h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: white; display: flex; align-items: center; gap: 12px; }
        .image-count-badge { background: rgba(0, 255, 204, 0.1); border: 1px solid var(--accent); border-radius: 40px; padding: 5px 15px; font-family: var(--font-mono); font-size: .75rem; color: var(--accent); margin-left: 12px; }
        .image-modal-close { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--muted2); cursor: pointer; transition: all .2s; }
        .image-modal-close:hover { background: rgba(255, 71, 87, 0.15); color: var(--red); transform: rotate(90deg); }
        .image-modal-body { padding: 28px; max-height: calc(90vh - 150px); overflow-y: auto; }
        .image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
        .image-item { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 16px; overflow: hidden; transition: all .2s; }
        .image-item:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 30px rgba(0, 255, 204, 0.15); }
        .image-preview { height: 160px; background: rgba(0, 0, 0, 0.3); display: flex; align-items: center; justify-content: center; padding: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
        .image-preview img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
        .image-info { padding: 16px; }
        .image-name { font-family: var(--font-mono); font-size: .65rem; color: var(--muted2); margin-bottom: 12px; word-break: break-all; background: rgba(0, 0, 0, 0.2); padding: 6px 8px; border-radius: 6px; }
        .image-actions { display: flex; gap: 8px; }
        .image-btn { flex: 1; padding: 8px; background: transparent; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; color: var(--muted2); font-size: .7rem; cursor: pointer; transition: all .15s; display: flex; align-items: center; justify-content: center; gap: 6px; }
        .image-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(0, 255, 204, 0.05); }
        .image-modal-footer { padding: 20px 28px; border-top: 1px solid rgba(255, 255, 255, 0.05); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
        .image-stats { display: flex; gap: 20px; }
        .image-stat { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .75rem; color: var(--muted2); }
        .image-stat i { color: var(--accent); }
        .image-download-all-large { background: var(--accent); color: #000; border: none; border-radius: 12px; padding: 12px 28px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: all .2s; font-size: .9rem; }
        .image-download-all-large:hover { background: #00e6b8; transform: translateY(-2px); }
        .logo-badge { display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 215, 0, 0.1); border: 1px solid gold; border-radius: 12px; padding: 2px 8px; font-size: .6rem; color: gold; margin-left: 6px; }

        /* Color Modal */
        #colorModal { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .92); backdrop-filter: blur(16px); z-index: 4000; align-items: center; justify-content: center; }
        #colorModal.open { display: flex; animation: fadeIn .2s ease; }
        .color-modal-box { background: linear-gradient(145deg, rgba(20, 20, 36, 0.99), rgba(10, 10, 22, 0.99)); border: 1px solid rgba(0, 255, 204, 0.15); border-radius: 24px; width: min(900px, 94vw); max-height: 90vh; overflow: hidden; }
        .color-modal-header { padding: 20px 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); display: flex; align-items: center; justify-content: space-between; }
        .color-modal-header h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: white; display: flex; align-items: center; gap: 12px; }
        .color-modal-close { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--muted2); cursor: pointer; transition: all .2s; }
        .color-modal-close:hover { background: rgba(255, 71, 87, 0.15); color: var(--red); }
        .color-modal-body { padding: 24px; max-height: calc(90vh - 140px); overflow-y: auto; }
        .color-palette { background: var(--surface2); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-bottom: 24px; }
        .color-palette-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: white; margin-bottom: 4px; }
        .color-palette-sub { font-size: .8rem; color: var(--muted2); margin-bottom: 16px; }
        .color-palette-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; margin-bottom: 16px; }
        .color-palette-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: all .2s; cursor: pointer; }
        .color-palette-card:hover { transform: translateY(-2px); border-color: var(--accent); }
        .color-palette-swatch { height: 60px; }
        .color-palette-info { padding: 8px; text-align: center; }
        .color-palette-hex { font-family: var(--font-mono); font-size: .7rem; color: white; margin-bottom: 4px; }
        .color-palette-rgb { font-family: var(--font-mono); font-size: .6rem; color: var(--muted2); }
        .color-families { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
        @media (max-width: 600px) { .color-families { grid-template-columns: 1fr; } }
        .color-family { background: var(--surface2); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
        .color-family-header { padding: 12px 16px; background: rgba(0, 255, 204, 0.05); border-bottom: 1px solid var(--border); }
        .color-family-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: white; margin-bottom: 2px; text-transform: capitalize; }
        .color-family-count { font-size: .7rem; color: var(--muted2); }
        .color-family-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 2px; padding: 12px; }
        .color-swatch-item { aspect-ratio: 1; border-radius: 8px; position: relative; cursor: pointer; transition: all .2s; border: 1px solid transparent; }
        .color-swatch-item:hover { transform: scale(1.1); border-color: var(--accent); z-index: 2; }
        .color-swatch-item .color-hex { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; font-family: var(--font-mono); font-size: .55rem; color: white; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; margin-bottom: 4px; }
        .color-swatch-item:hover .color-hex { opacity: 1; }
        .color-modal-footer { padding: 20px 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
        .color-export-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border2); border-radius: 12px; padding: 10px 20px; color: var(--muted2); cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all .2s; font-size: .85rem; }
        .color-export-btn:hover { border-color: var(--accent); color: var(--accent); }

        /* SEO Modal */
        #seoModal { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .95); backdrop-filter: blur(20px); z-index: 4000; align-items: center; justify-content: center; }
        #seoModal.open { display: flex; animation: fadeIn .2s ease; }
        .seo-modal-box { background: linear-gradient(145deg, rgba(25, 25, 45, 0.98), rgba(15, 15, 35, 0.98)); border: 1px solid rgba(0, 255, 204, 0.15); border-radius: 28px; width: min(1100px, 95vw); max-height: 90vh; overflow: hidden; }
        .seo-modal-header { padding: 20px 28px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); display: flex; align-items: center; justify-content: space-between; }
        .seo-modal-header h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: white; display: flex; align-items: center; gap: 12px; }
        .seo-score-badge { background: rgba(0, 255, 204, 0.1); border: 1px solid var(--accent); border-radius: 40px; padding: 5px 15px; font-family: var(--font-mono); font-size: .75rem; color: var(--accent); }
        .seo-modal-close { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--muted2); cursor: pointer; transition: all .2s; }
        .seo-modal-close:hover { background: rgba(255, 71, 87, 0.15); color: var(--red); transform: rotate(90deg); }
        .seo-modal-body { padding: 28px; max-height: calc(90vh - 150px); overflow-y: auto; }
        .seo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 20px; }
        @media(max-width:768px) { .seo-grid { grid-template-columns: 1fr; } }
        .seo-card { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 20px; padding: 20px; }
        .seo-card h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: white; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
        .seo-card h4 i { color: var(--accent); }
        .seo-meta-item { margin-bottom: 16px; }
        .seo-meta-label { font-family: var(--font-mono); font-size: .65rem; color: var(--muted2); margin-bottom: 4px; text-transform: uppercase; }
        .seo-meta-value { background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 12px; font-size: .9rem; color: white; word-break: break-word; display: flex; justify-content: space-between; align-items: center; }
        .seo-meta-value .copy-btn { background: transparent; border: none; color: var(--muted2); cursor: pointer; padding: 6px; border-radius: 6px; transition: all .2s; }
        .seo-meta-value .copy-btn:hover { color: var(--accent); background: rgba(0, 255, 204, 0.1); }
        .seo-meta-value.missing { color: var(--red); }
        .seo-heading-line { display: flex; align-items: center; gap: 10px; padding: 8px; border-left: 2px solid var(--accent); margin-bottom: 4px; background: rgba(0, 0, 0, 0.2); border-radius: 0 8px 8px 0; }
        .seo-heading-tag { background: rgba(0, 255, 204, 0.1); border: 1px solid rgba(0, 255, 204, 0.2); border-radius: 6px; padding: 2px 8px; font-size: .65rem; font-weight: 700; color: var(--accent); min-width: 40px; text-align: center; }
        .seo-keywords-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
        .seo-keyword-tag { background: rgba(0, 255, 204, 0.08); border: 1px solid rgba(0, 255, 204, 0.15); border-radius: 20px; padding: 6px 14px; font-family: var(--font-mono); font-size: .75rem; color: var(--accent); cursor: pointer; transition: all .2s; display: flex; align-items: center; gap: 6px; }
        .seo-keyword-tag:hover { background: rgba(0, 255, 204, 0.15); transform: translateY(-2px); }
        .seo-keyword-tag .count { background: rgba(0, 0, 0, 0.3); border-radius: 12px; padding: 2px 6px; font-size: .6rem; color: var(--muted2); }
        .seo-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
        .seo-stat-item { text-align: center; padding: 12px; background: rgba(0, 0, 0, 0.2); border-radius: 12px; }
        .seo-stat-value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; color: var(--accent); line-height: 1; }
        .seo-stat-label { font-size: .65rem; color: var(--muted2); margin-top: 4px; }
        .seo-score-section { background: linear-gradient(135deg, rgba(0, 255, 204, 0.1), rgba(124, 58, 237, 0.1)); border: 1px solid rgba(0, 255, 204, 0.2); border-radius: 20px; padding: 24px; margin-top: 20px; }
        .seo-score-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 16px; }
        .seo-score-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: white; }
        .seo-score-number { font-size: 3rem; font-weight: 900; color: var(--accent); }
        .seo-meter { height: 8px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; overflow: hidden; margin-bottom: 24px; }
        .seo-meter-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--yellow)); border-radius: 4px; transition: width .5s ease; }
        .seo-recommendations { list-style: none; padding: 0; }
        .seo-recommendations li { display: flex; align-items: center; gap: 12px; padding: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: .85rem; }
        .seo-recommendations li.success { color: var(--accent); }
        .seo-recommendations li.warning { color: var(--yellow); }
        .seo-recommendations li.error { color: var(--red); }
        .seo-modal-footer { padding: 20px 28px; border-top: 1px solid rgba(255, 255, 255, 0.05); display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
        .seo-export-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 12px 24px; color: var(--muted2); cursor: pointer; display: flex; align-items: center; gap: 10px; transition: all .2s; font-size: .85rem; }
        .seo-export-btn:hover { border-color: var(--accent); color: var(--accent); }

        /* ZIP Progress */
        #zipProgress { display: none; position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--surface2); border: 1px solid var(--border2); border-radius: 40px; padding: 11px 20px; font-family: var(--font-mono); font-size: .7rem; color: var(--accent); gap: 9px; align-items: center; z-index: 4000; box-shadow: 0 14px 44px rgba(0, 0, 0, .5); white-space: nowrap; }
        #zipProgress.show { display: flex; animation: slideUp .28s ease; }
        @keyframes slideUp { from { transform: translateX(-50%) translateY(14px); opacity: 0 } to { transform: translateX(-50%) translateY(0); opacity: 1 } }
        .zip-bar-wrap { width: 130px; height: 4px; background: var(--border); border-radius: 3px; overflow: hidden; }
        .zip-bar { height: 100%; background: var(--accent); border-radius: 3px; transition: width .2s; }

        ::-webkit-scrollbar { width: 5px; height: 5px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
        ::-webkit-scrollbar-thumb:hover { background: var(--muted); }

        @media(max-width:900px) { .ai-preview-col { display: none; } .ai-layout { flex-direction: column; } }
        @media(max-width:768px) {
            .hero { padding: 120px 0 40px; }
            .hero h1 { letter-spacing: -1.5px; font-size: clamp(2rem, 8vw, 3.2rem); }
            .hero-stats { gap: 14px; }
            .hero-stat-num { font-size: 1.4rem; }
            .url-prefix { display: none; }
            .ws-actions { flex-wrap: wrap; gap: 5px; }
            .ws-title { max-width: 100px; }
            .ws-topbar { gap: 5px; padding: 7px 10px; flex-wrap: wrap; }
            .ws-url { display: none; }
            .input-wrap { border-radius: 12px; flex-wrap: wrap; }
            #fetchBtn { width: 100%; text-align: center; border-radius: 0 0 10px 10px; padding: 14px; }
            .fetch-options { gap: 4px; padding: 4px 8px; flex-wrap: wrap; }
            .cta-box { padding: 36px 18px; }
            .cta-btns { flex-direction: column; align-items: stretch; }
            .cta-btns .btn { justify-content: center; }
            .testi-slide { flex: 0 0 calc(100vw - 42px); }
            .ws-tab { padding: 10px 13px; font-size: .74rem; }
            #trendingSection { padding: 44px 0 12px; }
            #recentSection { padding: 12px 0 36px; }
            .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
            .image-modal-footer, .color-modal-footer, .seo-modal-footer { flex-direction: column; align-items: stretch; }
            .image-download-all-large { width: 100%; justify-content: center; }
            .edit-hint { display: none; }
        }
        @media(max-width:480px) {
            .hero { padding: 100px 0 30px; }
            .ws-actions .btn { padding: 5px 9px; font-size: .68rem; }
        }

        /* ── FETCH OVERLAY ── */
        #fetchOverlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
        #fetchOverlay.fov-visible { opacity: 1; pointer-events: all; }
        .fov-backdrop { position: absolute; inset: 0; background: rgba(5, 5, 14, 0.88); backdrop-filter: blur(12px) saturate(150%); }
        .fov-card { position: relative; z-index: 1; background: linear-gradient(145deg, rgba(22, 22, 40, 0.98), rgba(12, 12, 24, 0.98)); border: 1px solid rgba(0, 255, 204, 0.2); border-radius: 28px; padding: 44px 48px 40px; width: min(460px, 92vw); text-align: center; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7); transform: translateY(24px) scale(0.95); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
        #fetchOverlay.fov-visible .fov-card { transform: translateY(0) scale(1); }
        .fov-orb-wrap { position: relative; width: 90px; height: 90px; margin: 0 auto 28px; }
        .fov-orb { width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(0, 255, 204, 0.35), rgba(0, 255, 204, 0.05) 70%); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 40px rgba(0, 255, 204, 0.25); position: relative; }
        .fov-orb-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(0, 255, 204, 0.25); animation: fovRingSpin 2.5s linear infinite; }
        .fov-orb-ring.r1 { animation-duration: 2.5s; }
        .fov-orb-ring.r2 { inset: -12px; border-color: rgba(0, 255, 204, 0.13); animation-duration: 3.8s; animation-direction: reverse; }
        .fov-orb-ring.r3 { inset: -26px; border-color: rgba(124, 58, 237, 0.15); animation-duration: 5.5s; }
        @keyframes fovRingSpin { 0% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(180deg) scale(1.04); } 100% { transform: rotate(360deg) scale(1); } }
        .fov-icon { font-size: 2rem; color: var(--accent); filter: drop-shadow(0 0 12px rgba(0, 255, 204, 0.6)); animation: fovIconPulse 1.4s ease-in-out infinite; position: relative; z-index: 1; }
        @keyframes fovIconPulse { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(0, 255, 204, 0.5)); } 50% { transform: scale(1.15); filter: drop-shadow(0 0 20px rgba(0, 255, 204, 0.9)); } }
        .fov-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.5px; color: white; margin-bottom: 28px; }
        .fov-hostname { color: var(--accent); font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; display: inline-block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
        .fov-steps { display: flex; flex-direction: column; gap: 11px; margin-bottom: 24px; text-align: left; }
        .fov-step { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: .75rem; color: var(--muted); transition: color .3s; padding: 8px 14px; border-radius: 10px; transition: all .3s ease; }
        .fov-step.active { color: var(--accent); background: rgba(0, 255, 204, 0.05); border: 1px solid rgba(0, 255, 204, 0.12); }
        .fov-step.done { color: rgba(0, 255, 204, 0.6); }
        .fov-step.pending { color: var(--muted); }
        .fov-step-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--muted); transition: background .3s, box-shadow .3s; }
        .fov-step.active .fov-step-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(0, 255, 204, 0.2); animation: fovDotPulse 0.9s ease-in-out infinite; }
        .fov-step.done .fov-step-dot { background: rgba(0, 255, 204, 0.5); }
        @keyframes fovDotPulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(0, 255, 204, 0.15); } 50% { box-shadow: 0 0 0 6px rgba(0, 255, 204, 0.25); } }
        .fov-bar-wrap { height: 3px; background: rgba(255, 255, 255, 0.06); border-radius: 3px; overflow: hidden; margin-bottom: 16px; }
        .fov-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), #7c3aed); border-radius: 3px; transition: width .5s cubic-bezier(.4, 0, .2, 1); box-shadow: 0 0 8px rgba(0, 255, 204, 0.5); }
        .fov-sub { font-family: var(--font-mono); font-size: .65rem; color: var(--muted2); letter-spacing: .3px; min-height: 18px; transition: all .2s; }

        /* ── LOGIN MODAL ── */
        #loginModal { display: none; position: fixed; inset: 0; z-index: 8000; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(12px); }
        #loginModal.open { display: flex; animation: fadeIn .18s ease; }
        .login-box { background: linear-gradient(145deg, rgba(20, 20, 36, 0.99), rgba(10, 10, 22, 0.99)); border: 1px solid rgba(100, 140, 255, 0.18); border-radius: 24px; width: min(420px, 94vw); overflow: hidden; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7); animation: popIn .25s cubic-bezier(.34, 1.56, .64, 1); }
        .login-header { padding: 28px 28px 24px; text-align: center; position: relative; }
        .login-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--muted2); cursor: pointer; font-size: .85rem; display: flex; align-items: center; justify-content: center; transition: all .2s; }
        .login-close:hover { background: rgba(255, 71, 87, 0.15); color: var(--red); }
        .login-logo { font-family: var(--font-alt); font-size: 1.2rem; font-weight: 700; background: linear-gradient(135deg, #fff, var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 16px; display: block; }
        .login-logo span { background: linear-gradient(135deg, var(--accent), #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
        .login-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; letter-spacing: -.5px; color: white; margin-bottom: 6px; }
        .login-subtitle { font-size: .82rem; color: var(--muted2); line-height: 1.6; }
        .login-reason { margin: 0 28px 20px; padding: 12px 16px; background: rgba(0, 255, 204, 0.05); border: 1px solid rgba(0, 255, 204, 0.15); border-radius: 12px; font-family: var(--font-mono); font-size: .7rem; color: var(--accent); display: flex; align-items: center; gap: 9px; display: none; }
        .login-reason.show { display: flex; }
        .login-body { padding: 0 28px 28px; display: flex; flex-direction: column; gap: 12px; }
        .login-google-btn { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 20px; background: white; border: none; border-radius: 12px; font-family: var(--font-body); font-size: .92rem; font-weight: 600; color: #1f1f1f; cursor: pointer; transition: all .2s; text-decoration: none; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3); }
        .login-google-btn:hover { background: #f8f8f8; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
        .login-google-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
        .login-divider { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: .6rem; color: var(--muted); }
        .login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border2); }
        .login-perks { display: flex; flex-direction: column; gap: 8px; }
        .login-perk { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--muted2); }
        .login-perk i { color: var(--accent); width: 16px; text-align: center; font-size: .75rem; }
        .login-footer { padding: 16px 28px; border-top: 1px solid var(--border); font-size: .68rem; color: var(--muted); text-align: center; line-height: 1.6; }
        .login-footer a { color: var(--muted2); text-decoration: none; }

        /* User Dropdown */
        #userDropdown { position: fixed; top: 72px; right: 24px; width: 260px; background: linear-gradient(145deg, rgba(18, 18, 32, 0.99), rgba(10, 10, 24, 0.99)); border: 1px solid rgba(0, 255, 204, 0.15); border-radius: 18px; padding: 8px; z-index: 1500; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); opacity: 0; transform: translateY(-8px) scale(0.97); transition: all .2s cubic-bezier(.34, 1.56, .64, 1); pointer-events: none; }
        #userDropdown.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
        .udrop-user { padding: 12px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); margin-bottom: 6px; position: relative; }
        .udrop-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(0, 255, 204, 0.25); flex-shrink: 0; }
        .udrop-crown-badge { position: absolute; top: -5px; left: 25px; background: var(--accent); color: #000; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .6rem; }
        .udrop-name { font-weight: 700; font-size: .84rem; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .udrop-email { font-size: .64rem; color: var(--muted2); font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .udrop-stats { display: flex; gap: 6px; padding: 6px 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); margin-bottom: 6px; }
        .udrop-stat { flex: 1; text-align: center; background: rgba(0, 255, 204, 0.04); border: 1px solid rgba(0, 255, 204, 0.08); border-radius: 10px; padding: 8px 4px; }
        .udrop-stat-num { display: block; font-family: var(--font-display); font-size: 1.1rem; font-weight: 900; color: var(--accent); }
        .udrop-stat-label { display: block; font-family: var(--font-mono); font-size: .5rem; color: var(--muted2); margin-top: 1px; }
        .udrop-quota { padding: 6px 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); margin-bottom: 6px; }
        .udrop-quota-row { margin-bottom: 8px; }
        .udrop-quota-info { display: flex; justify-content: space-between; margin-bottom: 3px; }
        .udrop-quota-label { font-family: var(--font-mono); font-size: .55rem; color: var(--muted2); }
        .udrop-quota-count { font-family: var(--font-mono); font-size: .55rem; color: var(--accent); }
        .udrop-quota-bar-wrap { height: 3px; background: rgba(255, 255, 255, 0.07); border-radius: 3px; overflow: hidden; }
        .udrop-quota-bar { height: 100%; border-radius: 3px; transition: width .4s; }
        .udrop-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: rgba(255, 255, 255, 0.8); font-size: .82rem; cursor: pointer; transition: all .15s; text-decoration: none; background: none; border: none; width: 100%; text-align: left; font-family: var(--font-body); }
        .udrop-item:hover { background: rgba(0, 255, 204, 0.06); color: white; }
        .udrop-item i { width: 18px; text-align: center; color: var(--accent); font-size: .8rem; }
        .udrop-logout { color: rgba(255, 100, 100, 0.8) !important; }
        .udrop-logout:hover { background: rgba(255, 71, 87, 0.1) !important; color: var(--red) !important; }
        .udrop-logout i { color: var(--red) !important; }

        /* Gate overlay */
        .gate-overlay { position: absolute; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: rgba(8, 8, 14, 0.88); backdrop-filter: blur(4px); border-radius: 0; }
        .gate-icon { font-size: 2.2rem; color: var(--muted2); }
        .gate-title { font-family: var(--font-display); font-size: 1rem; font-weight: 800; color: white; text-align: center; }
        .gate-desc { font-size: .78rem; color: var(--muted2); text-align: center; max-width: 280px; line-height: 1.6; }
        .gate-btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 22px; border-radius: 10px; background: var(--accent); color: #000; font-family: var(--font-display); font-weight: 800; font-size: .83rem; cursor: pointer; border: none; transition: all .18s; }
        .gate-btn:hover { background: #00e6b8; transform: translateY(-1px); }
        .limit-banner { display: none; flex-shrink: 0; padding: 8px 16px; font-family: var(--font-mono); font-size: .68rem; align-items: center; gap: 8px; }
        .limit-banner.show { display: flex; }
        .limit-banner.warn { background: rgba(255, 211, 42, 0.08); color: var(--yellow); border-bottom: 1px solid rgba(255, 211, 42, 0.18); }
        .limit-banner.exhausted { background: rgba(255, 71, 87, 0.08); color: var(--red); border-bottom: 1px solid rgba(255, 71, 87, 0.18); }
        .limit-banner a { color: inherit; text-decoration: underline; cursor: pointer; margin-left: 4px; }

        /* User Profile Side Panel */
        #userPanelOverlay { position: fixed; inset: 0; z-index: 1900; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
        #userPanelOverlay.open { opacity: 1; pointer-events: all; }
        #userPanel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1901; width: 340px; max-width: 95vw; background: linear-gradient(160deg, rgba(18, 18, 32, 0.99), rgba(10, 10, 22, 0.99)); border-left: 1px solid rgba(0, 255, 204, 0.12); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .38s cubic-bezier(.32, .72, 0, 1); box-shadow: -24px 0 80px rgba(0, 0, 0, 0.6); }
        #userPanel.open { transform: translateX(0); }
        .up-header { padding: 24px 20px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); position: relative; }
        .up-header-inner { display: flex; align-items: center; gap: 16px; }
        .up-avatar-wrap { position: relative; flex-shrink: 0; }
        .up-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: block; border: 2px solid rgba(0, 255, 204, 0.3); }
        .up-avatar-ring { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(0, 255, 204, 0.2); animation: upRingPulse 2.5s ease-in-out infinite; }
        @keyframes upRingPulse { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
        .up-info { flex: 1; min-width: 0; }
        .up-name { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.3px; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .up-email { font-family: var(--font-mono); font-size: .68rem; color: var(--muted2); margin-top: 2px; }
        .up-badge { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 3px 10px; background: rgba(66, 133, 244, 0.14); border: 1px solid rgba(66, 133, 244, 0.25); border-radius: 20px; font-size: .62rem; font-weight: 600; color: #7baeff; font-family: var(--font-mono); }
        .up-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--muted2); cursor: pointer; font-size: .85rem; display: flex; align-items: center; justify-content: center; transition: all .2s; }
        .up-close:hover { background: rgba(255, 71, 87, 0.15); color: var(--red); }
        .up-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
        .up-section-label { font-family: var(--font-mono); font-size: .62rem; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; padding: 14px 4px 6px; }
        .up-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
        .up-stat { background: rgba(0, 255, 204, 0.04); border: 1px solid rgba(0, 255, 204, 0.1); border-radius: 14px; padding: 16px; text-align: center; }
        .up-stat-num { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; color: var(--accent); }
        .up-stat-label { font-family: var(--font-mono); font-size: .6rem; color: var(--muted2); display: block; margin-top: 2px; }
        .up-quota-section { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 6px; }
        .up-quota-row { margin-bottom: 12px; }
        .up-quota-info { display: flex; justify-content: space-between; margin-bottom: 5px; }
        .up-quota-name { font-family: var(--font-mono); font-size: .68rem; color: var(--muted2); }
        .up-quota-nums { font-family: var(--font-mono); font-size: .68rem; }
        .up-quota-bar-wrap { height: 4px; background: rgba(255, 255, 255, 0.07); border-radius: 3px; overflow: hidden; }
        .up-quota-bar { height: 100%; border-radius: 3px; transition: width .4s; }
        .up-actions { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
        .up-action-btn { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 14px; color: rgba(255, 255, 255, 0.8); text-decoration: none; cursor: pointer; transition: all .2s; font-size: .87rem; font-family: var(--font-body); text-align: left; width: 100%; }
        .up-action-btn i:first-child { width: 20px; text-align: center; color: var(--accent); font-size: .88rem; }
        .up-action-btn span { flex: 1; }
        .up-action-arrow { font-size: .65rem; color: var(--muted); transition: transform .2s, color .2s; }
        .up-action-btn:hover { background: rgba(0, 255, 204, 0.06); border-color: rgba(0, 255, 204, 0.18); color: white; }
        .up-action-btn:hover .up-action-arrow { transform: translateX(3px); color: var(--accent); }
        .up-logout { background: rgba(255, 71, 87, 0.05) !important; border-color: rgba(255, 71, 87, 0.12) !important; }
        .up-logout i:first-child { color: var(--red) !important; }
        .up-logout:hover { background: rgba(255, 71, 87, 0.1) !important; border-color: rgba(255, 71, 87, 0.3) !important; }
        .up-footer { padding: 16px 20px; border-top: 1px solid rgba(255, 255, 255, 0.06); display: flex; align-items: center; gap: 8px; font-size: .68rem; color: var(--muted); flex-wrap: wrap; }
        .up-footer a { color: var(--muted2); text-decoration: none; }
        .up-footer a:hover { color: var(--accent); }

        /* ── DEPLOY MODAL ── */
        #deployModal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.85); backdrop-filter: blur(10px); z-index: 5000; align-items: center; justify-content: center; }
        #deployModal.open { display: flex; animation: fadeIn .18s ease; }
   