/* ===========================================================
   VaultDL â€” Dark cyberpunk / glassmorphism design system
   =========================================================== */
*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0A0A0F;
    --bg-2: #0E0F1A;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.06);
    --surface-strong: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --accent: #00F5FF;
    --accent-2: #8B5CF6;
    --success: #00FF9D;
    --danger: #FF4D6D;
    --warning: #FFB347;
    --text: #F0F4FF;
    --muted: #8B92A8;
    --muted-2: #6B7280;
    --grad: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    --grad-soft: linear-gradient(135deg, rgba(0,245,255,0.15), rgba(139,92,246,0.15));
    --shadow-glow: 0 0 24px rgba(0, 245, 255, 0.18), 0 0 48px rgba(139, 92, 246, 0.12);
    --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.45);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

img, video { max-width: 100%; height: auto; display: block; }

body {
    font-family: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* ---------- Animated grid backdrop ---------- */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(0, 245, 255, 0.10), transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(139, 92, 246, 0.12), transparent 55%),
        var(--bg);
}
.bg-grid::before {
    content: "";
    position: absolute;
    inset: -2px;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    animation: gridShift 24s linear infinite;
}
@keyframes gridShift {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 40px 40px, 40px 40px; }
}

.bg-orbs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-orbs span {
    position: absolute;
    width: 360px; height: 360px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    will-change: transform;
    animation: float 18s ease-in-out infinite;
}
.bg-orbs span:nth-child(1) { background: var(--accent); top: -120px; left: -100px; }
.bg-orbs span:nth-child(2) { background: var(--accent-2); bottom: -140px; right: -120px; animation-delay: -8s; }
.bg-orbs span:nth-child(3) { background: #ff3df0; top: 40%; left: 60%; opacity: 0.18; animation-delay: -4s; }
@keyframes float {
    0%,100% { transform: translate(0,0) scale(1); }
    50%     { transform: translate(40px, -30px) scale(1.05); }
}

/* ---------- Layout ---------- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 22px; }

.font-display { font-family: 'Orbitron', 'Inter', sans-serif; letter-spacing: 0.02em; }
.font-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ---------- Navbar ---------- */
.navbar {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    background: rgba(10, 10, 15, 0.6);
    border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand {
    display: flex; align-items: center; gap: 10px;
    color: var(--text); text-decoration: none;
    font-family: 'Orbitron', sans-serif; font-weight: 800;
    font-size: 1.35rem; letter-spacing: 0.12em;
}
.brand-mark {
    width: 34px; height: 34px; border-radius: 9px;
    background: var(--grad);
    display: grid; place-items: center;
    box-shadow: 0 0 18px rgba(0,245,255,.45), inset 0 0 12px rgba(255,255,255,.18);
}
.brand-mark::after { content: "â–¾"; color: #0A0A0F; font-size: 16px; line-height: 1; transform: translateY(-1px); }
.brand-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 24px rgba(0,245,255,.18); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
    color: var(--muted); text-decoration: none;
    padding: 8px 14px; border-radius: 999px;
    font-size: 0.92rem; font-weight: 500;
    transition: color .2s ease, background .2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--surface); }
.nav-link.cta { color: #0A0A0F; background: var(--grad); font-weight: 700; box-shadow: 0 0 22px rgba(0,245,255,.35); }

.nav-toggle {
    display: none; background: none; border: 1px solid var(--border); color: var(--text);
    width: 40px; height: 40px; border-radius: 10px; font-size: 18px; cursor: pointer;
}
.bottom-nav { display: none; }

@media (max-width: 880px) {
    .nav-links { display: none; position: absolute; top: 64px; left: 12px; right: 12px;
        flex-direction: column; align-items: stretch; gap: 4px;
        padding: 12px; border-radius: 16px;
        background: rgba(14,15,26,.95); backdrop-filter: blur(20px);
        border: 1px solid var(--border); }
    .nav-links.open { display: flex; }
    .nav-link { padding: 12px 14px; border-radius: 10px; }
    .nav-toggle { display: grid; place-items: center; }

    .bottom-nav {
        display: flex; position: fixed; bottom: 12px; left: 12px; right: 12px; z-index: 49;
        justify-content: space-around; align-items: center;
        padding: 8px; border-radius: 18px;
        background: rgba(14,15,26,.85); backdrop-filter: blur(20px);
        border: 1px solid var(--border);
        box-shadow: 0 12px 32px rgba(0,0,0,.5);
    }
    .bottom-nav a {
        flex: 1; text-align: center; padding: 8px 4px;
        font-size: 0.7rem; color: var(--muted); text-decoration: none;
        border-radius: 12px;
    }
    .bottom-nav a .ic { display: block; font-size: 1.15rem; margin-bottom: 2px; }
    .bottom-nav a.active { color: var(--text); background: var(--surface); }
    body { padding-bottom: 140px; overflow-x: hidden; }
    .zone, .container, .container-narrow { max-width: 100%; overflow-x: hidden; }

    /* â”€â”€ Nav â”€â”€ */
    .navbar { padding: 0 14px; }

    /* â”€â”€ Containers â”€â”€ */
    .container, .container-narrow { padding: 0 14px; }

    /* â”€â”€ Platform hero â”€â”€ */
    .platform-hero { padding: 28px 0 16px; }
    .platform-hero h1 { font-size: clamp(1.4rem, 6.5vw, 2rem); line-height: 1.1; word-break: break-word; }
    .platform-hero .lead { font-size: 0.9rem; margin-top: 8px; }
    .breadcrumb { font-size: 0.78rem; }
    .platform-badge { padding: 5px 10px; margin-bottom: 10px; }

    /* â”€â”€ Downloader shell â”€â”€ */
    .downloader-shell { padding: 12px 0 32px; gap: 14px; }

    /* â”€â”€ Zone cards â”€â”€ */
    .zone { padding: 14px 14px 16px; margin-bottom: 12px; }
    .zone h3 { font-size: 0.8rem; margin-bottom: 10px; }

    /* â”€â”€ Input row â†’ vertical stack â”€â”€ */
    .fetch-row { flex-direction: column; gap: 8px; }
    .fetch-row .universal-input {
        width: 100%; border-radius: 14px;
        padding: 4px 12px 4px 16px; margin: 0;
    }
    .fetch-row .universal-input input { font-size: 0.9rem; padding: 12px 0; }
    #fetchBtn { width: 100%; border-radius: 14px; padding: 14px; font-size: 0.95rem; }

    /* â”€â”€ Auth status â”€â”€ */
    .auth-status { font-size: 0.78rem; padding: 8px 10px; }

    /* â”€â”€ Preview card â”€â”€ */
    .preview { grid-template-columns: 1fr; gap: 14px; }
    .preview h2 { font-size: 1rem; }
    .preview .uploader { font-size: 0.82rem; }
    .preview .meta { gap: 6px; }
    .preview .meta .chip { font-size: 0.72rem; padding: 4px 8px; }
    .preview .desc { font-size: 0.82rem; }

    /* â”€â”€ Options grid â”€â”€ */
    .option-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
    .option { padding: 12px 10px; }
    .option .lbl { font-size: 0.82rem; }
    .option .sub { font-size: 0.7rem; }

    /* â”€â”€ Format tabs â”€â”€ */
    .tabs { width: 100%; justify-content: stretch; }
    .tab { flex: 1; padding: 8px 6px; font-size: 0.78rem; text-align: center; }

    /* â”€â”€ Audio switch â”€â”€ */
    .switch { font-size: 0.88rem; }

    /* â”€â”€ dl-bar: hide on mobile (float btn replaces it) â”€â”€ */
    .dl-bar { display: none !important; }

    /* â”€â”€ Floating Download Now button â”€â”€ */
    .float-dl {
        display: flex;
        position: fixed;
        bottom: 76px;
        left: 12px;
        right: 12px;
        z-index: 50;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 16px 20px;
        border-radius: 18px;
        font-size: 1rem;
        font-weight: 700;
        font-family: 'Orbitron', sans-serif;
        letter-spacing: 0.04em;
        color: #fff;
        background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
        border: none;
        cursor: pointer;
        box-shadow: 0 6px 24px rgba(139,92,246,.5), 0 2px 8px rgba(0,0,0,.4);
        transition: transform .15s, box-shadow .15s, opacity .2s;
        opacity: 0;
        pointer-events: none;
        transform: translateY(16px);
    }
    .float-dl.visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .float-dl:active { transform: scale(.97); }
    .float-dl:disabled { opacity: .45; pointer-events: none; }

    /* â”€â”€ Summary text above float btn â”€â”€ */
    .float-dl-summary {
        display: block;
        position: fixed;
        bottom: 130px;
        left: 12px;
        right: 12px;
        z-index: 50;
        text-align: center;
        font-size: 0.78rem;
        color: var(--muted);
        opacity: 0;
        transition: opacity .2s;
        pointer-events: none;
    }
    .float-dl-summary.visible { opacity: 1; }

    /* â”€â”€ Progress bar above float btn â”€â”€ */
    .float-progress {
        display: block;
        position: fixed;
        bottom: 134px;
        left: 12px;
        right: 12px;
        z-index: 50;
        height: 4px;
        border-radius: 999px;
        background: var(--surface-2);
        overflow: hidden;
        opacity: 0;
        transition: opacity .2s;
    }
    .float-progress.visible { opacity: 1; }
    .float-progress .bar {
        height: 100%; width: 0;
        background: linear-gradient(135deg, var(--accent), var(--accent-2));
        transition: width .4s ease;
        animation: shimmer 2s linear infinite;
        background-size: 200% 100%;
    }
}

/* ---------- Hero ---------- */
.hero { padding: 88px 0 56px; text-align: center; position: relative; }
.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800; line-height: 1.05; letter-spacing: -0.01em;
    margin-bottom: 18px;
}
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--muted); font-size: 1.1rem; max-width: 620px; margin: 0 auto 28px; }

