/* ==========================================================================
   Buraq – AI theme
   Dark-first, teal → cyan gradient palette with glass surfaces.
   No build step required.
   ========================================================================== */

:root {
    --bg: #0b1015;
    --bg-2: #0f161d;
    --surface: rgba(20, 28, 36, 0.72);
    --surface-solid: #141c24;
    --surface-2: rgba(255, 255, 255, 0.04);
    --border: rgba(148, 180, 190, 0.14);
    --border-strong: rgba(148, 180, 190, 0.28);
    --text: #e6edf1;
    --text-muted: #9aabb5;
    --text-dim: #6b7c87;

    --primary: #14b8a6;
    --primary-2: #0d9488;
    --accent: #38bdf8;
    --pink: #f59e0b;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;

    --grad: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #0891b2 100%);
    --grad-soft: linear-gradient(135deg, rgba(20, 184, 166, .18), rgba(56, 189, 248, .12));
    --glow: 0 0 0 1px rgba(20, 184, 166, .25), 0 10px 40px -10px rgba(13, 148, 136, .55);
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);

    --radius: 16px;
    --radius-sm: 10px;
    --sidebar-w: 264px;
    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-theme="light"] {
    --bg: #f4f7f8;
    --bg-2: #eaf0f2;
    --surface: rgba(255, 255, 255, 0.85);
    --surface-solid: #ffffff;
    --surface-2: rgba(15, 23, 42, 0.03);
    --border: rgba(15, 118, 110, 0.12);
    --border-strong: rgba(15, 118, 110, 0.25);
    --text: #10202a;
    --text-muted: #50626d;
    --text-dim: #82929c;
    --shadow: 0 20px 50px -25px rgba(15, 60, 70, .22);
    --glow: 0 0 0 1px rgba(20, 184, 166, .2), 0 10px 30px -12px rgba(13, 148, 136, .4);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: .92em; }
::selection { background: rgba(20, 184, 166, .35); }

/* Ambient AI background (mesh + grid) */
.ai-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ai-bg::before {
    content: ""; position: absolute; inset: -20%;
    background:
        radial-gradient(40% 35% at 15% 10%, rgba(20, 184, 166, .28), transparent 70%),
        radial-gradient(35% 30% at 90% 15%, rgba(56, 189, 248, .18), transparent 70%),
        radial-gradient(40% 40% at 70% 95%, rgba(245, 158, 11, .14), transparent 70%);
    filter: blur(10px);
    animation: drift 22s ease-in-out infinite alternate;
}
.ai-bg::after {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
    opacity: .35;
}
[data-theme="light"] .ai-bg::before { opacity: .55; }
@keyframes drift { to { transform: translate3d(3%, 2%, 0) scale(1.05); } }

