/* =====================================================================
   Forge SaaS — dark premium AI-tool theme
   ================================================================== */

:root {
    /* Professional dark theme — solid signal-green on true black.
       No purple/pink, no glow. Inspired by clean product sites. */
    --bg-0: #000000;   /* page */
    --bg-1: #0a0a0a;   /* raised surface */
    --bg-2: #111111;   /* card / control */
    --bg-3: #191919;   /* hover surface */
    --line: rgba(255,255,255,0.08);
    --line-2: rgba(255,255,255,0.14);
    --text: #f2f3f0;
    --text-dim: #a7a9a2;
    --text-mute: #6d6f68;
    --accent: #9efd38;      /* signal green */
    --accent-2: #9efd38;    /* alias — no second hue */
    --accent-ink: #06210a;  /* text on green surfaces */
    --accent-soft: rgba(158,253,56,0.12);
    --accent-line: rgba(158,253,56,0.40);
    --accent-glow: rgba(158,253,56,0.0);   /* glow disabled */
    --ok: #22c55e;
    --warn: #f59e0b;
    --err: #ef4444;
    --info: #38bdf8;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-1: 0 8px 24px rgba(0,0,0,.5);
    --shadow-2: 0 16px 44px rgba(0,0,0,.6);
    --grad: #9efd38;                 /* was gradient — now solid */
    --grad-dark: var(--accent-soft); /* subtle green tint */
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--bg-0);
    color: var(--text);
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #c4ff7a; }
img { max-width: 100%; display: block; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
.muted { color: var(--text-dim); }
.mute-2 { color: var(--text-mute); }
.grad-text { color: var(--accent); }

/* ---------- layout ---------- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
.stack { display: flex; flex-direction: column; gap: 12px; }
.row   { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.spacer { flex: 1; }
.center-page { min-height: 80vh; display: grid; place-items: center; padding: 60px 20px; }

/* ---------- navbar ---------- */
.nav {
    position: sticky; top: 0; z-index: 40;
    backdrop-filter: blur(14px);
    background: rgba(7,7,12,0.72);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
    padding: 14px 24px; max-width: 1240px; margin: 0 auto;
    position: relative;
}
.brand {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em;
    display: flex; align-items: center; gap: 10px;
}
.brand-mark {
    width: 30px; height: 30px; border-radius: 8px;
    background: var(--grad);
    display: grid; place-items: center;
    color: #0a0713; font-weight: 800;
    box-shadow: 0 0 20px var(--accent-glow);
}
.nav-links { display: flex; gap: 6px; margin-left: 20px; }
.nav-links a { color: var(--text-dim); padding: 8px 14px; border-radius: 10px; font-weight: 500; }
.nav-links a:hover { color: var(--text); background: var(--bg-2); }
.nav-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* Hamburger — hidden on desktop, shown on mobile via media query */
.nav-toggle {
    display: none; margin-left: auto;
    width: 42px; height: 42px; border-radius: 10px;
    background: var(--bg-2); border: 1px solid var(--line-2);
    padding: 0; cursor: pointer; position: relative;
}
.nav-toggle span {
    position: absolute; left: 11px; right: 11px; height: 2px;
    background: var(--text); border-radius: 2px;
    transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav.open .nav-toggle span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 12px;
    font-weight: 600; font-size: .94rem; letter-spacing: -0.01em;
    border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text);
    cursor: pointer; transition: transform .08s ease, background .18s ease, border-color .18s ease;
    text-decoration: none;
}
.btn:hover { background: var(--bg-3); border-color: rgba(255,255,255,0.18); }
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--grad); border: none; color: #0b0716;
    box-shadow: 0 8px 28px rgba(158,253,56,0.35);
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 12px 32px rgba(158,253,56,0.45); }
.btn-ghost { background: transparent; }
.btn-danger { background: #7f1d1d; border-color: #991b1b; color: #ffe4e6; }
.btn-danger:hover { background: #991b1b; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: .85rem; }

/* ---------- cards ---------- */
.card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-1);
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; }
.card-glow {
    position: relative;
    overflow: hidden;
}
.card-glow::before {
    content: ''; position: absolute; inset: -1px; z-index: -1;
    background: var(--grad); opacity: .18; filter: blur(30px);
    border-radius: inherit;
}

/* ---------- form ---------- */
label { display: block; font-size: .85rem; color: var(--text-dim); margin-bottom: 6px; font-weight: 500; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
select, textarea {
    width: 100%; padding: 12px 14px;
    background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 12px;
    color: var(--text); font: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(158,253,56,0.2);
}
textarea { min-height: 100px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: 1; } }

