:root {
    --bg: #030304;
    --bg-soft: #060507;
    --surface: #0a0709;
    --surface-2: #120d11;
    --surface-3: #1a1216;
    --border: #1e1419;
    --border-2: #2e1b23;
    --text: #f0e7ea;
    --text-muted: #8d7f86;
    --text-dim: #b9a6ad;
    --accent: #ff3040;
    --accent-soft: rgba(255, 48, 64, 0.12);
    --accent-strong: rgba(255, 48, 64, 0.28);
    --accent-deep: #7e0f1c;
    --glow: 0 0 14px rgba(255, 48, 64, 0.35);
    --glow-strong: 0 0 26px rgba(255, 48, 64, 0.55);
    --success: #2ecc71;
    --danger: #ff4d5a;
    --warning: #f1c40f;
    --radius: 12px;
    --radius-sm: 8px;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --mono: 'Consolas', 'Courier New', monospace;
}

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

html, body {
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 500px at 20% -10%, rgba(140, 0, 18, 0.18), transparent 60%),
        radial-gradient(700px 500px at 110% 110%, rgba(110, 0, 14, 0.14), transparent 60%);
    z-index: 0;
}

.wrap { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---- topbar ---- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0; margin-bottom: 28px;
    background: linear-gradient(180deg, rgba(3, 3, 4, 0.94), rgba(3, 3, 4, 0.72));
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0.08em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border-2); }
.brand .red { color: var(--accent); }
.nav { display: flex; gap: 20px; align-items: center; }
.nav a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.18s; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); }
.nav .btn-sm { margin-left: 6px; }

/* ---- buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: #fff; border: 1px solid rgba(255, 96, 106, 0.35);
    border-radius: var(--radius-sm);
    padding: 11px 22px; font-size: 0.92rem; font-weight: 600;
    cursor: pointer; text-decoration: none; letter-spacing: 0.02em;
    box-shadow: var(--glow);
    transition: transform 0.12s, box-shadow 0.18s, opacity 0.18s;
}
.btn:hover { box-shadow: var(--glow-strong); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn-ghost {
    background: transparent; color: var(--text-dim);
    border: 1px solid var(--border-2); box-shadow: none;
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent); box-shadow: var(--glow); }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.btn-danger { background: linear-gradient(135deg, #d11a2a, #8a0f1a); }

/* ---- cards / panels ---- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.card:hover { border-color: var(--border-2); }
.card h3 { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.card .value { font-size: 1.7rem; font-weight: 700; }
.card .sub { color: var(--text-muted); font-size: 0.82rem; margin-top: 4px; }

.grid { display: grid; gap: 14px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ---- inputs ---- */
input, select, textarea {
    width: 100%;
    background: var(--bg-soft);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    color: var(--text);
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: var(--glow); }
label { display: block; font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }

/* ---- status ---- */
.badge {
    display: inline-block; padding: 3px 10px; border-radius: 5px;
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-active { background: rgba(46, 204, 113, 0.12); color: var(--success); }
.badge-trialing { background: rgba(255, 48, 64, 0.12); color: #ff8090; }
.badge-canceled, .badge-expired, .badge-incomplete { background: rgba(241, 196, 15, 0.12); color: var(--warning); }
.badge-past-due, .badge-failed { background: rgba(255, 77, 90, 0.14); color: var(--danger); }
.badge-processing { background: rgba(255, 48, 64, 0.10); color: var(--text-dim); }

/* ---- tables ---- */
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--surface-2); }
th { padding: 12px 16px; text-align: left; font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); border-bottom: 1px solid var(--border); }
td { padding: 12px 16px; font-size: 0.9rem; border-top: 1px solid var(--border); vertical-align: middle; }
tr:hover td { background: rgba(255, 48, 64, 0.02); }
.mono { font-family: var(--mono); font-size: 0.82rem; color: var(--text-dim); }

/* ---- states ---- */
.empty-state, .error-state, .loading-state {
    text-align: center; padding: 48px 20px; color: var(--text-muted); font-size: 0.9rem;
}
.error-state { color: var(--danger); }
.spinner {
    width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid var(--border-2); border-top-color: var(--accent);
    animation: spin 0.8s linear infinite; margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- hero / landing ---- */
.hero { padding: 70px 0 40px; text-align: center; }
.hero .logo-lg { width: 96px; height: 96px; border-radius: 18px; border: 1px solid var(--border-2); box-shadow: var(--glow-strong); margin-bottom: 24px; }
.hero h1 { font-size: 2.6rem; font-weight: 800; letter-spacing: 0.04em; margin-bottom: 14px; }
.hero h1 .red { color: var(--accent); }
.hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto 30px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; }