.gradient-text {
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    height: 40px; padding: 0 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
    font: 600 14px/1 var(--font); cursor: pointer; white-space: nowrap;
    transition: transform .15s ease, box-shadow .2s ease, background .2s, border-color .2s;
}
.btn:hover { border-color: var(--primary); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--grad); border: 0; color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(20, 184, 166, .4), 0 14px 40px -8px rgba(13, 148, 136, .7); }
.btn-danger { color: var(--danger); border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .08); }
.btn-danger:hover { border-color: var(--danger); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15.5px; border-radius: 12px; }
.btn-icon { width: 34px; height: 34px; padding: 0; }
.btn-block { width: 100%; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.input, .select, .textarea {
    width: 100%; height: 42px; padding: 0 13px; border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong); background: rgba(4, 9, 12, .35); color: var(--text);
    font: 500 14px var(--font); outline: none; transition: border-color .2s, box-shadow .2s;
}
[data-theme="light"] .input, [data-theme="light"] .select, [data-theme="light"] .textarea { background: #fff; }
.textarea { height: auto; min-height: 96px; padding: 10px 13px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2398a1c8' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.select option { background: var(--surface-solid); color: var(--text); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(20, 184, 166, .18); }
.input::placeholder { color: var(--text-dim); }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--text-dim); }
.input-icon .input { padding-left: 40px; }
.error { color: var(--danger); font-size: 12.5px; font-weight: 500; }
.hint { color: var(--text-dim); font-size: 12.5px; }
.checkbox { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 14px; color: var(--text-muted); }
.checkbox input { width: 17px; height: 17px; accent-color: var(--primary); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .span-2 { grid-column: span 2; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-check { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 10px; border: 1px solid var(--border-strong); cursor: pointer; font-size: 13.5px; }
.chip-check:has(input:checked) { border-color: var(--primary); background: rgba(20, 184, 166, .12); }
.chip-check input { accent-color: var(--primary); }

/* ---------- Cards ---------- */
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow);
}
.card-pad { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.card-head h3 { font-size: 15.5px; }
.card-head p { color: var(--text-muted); font-size: 13px; }
.card-body { padding: 22px; }
.glow-border { position: relative; }
.glow-border::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
    background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; opacity: .7; pointer-events: none;
}

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.no-dot::before { display: none; }
.badge-success { color: var(--success); background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .25); }
.badge-warning { color: var(--warning); background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .25); }
.badge-danger { color: var(--danger); background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .25); }
.badge-info { color: var(--accent); background: rgba(56, 189, 248, .1); border-color: rgba(56, 189, 248, .25); }
.badge-violet { color: #5eead4; background: rgba(20, 184, 166, .14); border-color: rgba(20, 184, 166, .3); }
[data-theme="light"] .badge-violet { color: #0f766e; }
.badge-muted { color: var(--text-muted); background: var(--surface-2); border-color: var(--border); }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 12px; border: 1px solid; font-size: 14px; margin-bottom: 18px; }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.alert-success { color: var(--success); background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .25); }
.alert-error { color: var(--danger); background: rgba(248, 113, 113, .08); border-color: rgba(248, 113, 113, .25); }
.alert-warning { color: var(--warning); background: rgba(251, 191, 36, .08); border-color: rgba(251, 191, 36, .25); }
.alert-info { color: var(--accent); background: rgba(56, 189, 248, .08); border-color: rgba(56, 189, 248, .25); }
.alert span { color: var(--text); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); font-weight: 600; padding: 12px 22px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px 22px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--surface-2); }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.cell-user { display: flex; align-items: center; gap: 12px; }
.cell-user strong { display: block; font-weight: 600; }
.cell-user small { color: var(--text-muted); font-size: 12.5px; }
.empty { padding: 50px 20px; text-align: center; color: var(--text-muted); }
.empty svg { width: 42px; height: 42px; margin: 0 auto 12px; color: var(--primary); opacity: .8; }
.empty h4 { color: var(--text); margin-bottom: 4px; font-size: 15px; }

.avatar {
    width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center;
    background: var(--grad); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: 0;
}
.avatar-sm { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }
.avatar-lg { width: 64px; height: 64px; border-radius: 18px; font-size: 22px; }

/* ---------- App shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
    position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 40;
    display: flex; flex-direction: column; padding: 18px 14px;
    background: rgba(9, 14, 18, .82); border-right: 1px solid var(--border);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    transition: transform .25s ease;
}
[data-theme="light"] .sidebar { background: rgba(255, 255, 255, .9); }
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 10px 20px; }
.brand-logo { width: 38px; height: 38px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; box-shadow: var(--glow); }
.brand-logo svg { width: 22px; height: 22px; color: #fff; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand-sub { font-size: 11.5px; color: var(--text-dim); margin-top: -2px; }
.nav-section { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--text-dim); padding: 16px 12px 8px; font-weight: 600; }
.nav-link {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px;
    color: var(--text-muted); font-weight: 500; position: relative; transition: background .2s, color .2s;
}
.nav-link svg { width: 19px; height: 19px; }
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link.active { color: var(--text); background: var(--grad-soft); }
.nav-link.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.nav-link.active svg { color: var(--primary); }
.sidebar-foot { margin-top: auto; }
.plan-card { padding: 15px; border-radius: 14px; background: var(--grad-soft); border: 1px solid var(--border-strong); margin-bottom: 12px; }
.plan-card strong { display: block; font-size: 14px; }
.plan-card small { color: var(--text-muted); font-size: 12px; }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.topbar {
    position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
    height: 68px; padding: 0 28px; border-bottom: 1px solid var(--border);
    background: rgba(11, 16, 21, .6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
[data-theme="light"] .topbar { background: rgba(244, 247, 248, .75); }
.topbar .search { flex: 1; max-width: 380px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; }
.user-menu { position: relative; }
.user-trigger { display: flex; align-items: center; gap: 10px; padding: 5px 10px 5px 5px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; color: var(--text); font: inherit; }
.user-trigger .meta { text-align: left; line-height: 1.2; }
.user-trigger .meta strong { font-size: 13.5px; display: block; }
.user-trigger .meta small { font-size: 11.5px; color: var(--text-dim); }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 6px; border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow); display: none; }
.dropdown.open { display: block; animation: pop .15s ease; }
.dropdown a, .dropdown button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; color: var(--text-muted); background: none; border: 0; font: 500 14px var(--font); cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-2); color: var(--text); }
.dropdown svg { width: 17px; height: 17px; }
.dropdown hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }

.content { padding: 28px; max-width: 1400px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; }
.page-head p { color: var(--text-muted); margin-top: 4px; }
.breadcrumb { font-size: 12.5px; color: var(--text-dim); margin-bottom: 6px; display: flex; gap: 6px; }
.breadcrumb a:hover { color: var(--text); }

/* ---------- Dashboard bits ---------- */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.stat { padding: 20px; position: relative; overflow: hidden; }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-label { color: var(--text-muted); font-size: 13px; font-weight: 500; }
.stat-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border-strong); }
.stat-icon svg { width: 20px; height: 20px; color: var(--primary); }
.stat-icon.cyan svg { color: var(--accent); }
.stat-icon.pink svg { color: var(--pink); }
.stat-icon.green svg { color: var(--success); }
.stat-value { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin-top: 14px; }
.stat-foot { font-size: 12.5px; color: var(--text-dim); margin-top: 4px; }
.stat::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--grad); opacity: .07; filter: blur(4px); }