/* ---------- badges ---------- */
.badge {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: .75rem; font-weight: 600; letter-spacing: .02em;
    border: 1px solid transparent;
}
.badge-ok    { background: rgba(34,197,94,0.14);  color: #86efac; border-color: rgba(34,197,94,0.3); }
.badge-warn  { background: rgba(245,158,11,0.14); color: #fcd34d; border-color: rgba(245,158,11,0.3); }
.badge-err   { background: rgba(239,68,68,0.14);  color: #fca5a5; border-color: rgba(239,68,68,0.3); }
.badge-info  { background: rgba(56,189,248,0.14); color: #7dd3fc; border-color: rgba(56,189,248,0.3); }
.badge-muted { background: rgba(255,255,255,0.06); color: var(--text-dim); border-color: var(--line-2); }
.pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    background: var(--bg-2); border: 1px solid var(--line-2); font-size: .82rem;
}

/* ---------- table ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: .93rem; }
th { font-size: .76rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
td { color: var(--text); }
tr:hover td { background: rgba(255,255,255,0.02); }
.table-wrap { overflow: auto; border-radius: var(--radius); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- alerts / flash ---------- */
.alert {
    padding: 12px 16px; border-radius: 12px; margin-bottom: 16px;
    border: 1px solid var(--line-2);
    background: var(--bg-2);
    display: flex; gap: 10px; align-items: flex-start;
}
.alert-ok  { background: rgba(34,197,94,0.08);  border-color: rgba(34,197,94,0.28);  color: #bbf7d0; }
.alert-err { background: rgba(239,68,68,0.08);  border-color: rgba(239,68,68,0.28);  color: #fecaca; }
.alert-warn{ background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.28); color: #fde68a; }
.alert-info{ background: rgba(56,189,248,0.08); border-color: rgba(56,189,248,0.28); color: #bae6fd; }

/* ---------- hero (landing) ---------- */
.hero {
    padding: 100px 0 60px;
    text-align: center;
    position: relative; overflow: hidden;
}
.hero .pill { margin: 0 auto 22px; }
.hero h1 { max-width: 900px; margin-inline: auto; }
.hero p.lead { font-size: 1.15rem; color: var(--text-dim); max-width: 640px; margin: 0 auto 34px; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-orb {
    position: absolute; width: 500px; height: 500px; border-radius: 50%;
    background: var(--grad); filter: blur(120px); opacity: .18; z-index: -1;
    top: -100px; left: 50%; transform: translateX(-50%);
}

/* ---------- feature cards ---------- */
.feat {
    display: flex; flex-direction: column; gap: 10px;
    padding: 26px; border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
    border: 1px solid var(--line);
    transition: transform .2s ease, border-color .2s ease;
}
.feat:hover { transform: translateY(-3px); border-color: rgba(158,253,56,0.3); }
.feat-ico {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--grad-dark); border: 1px solid var(--line-2);
    display: grid; place-items: center; font-size: 22px; color: var(--accent);
}

/* ---------- pricing ---------- */
.price-card {
    padding: 32px 28px; text-align: left; border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
    border: 1px solid var(--line);
    position: relative;
}
.price-card.featured { border-color: rgba(158,253,56,0.5); background: var(--grad-dark); }
.price-card .price {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 2.4rem; font-weight: 700; margin: 8px 0;
}
.price-card .price small { font-size: 1rem; font-weight: 500; color: var(--text-dim); }
.price-card ul { list-style: none; padding: 0; margin: 18px 0; }
.price-card li { padding: 6px 0; color: var(--text-dim); }
.price-card li::before { content: '✓'; color: var(--accent); margin-right: 8px; }
.price-badge {
    position: absolute; top: -10px; right: 22px;
    background: var(--grad); color: #0b0716; padding: 4px 10px;
    border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
}

/* ---------- dashboard shell ---------- */
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
@media (max-width: 900px) { .app-shell { grid-template-columns: 1fr; } .sidebar { display: none; } }

.sidebar {
    padding: 20px 14px; border-right: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
    display: flex; flex-direction: column; gap: 4px;
    position: sticky; top: 0; height: 100vh;
    overflow-y: auto; overflow-x: hidden;
    scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: var(--text-mute); }
.sidebar .brand { padding: 10px 8px 20px; }
.sidebar .nav-group { font-size: .72rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: .1em; padding: 14px 12px 6px; }
.sb-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 10px;
    color: var(--text-dim); font-weight: 500; font-size: .92rem;
    cursor: pointer;
}
.sb-item:hover { background: var(--bg-2); color: var(--text); }
.sb-item.active { background: var(--grad-dark); color: var(--text); border: 1px solid rgba(158,253,56,0.28); }
.sb-item .ico { width: 20px; text-align: center; opacity: .85; }
.sidebar-foot { margin-top: auto; padding: 10px; font-size: .82rem; color: var(--text-mute); }

.main-area { display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 28px; border-bottom: 1px solid var(--line);
    background: rgba(7,7,12,0.6); backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 1.2rem; margin: 0; font-weight: 600; }
.topbar .credits-pill {
    margin-left: auto;
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--grad-dark); border: 1px solid rgba(158,253,56,0.3);
    padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem;
}
.main-content { padding: 28px; }

/* ---------- stat cards ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
    padding: 20px; border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
    border: 1px solid var(--line);
}
.stat .stat-label { font-size: .78rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: .08em; }
.stat .stat-value { font-family: 'Space Grotesk','Inter', sans-serif; font-size: 2rem; font-weight: 700; margin-top: 6px; }
.stat .stat-sub { font-size: .82rem; color: var(--text-dim); margin-top: 4px; }
.stat.accent .stat-value { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
}
.gallery-item {
    position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 1 / 1;
    background: var(--bg-2); border: 1px solid var(--line);
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease;
}
.gallery-item:hover { transform: translateY(-3px); border-color: rgba(158,253,56,0.35); }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .overlay {
    position: absolute; inset: auto 0 0 0; padding: 10px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    font-size: .78rem; color: #fff;
}
.gallery-item .status-tag {
    position: absolute; top: 8px; left: 8px;
}

/* ---------- modal ---------- */
.modal-back {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
    display: grid; place-items: center; padding: 20px;
}
.modal {
    background: var(--bg-1); border: 1px solid var(--line-2);
    border-radius: var(--radius); max-width: 720px; width: 100%;
    max-height: 90vh; overflow: auto; padding: 26px;
    box-shadow: var(--shadow-2);
}

/* ---------- footer ---------- */
.site-foot {
    border-top: 1px solid var(--line); padding: 40px 24px 60px;
    color: var(--text-mute); font-size: .88rem;
    display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
    max-width: 1240px; margin: 60px auto 0;
}
.site-foot a { color: var(--text-dim); margin-right: 14px; }

/* ---------- misc ---------- */
.hidden { display: none !important; }
.divider { height: 1px; background: var(--line); margin: 24px 0; }
.tag {
    display: inline-block; padding: 2px 8px; border-radius: 6px;
    background: var(--bg-2); border: 1px solid var(--line-2);
    font-size: .74rem; color: var(--text-dim);
}
.kbd {
    background: var(--bg-2); border: 1px solid var(--line-2);
    padding: 1px 6px; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: .8rem;
}
.link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* utility */
.tc { text-align: center; }
.tr { text-align: right; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

/* =====================================================================
   v2 — Professional redesign
   ================================================================== */

/* ---------- landing hero ---------- */
.hero {
    position: relative; padding: 120px 24px 80px; text-align: center; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(600px 400px at 30% 20%, rgba(158,253,56,0.25), transparent 60%),
        radial-gradient(500px 400px at 70% 30%, rgba(158,253,56,0.20), transparent 60%);
    z-index: -1;
    animation: heroPulse 8s ease-in-out infinite alternate;
}
@keyframes heroPulse { from { opacity: .85; } to { opacity: 1; } }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600;
    background: var(--grad-dark); border: 1px solid rgba(158,253,56,0.35);
    color: #c4ff7a;
}
.hero h1 {
    font-size: clamp(2.6rem, 6vw, 5rem);
    margin: 20px auto 18px; max-width: 900px;
}
.hero p.lead {
    font-size: 1.15rem; color: var(--text-dim); max-width: 640px; margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-showcase {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
    max-width: 1000px; margin: 60px auto 0; padding: 0 24px;
}
.hero-showcase .shot {
    aspect-ratio: 4/5; border-radius: 18px; overflow: hidden;
    background: #0b0b0b;
    border: 1px solid var(--line-2); position: relative;
    box-shadow: var(--shadow-2);
    transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s;
}
.hero-showcase .shot:hover { transform: translateY(-6px) scale(1.02); border-color: rgba(158,253,56,0.5); }
/* animated aurora fill so the tiles are never "empty" */
.hero-showcase .shot::before {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(120% 90% at 20% 15%, rgba(158,253,56,0.30), transparent 55%),
        radial-gradient(120% 90% at 85% 85%, rgba(158,253,56,0.12), transparent 55%),
        repeating-linear-gradient(115deg, rgba(255,255,255,0.03) 0 12px, transparent 12px 24px),
        #0b0b0b;
    background-size: 200% 200%, 200% 200%, auto, auto;
    animation: shotDrift 9s ease-in-out infinite alternate;
}
.hero-showcase .shot.i2::before { animation-delay: -3s; filter: hue-rotate(-8deg); }
.hero-showcase .shot.i3::before { animation-delay: -6s; }
@keyframes shotDrift {
    from { background-position: 0% 0%, 100% 100%, 0 0, 0 0; }
    to   { background-position: 100% 100%, 0% 0%, 0 0, 0 0; }
}
.hero-showcase .shot::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.72));
}
.hero-showcase .shot .lbl {
    position: absolute; bottom: 14px; left: 16px; font-size: .82rem;
    color: #fff; z-index: 2; font-weight: 600; letter-spacing: .02em;
    display: inline-flex; align-items: center; gap: 7px;
}
/* little floating chip top-right of each tile */
.hero-showcase .shot .tag {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: 4px 9px; border-radius: 999px;
    background: rgba(158,253,56,0.16); color: var(--accent);
    border: 1px solid rgba(158,253,56,0.4);
}
/* center glyph so tiles read as "media", with a soft float */
.hero-showcase .shot .glyph {
    position: absolute; inset: 0; z-index: 1; display: grid; place-items: center;
    font-size: 2.6rem; opacity: .9; animation: glyphFloat 5s ease-in-out infinite;
}
@keyframes glyphFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-showcase .shot.i2 .glyph { animation-delay: -1.5s; }
.hero-showcase .shot.i3 .glyph { animation-delay: -3s; }
@media (max-width: 720px) {
    .hero-showcase { grid-template-columns: 1fr 1fr; gap: 10px; }
    .hero-showcase .shot.i3 { grid-column: 1 / -1; aspect-ratio: 16/9; }
}
@media (max-width: 420px) {
    .hero-showcase { grid-template-columns: 1fr; }
    .hero-showcase .shot.i3 { aspect-ratio: 4/5; }
}

/* ---------- feature grid ---------- */
.feat-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr; } }
.feat {
    padding: 26px; border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
    border: 1px solid var(--line);
    transition: transform .2s, border-color .2s;
}
.feat:hover { transform: translateY(-3px); border-color: rgba(158,253,56,0.35); }
.feat-icon {
    width: 46px; height: 46px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--grad-dark); border: 1px solid rgba(158,253,56,0.25);
    font-size: 1.3rem; margin-bottom: 14px;
}
.feat h3 { margin: 0 0 8px; font-size: 1.1rem; }
.feat p  { color: var(--text-dim); margin: 0; font-size: .94rem; }