.universal-input {
    display: flex; gap: 8px; align-items: center;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 8px 8px 8px 22px;
    max-width: 720px; width: 100%; margin: 0 auto;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-glow);
    transition: border-color .25s, box-shadow .25s;
    box-sizing: border-box;
}
.universal-input:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0,245,255,.10), var(--shadow-glow);
}
.universal-input input {
    flex: 1; min-width: 0;
    background: transparent; border: 0; outline: 0;
    color: var(--text);
    font: 500 1rem 'JetBrains Mono', ui-monospace, monospace;
    padding: 14px 0;
}
.universal-input input::placeholder { color: var(--muted-2); }
.universal-input .btn,
.universal-input button { flex-shrink: 0; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    text-decoration: none;
    padding: 11px 16px;
    border-radius: 12px;
    font: 700 0.88rem 'Orbitron', 'DM Sans', sans-serif;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn:hover {
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

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

.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    color: #0A0A0F;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.35), 0 0 24px rgba(139, 92, 246, 0.2);
    animation: ctaPulse 2.5s ease-in-out infinite;
}

.btn-primary:hover {
    filter: brightness(1.03);
    box-shadow: 0 0 28px rgba(0, 245, 255, 0.45), 0 0 32px rgba(139, 92, 246, 0.25);
}

.btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--muted);
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: var(--surface);
}

.btn-lg {
    padding: 14px 20px;
    font-size: 0.94rem;
}

.btn-block {
    width: 100%;
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 18px rgba(0, 245, 255, 0.35), 0 0 24px rgba(139, 92, 246, 0.2); }
    50% { box-shadow: 0 0 26px rgba(0, 245, 255, 0.5), 0 0 32px rgba(139, 92, 246, 0.28); }
}

/* ============================================================
   MOBILE-FIRST RESPONSIVE SYSTEM
   Target: 320px â€“ 880px
   ============================================================ */
@media (max-width: 880px) {

        /* â”€â”€ Global containment: kill horizontal overflow â”€â”€ */
        *, *::before, *::after { max-width: 100%; }
        html, body {
            overflow-x: hidden;
            width: 100%;
            max-width: 100vw;
        }
        body {
            padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
        }

        /* â”€â”€ Reduce heavy background effects on mobile â”€â”€ */
        .bg-orbs span { width: 200px; height: 200px; filter: blur(60px); opacity: 0.22; }
        .bg-grid::before { animation: none; opacity: 0.5; }
        .zone, .card, .platform-card { backdrop-filter: none; -webkit-backdrop-filter: none; }
        .navbar { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
        .bottom-nav { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

        /* â”€â”€ Navbar â”€â”€ */
        .navbar { padding: 0; }
        .nav-inner { padding: 12px 16px; }
        .brand { font-size: 1.1rem; letter-spacing: 0.08em; }
        .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
        .nav-links {
            display: none;
            position: absolute; top: 56px; left: 12px; right: 12px;
            flex-direction: column; align-items: stretch; gap: 4px;
            padding: 10px; border-radius: 14px;
            background: rgba(14,15,26,.97);
            border: 1px solid var(--border);
            z-index: 100;
        }
        .nav-links.open { display: flex; }
        .nav-link { padding: 11px 14px; border-radius: 10px; font-size: 0.9rem; }
        .nav-toggle { display: grid; place-items: center; }

        /* â”€â”€ Bottom navigation â”€â”€ */
        .bottom-nav {
            display: flex;
            position: fixed;
            bottom: 0; left: 0; right: 0;
            z-index: 49;
            justify-content: space-around; align-items: center;
            padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
            background: rgba(10,10,15,.92);
            border-top: 1px solid var(--border);
        }
        .bottom-nav a {
            flex: 1; display: flex; flex-direction: column;
            align-items: center; justify-content: center;
            padding: 4px 2px; gap: 2px;
            font-size: 0.65rem; color: var(--muted); text-decoration: none;
            border-radius: 0; min-width: 0;
        }
        .bottom-nav a .ic { font-size: 1.05rem; line-height: 1; }
        .bottom-nav a.active { color: var(--accent); }

        /* â”€â”€ Containers â”€â”€ */
        .container, .container-narrow {
            width: 100%;
            max-width: 100%;
            padding: 0 16px;
            box-sizing: border-box;
        }

        /* â”€â”€ Sections â”€â”€ */
        section { padding: 28px 0; }

        /* â”€â”€ Hero (home page) â”€â”€ */
        .hero { padding: 40px 0 28px; }
        .hero h1 { font-size: clamp(1.7rem, 7vw, 2.6rem); }
        .hero p.lead { font-size: 0.92rem; margin-bottom: 20px; }
        .universal-input {
            max-width: 100%;
            padding: 6px 6px 6px 16px;
            border-radius: 14px;
            box-shadow: none;
        }
        .universal-input input { font-size: 0.88rem; padding: 10px 0; }

        /* â”€â”€ Platform hero â”€â”€ */
        .platform-hero { padding: 20px 0 12px; }
        .platform-hero h1 {
            font-size: clamp(1.35rem, 6vw, 1.9rem);
            line-height: 1.15;
            word-break: break-word;
            overflow-wrap: break-word;
        }
        .platform-hero .lead { font-size: 0.85rem; margin-top: 6px; }
        .breadcrumb { font-size: 0.75rem; margin-bottom: 8px; word-break: break-word; }
        .platform-badge { padding: 5px 10px; margin-bottom: 8px; font-size: 0.82rem; }
        .platform-badge .dot { width: 8px; height: 8px; }

        /* â”€â”€ Downloader shell â”€â”€ */
        .downloader-shell {
            display: block;
            padding: 8px 0 24px;
        }
        .sidebar { display: none; }

        /* â”€â”€ Zone cards â”€â”€ */
        .zone {
            width: 100%;
            box-sizing: border-box;
            padding: 14px 14px 16px;
            margin-bottom: 10px;
            border-radius: 14px;
        }
        .zone h3 { font-size: 0.72rem; margin-bottom: 10px; letter-spacing: .06em; }
        .zone h3::before { width: 4px; height: 14px; }

        /* â”€â”€ Auth status â”€â”€ */
        .auth-status {
            width: 100%;
            box-sizing: border-box;
            font-size: 0.8rem;
            padding: 8px 10px;
            border-radius: 8px;
            line-height: 1.4;
            word-break: break-word;
        }

        /* â”€â”€ Input row â†’ vertical stack â”€â”€ */
        .fetch-row {
            display: flex;
            flex-direction: column;
            gap: 8px;
            width: 100%;
        }
        .fetch-row .universal-input {
            width: 100%;
            max-width: 100%;
            flex: none;
            margin: 0;
            border-radius: 12px;
            padding: 4px 6px 4px 14px;
            box-shadow: none;
        }
        .fetch-row .universal-input input {
            font-size: 0.88rem;
            padding: 11px 0;
            width: 100%;
        }
        #fetchBtn {
            width: 100%;
            border-radius: 12px;
            padding: 14px 16px;
            font-size: 0.92rem;
        }

        /* â”€â”€ Feature tags row â”€â”€ */
        .row.mt-16 { gap: 6px; }
        .tag { font-size: 0.7rem; padding: 3px 8px; }

        /* â”€â”€ Loader â”€â”€ */
        .loader { padding: 36px 16px; }
        .orbital { width: 60px; height: 60px; }

        /* â”€â”€ Alert â”€â”€ */
        .alert { font-size: 0.85rem; padding: 10px 12px; }

        /* â”€â”€ Preview card â”€â”€ */
        .preview {
            display: flex;
            flex-direction: column;
            gap: 12px;
            padding: 14px 14px 16px;
        }
        .preview .thumb {
            width: 100%;
            border-radius: 12px;
            aspect-ratio: 16/9;
        }
        .preview .thumb img { border-radius: 12px; }
        .preview h2 {
            font-size: 0.98rem;
            line-height: 1.3;
            word-break: break-word;
            overflow-wrap: break-word;
        }
        .preview .uploader { font-size: 0.8rem; margin-bottom: 8px; }
        .preview .meta { gap: 5px; margin-bottom: 10px; }
        .preview .meta .chip { font-size: 0.7rem; padding: 3px 7px; gap: 4px; }
        .preview .desc { font-size: 0.8rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

        /* â”€â”€ Options grid â”€â”€ */
        .option-grid {
            grid-template-columns: repeat(3, 1fr);
            gap: 7px;
        }
        .option { padding: 10px 8px; border-radius: 8px; }
        .option .lbl { font-size: 0.78rem; margin-bottom: 2px; }
        .option .sub { font-size: 0.67rem; }
        .option .badge { font-size: 0.58rem; padding: 1px 6px; }

        /* â”€â”€ Format tabs â”€â”€ */
        .tabs {
            display: flex;
            width: 100%;
            border-radius: 10px;
            padding: 3px;
        }
        .tab {
            flex: 1;
            padding: 8px 4px;
            font-size: 0.76rem;
            border-radius: 8px;
            text-align: center;
            white-space: nowrap;
        }

        /* â”€â”€ Toggle switch â”€â”€ */
        .switch { font-size: 0.85rem; gap: 8px; }
        .switch .track { width: 38px; height: 20px; }
        .switch .track::after { width: 14px; height: 14px; }
        .switch input:checked + .track::after { left: 20px; }

        /* â”€â”€ dl-bar: hidden on mobile â€” float btn replaces it â”€â”€ */
        .dl-bar { display: none !important; }

        /* â”€â”€ Progress bar (desktop, hidden on mobile) â”€â”€ */
        .progress { display: none !important; }

        /* â”€â”€ History â”€â”€ */
        .history-item .url { max-width: 100%; }
        .history-item { gap: 8px; padding: 8px 10px; }
        .history-item .ttl { font-size: 0.85rem; }

        /* â”€â”€ Queue â”€â”€ */
        .queue-row { grid-template-columns: 1fr auto; gap: 8px; padding: 10px 12px; }

        /* â”€â”€ Footer â”€â”€ */
        footer { padding: 28px 0 20px; margin-top: 32px; }
        .foot-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
        .foot-bottom { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 0.78rem; }

        /* â”€â”€ Platform grid â”€â”€ */
        .platform-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }

        /* â”€â”€ Feature strip â”€â”€ */
        .feature-strip { grid-template-columns: 1fr; gap: 8px; }
        .feat { padding: 12px; gap: 10px; }
        .feat .fi { font-size: 1.2rem; }
        .feat strong { font-size: 0.88rem; }
        .feat span { font-size: 0.78rem; }

        /* â”€â”€ Steps â”€â”€ */
        .steps { grid-template-columns: 1fr; gap: 12px; }
        .step { padding: 18px; }

        /* â”€â”€ FAQ â”€â”€ */
        .faq-q { padding: 14px 16px; font-size: 0.92rem; }
        .faq-item.open .faq-a { padding: 0 16px 14px; }

        /* â”€â”€ Section titles â”€â”€ */
        .section-title { font-size: clamp(1.3rem, 5.5vw, 1.9rem); }

        /* â”€â”€ Batch / text areas â”€â”€ */
        textarea.input-area { min-height: 120px; font-size: 0.85rem; }

        /* ============================================================
           FLOATING DOWNLOAD UI (mobile-only, replaces dl-bar)
           ============================================================ */

        /* Progress bar â€” thin strip just above bottom nav */
        .float-progress {
            display: block;
            position: fixed;
            bottom: calc(58px + env(safe-area-inset-bottom, 0px));
            left: 0; right: 0;
            z-index: 51;
            height: 3px;
            background: var(--surface-2);
            overflow: hidden;
            opacity: 0;
            transition: opacity .2s;
        }
        .float-progress.visible { opacity: 1; }
        .float-progress .bar {
            height: 100%; width: 0;
            background: linear-gradient(90deg, var(--accent), var(--accent-2));
            transition: width .4s ease;
            animation: shimmer 2s linear infinite;
            background-size: 200% 100%;
        }

        /* Selection summary label */
        .float-dl-summary {
            display: block;
            position: fixed;
            bottom: calc(118px + env(safe-area-inset-bottom, 0px));
            left: 16px; right: 16px;
            z-index: 51;
            text-align: center;
            font-size: 0.74rem;
            color: var(--muted);
            background: rgba(10,10,15,.7);
            border-radius: 8px;
            padding: 4px 8px;
            opacity: 0;
            transition: opacity .2s;
            pointer-events: none;
        }
        .float-dl-summary.visible { opacity: 1; }

        /* Main CTA button */
        .float-dl {
            display: flex;
            position: fixed;
            bottom: calc(68px + env(safe-area-inset-bottom, 0px));
            left: 16px; right: 16px;
            z-index: 51;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 15px 16px;
            border-radius: 14px;
            font-size: 0.95rem;
            font-weight: 700;
            font-family: 'Orbitron', sans-serif;
            letter-spacing: 0.04em;
            color: #0A0A0F;
            background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 20px rgba(0,245,255,.3), 0 2px 8px rgba(0,0,0,.5);
            transition: transform .15s, opacity .2s;
            opacity: 0;
            pointer-events: none;
            transform: translateY(12px);
            will-change: transform, opacity;
        }
        .float-dl.visible {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
        }
        .float-dl:active { transform: scale(.96); }
        .float-dl:disabled { opacity: .4; pointer-events: none; }
    }

    /* â”€â”€ Extra-small: 320pxâ€“400px â”€â”€ */
    @media (max-width: 400px) {
        .container, .container-narrow { padding: 0 12px; }
        .zone { padding: 12px 12px 14px; border-radius: 12px; }
        .platform-hero h1 { font-size: clamp(1.2rem, 7vw, 1.6rem); }
        .brand { font-size: 0.95rem; }
        .brand-mark { width: 26px; height: 26px; }
        .option-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
        .option { padding: 9px 7px; }
        .option .lbl { font-size: 0.72rem; }
        .tab { font-size: 0.7rem; padding: 7px 3px; }
        .float-dl { font-size: 0.88rem; padding: 13px 14px; }
    }
}
.platform-badge .dot { width: 10px; height: 10px; border-radius: 50%;
    background: var(--p-accent); box-shadow: 0 0 10px var(--p-accent); }