.pricing-card { display: flex; flex-direction: column; gap: 14px; position: relative; }
.pricing-card.featured { border-color: var(--accent-strong); box-shadow: var(--glow); }
.pricing-card .price { font-size: 2.1rem; font-weight: 800; }
.pricing-card .price small { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.pricing-card ul { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 0.9rem; color: var(--text-dim); flex: 1; }
.pricing-card ul li::before { content: '✓ '; color: var(--accent); font-weight: 700; }
.feature-list { margin-top: 20px; }

/* ---- auth forms ---- */
.auth-shell { display: flex; align-items: center; justify-content: center; min-height: 80vh; }
.auth-box { width: 380px; }
.auth-box h1 { text-align: center; margin-bottom: 6px; letter-spacing: 0.06em; }
.auth-box .sub { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 26px; }
.form-group { margin-bottom: 16px; }
.form-error { color: var(--danger); font-size: 0.85rem; margin-top: 12px; display: none; }

/* ---- misc ---- */
.muted { color: var(--text-muted); }
.small { font-size: 0.82rem; }
.accent { color: var(--accent); }
.divider { height: 1px; background: var(--border); margin: 26px 0; }
.progress-track { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); transition: width 0.4s ease; }
.section-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 18px; letter-spacing: 0.02em; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* =========================================================================
   DESIGN SYSTEM (extended tokens + component layer)
   Keeps the existing crimson/dark identity. These are additive: existing
   classes above are untouched. Use the new tokens/components below in new UI.
   ========================================================================= */

:root {
    /* ---- spacing scale ---- */
    --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
    --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px;

    /* ---- radii scale ---- */
    --radius-lg: 16px; --radius-xl: 22px; --radius-pill: 999px;

    /* ---- type scale ---- */
    --fs-xs: 0.72rem; --fs-sm: 0.82rem; --fs-base: 0.92rem; --fs-md: 1rem;
    --fs-lg: 1.2rem; --fs-xl: 1.6rem; --fs-2xl: 2.2rem; --fs-3xl: 2.9rem;
    --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700; --fw-black: 800;
    --lh-tight: 1.15; --lh-normal: 1.5; --lh-loose: 1.7;

    /* ---- elevation / shadows ---- */
    --elev-1: 0 1px 2px rgba(0, 0, 0, 0.5);
    --elev-2: 0 4px 14px rgba(0, 0, 0, 0.45);
    --elev-3: 0 12px 32px rgba(0, 0, 0, 0.55);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 44px rgba(0, 0, 0, 0.6);

    /* ---- extended color scale ---- */
    --accent-hover: #ff5060;
    --accent-glow-soft: rgba(255, 48, 64, 0.08);
    --info: #5aa7ff;
    --info-soft: rgba(90, 167, 255, 0.12);
    --success-soft: rgba(46, 204, 113, 0.12);
    --warning-soft: rgba(241, 196, 15, 0.14);
    --danger-soft: rgba(255, 77, 90, 0.14);
    --neutral: #a9a0a4;
    --neutral-strong: #cfc5c9;

    /* ---- interaction ---- */
    --focus-ring: 0 0 0 3px rgba(255, 48, 64, 0.35);
    --transition-fast: 0.12s ease;
    --transition-base: 0.18s ease;
    --transition-slow: 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- base polish (safe, non-breaking) ---- */
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
button { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---- layout utilities ---- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-6); }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-1 { gap: var(--sp-1); } .gap-2 { gap: var(--sp-2); } .gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); } .gap-6 { gap: var(--sp-6); }
.mt-1 { margin-top: var(--sp-1); } .mt-2 { margin-top: var(--sp-2); } .mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); } .mt-6 { margin-top: var(--sp-6); } .mt-8 { margin-top: var(--sp-8); }
.mb-1 { margin-bottom: var(--sp-1); } .mb-2 { margin-bottom: var(--sp-2); } .mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); } .mb-6 { margin-bottom: var(--sp-6); } .mb-8 { margin-bottom: var(--sp-8); }
.p-1 { padding: var(--sp-1); } .p-2 { padding: var(--sp-2); } .p-3 { padding: var(--sp-3); }
.p-4 { padding: var(--sp-4); } .p-6 { padding: var(--sp-6); } .p-8 { padding: var(--sp-8); }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.hidden { display: none !important; }