/* ---------- section head ---------- */
.sec-head { text-align: center; max-width: 700px; margin: 0 auto 42px; }
.sec-head .kicker {
    display: inline-block; padding: 5px 12px; border-radius: 999px;
    background: var(--grad-dark); border: 1px solid rgba(158,253,56,0.3);
    font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
    color: #c4ff7a; margin-bottom: 14px;
}
.sec-head h2 { margin: 0 0 10px; }
.sec-head p  { color: var(--text-dim); margin: 0; }

/* ---------- big single-plan card ---------- */
.plan-hero {
    position: relative; max-width: 480px; margin: 0 auto;
    padding: 34px; border-radius: 20px;
    background: linear-gradient(180deg, rgba(158,253,56,0.10), rgba(158,253,56,0.06));
    border: 1px solid rgba(158,253,56,0.35);
    box-shadow: 0 30px 80px rgba(158,253,56,0.15);
}
.plan-hero::before {
    content: ''; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
    background: var(--grad); opacity: .5; filter: blur(28px);
}
.plan-hero .plan-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--grad); color: #0b0716; padding: 5px 14px; border-radius: 999px;
    font-size: .74rem; font-weight: 700; letter-spacing: .08em;
    z-index: 3; white-space: nowrap; line-height: 1.2;
}
.plan-hero .plan-name {
    font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 600;
    text-align: center;
}
.plan-hero .plan-price {
    font-family: 'Space Grotesk', sans-serif; font-size: 3.6rem; font-weight: 700;
    text-align: center; margin: 10px 0 4px;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.plan-hero .plan-price sup { font-size: 1.2rem; opacity: .85; }
.plan-hero .plan-period { text-align: center; color: var(--text-dim); margin-bottom: 20px; }
.plan-hero ul.plan-feats { list-style: none; padding: 0; margin: 22px 0; }
.plan-hero ul.plan-feats li {
    padding: 9px 0; display: flex; gap: 10px; align-items: flex-start;
    border-bottom: 1px dashed var(--line);
}
.plan-hero ul.plan-feats li:last-child { border-bottom: none; }
.plan-hero ul.plan-feats li::before {
    content: '✓'; color: #22c55e; font-weight: 700; margin-top: -1px;
}

/* ---------- quota strip (studio) ---------- */
.quota-strip {
    display: flex; gap: 16px; flex-wrap: wrap;
    padding: 14px 18px; border-radius: 14px;
    background: linear-gradient(90deg, rgba(158,253,56,0.10), rgba(158,253,56,0.06));
    border: 1px solid rgba(158,253,56,0.25);
    align-items: center;
}
.quota-item { display: flex; align-items: center; gap: 10px; }
.quota-item .ring {
    width: 34px; height: 34px; border-radius: 50%;
    background: conic-gradient(var(--accent) calc(var(--pct,50) * 1%), rgba(255,255,255,0.08) 0);
    display: grid; place-items: center;
}
.quota-item .ring::after {
    content: ''; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-1);
}
.quota-item .ring .val { position: absolute; font-size: .7rem; font-weight: 700; }
.quota-item .lbl { font-size: .78rem; color: var(--text-mute); }
.quota-item .num { font-weight: 700; font-size: .95rem; }

/* ---------- segmented tabs ---------- */
.seg {
    display: inline-flex; padding: 4px; border-radius: 12px;
    background: var(--bg-2); border: 1px solid var(--line);
    gap: 2px;
}
.seg button {
    background: transparent; border: none; color: var(--text-dim);
    padding: 8px 20px; border-radius: 9px; font-weight: 600;
    cursor: pointer; font-size: .9rem; transition: all .15s;
    font-family: inherit;
}
.seg button.on {
    background: var(--grad); color: #0b0716;
    box-shadow: 0 4px 14px rgba(158,253,56,0.35);
}
.seg button:not(.on):hover { color: var(--text); background: rgba(255,255,255,0.04); }