.platform-badge span { font-size: 0.85rem; color: var(--muted); }

.platform-hero h1 .grad-p {
    background: linear-gradient(135deg, var(--p-accent), var(--p-accent-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.breadcrumb { color: var(--muted); font-size: 0.85rem; margin-bottom: 14px; text-align: center; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }

.downloader-shell { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 24px 0 64px; }
@media (max-width: 1024px) { .downloader-shell { grid-template-columns: 1fr; } .sidebar { display: none; } }

.sidebar {
    position: sticky; top: 80px; align-self: start;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px;
    max-height: calc(100vh - 100px); overflow-y: auto;
}
.sidebar h6 { font: 700 0.7rem/1 'Orbitron'; color: var(--muted); letter-spacing: .18em; margin: 8px 10px 10px; text-transform: uppercase; }
.sidebar a {
    display: flex; align-items: center; gap: 10px;
    color: var(--muted); text-decoration: none; padding: 9px 10px; border-radius: 10px;
    font-size: 0.88rem; transition: background .2s, color .2s;
}
.sidebar a:hover { background: var(--surface-2); color: var(--text); }
.sidebar a.active { background: var(--surface-strong); color: var(--text); border-left: 2px solid var(--p-accent, var(--accent)); padding-left: 8px; }
.sidebar a .si { width: 18px; text-align: center; }

.zone {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px; margin-bottom: 20px;
    backdrop-filter: blur(14px);
}
.zone h3 {
    font-family: 'Orbitron'; font-size: 1rem; letter-spacing: .08em;
    color: var(--muted); text-transform: uppercase;
    margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.zone h3::before { content: ""; width: 6px; height: 18px; border-radius: 3px; background: var(--grad); }

.fetch-row { display: flex; gap: 10px; flex-wrap: wrap; }
.fetch-row .universal-input { flex: 1; margin: 0; min-width: 0; }

.auth-status {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--muted);
    background: var(--surface-2);
}
.auth-status.ok {
    color: var(--success);
    border-color: rgba(0,255,157,.28);
    background: rgba(0,255,157,.07);
}
.auth-status.warn {
    color: var(--warning);
    border-color: rgba(255,179,71,.3);
    background: rgba(255,179,71,.08);
}
.auth-status.muted,
.auth-status.pending {
    color: var(--muted);
    border-color: var(--border);
    background: var(--surface-2);
}

.loader { display: none; padding: 60px 20px; text-align: center; }
.loader.show { display: block; }
.orbital { width: 80px; height: 80px; margin: 0 auto 18px; position: relative; }
.orbital .ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid transparent; border-top-color: var(--accent);
    animation: spin 1.2s linear infinite;
}
.orbital .ring:nth-child(2) { inset: 8px; border-top-color: var(--accent-2); animation-duration: 1.6s; animation-direction: reverse; }
.orbital .ring:nth-child(3) { inset: 16px; border-top-color: var(--success); animation-duration: 2s; }
.loader p { color: var(--muted); font-family: 'JetBrains Mono'; font-size: 0.9rem; }

.preview { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 22px; }
@media (max-width: 880px) { .preview { grid-template-columns: 1fr; } }
.preview .thumb {
    position: relative; aspect-ratio: 16/9; border-radius: var(--radius);
    overflow: hidden; background: var(--bg-2);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
}
.preview .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview .thumb .play {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: radial-gradient(circle at center, rgba(0,0,0,.0), rgba(0,0,0,.5));
    color: var(--text); font-size: 36px; opacity: .92;
    text-shadow: 0 0 18px rgba(0,245,255,.6);
}
.preview .thumb .duration {
    position: absolute; bottom: 8px; right: 8px;
    background: rgba(0,0,0,.65); color: #fff;
    padding: 4px 8px; border-radius: 6px;
    font: 600 0.78rem 'JetBrains Mono';
}
.preview h2 { font-size: 1.25rem; margin-bottom: 8px; line-height: 1.3; }
.preview .uploader { color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }
.preview .meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.preview .meta .chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border);
    font-size: 0.78rem; color: var(--muted);
}
.preview .desc { color: var(--muted); font-size: 0.88rem; line-height: 1.55; }

.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.option {
    position: relative;
    padding: 16px; border-radius: var(--radius-sm);
    background: var(--surface-2); border: 1px solid var(--border);
    cursor: pointer; transition: all .2s ease;
    text-align: left;
    color: var(--text); font-family: inherit;
}
.option:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.option.selected {
    border-color: var(--p-accent, var(--accent));
    background: color-mix(in srgb, var(--p-accent, var(--accent)) 10%, var(--surface));
    box-shadow: 0 0 16px color-mix(in srgb, var(--p-accent, var(--accent)) 25%, transparent);
}
.option.disabled, .option:disabled { opacity: 0.4; pointer-events: none; }
.option .lbl { font-family: 'Orbitron'; font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.option .sub { color: var(--muted); font-size: 0.78rem; }
.option .badge {
    position: absolute; top: -8px; right: 10px;
    padding: 2px 8px; border-radius: 999px;
    background: var(--grad); color: #0A0A0F;
    font: 800 0.65rem 'Orbitron'; letter-spacing: .12em;
}

.tabs { display: inline-flex; padding: 4px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border); flex-wrap: wrap; gap: 2px; }
.tab {
    background: transparent; border: 0; color: var(--muted);
    padding: 8px 16px; border-radius: 999px; cursor: pointer;
    font: 600 0.85rem 'Inter'; transition: all .2s;
}
.tab.active { color: #0A0A0F; background: var(--grad); }
.tab:disabled { opacity: 0.4; cursor: not-allowed; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch .track {
    width: 44px; height: 24px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border);
    position: relative; transition: background .2s;
}
.switch .track::after {
    content: ""; position: absolute; top: 2px; left: 2px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--muted); transition: all .2s;
}
.switch input:checked + .track { background: color-mix(in srgb, var(--accent) 25%, var(--surface-2)); border-color: var(--accent); }
.switch input:checked + .track::after { left: 22px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.dl-bar {
    position: sticky; bottom: 16px; margin-top: 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 14px 20px;
    background: rgba(14,15,26,.85); backdrop-filter: blur(20px);
    border: 1px solid var(--border-strong); border-radius: var(--radius);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    flex-wrap: wrap;
}
.dl-bar .summary { color: var(--muted); font-size: 0.88rem; min-width: 0; }
.dl-bar .summary strong { color: var(--text); font-family: 'JetBrains Mono'; }

.progress {
    width: 100%; height: 8px; border-radius: 999px;
    background: var(--surface-2); overflow: hidden;
    margin-top: 10px; display: none;
}
.progress.show { display: block; }
.progress .bar {
    height: 100%; width: 0; background: var(--grad);
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
    transition: width .4s ease;
}
@keyframes shimmer { 0%{background-position:0% 0} 100%{background-position:200% 0} }

.alert {
    margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); font-size: 0.9rem; display: none;
}
.alert.show { display: block; }
.alert.error   { color: var(--danger);  background: rgba(255,77,109,.08); border-color: rgba(255,77,109,.3); }
.alert.success { color: var(--success); background: rgba(0,255,157,.08); border-color: rgba(0,255,157,.3); }