/* ---- type helpers ---- */
.text-xs { font-size: var(--fs-xs); }
.text-sm { font-size: var(--fs-sm); }
.text-base { font-size: var(--fs-base); }
.text-md { font-size: var(--fs-md); }
.text-lg { font-size: var(--fs-lg); }
.text-xl { font-size: var(--fs-xl); }
.text-2xl { font-size: var(--fs-2xl); }
.text-3xl { font-size: var(--fs-3xl); }
.font-semibold { font-weight: var(--fw-semibold); }
.font-bold { font-weight: var(--fw-bold); }
.leading-tight { line-height: var(--lh-tight); }

/* ---- buttons (additive variants) ---- */
.btn-outline {
    background: transparent; color: var(--text);
    border: 1px solid var(--border-2); box-shadow: none;
}
.btn-outline:hover { border-color: var(--accent); box-shadow: var(--glow); color: var(--text); }
.btn-soft {
    background: var(--accent-glow-soft); color: var(--accent);
    border: 1px solid rgba(255, 48, 64, 0.25); box-shadow: none;
}
.btn-soft:hover { background: var(--accent-soft); box-shadow: var(--glow); color: var(--accent); }
.btn-success { background: linear-gradient(135deg, #27ae60, #1e8449); border-color: rgba(46, 204, 113, 0.4); }
.btn-lg { padding: 14px 30px; font-size: 1rem; border-radius: var(--radius); }
.btn-icon { padding: 10px; width: 40px; height: 40px; }
.btn-block { width: 100%; }
.btn:focus-visible, .btn:focus { box-shadow: var(--focus-ring), var(--glow); }

/* ---- inputs (additive, opt-in) ---- */
.input, .select, .textarea {
    width: 100%;
    background: var(--bg-soft);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    color: var(--text);
    font-size: var(--fs-base);
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: var(--glow); }
.input:disabled, .select:disabled, .textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.input-sm { padding: 8px 12px; font-size: var(--fs-sm); }
.input-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.input-valid { border-color: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.field-label { display: block; font-size: var(--fs-xs); color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.field-hint { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 6px; }
.field-error { font-size: var(--fs-sm); color: var(--danger); margin-top: 6px; }

/* ---- cards (additive variants) ---- */
.card-glass {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
}
.card-hover { transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base); }
.card-hover:hover { transform: translateY(-2px); border-color: var(--border-2); box-shadow: var(--elev-2); }
.card-flat { background: transparent; box-shadow: none; }
.card-pad-sm { padding: var(--sp-4); }
.card-pad-lg { padding: var(--sp-8); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); }
.card-title { font-size: var(--fs-sm); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---- badges (additive variants) ---- */
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-neutral { background: rgba(255, 255, 255, 0.05); color: var(--neutral-strong); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-dot { display: inline-flex; align-items: center; gap: 6px; }
.badge-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---- tables (additive variants) ---- */
.table { width: 100%; border-collapse: collapse; }
.table-clean { border: none; }
.table-clean th, .table-clean td { border: none; }
.table-striped tbody tr:nth-child(odd) { background: rgba(255, 255, 255, 0.02); }
.table-hover tbody tr:hover td { background: rgba(255, 48, 64, 0.04); }
.table th, .table td { padding: var(--sp-3) var(--sp-4); }
.table td.muted-cell { color: var(--text-muted); }

/* ---- modal ---- */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    background: rgba(3, 3, 4, 0.72);
    backdrop-filter: blur(4px);
    padding: var(--sp-6);
    animation: fadeIn var(--transition-base);
}
.modal-card {
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-lg);
    box-shadow: var(--elev-3);
    width: 100%; max-width: 480px;
    animation: slideUp var(--transition-slow);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-5) var(--sp-6); border-bottom: 1px solid var(--border); }
.modal-title { font-size: var(--fs-lg); font-weight: var(--fw-bold); }
.modal-close { background: transparent; border: none; color: var(--text-muted); font-size: 1.3rem; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: var(--sp-6); }
.modal-footer { display: flex; justify-content: flex-end; gap: var(--sp-3); padding: var(--sp-4) var(--sp-6); border-top: 1px solid var(--border); }

/* ---- toasts ---- */
.toast-stack { position: fixed; right: var(--sp-5); bottom: var(--sp-5); z-index: 1100; display: flex; flex-direction: column; gap: var(--sp-3); }
.toast {
    display: flex; align-items: center; gap: var(--sp-3);
    min-width: 260px; max-width: 380px;
    background: var(--surface-2); border: 1px solid var(--border-2);
    border-radius: var(--radius); box-shadow: var(--elev-3);
    padding: var(--sp-3) var(--sp-4);
    animation: slideUp var(--transition-slow);
}
.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-info { border-left: 3px solid var(--info); }
.toast-title { font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.toast-body { font-size: var(--fs-sm); color: var(--text-muted); }

/* ---- nav tabs / pills ---- */
.nav-tabs { display: flex; gap: var(--sp-2); border-bottom: 1px solid var(--border); margin-bottom: var(--sp-6); }
.nav-tabs a, .nav-tabs button {
    padding: var(--sp-3) var(--sp-4); background: transparent; border: none; color: var(--text-muted);
    font-size: var(--fs-sm); font-weight: var(--fw-semibold); cursor: pointer; text-decoration: none;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.nav-tabs a:hover, .nav-tabs button:hover { color: var(--text); }
.nav-tabs a.active, .nav-tabs button.active { color: var(--text); border-bottom-color: var(--accent); }
.nav-pill { display: inline-block; padding: 7px 16px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text-muted); text-decoration: none; font-size: var(--fs-sm); font-weight: var(--fw-medium); transition: all var(--transition-fast); }
.nav-pill:hover { color: var(--text); border-color: var(--accent); }
.nav-pill.active { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--border); margin-top: var(--sp-12); padding: var(--sp-8) 0 var(--sp-6); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--sp-6); }
.footer h4 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); margin-bottom: var(--sp-3); }
.footer a { color: var(--text-muted); text-decoration: none; display: block; margin-bottom: var(--sp-2); font-size: var(--fs-sm); }
.footer a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--border); color: var(--text-muted); font-size: var(--fs-sm); }

