        /* ASTRA FRAMEWORK CORE STYLES */
        :root {
            --neon-lime: #ccff00;
            --neon-pink: #ff007f;
            --neon-cyan: #00f0ff;
        }
        
        body {
            background-color: #09090e;
            color: #ffffff;
            font-family: 'Space Grotesk', sans-serif;
            overflow-x: hidden;
            background-image: 
                radial-gradient(circle at 15% 20%, rgba(255, 0, 127, 0.12) 0%, transparent 35%),
                radial-gradient(circle at 85% 60%, rgba(0, 240, 255, 0.12) 0%, transparent 40%),
                radial-gradient(circle at 50% 90%, rgba(204, 255, 0, 0.08) 0%, transparent 40%);
            background-attachment: fixed;
        }

        /* Cyber Grid Background */
        .bg-grid {
            background-size: 40px 40px;
            background-image: 
                linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
        }

        /* Neo-Brutalist Glass Cards */
        .astra-card {
            background: rgba(18, 18, 28, 0.75);
            backdrop-filter: blur(16px);
            border: 2px solid rgba(255, 255, 255, 0.12);
            box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.9);
            transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
        }

        .astra-card:hover {
            border-color: var(--neon-lime);
            box-shadow: 6px 6px 0px var(--neon-lime);
            transform: translate(-2px, -2px);
        }

        .astra-card:active {
            transform: translate(2px, 2px);
            box-shadow: 2px 2px 0px var(--neon-lime);
        }

        .astra-input {
            background: rgba(12, 12, 20, 0.9);
            border: 2px solid #ffffff;
            box-shadow: 6px 6px 0px var(--neon-pink);
            transition: all 0.3s ease;
        }

        .astra-input:focus {
            outline: none;
            border-color: var(--neon-lime);
            box-shadow: 8px 8px 0px var(--neon-lime);
        }

        .astra-btn {
            border: 2px solid #fff;
            box-shadow: 3px 3px 0px #fff;
            transition: all 0.15s ease;
        }

        .astra-btn:hover {
            transform: translate(-2px, -2px);
            box-shadow: 5px 5px 0px var(--neon-cyan);
            border-color: var(--neon-cyan);
        }

        .astra-btn.active {
            background-color: var(--neon-lime);
            color: #000;
            border-color: #000;
            box-shadow: 4px 4px 0px #fff;
            font-weight: 700;
        }

        /* Marquee Animation */
        @keyframes marquee {
            0% { transform: translateX(0%); }
            100% { transform: translateX(-50%); }
        }

        .animate-marquee {
            display: flex;
            width: 200%;
            animation: marquee 25s linear infinite;
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 10px;
            height: 8px;
        }
        ::-webkit-scrollbar-track {
            background: #09090e;
            border-left: 1px solid rgba(255,255,255,0.1);
        }
        ::-webkit-scrollbar-thumb {
            background: var(--neon-pink);
            border: 2px solid #09090e;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: var(--neon-lime);
        }

        /* Sticker Floating Effect */
        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(-3deg); }
            50% { transform: translateY(-8px) rotate(3deg); }
        }
        .sticker {
            animation: float 4s ease-in-out infinite;
        }

        /* ---------- RESPONSIVE LAYER ---------- */
        html { -webkit-text-size-adjust: 100%; overflow-x: hidden; max-width: 100%; }
        body { overflow-x: hidden; max-width: 100vw; position: relative; }
        img, svg, video { max-width: 100%; height: auto; }
        .animate-marquee { width: max-content !important; will-change: transform; }
        .marquee-wrap { max-width: 100vw; contain: paint; }
        .no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
        .no-scrollbar::-webkit-scrollbar { display: none; }

        /* Header + control deck: static on phones / short screens, sticky otherwise */
        .site-header { position: relative; padding-top: env(safe-area-inset-top); }
        .control-deck { position: relative; }
        @media (min-width: 768px) and (min-height: 600px) {
            .site-header { position: sticky; top: 0; }
            .control-deck { position: sticky; top: var(--header-h, 73px); }
        }

        /* Cards never exceed their grid cell */
        #fontsGrid > * { min-width: 0; }
        .card-output { overflow-wrap: anywhere; word-break: break-word; }

        /* Hover effects only where hover exists (avoids sticky hover on touch) */
        @media (hover: none) {
            .astra-card:hover { border-color: rgba(255,255,255,0.12); box-shadow: 5px 5px 0 rgba(0,0,0,0.9); transform: none; }
            .astra-btn:hover { transform: none; box-shadow: 3px 3px 0 #fff; border-color: #fff; }
            .astra-btn.active:hover { box-shadow: 4px 4px 0 #fff; border-color: #000; }
            .astra-card:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--neon-lime); border-color: var(--neon-lime); }
        }

        /* Touch targets */
        .save-btn { min-width: 36px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; }

        /* Toast */
        #toast { bottom: calc(1rem + env(safe-area-inset-bottom)); left: 1rem; right: 4.75rem; }
        @media (min-width: 640px) { #toast { left: 1.5rem; right: auto; bottom: 1.5rem; } }

        .cat-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .5rem; text-align: left; font-family: 'JetBrains Mono', monospace; font-size: .75rem; padding: .65rem .8rem; background: #12121c; }
        .cat-btn .cat-count { opacity: .6; font-size: 10px; }

        /* Mobile drawer */
        .drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.65); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 60; }
        .drawer {
            position: fixed; top: 0; bottom: 0; left: 0; width: min(18rem, 85vw); z-index: 70;
            background: #0d0d16; border-right: 2px solid rgba(255,255,255,.15);
            padding: calc(1.25rem + env(safe-area-inset-top)) 1.25rem 1.25rem; overflow-y: auto;
            transform: translateX(-102%); transition: transform .28s cubic-bezier(.25,1,.5,1); visibility: hidden;
        }
        body.drawer-open .drawer { transform: none; visibility: visible; }
        body.drawer-open .drawer-overlay { opacity: 1; pointer-events: auto; }
        body.drawer-open { overflow: hidden; }

        /* Scroll to top (right side) */
        .to-top {
            position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 45;
            width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
            opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s;
        }
        .to-top.show { opacity: 1; transform: none; pointer-events: auto; }
        @media (min-width: 640px) { .to-top { right: 1.5rem; bottom: calc(1.5rem + env(safe-area-inset-bottom)); } }

        /* Phones */
        @media (max-width: 639px) {
            body { background-attachment: scroll; }
            .bg-grid { background-size: 28px 28px; }
            .astra-card { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(18,18,28,0.92); box-shadow: 4px 4px 0 rgba(0,0,0,0.9); }
            .astra-input { box-shadow: 4px 4px 0 var(--neon-pink); }
            .astra-input:focus { box-shadow: 5px 5px 0 var(--neon-lime); }
            /* 16px inputs stop iOS zooming on focus */
            #sourceInput { font-size: 16px; }
        }
        .hero-title { font-size: clamp(1.4rem, 7.4vw, 2.4rem); }
        @media (min-width: 640px) { .hero-title { font-size: clamp(2.75rem, 7vw, 4rem); } }
        @media (min-width: 1024px) { .hero-title { font-size: 4.5rem; } }

        @media (prefers-reduced-motion: reduce) {
            .animate-marquee, .sticker, .animate-ping { animation: none !important; }
            * { transition-duration: 0.01ms !important; }
        }

        /* Category links (desktop pills + mobile drawer) */
        .pill-btn { display: inline-flex; align-items: center; gap: .5rem; font-family: 'JetBrains Mono', monospace; font-size: .75rem; padding: .4rem .75rem; white-space: nowrap; text-decoration: none; color: #fff; }
        .pill-btn .cat-count, .cat-btn .cat-count { opacity: .6; font-size: 10px; }
        a.cat-btn { text-decoration: none; color: #fff; }
        .astra-btn.active, .astra-btn.active .cat-count { color: #000; }

        /* Header name-style links */
        .nav-link { font-family: 'JetBrains Mono', monospace; font-size: .72rem; line-height: 1.2; padding: .6rem .6rem; text-align: center; display: flex; align-items: center; justify-content: center; text-decoration: none; color: #fff; background: #12121c; }

        /* Themed pages */
        body[data-theme="fire"] { --neon-lime: #ff9d00; --neon-pink: #ff3b1f; --neon-cyan: #ffd000; }
        body[data-theme="insta"] { --neon-lime: #ff7ad9; --neon-pink: #c13584; --neon-cyan: #ffb86b; }
        body[data-theme="fire"] .astra-btn.active, body[data-theme="insta"] .astra-btn.active { color: #000; }
        .hero-badge { display: inline-flex; align-items: center; gap: .4rem; font-family: 'JetBrains Mono', monospace; font-size: .7rem; font-weight: 700; padding: .3rem .7rem; border: 2px solid #fff; box-shadow: 3px 3px 0 var(--neon-lime); background: rgba(255,255,255,.06); }
        .tip-card { background: rgba(18,18,28,.85); border: 2px solid rgba(255,255,255,.12); box-shadow: 4px 4px 0 rgba(0,0,0,.9); padding: 1.1rem; }
        .link-chip { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: .75rem; padding: .45rem .8rem; border: 2px solid rgba(255,255,255,.25); color: #fff; text-decoration: none; transition: all .15s; }
        .link-chip:hover { border-color: var(--neon-lime); color: var(--neon-lime); }
@media (min-width: 1024px) { .nav-link { font-size: .75rem; padding: .55rem .9rem; white-space: nowrap; } }

/* ---------------- BLOG ---------------- */
.blog-prose { color: #cbd5e1; font-size: 1.05rem; line-height: 1.8; }
.blog-prose h2 { font-family: 'Syne', sans-serif; font-weight: 800; color: #fff; font-size: 1.55rem; line-height: 1.25; margin: 2.3rem 0 .8rem; }
.blog-prose h3 { font-family: 'Syne', sans-serif; font-weight: 800; color: #fff; font-size: 1.2rem; margin: 1.7rem 0 .6rem; }
.blog-prose p { margin: 0 0 1.15rem; }
.blog-prose ul, .blog-prose ol { margin: 0 0 1.3rem; padding-left: 1.4rem; }
.blog-prose ul { list-style: disc; }
.blog-prose ol { list-style: decimal; }
.blog-prose li { margin: .4rem 0; }
.blog-prose strong { color: #fff; }
.blog-prose blockquote { border-left: 4px solid #ccff00; background: rgba(255,255,255,.05); padding: .9rem 1.1rem; margin: 1.5rem 0; color: #e2e8f0; }
.blog-prose .table-wrap { overflow-x: auto; margin: 1.4rem 0; }
.blog-prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.blog-prose th, .blog-prose td { border: 1px solid rgba(255,255,255,.15); padding: .55rem .75rem; text-align: left; vertical-align: top; }
.blog-prose th { background: rgba(255,255,255,.07); color: #fff; }
.blog-cta { border: 2px solid rgba(204,255,0,.5); background: rgba(204,255,0,.06); padding: 1.1rem 1.25rem; }
.author-box { border: 2px solid rgba(255,255,255,.12); background: rgba(18,18,28,.7); padding: 1rem 1.25rem; }
.blog-card-link { color: #fff; text-decoration: none; }
.blog-card-link:hover { color: #ccff00; }
.blog-card { height: 100%; }
.blog-filter { background: #12121c; color: #fff; border: 2px solid rgba(255,255,255,.2); font-family: 'JetBrains Mono', monospace; font-size: .8rem; padding: .45rem .8rem; cursor: pointer; transition: border-color .15s, color .15s; }
.blog-filter:hover { border-color: #ccff00; color: #ccff00; }
.blog-filter.active { background: #ccff00; color: #000; border-color: #000; }
.blog-filter .cat-count { opacity: .7; margin-left: .25rem; }
.blog-prose code { font-family: 'JetBrains Mono', monospace; font-size: .9em; background: rgba(255,255,255,.1); padding: .1rem .35rem; color: #ccff00; }