/* ---------- model picker cards ---------- */
.model-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 720px) { .model-picker { grid-template-columns: 1fr; } }
.model-card {
    position: relative;
    padding: 14px; border-radius: 12px;
    background: var(--bg-2); border: 1px solid var(--line);
    cursor: pointer; transition: all .15s;
    display: flex; flex-direction: column; gap: 4px;
}
.model-card:hover { border-color: rgba(158,253,56,0.4); background: var(--bg-3); }
.model-card.on {
    border-color: var(--accent); background: linear-gradient(180deg, rgba(158,253,56,0.14), rgba(158,253,56,0.06));
    box-shadow: 0 0 0 2px rgba(158,253,56,0.25);
}
.model-card .m-name { font-weight: 600; font-size: .95rem; }
.model-card .m-desc { font-size: .78rem; color: var(--text-dim); line-height: 1.35; }
.model-card .m-badge {
    position: absolute; top: 8px; right: 8px;
    background: var(--grad); color: #0b0716;
    font-size: .62rem; font-weight: 700; letter-spacing: .06em;
    padding: 2px 7px; border-radius: 999px;
}
.model-card input[type="radio"] { position: absolute; opacity: 0; }

/* ---------- chip selector (quality etc) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
    padding: 7px 14px; border-radius: 999px;
    background: var(--bg-2); border: 1px solid var(--line);
    color: var(--text-dim); font-size: .85rem; font-weight: 500;
    cursor: pointer; transition: all .12s;
    user-select: none;
}
.chip:hover { color: var(--text); border-color: rgba(255,255,255,0.15); }
.chip.on {
    background: var(--grad); color: #0b0716; border-color: transparent; font-weight: 600;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }

/* ---------- aspect ratio visual selector ---------- */
.aspects { display: flex; gap: 8px; flex-wrap: wrap; }
.aspect-opt {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 10px 8px; border-radius: 10px;
    background: var(--bg-2); border: 1px solid var(--line);
    cursor: pointer; min-width: 60px; transition: all .15s;
}
.aspect-opt:hover { border-color: rgba(255,255,255,0.15); }
.aspect-opt.on {
    background: linear-gradient(180deg, rgba(158,253,56,0.14), rgba(158,253,56,0.05));
    border-color: var(--accent);
}
.aspect-opt .box {
    background: rgba(255,255,255,0.14); border-radius: 3px;
}
.aspect-opt.on .box { background: var(--accent); }
.aspect-opt .lbl { font-size: .72rem; color: var(--text-dim); font-weight: 600; }
.aspect-opt.on .lbl { color: var(--text); }
.aspect-opt input { position: absolute; opacity: 0; }

/* ---------- studio layout ---------- */
.studio {
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px;
}
@media (max-width: 1100px) { .studio { grid-template-columns: 1fr; } }
.studio-stage {
    padding: 22px; border-radius: 18px; min-height: 480px;
    background: radial-gradient(ellipse at top, rgba(158,253,56,0.08), transparent 70%), var(--bg-1);
    border: 1px solid var(--line);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: sticky; top: 92px;
}
.studio-stage .preview {
    width: 100%; aspect-ratio: 1/1; max-height: 620px; border-radius: 14px;
    background: var(--bg-2); border: 1px dashed var(--line-2);
    display: grid; place-items: center; overflow: hidden; position: relative;
}
.studio-stage .preview img, .studio-stage .preview video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.studio-stage .placeholder {
    text-align: center; color: var(--text-mute);
}
.studio-stage .placeholder .plc-ico {
    font-size: 3rem; opacity: .35; margin-bottom: 10px;
}
.studio-stage .stage-info { margin-top: 16px; display: flex; gap: 12px; align-items: center; width: 100%; }
.studio-stage .stage-info .status-pill {
    padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600;
    background: var(--bg-2); border: 1px solid var(--line);
}
.studio-stage .stage-info .status-pill.processing {
    background: rgba(56,189,248,0.12); border-color: rgba(56,189,248,0.35); color: #7dd3fc;
}
.studio-stage .stage-info .status-pill.completed {
    background: rgba(34,197,94,0.14); border-color: rgba(34,197,94,0.35); color: #86efac;
}
.studio-stage .stage-info .status-pill.failed {
    background: rgba(239,68,68,0.14); border-color: rgba(239,68,68,0.35); color: #fca5a5;
}
.studio-controls {
    display: flex; flex-direction: column; gap: 18px;
    padding: 24px; border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
    border: 1px solid var(--line);
}
.studio-controls .ctl-row { display: flex; flex-direction: column; gap: 10px; }
.studio-controls .ctl-row > label { margin-bottom: 0; font-weight: 600; color: var(--text); font-size: .88rem; }
.studio-prompt textarea {
    min-height: 110px; font-size: 1rem;
}
.prompt-ideas { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.prompt-ideas .idea {
    padding: 5px 10px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line);
    font-size: .78rem; color: var(--text-dim); cursor: pointer;
}
.prompt-ideas .idea:hover { color: var(--text); border-color: rgba(255,255,255,0.15); }

/* ---------- file drop ---------- */
.drop {
    padding: 16px; border-radius: 12px; border: 1.5px dashed var(--line-2);
    background: rgba(255,255,255,0.02); text-align: center; cursor: pointer;
    transition: all .15s;
}
.drop:hover { border-color: var(--accent); background: rgba(158,253,56,0.05); }
.drop.hasfile { border-style: solid; border-color: rgba(34,197,94,0.4); background: rgba(34,197,94,0.05); }
.drop .drop-ico { font-size: 1.5rem; opacity: .5; margin-bottom: 4px; }
.drop .drop-txt { font-size: .85rem; color: var(--text-dim); }
.drop input { display: none; }