.hero-banner { padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; overflow: hidden; position: relative; margin-bottom: 22px; }
.hero-banner h2 { font-size: 22px; }
.hero-banner p { color: var(--text-muted); margin-top: 6px; max-width: 560px; }
.hero-banner .orb { position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(20, 184, 166, .55), rgba(56, 189, 248, .2) 60%, transparent 70%); filter: blur(6px); pointer-events: none; }

.progress { height: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
.progress.warn > span { background: linear-gradient(90deg, #fbbf24, #f97316); }
.progress.full > span { background: linear-gradient(90deg, #f87171, #ef4444); }
.usage-row { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 8px; }
.usage-row span { color: var(--text-muted); }

.bars { display: flex; align-items: flex-end; gap: 14px; height: 190px; padding-top: 10px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar-fill { width: 100%; max-width: 46px; border-radius: 10px 10px 4px 4px; background: var(--grad); min-height: 6px; box-shadow: 0 8px 24px -10px rgba(13, 148, 136, .8); position: relative; }
.bar-fill em { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 12px; font-weight: 700; color: var(--text-muted); }
.bar small { color: var(--text-dim); font-size: 12px; }

.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 13px 22px; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item strong { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item small { color: var(--text-muted); font-size: 12.5px; }

.kv { display: grid; grid-template-columns: 160px 1fr; gap: 12px 18px; font-size: 14px; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; font-weight: 500; word-break: break-word; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.toolbar .input, .toolbar .select { height: 38px; max-width: 260px; }
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); width: fit-content; margin-bottom: 20px; }
.tabs a { padding: 8px 16px; border-radius: 9px; font-weight: 600; font-size: 13.5px; color: var(--text-muted); }
.tabs a.active { background: var(--surface-solid); color: var(--text); box-shadow: 0 2px 10px -4px rgba(0, 0, 0, .4); }

.pagination { display: flex; gap: 6px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--border); align-items: center; }
.pagination .info { margin-right: auto; color: var(--text-dim); font-size: 13px; }
.pagination a, .pagination span.page { min-width: 34px; height: 34px; display: grid; place-items: center; padding: 0 10px; border-radius: 9px; border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text-muted); }
.pagination a:hover { border-color: var(--primary); color: var(--text); }
.pagination .current { background: var(--grad); color: #fff; border: 0; }
.pagination .disabled { opacity: .4; }

.price { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.price small { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.feature-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.feature-list li { display: flex; gap: 9px; align-items: center; color: var(--text-muted); }
.feature-list li svg { width: 16px; height: 16px; color: var(--success); flex: none; }
.feature-list li.off { opacity: .45; text-decoration: line-through; }
.feature-list li.off svg { color: var(--text-dim); }

.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 28px; }
.mb-3 { margin-bottom: 20px; }
.flex { display: flex; } .items-center { align-items: center; } .gap-2 { gap: 10px; } .gap-3 { gap: 16px; }
.justify-between { justify-content: space-between; } .wrap { flex-wrap: wrap; }
.text-right { text-align: right; }
.inline { display: inline; }
.sm { font-size: 13px; }
.overlay { display: none; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-side { padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; border-right: 1px solid var(--border); }
.auth-side h2 { font-size: 38px; line-height: 1.12; max-width: 520px; margin-top: 40px; }
.auth-side p { color: var(--text-muted); margin-top: 16px; max-width: 470px; font-size: 15.5px; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 420px; padding: 34px; }
.auth-card h1 { font-size: 26px; }
.auth-card > p { color: var(--text-muted); margin: 6px 0 26px; }
.auth-points { display: flex; flex-direction: column; gap: 14px; margin-top: 34px; }
.auth-points div { display: flex; gap: 12px; align-items: center; color: var(--text-muted); }
.auth-points svg { width: 20px; height: 20px; color: var(--accent); }

/* ---------- Landing ---------- */
.l-nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); background: rgba(11, 16, 21, .55); border-bottom: 1px solid var(--border); }
[data-theme="light"] .l-nav { background: rgba(244, 247, 248, .7); }
.l-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.l-nav .l-container { display: flex; align-items: center; height: 72px; gap: 26px; }
.l-links { display: flex; gap: 26px; color: var(--text-muted); font-weight: 500; font-size: 14.5px; }
.l-links a:hover { color: var(--text); }
.l-nav .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.hero { padding: 96px 0 70px; text-align: center; position: relative; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface-2); font-size: 13px; color: var(--text-muted); }
.pill b { padding: 3px 9px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 11.5px; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.04; letter-spacing: -.04em; margin: 24px auto 0; max-width: 900px; font-weight: 800; }
.hero p.lead { font-size: 18.5px; color: var(--text-muted); max-width: 640px; margin: 22px auto 0; }
.hero .cta { display: flex; gap: 12px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.hero-shot { margin: 64px auto 0; max-width: 1040px; padding: 12px; border-radius: 22px; }
.hero-shot .window { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-2); text-align: left; }
.window-bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.window-body { display: grid; grid-template-columns: 190px 1fr; min-height: 330px; }
.window-side { border-right: 1px solid var(--border); padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.window-side span { height: 30px; border-radius: 8px; background: var(--surface-2); }
.window-side span.on { background: var(--grad-soft); border: 1px solid var(--border-strong); }
.window-main { padding: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-content: start; }
.window-main .tile { height: 86px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); padding: 14px; }
.tile i { display: block; height: 8px; width: 50%; border-radius: 4px; background: var(--border-strong); }
.tile b { display: block; height: 18px; width: 70%; border-radius: 5px; background: var(--grad); margin-top: 14px; opacity: .85; }
.window-main .chart { grid-column: span 2; height: 170px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); display: flex; align-items: flex-end; gap: 10px; padding: 16px; }
.window-main .chart span { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--grad); opacity: .85; }
.window-main .side-list { height: 170px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); }
.section { padding: 90px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head .eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-top: 10px; }
.section-head p { color: var(--text-muted); margin-top: 12px; font-size: 16.5px; }
.feature { padding: 26px; transition: transform .2s ease, border-color .2s; }
.feature:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.feature .stat-icon { margin-bottom: 18px; }
.feature h3 { font-size: 17px; }
.feature p { color: var(--text-muted); margin-top: 8px; font-size: 14.5px; }
.steps { counter-reset: step; }
.step { padding: 26px; }
.step::before { counter-increment: step; content: "0" counter(step); font: 800 13px var(--mono); color: var(--accent); }
.step h3 { margin-top: 12px; font-size: 17px; }
.step p { color: var(--text-muted); margin-top: 8px; }
.cta-band { padding: 50px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(26px, 3.5vw, 38px); }
.cta-band p { color: var(--text-muted); margin: 12px auto 28px; max-width: 520px; }
.l-footer { border-top: 1px solid var(--border); padding: 30px 0; color: var(--text-dim); font-size: 13.5px; }
.l-footer .l-container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-main { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); }
    body.nav-open .sidebar { transform: none; }
    body.nav-open .overlay { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 35; }
    .main { margin-left: 0; }
    .menu-toggle { display: inline-flex; }
    .topbar { padding: 0 16px; }
    .topbar .search { display: none; }
    .content { padding: 20px 16px; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .l-links { display: none; }
    .window-body { grid-template-columns: 1fr; }
    .window-side { display: none; }
    .user-trigger .meta { display: none; }
}
@media (max-width: 640px) {
    .grid-4 { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .span-2 { grid-column: auto; }
    .kv { grid-template-columns: 1fr; gap: 2px; }
    .kv dd { margin-bottom: 10px; }
    .window-main { grid-template-columns: 1fr 1fr; }
    .window-main .chart { grid-column: span 2; }
    .window-main .side-list { display: none; }
}

/* fixes */
.toolbar .input-icon .input { max-width: none; }
@media (max-width: 640px) {
    .hero-banner { flex-direction: column; align-items: flex-start; }
    .page-head > div:last-child { width: 100%; }
}