/* ---- sidebar (dashboard / admin) ---- */
.sidebar { display: flex; flex-direction: column; gap: var(--sp-1); }
.sidebar-link {
    display: flex; align-items: center; gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm);
    color: var(--text-muted); text-decoration: none; font-size: var(--fs-base); font-weight: var(--fw-medium);
    border: 1px solid transparent; transition: all var(--transition-fast);
}
.sidebar-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.sidebar-link.active { color: var(--text); background: var(--accent-glow-soft); border-color: rgba(255, 48, 64, 0.2); }
.sidebar-section { margin-top: var(--sp-5); }

/* ---- misc components ---- */
.auth-logo { width: 72px; height: 72px; border-radius: 14px; border: 1px solid var(--border-2); box-shadow: var(--glow-strong); display: block; margin: 0 auto 18px; }
.divider-soft { height: 1px; background: var(--border); margin: var(--sp-5) 0; }
.divider-line { height: 1px; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); border: none; margin: var(--sp-5) 0; }
.avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-2); }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius-sm); }
.kbd { display: inline-block; padding: 2px 7px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--border-2); font-family: var(--mono); font-size: 0.75rem; }

/* ---- animations ---- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- responsive ---- */
@media (max-width: 720px) {
    .hero h1 { font-size: var(--fs-2xl); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .toast-stack { right: var(--sp-3); bottom: var(--sp-3); left: var(--sp-3); min-width: 0; }
    .toast { min-width: 0; max-width: none; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .nav { gap: var(--sp-3); }
}

/* =========================================================================
   HOMEPAGE PRIMITIVES (additive, reusable)
   ========================================================================= */
.text-glow { text-shadow: 0 0 18px rgba(255, 48, 64, 0.35); }
.glass-nav { background: rgba(6, 5, 7, 0.74); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
.btn-arrow svg { transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.btn-arrow:hover svg { transform: translateX(3px); }
@keyframes heroCycle { 0%, 26% { opacity: 0; transform: translateY(0.35em); filter: blur(6px); } 9%, 40% { opacity: 1; transform: none; filter: blur(0); } 52%, 100% { opacity: 0; } }
.hero-word { animation: heroCycle 6s ease-in-out infinite; display: inline-block; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-word { animation: none; }
    .glass-nav { transition: none; }
}

/* ---- single-screen homepage helpers ---- */
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.pulse-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid currentColor; opacity: 0.4; animation: pulseRing 2.4s ease-out infinite; }
@keyframes pulseRing { 0% { transform: scale(0.6); opacity: 0.5; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pulse-dot::after { animation: none; } }