/* ---------- support widget (floating) — REMOVED ---------- */
/* FAB hidden globally — support accessible via sidebar link */
.support-fab { display: none !important; }
.support-panel { display: none !important; }
.support-fab .fab-dot {
    position: absolute; top: 4px; right: 4px;
    width: 14px; height: 14px; border-radius: 50%;
    background: #ef4444; color: #fff; font-size: .65rem; font-weight: 700;
    display: grid; place-items: center; border: 2px solid var(--bg-0);
}
.support-panel {
    position: fixed; right: 22px; bottom: 90px; z-index: 91;
    width: 380px; max-width: calc(100vw - 44px); max-height: 70vh;
    background: var(--bg-1); border: 1px solid var(--line-2);
    border-radius: 16px; box-shadow: var(--shadow-2);
    display: flex; flex-direction: column; overflow: hidden;
    transform: translateY(20px); opacity: 0; pointer-events: none;
    transition: all .2s;
}
.support-panel.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.support-panel-head {
    padding: 16px 20px; border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 10px;
    background: linear-gradient(90deg, rgba(158,253,56,0.10), rgba(158,253,56,0.06));
}
.support-panel-head h4 { margin: 0; font-size: 1rem; }
.support-panel-body { flex: 1; overflow: auto; padding: 12px 14px; }
.support-panel-foot { padding: 12px 14px; border-top: 1px solid var(--line); }
.sp-ticket {
    display: block; padding: 10px 12px; border-radius: 10px;
    background: var(--bg-2); border: 1px solid var(--line);
    margin-bottom: 8px; text-decoration: none; color: inherit;
    transition: all .12s;
}
.sp-ticket:hover { border-color: rgba(158,253,56,0.35); }
.sp-ticket .sp-t-title { font-weight: 600; font-size: .9rem; }
.sp-ticket .sp-t-meta { font-size: .74rem; color: var(--text-mute); margin-top: 2px; }
.sp-ticket.unread { border-color: rgba(158,253,56,0.35); }
.sp-ticket.unread .sp-t-title::after {
    content: '●'; color: var(--accent); margin-left: 6px;
}

/* ---------- ticket thread ---------- */
.thread { display: flex; flex-direction: column; gap: 14px; }
.msg {
    max-width: 78%; padding: 12px 16px; border-radius: 14px;
    background: var(--bg-2); border: 1px solid var(--line);
}
.msg.from-user { align-self: flex-end; background: linear-gradient(180deg, rgba(158,253,56,0.18), rgba(158,253,56,0.08)); border-color: rgba(158,253,56,0.35); }
.msg.from-admin { align-self: flex-start; }
.msg .msg-head { display: flex; gap: 10px; align-items: center; font-size: .78rem; color: var(--text-mute); margin-bottom: 6px; }
.msg .msg-body { white-space: pre-wrap; font-size: .95rem; line-height: 1.55; }
.msg .msg-body a { color: var(--accent); text-decoration: underline; }