.history { display: flex; flex-direction: column; gap: 8px; }
.history-item {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: var(--radius-sm);
    background: var(--surface-2); border: 1px solid var(--border);
}
.history-item .ti { min-width: 0; }
.history-item .url { display: block; font: 500 0.78rem 'JetBrains Mono'; color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 380px; }
.history-item .ttl { font-weight: 600; font-size: 0.92rem; }

footer {
    padding: 48px 0 32px; border-top: 1px solid var(--border);
    margin-top: 64px; color: var(--muted); font-size: 0.88rem;
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 28px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h6 { font: 700 0.78rem/1 'Orbitron'; letter-spacing: .14em; color: var(--text); margin-bottom: 12px; text-transform: uppercase; }
.foot-grid a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; }
.foot-grid a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 10px; }

.queue { display: flex; flex-direction: column; gap: 10px; }
.queue-row {
    display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center;
    padding: 12px 14px; border-radius: var(--radius-sm);
    background: var(--surface-2); border: 1px solid var(--border);
}
.queue-row .url { font: 500 0.82rem 'JetBrains Mono'; color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status { padding: 4px 10px; border-radius: 999px; font: 600 0.74rem 'Inter'; }
.status.pending { background: var(--surface); color: var(--muted); }
.status.downloading { background: rgba(0,245,255,.12); color: var(--accent); }
.status.done { background: rgba(0,255,157,.12); color: var(--success); }
.status.error { background: rgba(255,77,109,.12); color: var(--danger); }

textarea.input-area, input.input-text, select.input-text {
    width: 100%; background: var(--surface-2); border: 1px solid var(--border);
    color: var(--text); padding: 14px 16px; border-radius: var(--radius-sm);
    font: 500 0.92rem 'JetBrains Mono'; outline: none;
    transition: border-color .2s;
}
textarea.input-area:focus, input.input-text:focus, select.input-text:focus { border-color: var(--accent); }
textarea.input-area { min-height: 160px; resize: vertical; line-height: 1.5; }

.fade-up { animation: fadeUp .55s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hidden { display: none !important; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.text-muted { color: var(--muted); }
.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-strong); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }


/* ================================================================
   VAULTDL v2 â€” PREMIUM UI LAYER (cyberpunk + glassmorphism)
   Appended after the legacy stylesheet so newer rules win.
   ================================================================ */

:root {
    --p-accent: var(--accent);
    --p-accent-2: var(--accent-2);
    --bg-elevated: #0D0D1A;
    --border-glow: rgba(0, 245, 255, 0.30);
    --grad-fab: linear-gradient(90deg, #00F5FF 0%, #8B5CF6 100%);
}

body { font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

/* Tabler icon sizing helpers */
.ti { font-size: 1rem; line-height: 1; display: inline-block; vertical-align: -2px; }
.ti-lg { font-size: 1.25rem; }
.ti-xl { font-size: 1.5rem; }

/* ---------- Cosmetic mobile status bar ---------- */
.mobile-statusbar { display: none; }
@media (max-width: 880px) {
    .mobile-statusbar {
        display: flex;
        position: sticky;
        top: 0;
        z-index: 60;
        align-items: center;
        justify-content: space-between;
        height: 26px;
        padding: 0 14px;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border);
        font-family: 'Orbitron', sans-serif;
        font-size: 9px;
        letter-spacing: 0.18em;
    }
    .mobile-statusbar .sb-left {
        color: var(--accent);
        text-shadow: 0 0 8px rgba(0, 245, 255, 0.5);
    }
    .mobile-statusbar .sb-right {
        display: flex; align-items: center; gap: 6px;
        color: var(--text);
    }
    .mobile-statusbar .sb-dot {
        width: 6px; height: 6px; border-radius: 50%;
        background: var(--success);
        box-shadow: 0 0 6px var(--success);
        animation: pulseDot 2s ease-in-out infinite;
    }
    .mobile-statusbar .sb-batt {
        display: inline-flex; align-items: center; gap: 2px;
        font-size: 11px; opacity: 0.85;
    }
    @keyframes pulseDot {
        0%, 100% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.55; transform: scale(0.85); }
    }
}

/* ---------- Bottom nav (4 items, large touch targets) ---------- */
@media (max-width: 880px) {
    .bottom-nav {
        display: flex;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 49;
        height: 56px;
        padding: 0 0 env(safe-area-inset-bottom, 0px);
        background: rgba(13, 13, 26, 0.96);
        backdrop-filter: blur(18px) saturate(160%);
        -webkit-backdrop-filter: blur(18px) saturate(160%);
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        justify-content: space-around;
        align-items: stretch;
    }
    .bottom-nav a {
        flex: 1; min-width: 44px;
        display: flex; flex-direction: column;
        align-items: center; justify-content: center;
        gap: 2px;
        font-size: 10px;
        font-weight: 600;
        color: var(--muted);
        text-decoration: none;
        position: relative;
        transition: color 0.18s ease;
    }
    .bottom-nav a .ti { font-size: 20px; }
    .bottom-nav a.active { color: var(--accent); }
    .bottom-nav a.active::before {
        content: "";
        position: absolute; top: 0; left: 30%; right: 30%;
        height: 2px;
        background: var(--accent);
        box-shadow: 0 0 8px var(--accent);
        border-radius: 0 0 3px 3px;
    }
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ---------- Mobile-only visibility helpers ---------- */
.mobile-only { display: none; }
.desktop-only { display: block; }
@media (max-width: 880px) {
    .mobile-only { display: block; }
    .desktop-only { display: none !important; }
}

/* ---------- Mobile compact hero (home) ---------- */
.m-hero { display: none; }
@media (max-width: 880px) {
    .m-hero {
        display: block;
        position: relative;
        padding: 22px 16px 18px;
        margin: 12px 14px 0;
        border-radius: 22px;
        background:
            radial-gradient(ellipse at 50% 0%, rgba(0, 245, 255, 0.10), transparent 60%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
        border: 1px solid var(--border);
        overflow: hidden;
    }
    .m-hero::before {
        content: ""; position: absolute; inset: 0; pointer-events: none;
        background-image:
            linear-gradient(rgba(0, 245, 255, 0.05) 1px, transparent 1px),
            linear-gradient(90deg, rgba(0, 245, 255, 0.05) 1px, transparent 1px);
        background-size: 24px 24px;
        mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
        -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
        opacity: 0.6;
    }
    .m-hero > * { position: relative; z-index: 1; }
    .m-hero .m-logo {
        font-family: 'Orbitron', sans-serif;
        font-weight: 800;
        font-size: 22px;
        letter-spacing: 4px;
        background: var(--grad-fab);
        -webkit-background-clip: text; background-clip: text; color: transparent;
        text-align: center;
        margin: 0 0 4px;
    }
    .m-hero .m-tag {
        text-align: center;
        color: var(--muted);
        font-size: 11px;
        letter-spacing: 0.04em;
        margin-bottom: 16px;
    }
    .m-hero .m-input {
        display: flex; align-items: center; gap: 6px;
        padding: 5px 5px 5px 14px;
        background: rgba(13, 13, 26, 0.7);
        border: 1px solid var(--border-glow);
        border-radius: 999px;
        transition: box-shadow 0.2s, border-color 0.2s;
    }
    .m-hero .m-input:focus-within {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.15), inset 0 0 16px rgba(0, 245, 255, 0.10);
    }
    .m-hero .m-input .ti { color: var(--accent); margin-right: 4px; }
    .m-hero .m-input input {
        flex: 1; min-width: 0;
        background: transparent; border: 0; outline: 0;
        color: var(--text);
        font: 500 13px 'DM Sans', sans-serif;
        padding: 10px 0;
    }
    .m-hero .m-input input::placeholder { color: var(--muted-2); }
    .m-hero .m-input button {
        padding: 9px 16px;
        border-radius: 999px;
        border: 0;
        background: var(--accent);
        color: #0A0A0F;
        font: 700 12px 'Orbitron', sans-serif;
        letter-spacing: 0.06em;
        cursor: pointer;
        display: inline-flex; align-items: center; gap: 4px;
        box-shadow: 0 0 18px rgba(0, 245, 255, 0.45);
    }
}

/* ---------- Mobile section header ---------- */
.m-section-head {
    display: none;
}
@media (max-width: 880px) {
    .m-section-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 16px 8px;
    }
    .m-section-head .lbl {
        font: 700 10px 'Orbitron', sans-serif;
        letter-spacing: 0.18em;
        color: var(--muted);
    }
    .m-section-head .meta {
        font-size: 10px;
        color: var(--accent);
        background: rgba(0, 245, 255, 0.10);
        padding: 3px 9px;
        border-radius: 999px;
        border: 1px solid rgba(0, 245, 255, 0.25);
    }
}

/* ---------- Platform chips horizontal scroller ---------- */
.chip-scroller { display: none; }
@media (max-width: 880px) {
    .chip-scroller {
        display: flex; gap: 8px;
        padding: 4px 14px 12px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .chip-scroller::-webkit-scrollbar { display: none; }
    .chip-scroller .chip-pill {
        flex-shrink: 0;
        scroll-snap-align: start;
        display: inline-flex; align-items: center; gap: 6px;
        padding: 7px 12px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--border);
        border-radius: 999px;
        color: var(--text);
        text-decoration: none;
        font-size: 12px;
        font-weight: 500;
        transition: border-color 0.18s, background 0.18s, transform 0.18s;
    }
    .chip-scroller .chip-pill:active { transform: scale(0.96); }
    .chip-scroller .chip-pill .pdot {
        width: 7px; height: 7px; border-radius: 50%;
        background: var(--pc, var(--accent));
        box-shadow: 0 0 6px var(--pc, var(--accent));
    }
    .chip-scroller .chip-pill.active {
        border-color: var(--accent);
        background: rgba(0, 245, 255, 0.10);
    }
}

/* ---------- Mobile 2x2 feature grid ---------- */
.m-feature-grid { display: none; }
@media (max-width: 880px) {
    .m-feature-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 4px 14px 18px;
    }
    .m-feature-grid .mfeat {
        position: relative;
        padding: 16px 14px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--border);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        text-decoration: none;
        color: var(--text);
        transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
        overflow: hidden;
    }
    .m-feature-grid .mfeat:active {
        transform: translateY(1px);
    }
    .m-feature-grid .mfeat .mfi {
        font-size: 22px;
        color: var(--mfc, var(--accent));
        margin-bottom: 10px;
        display: block;
        filter: drop-shadow(0 0 6px var(--mfc, var(--accent)));
    }
    .m-feature-grid .mfeat .mfn {
        font-weight: 700;
        font-size: 13px;
        display: block;
    }
    .m-feature-grid .mfeat .mfs {
        font-size: 10px;
        color: var(--muted);
        display: block;
        margin-top: 2px;
    }
    .m-feature-grid .mfeat[data-color="cyan"]    { --mfc: #00F5FF; }
    .m-feature-grid .mfeat[data-color="violet"]  { --mfc: #8B5CF6; }
    .m-feature-grid .mfeat[data-color="success"] { --mfc: #00FF9D; }
    .m-feature-grid .mfeat[data-color="amber"]   { --mfc: #EF9F27; }
}

/* ---------- Platform page mobile header ---------- */
.m-pheader { display: none; }
@media (max-width: 880px) {
    .m-pheader {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 14px;
        position: relative;
    }
    .m-pheader::after {
        content: "";
        position: absolute; left: 14px; right: 14px; bottom: 0;
        height: 2px;
        background: var(--p-accent, var(--accent));
        box-shadow: 0 0 10px var(--p-accent, var(--accent));
        border-radius: 2px;
    }
    .m-pheader .pback,
    .m-pheader .pmenu {
        background: transparent;
        border: 0;
        color: var(--p-accent, var(--accent));
        font-size: 22px;
        width: 40px; height: 40px;
        display: inline-flex; align-items: center; justify-content: center;
        cursor: pointer;
        text-decoration: none;
    }
    .m-pheader .pname {
        font-family: 'Orbitron', sans-serif;
        font-weight: 700;
        font-size: 14px;
        letter-spacing: 0.10em;
        color: var(--p-accent, var(--accent));
        text-shadow: 0 0 12px var(--p-accent, var(--accent));
    }
    /* hide legacy platform hero on mobile when m-pheader present */
    .has-mheader .platform-hero { display: none; }
    .has-mheader { padding-top: 0; }
    body:has(.m-pheader) .platform-hero { display: none; }
}

/* ---------- Mobile preview card (richer) ---------- */
@media (max-width: 880px) {
    .preview .thumb { border-radius: 14px 14px 0 0; }
    .preview .thumb .play {
        background: radial-gradient(circle, rgba(0,0,0,0) 30%, rgba(0,0,0,0.45) 100%);
    }
    .preview .thumb .play::after {
        content: "";
        position: absolute; left: 50%; top: 50%;
        transform: translate(-50%, -50%);
        width: 56px; height: 56px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.10);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        box-shadow: 0 0 24px rgba(0, 245, 255, 0.35);
    }
    .preview .thumb .play { font-size: 0; }
    .preview .thumb .play::before {
        content: "\25B6";
        position: absolute; left: 50%; top: 50%;
        transform: translate(-42%, -50%);
        font-size: 22px;
        color: var(--text);
        z-index: 2;
    }
    .preview .thumb .duration {
        font-size: 11px;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    .verified-badge {
        display: inline-flex; align-items: center; justify-content: center;
        width: 14px; height: 14px;
        border-radius: 50%;
        background: var(--accent);
        color: #0A0A0F;
        font-size: 9px;
        font-weight: 900;
        margin-left: 4px;
        vertical-align: 1px;
    }
}

/* ---------- Mobile horizontal resolution scroller ---------- */
@media (max-width: 880px) {
    .option-grid.h-scroll {
        display: flex;
        gap: 8px;
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 2px 2px 8px;
        margin: 0 -2px;
        scrollbar-width: none;
    }
    .option-grid.h-scroll::-webkit-scrollbar { display: none; }
    .option-grid.h-scroll .option {
        flex: 0 0 96px;
        scroll-snap-align: start;
        text-align: center;
        padding: 12px 6px;
    }
    .option-grid.h-scroll .option .lbl { font-size: 13px; }
    .option-grid.h-scroll .option .sub { font-size: 10px; }
    /* BEST best-card violet variant when first card */
    .option-grid.h-scroll .option:first-child:not(.selected) {
        border-color: rgba(139, 92, 246, 0.55);
        background: rgba(139, 92, 246, 0.08);
    }
}

/* ---------- Premium FAB (mobile) â€” floating download bar ---------- */
@media (max-width: 880px) {
    .float-dl {
        display: none;
    }
    .fab-bar {
        position: fixed;
        left: 12px; right: 12px;
        bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 10px);
        z-index: 50;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 10px 10px 14px;
        background: rgba(13, 13, 26, 0.85);
        backdrop-filter: blur(18px) saturate(160%);
        -webkit-backdrop-filter: blur(18px) saturate(160%);
        border: 1px solid var(--border);
        border-radius: 22px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 245, 255, 0.10);
        opacity: 0;
        transform: translateY(80px);
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .fab-bar.visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .fab-bar .fab-info {
        flex: 1; min-width: 0;
        display: flex; flex-direction: column; gap: 2px;
        line-height: 1.1;
    }
    .fab-bar .fab-info .fab-lbl {
        font-size: 9px;
        text-transform: uppercase;
        letter-spacing: 0.10em;
        color: var(--muted);
    }
    .fab-bar .fab-info .fab-sel {
        font-size: 12px;
        font-weight: 700;
        color: var(--text);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .fab-bar .fab-btn {
        position: relative;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 12px 18px;
        border: 0;
        border-radius: 20px;
        background: var(--grad-fab);
        background-size: 200% 100%;
        color: #0A0A0F;
        font: 700 12px 'Orbitron', sans-serif;
        letter-spacing: 0.06em;
        cursor: pointer;
        overflow: hidden;
        animation: fabPulse 2.4s ease-in-out infinite;
        transition: transform 0.15s ease;
    }
    .fab-bar .fab-btn:active { transform: scale(0.96); }
    .fab-bar .fab-btn .ti { font-size: 14px; }
    .fab-bar .fab-btn .fab-fill {
        position: absolute; inset: 0;
        background: linear-gradient(90deg, rgba(255,255,255,0.30), rgba(255,255,255,0.10));
        width: 0;
        transition: width 0.4s ease;
        pointer-events: none;
    }
    .fab-bar.loading .fab-btn { animation: shimmerSweep 1.6s linear infinite; }
    .fab-bar.success .fab-btn {
        background: linear-gradient(90deg, #00FF9D 0%, #00C97A 100%) !important;
        animation: successBurst 0.6s ease;
        box-shadow: 0 0 24px rgba(0, 255, 157, 0.55);
    }
    .fab-bar.error .fab-btn {
        background: linear-gradient(90deg, #FF4444 0%, #cc1f1f 100%) !important;
        animation: shakeX 0.4s ease;
        box-shadow: 0 0 18px rgba(255, 68, 68, 0.5);
    }
    @keyframes fabPulse {
        0%, 100% { box-shadow: 0 0 0 0 rgba(0, 245, 255, 0.45), 0 0 18px rgba(139, 92, 246, 0.30); }
        50% { box-shadow: 0 0 0 8px rgba(0, 245, 255, 0), 0 0 24px rgba(139, 92, 246, 0.50); }
    }
    @keyframes shimmerSweep {
        0% { background-position: 0% 0; }
        100% { background-position: 200% 0; }
    }
    @keyframes successBurst {
        0% { transform: scale(1); }
        40% { transform: scale(1.04); }
        100% { transform: scale(1); }
    }
    @keyframes shakeX {
        0%, 100% { transform: translateX(0); }
        25% { transform: translateX(-6px); }
        50% { transform: translateX(6px); }
        75% { transform: translateX(-4px); }
    }
}

/* ---------- Queue cards (premium) ---------- */
.queue-card {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: border-color 0.2s ease, transform 0.18s ease;
}
.queue-card:hover { border-color: var(--border-strong); }
.queue-card.error {
    border-color: rgba(255, 68, 68, 0.35);
    background: rgba(255, 68, 68, 0.04);
}
.queue-card .qicon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    font-size: 16px;
    color: var(--qc, var(--accent));
}
.queue-card .qbody { min-width: 0; }
.queue-card .qttl {
    font-weight: 700;
    font-size: 13px;
    color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.queue-card .qbar {
    margin-top: 6px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.queue-card .qbar > i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--grad-fab);
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
    transition: width 0.4s ease;
    border-radius: 999px;
}
.queue-card .qmeta {
    margin-top: 4px;
    font-size: 11px;
    color: var(--muted);
    display: flex; align-items: center; gap: 6px;
}
.queue-card.done .qmeta { color: var(--success); }
.queue-card.error .qmeta { color: var(--danger); }
.queue-card .qact {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 16px;
    transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.queue-card .qact:hover { color: var(--text); border-color: var(--border); background: rgba(255, 255, 255, 0.04); }
.queue-card.done .qact { color: var(--success); }
.queue-card.error .qact { color: var(--danger); }

/* Per-platform queue icon colors */
.queue-card[data-platform="youtube"]    { --qc: #FF0000; }
.queue-card[data-platform="instagram"]  { --qc: #DD2A7B; }
.queue-card[data-platform="tiktok"]     { --qc: #00F2EA; }
.queue-card[data-platform="twitter"]    { --qc: #1DA1F2; }
.queue-card[data-platform="facebook"]   { --qc: #1877F2; }
.queue-card[data-platform="vimeo"]      { --qc: #1AB7EA; }
.queue-card[data-platform="reddit"]     { --qc: #FF4500; }
.queue-card[data-platform="twitch"]     { --qc: #9146FF; }
.queue-card[data-platform="soundcloud"] { --qc: #FF5500; }
.queue-card[data-platform="pinterest"]  { --qc: #E60023; }
.queue-card[data-platform="linkedin"]   { --qc: #0A66C2; }
.queue-card[data-platform="dailymotion"]{ --qc: #0099FF; }

/* Batch FAB */
@media (max-width: 880px) {
    .batch-fab {
        position: fixed;
        left: 12px; right: 12px;
        bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 10px);
        z-index: 50;
        display: none;
        align-items: center;
        gap: 8px;
        padding: 8px;
        background: rgba(13, 13, 26, 0.85);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border: 1px solid var(--border);
        border-radius: 22px;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
    }
    .batch-fab.visible { display: flex; }
    .batch-fab .b-progress {
        flex: 1;
        position: relative;
        padding: 11px 14px;
        border-radius: 16px;
        background: var(--grad-fab);
        background-size: 200% 100%;
        animation: shimmer 2s linear infinite;
        color: #0A0A0F;
        font: 700 12px 'Orbitron', sans-serif;
        letter-spacing: 0.04em;
        text-align: center;
        overflow: hidden;
    }
    .batch-fab .b-zip {
        padding: 11px 16px;
        border-radius: 16px;
        border: 0;
        background: linear-gradient(90deg, #EF9F27, #d6831a);
        color: #0A0A0F;
        font: 700 12px 'Orbitron', sans-serif;
        letter-spacing: 0.04em;
        cursor: pointer;
        box-shadow: 0 0 16px rgba(239, 159, 39, 0.3);
    }
}

/* ---------- Desktop FAB sticky footer (>= 1024px keeps existing dl-bar but enhanced) ---------- */
@media (min-width: 1024px) {
    .dl-bar {
        background: rgba(13, 13, 26, 0.92);
        border: 1px solid var(--border-strong);
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 245, 255, 0.12);
    }
    .dl-bar .btn-primary {
        min-width: 220px;
        background: var(--grad-fab);
        animation: fabPulseDesk 2.6s ease-in-out infinite;
    }
    @keyframes fabPulseDesk {
        0%, 100% { box-shadow: 0 0 0 0 rgba(0, 245, 255, 0.35); }
        50% { box-shadow: 0 0 0 8px rgba(0, 245, 255, 0); }
    }
}

/* ---------- BEST mini badge (override) ---------- */
.option .badge {
    background: linear-gradient(90deg, #8B5CF6, #6D28D9) !important;
    color: #fff !important;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

/* ---------- Hide legacy mobile bottom-nav text icons we replace ---------- */

/* ============================================================
   Batch page v2 â€” premium polish
   ============================================================ */

/* Hide the floating mobile FAB by default; mobile media query above
   re-enables it via .batch-fab.visible at <=880px. */
.batch-fab { display: none; }

/* Hero â€” center align consistently */
.platform-hero .breadcrumb,
.platform-hero .platform-badge,
.platform-hero h1,
.platform-hero .lead { text-align: center; }
.platform-hero .platform-badge { margin: 0 auto 14px; }

/* Stats strip */
.batch-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}
.batch-stats .stat {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
}
.batch-stats .stat::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--grad);
    opacity: 0.55;
}
.batch-stats .stat .lbl {
    font: 600 10px 'Orbitron', sans-serif;
    letter-spacing: 0.12em;
    color: var(--muted);
    text-transform: uppercase;
}
.batch-stats .stat .val {
    margin-top: 6px;
    font: 800 1.4rem 'Orbitron', sans-serif;
    color: var(--text);
    line-height: 1;
}
.batch-stats .stat[data-tone="done"]   .val { color: var(--success); }
.batch-stats .stat[data-tone="error"]  .val { color: var(--danger); }
.batch-stats .stat[data-tone="size"]   .val { color: var(--accent); }
@media (max-width: 640px) {
    .batch-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .batch-stats .stat { padding: 10px 12px; }
    .batch-stats .stat .val { font-size: 1.1rem; }
}

/* Filter pills */
.queue-filters {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 12px;
}
.queue-filters .pill {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font: 600 11px 'Inter', sans-serif;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.queue-filters .pill:hover { color: var(--text); border-color: var(--border-strong); }
.queue-filters .pill.active {
    color: #0A0A0F;
    background: var(--grad);
    border-color: transparent;
    box-shadow: 0 0 14px rgba(0, 245, 255, 0.25);
}
.queue-filters .pill .n {
    margin-left: 6px;
    font: 700 10px 'JetBrains Mono', monospace;
    opacity: 0.85;
}

/* Per-card percentage label */
.queue-card .qpct {
    font: 700 10px 'JetBrains Mono', monospace;
    color: var(--muted);
    margin-left: 6px;
}
.queue-card.done .qpct { color: var(--success); }

/* Sticky desktop bottom action bar (batch only) */
.batch-actionbar {
    position: sticky;
    bottom: 16px;
    margin: 18px 0 24px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 12px;
    align-items: center;
    background: rgba(13, 13, 26, 0.92);
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 245, 255, 0.10);
    z-index: 30;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.batch-actionbar.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.batch-actionbar .ab-progress {
    display: flex; flex-direction: column; gap: 6px;
    min-width: 0;
}
.batch-actionbar .ab-progress .ab-text {
    font: 700 11px 'Orbitron', sans-serif;
    letter-spacing: 0.06em;
    color: var(--text);
}
.batch-actionbar .ab-progress .ab-text .muted {
    color: var(--muted);
    font-weight: 500;
    margin-left: 8px;
    letter-spacing: 0.02em;
}
.batch-actionbar .ab-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.batch-actionbar .ab-bar > i {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--grad-fab);
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
    border-radius: 999px;
    transition: width 0.4s ease;
}
.batch-actionbar .ab-btn {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: 700 11px 'Orbitron', sans-serif;
    letter-spacing: 0.06em;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    transition: border-color 0.18s, background 0.18s, transform 0.18s, color 0.18s;
}
.batch-actionbar .ab-btn:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.06); transform: translateY(-1px); }
.batch-actionbar .ab-btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.batch-actionbar .ab-btn.primary {
    background: var(--grad-fab);
    color: #0A0A0F;
    border-color: transparent;
    box-shadow: 0 0 18px rgba(0, 245, 255, 0.22);
}
.batch-actionbar .ab-btn.primary:hover { transform: translateY(-1px); }
.batch-actionbar .ab-btn.danger {
    color: #ffb4b4;
}
.batch-actionbar .ab-btn.danger:hover {
    border-color: rgba(255, 68, 68, 0.45);
    color: #ffd2d2;
    background: rgba(255, 68, 68, 0.06);
}

/* Quality preset row */
.batch-controls {
    display: grid;
    grid-template-columns: auto 1fr 1fr auto;
    gap: 10px;
    align-items: center;
}
.batch-controls .input-text { width: 100%; }
@media (max-width: 720px) {
    .batch-controls { grid-template-columns: 1fr 1fr; }
    .batch-controls .switch { grid-column: 1 / -1; }
    .batch-controls .btn { grid-column: 1 / -1; }
}

/* Hidden queue rows under filter */
.queue-card.is-hidden { display: none; }

/* Recent batches drawer */
.batch-recent {
    margin-top: 6px;
    display: flex; flex-wrap: wrap; gap: 6px;
}
.batch-recent .chip {
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font: 500 11px 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: color 0.18s, border-color 0.18s;
}
.batch-recent .chip:hover { color: var(--text); border-color: var(--border-strong); }
.batch-recent .chip i { margin-right: 4px; opacity: 0.7; }

/* Stack the action bar gracefully on small screens */
@media (max-width: 720px) {
    .batch-actionbar {
        grid-template-columns: 1fr 1fr;
        bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 10px);
    }
    .batch-actionbar .ab-progress { grid-column: 1 / -1; }
}

/* ============================================================
   Home v2 — premium polish & animations
   ============================================================ */

/* Generic section spacing & titles */
section { padding: 64px 0; position: relative; }
.section-title {
    font: 800 clamp(1.6rem, 3.4vw, 2.4rem)/1.1 'Orbitron', sans-serif;
    text-align: center;
    letter-spacing: -0.01em;
    margin: 0 0 10px;
}
.section-sub {
    text-align: center;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 36px;
    font-size: 1rem;
}
.grad, .grad-p {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}

/* Universal input action button — guarantee visible affordance */
.universal-input .btn-primary {
    box-shadow: 0 0 22px rgba(0, 245, 255, 0.28);
    animation: ctaPulse 2.6s ease-in-out infinite;
}
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 22px rgba(0, 245, 255, 0.28); }
    50%      { box-shadow: 0 0 28px rgba(139, 92, 246, 0.42); }
}

/* ---------- Hero orbit ---------- */
.orbit-wrap {
    position: relative;
    width: 360px; height: 360px;
    margin: 36px auto 0;
}
@media (max-width: 540px) {
    .orbit-wrap { width: 280px; height: 280px; }
}
.orbit-wrap .core {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 96px; height: 96px;
    border-radius: 50%;
    display: grid; place-items: center;
    text-align: center;
    font: 800 13px/1.05 'Orbitron', sans-serif;
    letter-spacing: 0.08em;
    color: var(--text);
    background: radial-gradient(circle at 30% 25%, rgba(0,245,255,0.30), rgba(139,92,246,0.18) 55%, rgba(10,10,15,0.85));
    border: 1px solid rgba(0, 245, 255, 0.35);
    box-shadow: 0 0 32px rgba(0, 245, 255, 0.30), inset 0 0 24px rgba(139, 92, 246, 0.18);
    z-index: 3;
    animation: corePulse 3.6s ease-in-out infinite;
}
@keyframes corePulse {
    0%, 100% { box-shadow: 0 0 32px rgba(0,245,255,0.30), inset 0 0 24px rgba(139,92,246,0.18); }
    50%      { box-shadow: 0 0 48px rgba(0,245,255,0.55), inset 0 0 28px rgba(139,92,246,0.28); }
}
.orbit-wrap .orbit {
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    animation: spin 28s linear infinite;
    transform-origin: 50% 50%;
}
.orbit-wrap .orbit.r2 {
    border-color: rgba(255, 255, 255, 0.05);
    animation: spinReverse 44s linear infinite;
}
@keyframes spin        { to { transform: rotate(360deg);  } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }
.orbit-wrap .pin {
    position: absolute;
    left: 50%; top: 50%;
    width: 38px; height: 38px;
    margin: -19px 0 0 -19px;        /* center the pin on the orbit center */
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(13, 13, 26, 0.85);
    border: 1px solid var(--border-strong);
    color: var(--text);
    font: 700 14px 'Orbitron', sans-serif;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), 0 0 14px rgba(0, 245, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
@media (max-width: 540px) {
    .orbit-wrap .pin { width: 30px; height: 30px; margin: -15px 0 0 -15px; font-size: 12px; }
    /* Inline transforms in the markup use 110px / 160px radii — shrink visually */
    .orbit-wrap .orbit   { transform: scale(0.78); }
    .orbit-wrap .orbit.r2{ transform: scale(0.78); }
}

/* ---------- Platform grid ---------- */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 8px;
}
.platform-card {
    --pc-accent: #00F5FF;
    position: relative;
    display: flex; flex-direction: column;
    gap: 10px;
    padding: 18px 16px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    overflow: hidden;
    isolation: isolate;
}
.platform-card::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(120% 80% at 0% 0%, color-mix(in oklab, var(--pc-accent) 18%, transparent) 0%, transparent 50%);
    opacity: 0.55;
    z-index: -1;
    transition: opacity 0.22s ease;
}
.platform-card::after {
    content: "";
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--pc-accent);
    opacity: 0.35;
    transition: opacity 0.22s ease, width 0.22s ease;
}
.platform-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in oklab, var(--pc-accent) 50%, var(--border-strong));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45),
                0 0 22px color-mix(in oklab, var(--pc-accent) 25%, transparent);
    background: rgba(255, 255, 255, 0.05);
}
.platform-card:hover::before { opacity: 0.85; }
.platform-card:hover::after  { opacity: 1; width: 4px; }
.platform-card .pc-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid; place-items: center;
    background: color-mix(in oklab, var(--pc-accent) 14%, rgba(255,255,255,0.04));
    border: 1px solid color-mix(in oklab, var(--pc-accent) 35%, var(--border));
    color: var(--pc-accent);
    font: 700 20px 'Orbitron', sans-serif;
    text-shadow: 0 0 14px color-mix(in oklab, var(--pc-accent) 60%, transparent);
}
.platform-card h3 {
    font: 800 1.05rem 'Orbitron', sans-serif;
    margin: 4px 0 0;
    letter-spacing: 0.02em;
}
.platform-card p {
    font-size: 0.86rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}
.platform-card .pc-tags {
    display: flex; flex-wrap: wrap; gap: 4px;
    margin-top: auto;
}
.platform-card .pc-tags .tag {
    font: 600 10px 'JetBrains Mono', monospace;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--muted);
    letter-spacing: 0.02em;
}
.platform-card .pc-arrow {
    margin-top: 6px;
    font: 700 11px 'Orbitron', sans-serif;
    color: var(--pc-accent);
    letter-spacing: 0.06em;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.platform-card:hover .pc-arrow { opacity: 1; transform: translateX(0); }

/* ---------- Feature strip ---------- */
.feature-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
@media (max-width: 980px) { .feature-strip { grid-template-columns: repeat(2, 1fr); } }
.feat {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
    transition: border-color 0.22s ease, transform 0.22s ease, background 0.22s ease;
}
.feat:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.05);
}
.feat .fi {
    flex: 0 0 38px;
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: var(--grad);
    color: #0A0A0F;
    font-size: 18px;
    box-shadow: 0 0 16px rgba(0, 245, 255, 0.22);
}
.feat strong {
    display: block;
    font: 700 0.95rem 'Inter', sans-serif;
    color: var(--text);
    margin-bottom: 2px;
}
.feat span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

/* ---------- How it works ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    counter-reset: step;
    position: relative;
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step {
    position: relative;
    padding: 24px 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
    transition: border-color 0.22s ease, transform 0.22s ease;
}
.step:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.step .num {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--grad);
    color: #0A0A0F;
    font: 800 1.1rem 'Orbitron', sans-serif;
    box-shadow: 0 0 18px rgba(0, 245, 255, 0.25);
    margin-bottom: 14px;
}
.step h4 {
    font: 800 1.1rem 'Orbitron', sans-serif;
    margin: 0 0 6px;
    letter-spacing: 0.02em;
}
.step p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; margin: 0; }
@media (min-width: 881px) {
    .step:not(:last-child)::after {
        content: "";
        position: absolute;
        right: -10px; top: 50%;
        width: 20px; height: 1px;
        background: linear-gradient(90deg, var(--accent), transparent);
        opacity: 0.5;
    }
}

/* ---------- FAQ ---------- */
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.faq-list {
    display: flex; flex-direction: column;
    gap: 10px;
}
.faq-item {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.22s ease, background 0.22s ease;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item.open  { border-color: color-mix(in oklab, var(--accent) 40%, var(--border-strong)); background: rgba(0, 245, 255, 0.04); }
.faq-q {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    color: var(--text);
    font: 700 1rem 'Inter', sans-serif;
    padding: 16px 48px 16px 18px;
    cursor: pointer;
    position: relative;
    transition: color 0.18s ease;
}
.faq-q:hover { color: var(--accent); }
.faq-q::after {
    content: "+";
    position: absolute;
    right: 18px; top: 50%;
    transform: translateY(-50%);
    font: 700 1.4rem 'Orbitron', sans-serif;
    color: var(--accent);
    transition: transform 0.22s ease, color 0.18s ease;
    line-height: 1;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); color: var(--accent-2); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease, padding 0.22s ease;
    padding: 0 18px;
}
.faq-item.open .faq-a {
    max-height: 320px;
    padding: 0 18px 16px;
}
.faq-a p { color: var(--muted); margin: 0; line-height: 1.6; font-size: 0.94rem; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.2,1);
    will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .orbit, .orbit.r2, .core, .universal-input .btn-primary { animation: none !important; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Mobile v2 — tune Home v2 polish for phones & add floating CTAs
   ============================================================ */

/* ---- Hero orbit on mobile: shrink so pins stay inside the viewport ---- */
@media (max-width: 720px) {
    .orbit-wrap { width: 300px; height: 300px; margin-top: 26px; }
}
@media (max-width: 480px) {
    .orbit-wrap {
        width: 260px; height: 260px;
        margin-top: 22px;
        /* The inline pin transforms use translate(110px)/translate(160px) which
           don't auto-scale — shrink the whole orbit visually with transform. */
        transform: scale(0.78);
        transform-origin: center;
    }
    .orbit-wrap .core { width: 84px; height: 84px; font-size: 12px; }
}
@media (max-width: 380px) {
    .orbit-wrap { transform: scale(0.66); }
}

/* ---- Hero CTA: bigger touch target & always-glowing on mobile ---- */
@media (max-width: 720px) {
    .universal-input { padding: 6px 6px 6px 14px; }
    .universal-input .btn-primary {
        padding: 12px 16px;
        font-size: 0.92rem;
        min-height: 44px;             /* iOS touch target */
        border-radius: 12px;
    }
}

/* ---- Platform grid: dense 2-up on phones, generous tap targets ---- */
@media (max-width: 880px) {
    .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .platform-card { padding: 14px 12px 12px; gap: 8px; }
    .platform-card .pc-icon { width: 38px; height: 38px; font-size: 17px; }
    .platform-card h3 { font-size: 0.95rem; }
    .platform-card p  { font-size: 0.78rem; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
    .platform-card .pc-tags .tag { font-size: 9px; padding: 2px 6px; }
    /* Always-on arrow on mobile (no hover) */
    .platform-card .pc-arrow { opacity: 0.85; transform: none; font-size: 10px; }
}
@media (max-width: 380px) {
    .platform-grid { grid-template-columns: 1fr; }
}

/* ---- Feature strip: 2-up tablet, comfortable 1-up phone ---- */
@media (max-width: 880px) {
    .feature-strip { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .feat { padding: 12px; gap: 10px; }
    .feat .fi { width: 34px; height: 34px; flex: 0 0 34px; font-size: 16px; }
    .feat strong { font-size: 0.85rem; }
    .feat span { font-size: 0.74rem; }
}
@media (max-width: 480px) {
    .feature-strip { grid-template-columns: 1fr; }
}

/* ---- How-it-works: stacked, smaller tiles ---- */
@media (max-width: 880px) {
    .step { padding: 18px 16px; border-radius: 14px; }
    .step .num { width: 36px; height: 36px; border-radius: 10px; font-size: 0.95rem; margin-bottom: 10px; }
    .step h4 { font-size: 1rem; }
    .step p  { font-size: 0.85rem; }
    /* Hide the desktop connector lines on mobile */
    .step:not(:last-child)::after { display: none; }
}

/* ---- FAQ: tighter padding, larger plus marker for thumbs ---- */
@media (max-width: 720px) {
    .faq-q { padding: 14px 44px 14px 14px; font-size: 0.95rem; }
    .faq-q::after { right: 14px; font-size: 1.3rem; }
    .faq-item.open .faq-a { padding: 0 14px 14px; }
    .faq-a p { font-size: 0.88rem; }
}

/* ---- Section spacing on mobile ---- */
@media (max-width: 720px) {
    .section-title { font-size: clamp(1.4rem, 6vw, 2rem); }
    .section-sub   { font-size: 0.92rem; margin-bottom: 24px; }
}

/* ---- Reveal: respect mobile by ensuring transitions are not laggy ---- */
@media (max-width: 720px) {
    .reveal { transform: translateY(10px); transition-duration: 0.45s; }
}

/* ============================================================
   Bottom nav v2 — neon active pill + tap bounce
   ============================================================ */
@media (max-width: 880px) {
    .bottom-nav {
        gap: 2px;
        border-top: 1px solid var(--border);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
    }
    .bottom-nav a {
        position: relative;
        font-weight: 600;
        letter-spacing: 0.02em;
        transition: color 0.2s ease, transform 0.15s ease;
    }
    .bottom-nav a:active { transform: scale(0.94); }
    .bottom-nav a .ti { transition: transform 0.2s ease, color 0.2s ease; }
    .bottom-nav a.active .ti { transform: translateY(-2px); }
    .bottom-nav a.active::before {
        content: "";
        position: absolute;
        top: 4px; left: 50%;
        transform: translateX(-50%);
        width: 28px; height: 3px;
        border-radius: 999px;
        background: var(--grad);
        box-shadow: 0 0 10px rgba(0, 245, 255, 0.55);
    }
}

/* ============================================================
   Mobile Hero FAB — floating "Analyze" button on Home
   Visible only on phones, after user scrolls past the hero input.
   ============================================================ */
.hero-fab {
    display: none;
}
@media (max-width: 880px) {
    .hero-fab {
        display: inline-flex;
        position: fixed;
        right: 16px;
        bottom: calc(74px + env(safe-area-inset-bottom, 0px));
        z-index: 48;
        align-items: center;
        gap: 8px;
        padding: 12px 16px;
        border-radius: 999px;
        border: 0;
        background: var(--grad);
        background-size: 200% 100%;
        color: #0A0A0F;
        font: 800 12px 'Orbitron', sans-serif;
        letter-spacing: 0.08em;
        text-decoration: none;
        cursor: pointer;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 22px rgba(0, 245, 255, 0.35);
        animation: heroFabPulse 2.6s ease-in-out infinite, shimmer 3.6s linear infinite;
        opacity: 0;
        transform: translateY(20px) scale(0.92);
        pointer-events: none;
        transition: opacity 0.28s ease, transform 0.28s cubic-bezier(.2,.7,.2,1);
    }
    .hero-fab.visible {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }
    .hero-fab .ti { font-size: 16px; }
}
@keyframes heroFabPulse {
    0%, 100% { box-shadow: 0 10px 28px rgba(0,0,0,.55), 0 0 22px rgba(0, 245, 255, 0.35); }
    50%      { box-shadow: 0 10px 28px rgba(0,0,0,.55), 0 0 30px rgba(139, 92, 246, 0.5); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-fab { animation: none !important; }
}

/* ============================================================
   Batch action-bar: float on mobile too (was stacked-grid only)
   ============================================================ */
@media (max-width: 720px) {
    .batch-actionbar {
        position: fixed;
        left: 12px; right: 12px;
        bottom: calc(74px + env(safe-area-inset-bottom, 0px));
        margin: 0;
        padding: 10px 12px;
        border-radius: 18px;
    }
    .batch-actionbar.visible { transform: translateY(0); }
    .batch-actionbar .ab-btn { padding: 9px 11px; font-size: 10px; }
    /* Ensure page content has room for the floating bar */
    body.has-batch-bar { padding-bottom: calc(170px + env(safe-area-inset-bottom, 0px)); }
}

/* ============================================================
   Mobile v2 — tune Home v2 polish for phones & add floating CTAs
   ============================================================ */

/* ---- Hero orbit on mobile: shrink so pins stay inside the viewport ---- */
@media (max-width: 720px) {
    .orbit-wrap { width: 300px; height: 300px; margin-top: 26px; }
}
@media (max-width: 480px) {
    .orbit-wrap {
        width: 260px; height: 260px;
        margin-top: 22px;
        /* The inline pin transforms use translate(110px)/translate(160px) which
           don't auto-scale — shrink the whole orbit visually with transform. */
        transform: scale(0.78);
        transform-origin: center;
    }
    .orbit-wrap .core { width: 84px; height: 84px; font-size: 12px; }
}
@media (max-width: 380px) {
    .orbit-wrap { transform: scale(0.66); }
}

/* ---- Hero CTA: bigger touch target & always-glowing on mobile ---- */
@media (max-width: 720px) {
    .universal-input { padding: 6px 6px 6px 14px; }
    .universal-input .btn-primary {
        padding: 12px 16px;
        font-size: 0.92rem;
        min-height: 44px;             /* iOS touch target */
        border-radius: 12px;
    }
}

/* ---- Platform grid: dense 2-up on phones, generous tap targets ---- */
@media (max-width: 880px) {
    .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .platform-card { padding: 14px 12px 12px; gap: 8px; }
    .platform-card .pc-icon { width: 38px; height: 38px; font-size: 17px; }
    .platform-card h3 { font-size: 0.95rem; }
    .platform-card p  { font-size: 0.78rem; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
    .platform-card .pc-tags .tag { font-size: 9px; padding: 2px 6px; }
    /* Always-on arrow on mobile (no hover) */
    .platform-card .pc-arrow { opacity: 0.85; transform: none; font-size: 10px; }
}
@media (max-width: 380px) {
    .platform-grid { grid-template-columns: 1fr; }
}

/* ---- Feature strip: 2-up tablet, comfortable 1-up phone ---- */
@media (max-width: 880px) {
    .feature-strip { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .feat { padding: 12px; gap: 10px; }
    .feat .fi { width: 34px; height: 34px; flex: 0 0 34px; font-size: 16px; }
    .feat strong { font-size: 0.85rem; }
    .feat span { font-size: 0.74rem; }
}
@media (max-width: 480px) {
    .feature-strip { grid-template-columns: 1fr; }
}

/* ---- How-it-works: stacked, smaller tiles ---- */
@media (max-width: 880px) {
    .step { padding: 18px 16px; border-radius: 14px; }
    .step .num { width: 36px; height: 36px; border-radius: 10px; font-size: 0.95rem; margin-bottom: 10px; }
    .step h4 { font-size: 1rem; }
    .step p  { font-size: 0.85rem; }
    /* Hide the desktop connector lines on mobile */
    .step:not(:last-child)::after { display: none; }
}

/* ---- FAQ: tighter padding, larger plus marker for thumbs ---- */
@media (max-width: 720px) {
    .faq-q { padding: 14px 44px 14px 14px; font-size: 0.95rem; }
    .faq-q::after { right: 14px; font-size: 1.3rem; }
    .faq-item.open .faq-a { padding: 0 14px 14px; }
    .faq-a p { font-size: 0.88rem; }
}

/* ---- Section spacing on mobile ---- */
@media (max-width: 720px) {
    .section-title { font-size: clamp(1.4rem, 6vw, 2rem); }
    .section-sub   { font-size: 0.92rem; margin-bottom: 24px; }
}

/* ---- Reveal: respect mobile by ensuring transitions are not laggy ---- */
@media (max-width: 720px) {
    .reveal { transform: translateY(10px); transition-duration: 0.45s; }
}

/* ============================================================
   Bottom nav v2 — neon active pill + tap bounce
   ============================================================ */
@media (max-width: 880px) {
    .bottom-nav {
        gap: 2px;
        border-top: 1px solid var(--border);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
    }
    .bottom-nav a {
        position: relative;
        font-weight: 600;
        letter-spacing: 0.02em;
        transition: color 0.2s ease, transform 0.15s ease;
    }
    .bottom-nav a:active { transform: scale(0.94); }
    .bottom-nav a .ti { transition: transform 0.2s ease, color 0.2s ease; }
    .bottom-nav a.active .ti { transform: translateY(-2px); }
    .bottom-nav a.active::before {
        content: "";
        position: absolute;
        top: 4px; left: 50%;
        transform: translateX(-50%);
        width: 28px; height: 3px;
        border-radius: 999px;
        background: var(--grad);
        box-shadow: 0 0 10px rgba(0, 245, 255, 0.55);
    }
}

/* ============================================================
   Mobile Hero FAB — floating "Analyze" button on Home
   Visible only on phones, after user scrolls past the hero input.
   ============================================================ */
.hero-fab {
    display: none;
}
@media (max-width: 880px) {
    .hero-fab {
        display: inline-flex;
        position: fixed;
        right: 16px;
        bottom: calc(74px + env(safe-area-inset-bottom, 0px));
        z-index: 48;
        align-items: center;
        gap: 8px;
        padding: 12px 16px;
        border-radius: 999px;
        border: 0;
        background: var(--grad);
        background-size: 200% 100%;
        color: #0A0A0F;
        font: 800 12px 'Orbitron', sans-serif;
        letter-spacing: 0.08em;
        text-decoration: none;
        cursor: pointer;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 22px rgba(0, 245, 255, 0.35);
        animation: heroFabPulse 2.6s ease-in-out infinite, shimmer 3.6s linear infinite;
        opacity: 0;
        transform: translateY(20px) scale(0.92);
        pointer-events: none;
        transition: opacity 0.28s ease, transform 0.28s cubic-bezier(.2,.7,.2,1);
    }
    .hero-fab.visible {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }
    .hero-fab .ti { font-size: 16px; }
}
@keyframes heroFabPulse {
    0%, 100% { box-shadow: 0 10px 28px rgba(0,0,0,.55), 0 0 22px rgba(0, 245, 255, 0.35); }
    50%      { box-shadow: 0 10px 28px rgba(0,0,0,.55), 0 0 30px rgba(139, 92, 246, 0.5); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-fab { animation: none !important; }
}

/* ============================================================
   Batch action-bar: float on mobile too (was stacked-grid only)
   ============================================================ */
@media (max-width: 720px) {
    .batch-actionbar {
        position: fixed;
        left: 12px; right: 12px;
        bottom: calc(74px + env(safe-area-inset-bottom, 0px));
        margin: 0;
        padding: 10px 12px;
        border-radius: 18px;
    }
    .batch-actionbar.visible { transform: translateY(0); }
    .batch-actionbar .ab-btn { padding: 9px 11px; font-size: 10px; }
    /* Ensure page content has room for the floating bar */
    body.has-batch-bar { padding-bottom: calc(170px + env(safe-area-inset-bottom, 0px)); }
}