/* ---------- toggle switch ---------- */
.toggle {
    display: inline-flex; align-items: center; cursor: pointer;
    position: relative; width: 44px; height: 24px;
    background: var(--bg-3); border-radius: 999px;
    border: 1px solid var(--line-2); transition: background .18s;
}
.toggle input { display: none; }
.toggle .knob {
    position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
    background: var(--text); border-radius: 50%; transition: transform .18s;
}
.toggle.on { background: var(--grad); border-color: transparent; }
.toggle.on .knob { transform: translateX(20px); background: #0b0716; }

/* ---------- badges v2 ---------- */
.badge-ok    { background: rgba(34,197,94,0.14); color: #86efac; border-color: rgba(34,197,94,0.35); }
.badge-info  { background: rgba(56,189,248,0.14); color: #7dd3fc; border-color: rgba(56,189,248,0.35); }
.badge-warn  { background: rgba(245,158,11,0.14); color: #fcd34d; border-color: rgba(245,158,11,0.35); }
.badge-err   { background: rgba(239,68,68,0.14); color: #fca5a5; border-color: rgba(239,68,68,0.35); }
.badge-muted { background: var(--bg-2); color: var(--text-dim); }
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600;
    border: 1px solid transparent;
}
.pill-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--bg-2); border: 1px solid var(--line);
    padding: 4px 10px; border-radius: 999px; font-size: .78rem;
}
.count-pill {
    display: inline-grid; place-items: center;
    min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 999px; background: var(--grad); color: #0b0716;
    font-size: .7rem; font-weight: 700;
}

/* ---------- sidebar plan widget ---------- */
.plan-widget {
    padding: 12px; border-radius: 12px;
    background: linear-gradient(180deg, rgba(158,253,56,0.12), rgba(158,253,56,0.05));
    border: 1px solid rgba(158,253,56,0.25);
    margin: 8px 12px 12px;
}
.plan-widget .pw-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.plan-widget .pw-name { font-weight: 700; font-size: .88rem; }
.plan-widget .pw-days { font-size: .72rem; color: var(--text-dim); }
.plan-widget .pw-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.plan-widget .pw-bar .fill { height: 100%; background: var(--grad); }
.plan-widget .pw-line { display: flex; justify-content: space-between; font-size: .74rem; color: var(--text-dim); margin-top: 6px; }
.plan-widget.expired { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.3); }

/* ---------- alerts ---------- */
.alert {
    padding: 12px 16px; border-radius: 12px; margin-bottom: 16px;
    border: 1px solid var(--line-2); font-size: .92rem;
}
.alert-ok  { background: rgba(34,197,94,0.10);  border-color: rgba(34,197,94,0.30);  color: #bbf7d0; }
.alert-err { background: rgba(239,68,68,0.10);  border-color: rgba(239,68,68,0.30);  color: #fecaca; }
.alert-info{ background: rgba(56,189,248,0.10); border-color: rgba(56,189,248,0.30); color: #bae6fd; }
.alert-warn{ background: rgba(245,158,11,0.10); border-color: rgba(245,158,11,0.30); color: #fde68a; }

/* ---------- pricing v2 (single-plan) ---------- */
.pricing-wrap {
    min-height: 60vh; padding: 60px 24px; display: grid; place-items: center;
}
.pricing-inner { text-align: center; max-width: 900px; }
.compare-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    max-width: 780px; margin: 50px auto 0;
}
@media (max-width: 700px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-card {
    padding: 22px; border-radius: 14px;
    background: var(--bg-1); border: 1px solid var(--line);
    text-align: left;
}
.compare-card.pro { border-color: rgba(158,253,56,0.35); background: linear-gradient(180deg, rgba(158,253,56,0.06), transparent); }
.compare-card h4 { margin: 0 0 12px; font-size: 1.05rem; }
.compare-card ul { list-style: none; padding: 0; margin: 0; }
.compare-card li { padding: 6px 0; color: var(--text-dim); font-size: .92rem; display: flex; gap: 8px; }
.compare-card li::before { content: '·'; }
.compare-card.pro li::before { content: '✓'; color: #22c55e; font-weight: 700; }

/* ---------- auth split screen ---------- */
.auth-split {
    display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh;
}
@media (max-width: 900px) { .auth-split { grid-template-columns: 1fr; } .auth-brand { display: none; } }
.auth-brand {
    padding: 60px; display: flex; flex-direction: column; justify-content: center;
    background:
        radial-gradient(600px 400px at 30% 40%, rgba(158,253,56,0.30), transparent 60%),
        radial-gradient(500px 500px at 70% 60%, rgba(158,253,56,0.25), transparent 60%),
        var(--bg-1);
    border-right: 1px solid var(--line);
    position: relative; overflow: hidden;
}
.auth-brand h2 {
    font-size: 2.4rem; font-weight: 700; margin-bottom: 18px;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-brand p { color: var(--text-dim); max-width: 400px; font-size: 1.02rem; }
.auth-brand .auth-marks { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.auth-brand .auth-mark {
    display: flex; gap: 12px; align-items: center; color: var(--text);
    font-size: .95rem;
}
.auth-brand .auth-mark span:first-child {
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--grad-dark); border: 1px solid rgba(158,253,56,0.35);
    display: grid; place-items: center;
}
.auth-form {
    display: flex; flex-direction: column; justify-content: center;
    padding: 60px; max-width: 480px; width: 100%; margin: 0 auto;
}

/* ---------- data tables (admin) ---------- */
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td {
    padding: 12px 14px; text-align: left;
    border-bottom: 1px solid var(--line); font-size: .92rem;
}
table.data th { color: var(--text-mute); font-weight: 600; text-transform: uppercase; font-size: .72rem; letter-spacing: .05em; }
table.data tr:hover { background: rgba(255,255,255,0.02); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- floating action list ---------- */
.fab-list { display: flex; gap: 8px; align-items: center; }

/* ---------- landing sections ---------- */
.section-alt {
    background:
        linear-gradient(180deg, transparent, rgba(255,255,255,0.015) 30%, transparent);
    padding: 80px 24px;
}
.step-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 900px) { .step-flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .step-flow { grid-template-columns: 1fr; } }
.step {
    padding: 24px; border-radius: 14px; text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
    border: 1px solid var(--line);
}
.step-num {
    display: inline-grid; place-items: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--grad); color: #0b0716; font-weight: 800;
    margin-bottom: 14px;
}
.step h4 { margin: 0 0 6px; font-size: 1rem; }
.step p  { color: var(--text-dim); margin: 0; font-size: .88rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
    padding: 18px 20px; border-radius: 12px;
    background: var(--bg-1); border: 1px solid var(--line);
    margin-bottom: 10px;
}
.faq-item summary {
    font-weight: 600; cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--text-dim); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--text-dim); margin: 10px 0 0; font-size: .95rem; }

/* ---------- responsive tweaks ---------- */
@media (max-width: 900px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .main-content { padding: 16px; }
}

/* =====================================================================
   v3 — PROFESSIONAL OVERRIDE LAYER
   Solid #9efd38 on black. Removes every purple/pink gradient + glow left
   in the base sheet, tightens type, adds real (non-AI) polish + full
   responsiveness. This block wins by being last in the cascade.
   ================================================================== */

/* --- kill leftover gradient/glow backgrounds globally --- */
body { background: var(--bg-0) !important; }
.hero::before, .hero-orb, .card-glow::before, .plan-hero::before { display: none !important; }
.auth-brand {
    background:
        linear-gradient(180deg, #0a0a0a, #000) !important;
}

/* --- brand mark: solid green tile, no glow --- */
.brand-mark { background: var(--accent) !important; color: var(--accent-ink) !important; box-shadow: none !important; }

/* --- navbar: crisp, solid --- */
.nav { background: rgba(0,0,0,0.85) !important; }

/* --- buttons: solid green primary, flat --- */
.btn { border-radius: 10px; transition: transform .08s ease, background .15s ease, border-color .15s ease; }
.btn-primary {
    background: var(--accent) !important; color: var(--accent-ink) !important;
    border: none !important; box-shadow: none !important; font-weight: 700;
}
.btn-primary:hover { filter: none !important; background: #b0ff5c !important; box-shadow: none !important; }
.btn:hover { background: var(--bg-3); border-color: var(--line-2); }

/* --- cards: flat surfaces, subtle border --- */
.card, .feat, .stat, .step, .compare-card {
    background: var(--bg-1) !important;
}
.feat:hover, .gallery-item:hover, .model-card:hover, .sp-ticket:hover { border-color: var(--accent-line) !important; }

/* --- inputs: green focus ring --- */
input:focus, select:focus, textarea:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-soft) !important;
}

/* --- anything that used the purple gradient as a fill → solid green --- */
.seg button.on, .chip.on, .model-card .m-badge, .count-pill,
.step-num, .plan-hero .plan-badge, .plan-widget .pw-bar .fill,
.aspect-opt.on .box, .toggle.on {
    background: var(--accent) !important; color: var(--accent-ink) !important;
    box-shadow: none !important; border-color: transparent !important;
}
.toggle.on .knob { background: var(--accent-ink) !important; }

/* --- text that used gradient clip → solid green --- */
.stat.accent .stat-value, .plan-hero .plan-price, .auth-brand h2, .grad-text {
    background: none !important; -webkit-text-fill-color: var(--accent); color: var(--accent) !important;
}

/* --- soft green-tint surfaces (were purple/pink tints) --- */
.sb-item.active, .feat-icon, .feat-ico, .sec-head .kicker, .hero-eyebrow,
.topbar .credits-pill, .quota-strip, .plan-widget, .auth-brand .auth-mark span:first-child,
.compare-card.pro {
    background: var(--accent-soft) !important;
    border-color: var(--accent-line) !important;
    color: var(--text) !important;
}
.feat-icon, .feat-ico, .sec-head .kicker { color: var(--accent) !important; }

/* --- model-card selected: solid green edge, flat tint --- */
.model-card.on {
    background: var(--accent-soft) !important;
    border-color: var(--accent) !important;
    box-shadow: none !important;
}

/* --- big plan card: flat, green outline --- */
.plan-hero {
    background: var(--bg-1) !important;
    border-color: var(--accent-line) !important;
    box-shadow: var(--shadow-1) !important;
}

/* --- studio stage: flat dark, no purple radial --- */
.studio-stage { background: var(--bg-1) !important; }
.msg.from-user { background: var(--accent-soft) !important; border-color: var(--accent-line) !important; }
.sp-ticket.unread .sp-t-title::after { color: var(--accent) !important; }
.quota-item .ring { background: conic-gradient(var(--accent) calc(var(--pct,50) * 1%), rgba(255,255,255,0.08) 0) !important; }

/* --- typography polish: crisper headings --- */
h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; }
h1 { letter-spacing: -0.03em; }

/* --- animated, professional interactions --- */
.btn, .model-card, .chip, .aspect-opt, .feat, .gallery-item, .stat, .sb-item, .seg button, .card {
    transition: transform .16s cubic-bezier(.2,.7,.3,1), background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.feat:hover, .stat:hover { transform: translateY(-4px); }
.card:hover { border-color: var(--line-2); }
.chip:hover, .aspect-opt:hover { transform: translateY(-1px); }

/* fade/rise entrance for landing sections + cards */
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero > *, .sec-head, .feat, .step, .plan-hero, .compare-card { animation: riseIn .5s ease both; }
.feat:nth-child(2)  { animation-delay: .06s; }
.feat:nth-child(3)  { animation-delay: .12s; }
.step:nth-child(2)  { animation-delay: .06s; }
.step:nth-child(3)  { animation-delay: .12s; }
.step:nth-child(4)  { animation-delay: .18s; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* subtle green top-accent line on primary cards for a designed feel */
.plan-hero, .compare-card.pro { position: relative; }
.plan-hero::after, .compare-card.pro::after {
    content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 2px;
    background: var(--accent); border-radius: 2px; z-index: 1;
}

/* =====================================================================
   RESPONSIVE — mobile-first refinements so it fits every device
   ================================================================== */

/* Mobile top bar for the app shell (sidebar hidden < 900px) */
.mobile-bar { display: none; }
@media (max-width: 900px) {
    .mobile-bar {
        display: flex; align-items: center; gap: 12px;
        position: sticky; top: 0; z-index: 30;
        padding: 12px 16px; background: rgba(0,0,0,0.9);
        border-bottom: 1px solid var(--line); backdrop-filter: blur(10px);
    }
    .mobile-bar .brand { font-size: 1.05rem; }
    .mobile-bar .spacer { flex: 1; }
    .mobile-bar .hamburger {
        background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text);
        width: 40px; height: 40px; border-radius: 10px; font-size: 1.2rem;
        cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
        flex: 0 0 40px; padding: 0; line-height: 1;
    }
    .mobile-bar .hamburger-lines {
        width: 18px; height: 14px; display: flex; flex-direction: column;
        justify-content: space-between; align-items: stretch;
    }
    .mobile-bar .hamburger-lines > span {
        display: block; width: 100%; height: 2px; border-radius: 2px;
        background: currentColor;
    }

    /* Sidebar becomes an off-canvas drawer instead of vanishing */
    .app-shell { grid-template-columns: 1fr; }
    .sidebar {
        display: flex !important;
        position: fixed; top: 0; left: 0; bottom: 0; z-index: 60;
        width: 82%; max-width: 300px; height: 100%;
        background: #0a0a0a; border-right: 1px solid var(--line);
        transform: translateX(-105%); transition: transform .24s ease;
        overflow-y: auto;
    }
    .sidebar.open { transform: translateX(0); }
    .sb-backdrop {
        display: none; position: fixed; inset: 0; z-index: 55;
        background: rgba(0,0,0,0.6); backdrop-filter: blur(2px);
    }
    .sb-backdrop.on { display: block; }
}
.sb-backdrop { display: none; }
@media (min-width: 901px) { .mobile-bar, .sb-backdrop { display: none !important; } }

/* Studio — stacks and unsticks on tablet/mobile */
@media (max-width: 1100px) {
    .studio-stage { position: static !important; min-height: 320px; }
    .studio-flow-container {
        display: flex !important;
        flex-direction: column !important;
        height: calc(100vh - 130px) !important;
        overflow: hidden !important;
    }
    .studio-flow-gallery {
        flex: 1 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .flow-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    }
    .flow-control-bar {
        flex-shrink: 0 !important;
        position: sticky !important;
        bottom: 0 !important;
        z-index: 50 !important;
    }
}

/* Studio on very small screens — full stack */
@media (max-width: 600px) {
    .studio-flow-container {
        height: calc(100vh - 110px) !important;
    }
    .flow-control-bar { border-radius: 12px; padding: 10px; }
    .flow-options-row { gap: 8px; }
    .flow-option-group { padding: 5px 8px; font-size: .8rem; }
    .quota-strip { flex-wrap: wrap; gap: 8px; }
    .flow-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
        gap: 8px !important;
    }
    .flow-item {
        aspect-ratio: 1 !important;
    }
    .flow-input-container {
        padding: 8px !important;
        border-radius: 14px !important;
    }
    .flow-input-row-wrapper textarea {
        font-size: 0.88rem !important;
    }
    .settings-toggle-pill {
        font-size: 0.75rem !important;
        padding: 4px 10px !important;
    }
    .segment-btn {
        padding: 6px 8px !important;
        font-size: 0.78rem !important;
        min-width: 50px !important;
    }
}

/* Phone tweaks */
@media (max-width: 640px) {
    :root { --radius: 12px; }
    .container { padding: 0 16px; }
    .section { padding: 56px 0; }
    .hero { padding: 72px 16px 48px; }
    h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
    .main-content { padding: 14px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat { padding: 14px; }
    .stat .stat-value { font-size: 1.5rem; }
    .model-picker { grid-template-columns: 1fr !important; }
    .quota-strip { gap: 10px; padding: 12px; }
    .seg { width: 100%; }
    .seg button { flex: 1; }
    .btn { padding: 12px 18px; }        /* comfortable tap target */
    .nav-toggle { display: inline-block; }
    .nav-actions { order: 3; margin-left: 0; }
    /* Slide-down drawer for the primary links on mobile */
    .nav-links {
        position: absolute; left: 0; right: 0; top: 100%;
        display: flex; flex-direction: column; gap: 0;
        background: rgba(0,0,0,0.96); backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
        max-height: 0; overflow: hidden; margin-left: 0;
        transition: max-height .3s ease, padding .3s ease;
    }
    .nav.open .nav-links { max-height: 320px; padding: 8px 16px 16px; }
    .nav-links a { padding: 12px 14px; border-radius: 8px; }
    .hero-actions .btn, .hero .cta-row .btn { width: 100%; }
    table th, table td { padding: 10px; font-size: .86rem; }
    .modal { padding: 18px; }
    .site-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* Very small phones: single-column stats */
@media (max-width: 380px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* Larger desktops: a touch more breathing room */
@media (min-width: 1400px) {
    .container { max-width: 1320px; }
}

/* =====================================================================
   v3 additions — Google auth, professional sign-out, motion & polish
   ===================================================================== */

/* ---- "Continue with Google" button -------------------------------- */
.btn-google {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: #fff; color: #1f1f1f; border: 1px solid #dadce0;
    font-weight: 600;
    transition: box-shadow .2s ease, transform .12s ease, background .2s ease;
}
.btn-google:hover { background: #f7f8f8; box-shadow: 0 2px 10px rgba(0,0,0,.35); transform: translateY(-1px); }
.btn-google:active { transform: translateY(0); }
.btn-google svg { flex: 0 0 auto; }

/* ---- "or" divider on auth pages ----------------------------------- */
.auth-divider {
    display: flex; align-items: center; gap: 14px;
    color: var(--text-mute); font-size: .8rem; margin: 18px 0;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--line);
}

/* ---- Professional sign-out + user card ---------------------------- */
.user-card {
    display: flex; align-items: center; gap: 11px;
    padding: 10px; margin-bottom: 12px;
    background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.user-av {
    flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 700; font-size: 1rem;
    background: var(--accent); color: var(--accent-ink);
}
.user-meta { min-width: 0; }
.user-name { font-weight: 600; font-size: .9rem; color: var(--text); line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-mail { font-size: .76rem; color: var(--text-mute); line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-signout {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: transparent; color: var(--text-dim);
    border: 1px solid var(--line-2); font-weight: 600; font-size: .86rem;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .12s ease;
}
.btn-signout:hover {
    background: rgba(239,68,68,0.10); color: #ff6b6b; border-color: rgba(239,68,68,0.45);
    transform: translateY(-1px);
}
.btn-signout svg { flex: 0 0 auto; }

/* small helper for the forgot-password row */
.row.between { display: flex; align-items: center; justify-content: space-between; }

/* ---- Scroll-reveal entrance animation ----------------------------- */
[data-reveal] {
    opacity: 0; transform: translateY(22px);
    transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
    will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
/* stagger children when a container is revealed */
[data-reveal-group].is-visible > * { animation: revealItem .6s cubic-bezier(.2,.7,.2,1) both; }
[data-reveal-group].is-visible > *:nth-child(2) { animation-delay: .08s; }
[data-reveal-group].is-visible > *:nth-child(3) { animation-delay: .16s; }
[data-reveal-group].is-visible > *:nth-child(4) { animation-delay: .24s; }
[data-reveal-group].is-visible > *:nth-child(5) { animation-delay: .32s; }
[data-reveal-group].is-visible > *:nth-child(6) { animation-delay: .40s; }
@keyframes revealItem { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---- Interactive hover polish across the site --------------------- */
html { scroll-behavior: smooth; }
.feature-card, .plan, .card, .stat, .feat, .price-card {
    transition: transform .28s cubic-bezier(.2,.7,.2,1), border-color .28s ease, box-shadow .28s ease;
}
.feature-card:hover, .plan:hover, .feat:hover, .price-card:hover {
    transform: translateY(-4px); border-color: var(--accent-line);
    box-shadow: var(--shadow-1);
}
.btn { transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.btn-primary:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.99); }
.nav-links a { position: relative; }
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
    background: var(--accent); transition: width .25s ease;
}
.nav-links a:hover::after { width: 100%; }

/* ---- Respect reduced-motion preferences --------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important; animation-iteration-count: 1 !important;
        transition-duration: .001ms !important; scroll-behavior: auto !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
}

/* ---- Extra responsive safety-nets --------------------------------- */
@media (max-width: 900px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-form { padding: 40px 22px; }
}
@media (max-width: 560px) {
    .user-card { padding: 9px; }
    .auth-form { padding: 32px 18px; }
    .auth-form h2 { font-size: 1.5rem; }
}
img, video, canvas, svg { max-width: 100%; height: auto; }

/* ---- Google Flow Style Studio Overlay and Mobile Fixes ---- */

/* Prevent scroll on the studio page viewport */
.studio-flow-container {
    height: calc(100vh - 120px) !important;
    overflow: hidden !important;
}

@media (max-width: 900px) {
    .studio-flow-container {
        height: calc(100vh - 145px) !important;
    }
}

.studio-flow-gallery {
    flex: 1 !important;
    overflow-y: auto !important;
    max-height: calc(100% - 130px) !important;
}

/* Custom popover dropdown styling */
.custom-popover-select {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}
.custom-popover-select option {
    background: #111;
    color: #fff;
}

/* Modal and Popover definitions */
.flow-input-container {
    position: relative;
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.flow-input-row-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 6px 12px;
}
.flow-input-row-wrapper textarea {
    flex: 1;
    background: transparent;
    border: none;
    padding: 8px 0;
    color: #fff;
    resize: none;
    font-size: 0.95rem;
    min-height: 36px;
    max-height: 100px;
    outline: none;
}
.flow-input-row-wrapper textarea:focus {
    box-shadow: none;
    border: none;
}
.flow-settings-popover {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.6);
    z-index: 100;
    display: none;
    flex-direction: column;
    gap: 14px;
    animation: popoverSlideUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes popoverSlideUp {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.flow-settings-popover.show {
    display: flex;
}
.popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
    margin-bottom: 4px;
}
.popover-header h4 {
    margin: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
}
.popover-close {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1rem;
}
.popover-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.popover-section label {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
}
.segment-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.segment-btn {
    flex: 1;
    min-width: 60px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.15s ease;
}
.segment-btn.active {
    background: var(--accent);
    color: var(--accent-ink) !important;
    border-color: var(--accent);
    font-weight: 600;
}
.segment-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.settings-toggle-pill {
    align-self: flex-start;
    background: rgba(158, 253, 56, 0.08);
    border: 1px solid rgba(158, 253, 56, 0.25);
    color: var(--accent);
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}
.settings-toggle-pill:hover {
    background: rgba(158, 253, 56, 0.15);
}

/* Quota strip mobile optimization */
@media (max-width: 600px) {
    .quota-strip {
        padding: 8px 12px !important;
        margin-bottom: 8px !important;
        gap: 8px !important;
        background: rgba(10, 10, 10, 0.4) !important;
        border-radius: 12px !important;
    }
    .quota-item {
        gap: 6px !important;
    }
    .quota-item .ring {
        display: none !important;
    }
    .quota-item .lbl {
        font-size: 0.62rem !important;
        letter-spacing: 0.02em !important;
    }
    .quota-item .num {
        font-size: 0.76rem !important;
    }
}

/* Force pill-badge to never wrap on mobile (straight line fix) */
.pill-badge {
    white-space: nowrap !important;
}

@media (max-width: 600px) {
    .topbar {
        padding: 10px 12px !important;
        gap: 6px !important;
    }
    .topbar h1 {
        font-size: 0.95rem !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100px;
    }
    .pill-badge {
        font-size: 0.72rem !important;
        padding: 3px 6px !important;
    }
    .lbl-compact {
        display: none !important;
    }
}

/* Layout visibility rules */
@media (min-width: 901px) {
    .studio-mobile-layout { display: none !important; }
    .studio-desktop-layout { display: block !important; }
    /* Desktop main area scrolling settings */
    .studio-flow-container { height: auto !important; overflow: visible !important; }
}
@media (max-width: 900px) {
    .studio-desktop-layout { display: none !important; }
    .studio-mobile-layout { display: flex !important; }
    .topbar { display: none !important; } /* Hide duplicate header on mobile */
}
