/* =========================================================
   Inti Prada — Dashboard Stylesheet
   ========================================================= */

:root {
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --brand-soft: #eff6ff;
    --navy: #0f172a;
    --navy-soft: #1e293b;
    --bg: #f4f6fb;
    --surface: #ffffff;
    --border: #e2e8f0;
    --text: #1f2937;
    --text-muted: #64748b;
    --success: #059669;
    --success-soft: #ecfdf5;
    --warning: #b45309;
    --warning-soft: #fffbeb;
    --danger: #dc2626;
    --danger-soft: #fef2f2;
    --info: #0284c7;
    --info-soft: #f0f9ff;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow: 0 6px 18px rgba(15, 23, 42, .07);
    --shadow-lg: 0 18px 45px rgba(15, 23, 42, .12);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14.5px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4, h5 { margin: 0 0 .4rem; line-height: 1.25; color: #0f172a; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .8rem; }
img { max-width: 100%; }

/* ---------------- Utilities ---------------- */
.text-muted { color: var(--text-muted); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.mono { font-family: "Cascadia Code", "Consolas", monospace; font-size: .86rem; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.w-full { width: 100%; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.flex-center { display: flex; align-items: center; gap: .55rem; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }

/* ---------------- App shell ---------------- */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
    width: 262px;
    flex: 0 0 262px;
    background: linear-gradient(180deg, #0f172a 0%, #111c33 100%);
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, .16);
}

.sidebar-brand .logo {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
}

.sidebar-brand .brand-text { line-height: 1.15; }
.sidebar-brand .brand-text strong { color: #fff; font-size: .98rem; display: block; }
.sidebar-brand .brand-text span { font-size: .72rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .08em; }

.sidebar-nav { padding: .9rem .7rem 1.5rem; flex: 1; }
.nav-group { margin-bottom: .85rem; }
.nav-group-title {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .11em;
    color: #64748b;
    padding: .35rem .75rem;
    font-weight: 700;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .58rem .75rem;
    border-radius: var(--radius-sm);
    color: #cbd5e1;
    font-size: .875rem;
    font-weight: 500;
    margin-bottom: 2px;
    transition: background .15s ease, color .15s ease;
}

.nav-link:hover { background: rgba(148, 163, 184, .12); color: #fff; }
.nav-link.active { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, .35); }
.nav-link .nav-icon { width: 18px; text-align: center; font-size: .95rem; opacity: .9; }
.nav-link .nav-count { margin-left: auto; background: #ef4444; color: #fff; font-size: .68rem; font-weight: 700; padding: .08rem .42rem; border-radius: 999px; }

.sidebar-footer { padding: .9rem 1.1rem 1.2rem; border-top: 1px solid rgba(148, 163, 184, .16); display: flex; align-items: center; gap: .65rem; font-size: .82rem; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    height: 64px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar-title { font-weight: 600; color: #0f172a; }
.topbar-spacer { flex: 1; }
.topbar-user { position: relative; }
.topbar-user summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .55rem; }
.topbar-user summary::-webkit-details-marker { display: none; }

.page { padding: 1.6rem 1.5rem 2.6rem; }

.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; }
.page-header .eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); font-weight: 700; margin-bottom: .2rem; }
.page-header .page-desc { color: var(--text-muted); margin: 0; font-size: .88rem; }

/* ---------------- Cards ---------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 1.2rem; overflow: hidden; }
.card-header { padding: .95rem 1.15rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #fbfcfe; }
.card-title { font-size: .95rem; font-weight: 650; margin: 0; color: #0f172a; }
.card-subtitle { font-size: .8rem; color: var(--text-muted); margin: .15rem 0 0; }
.card-body { padding: 1.15rem; }
.card-body.tight { padding: .85rem 1.15rem; }
.card-footer { padding: .8rem 1.15rem; border-top: 1px solid var(--border); background: #fbfcfe; }

/* ---------------- Stats ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 1.35rem; }

.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.05rem 1.15rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.stat::after { content: ""; position: absolute; right: -25px; bottom: -35px; width: 95px; height: 95px; border-radius: 50%; background: var(--brand-soft); }
.stat-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); font-weight: 700; }
.stat-value { font-size: 1.6rem; font-weight: 720; color: #0f172a; letter-spacing: -.02em; margin: .22rem 0 .1rem; }
.stat-hint { font-size: .78rem; color: var(--text-muted); }
.stat.accent { background: linear-gradient(135deg, #1d4ed8, #3b82f6); border-color: transparent; }
.stat.accent .stat-label, .stat.accent .stat-hint { color: rgba(255, 255, 255, .8); }
.stat.accent .stat-value { color: #fff; }
.stat.accent::after { background: rgba(255, 255, 255, .14); }

/* ---------------- Tables ---------------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
table.table thead th {
    text-align: left;
    padding: .68rem 1.15rem;
    background: #f8fafc;
    color: var(--text-muted);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
table.table tbody td { padding: .72rem 1.15rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
table.table tbody tr:last-child td { border-bottom: 0; }
table.table tbody tr:hover { background: #f9fbfe; }
.table-actions { display: flex; gap: .35rem; justify-content: flex-end; }
.table-empty { padding: 2.2rem 1rem; text-align: center; color: var(--text-muted); font-size: .88rem; }

/* ---------------- Badges ---------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .18rem .55rem;
    border-radius: 999px;
    font-size: .73rem;
    font-weight: 650;
    line-height: 1.5;
    white-space: nowrap;
}
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-muted { background: #f1f5f9; color: #64748b; }
.badge-brand { background: var(--brand-soft); color: var(--brand-dark); }

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .52rem .95rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: .855rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
    background: #fff;
    color: var(--text);
    text-decoration: none;
    line-height: 1.4;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, .25); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: #fff; border-color: var(--border); color: var(--text); }
.btn-secondary:hover { background: #f8fafc; color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #047857; color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-sm { padding: .3rem .6rem; font-size: .78rem; border-radius: 7px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---------------- Forms ---------------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .95rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .8rem; font-weight: 650; color: #334155; }
.field .hint { font-size: .76rem; color: var(--text-muted); }
.field .error-text { font-size: .76rem; color: var(--danger); font-weight: 600; }

input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="date"], input[type="url"], input[type="tel"], input[type="search"],
select, textarea {
    width: 100%;
    padding: .55rem .75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .13);
}

input.invalid, select.invalid, textarea.invalid { border-color: var(--danger); }
textarea { min-height: 96px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--brand); }

.checkbox { display: flex; align-items: flex-start; gap: .5rem; font-size: .85rem; font-weight: 500; }
.checkbox input { margin-top: .22rem; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .45rem; }

/* ---------------- Alerts ---------------- */
.alert {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    padding: .8rem 1rem;
    border-radius: var(--radius-sm);
    font-size: .86rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}
.alert-success { background: var(--success-soft); color: #065f46; border-color: #a7f3d0; }
.alert-danger { background: var(--danger-soft); color: #991b1b; border-color: #fecaca; }
.alert-warning { background: var(--warning-soft); color: #92400e; border-color: #fde68a; }
.alert-info { background: var(--info-soft); color: #075985; border-color: #bae6fd; }
.alert ul { margin: .2rem 0 0; padding-left: 1.1rem; }

/* ---------------- Pagination ---------------- */
.pagination { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; padding: .9rem 1.15rem; border-top: 1px solid var(--border); }
.pagination .page-link {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 .55rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: .82rem;
    font-weight: 600;
}
.pagination .page-link:hover { background: var(--brand-soft); color: var(--brand-dark); border-color: #bfdbfe; }
.pagination .page-link.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .page-link.disabled { opacity: .45; pointer-events: none; }
.pagination .page-info { margin-left: auto; font-size: .8rem; color: var(--text-muted); }

/* ---------------- Avatar ---------------- */
.avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--brand-soft); border: 1px solid var(--border); }
.avatar-lg { width: 68px; height: 68px; }
.avatar-fallback { display: grid; place-items: center; font-weight: 700; color: var(--brand-dark); background: var(--brand-soft); font-size: .82rem; }

/* ---------------- Chart ---------------- */
.chart { display: flex; align-items: flex-end; gap: .75rem; height: 190px; padding: .5rem 0; }
.chart-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .4rem; height: 100%; }
.chart-bar .bar {
    width: 100%;
    max-width: 56px;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, #60a5fa, #2563eb);
    min-height: 4px;
    transition: height .3s ease;
}
.chart-bar .bar-label { font-size: .72rem; color: var(--text-muted); font-weight: 600; }
.chart-bar .bar-value { font-size: .72rem; color: #334155; font-weight: 700; }

/* Legenda grafik: API key (biru) vs log OCR (amber) */
.chart-legend { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .35rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; color: var(--text-muted); font-weight: 600; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart-legend .lg-api_key { background: linear-gradient(180deg, #60a5fa, #2563eb); }
.chart-legend .lg-ocr_log { background: linear-gradient(180deg, #fcd34d, #f59e0b); }


.spark { display: flex; align-items: flex-end; gap: 3px; height: 46px; }
.spark span { flex: 1; background: #bfdbfe; border-radius: 3px 3px 0 0; min-height: 3px; }

/* ---------------- Timeline ---------------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: .75rem; padding: .6rem 0; border-bottom: 1px dashed #eef2f7; }
.timeline li:last-child { border-bottom: 0; }
.timeline .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: .45rem; flex: 0 0 8px; }
.timeline .time { font-size: .75rem; color: var(--text-muted); }

/* ---------------- Empty state ---------------- */
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--text-muted); }
.empty-state .icon { font-size: 2rem; margin-bottom: .5rem; opacity: .55; }

/* ---------------- Dropdown ---------------- */
.dropdown-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 320px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: .5rem;
    z-index: 60;
}
.dropdown-panel h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); padding: .35rem .5rem; margin: 0; }
.dropdown-item { display: block; padding: .5rem .6rem; border-radius: 8px; font-size: .84rem; color: var(--text); }
.dropdown-item:hover { background: #f8fafc; color: var(--text); }
.dropdown-divider { height: 1px; background: var(--border); margin: .4rem 0; }

/* ---------------- Detail list ---------------- */
.detail-list { display: grid; gap: .55rem; }
.detail-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .86rem; padding-bottom: .5rem; border-bottom: 1px dashed #eef2f7; }
.detail-row:last-child { border-bottom: 0; padding-bottom: 0; }
.detail-row .label { color: var(--text-muted); }
.detail-row .value { font-weight: 600; text-align: right; }

/* ---------------- Totals ---------------- */
.totals { margin-left: auto; width: 100%; max-width: 320px; }
.totals .row { display: flex; justify-content: space-between; padding: .38rem 0; font-size: .88rem; }
.totals .row.grand { border-top: 2px solid var(--border); margin-top: .35rem; padding-top: .6rem; font-size: 1rem; font-weight: 750; }

/* ---------------- Auth pages ---------------- */
.auth-wrapper { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-side {
    background: radial-gradient(circle at 20% 20%, #1e3a8a 0%, #0f172a 55%, #020617 100%);
    color: #e2e8f0;
    padding: 3rem 3.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.auth-side::before {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, .35), transparent 65%);
    right: -150px;
    top: -120px;
}
.auth-side > * { position: relative; z-index: 1; }
.auth-side .brand { display: flex; align-items: center; gap: .75rem; }
.auth-side .brand .logo { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #3b82f6, #06b6d4); display: grid; place-items: center; font-weight: 800; color: #fff; }
.auth-side h2 { color: #fff; font-size: 2rem; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 1rem; }
.auth-side p { color: #94a3b8; font-size: .95rem; max-width: 420px; }
.auth-side .points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.auth-side .points li { display: flex; gap: .6rem; font-size: .9rem; color: #cbd5e1; }
.auth-side .points .tick { color: #34d399; font-weight: 800; }
.auth-side .footnote { font-size: .78rem; color: #64748b; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; background: #f8fafc; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 2rem 2rem 1.6rem; }
.auth-card h1 { font-size: 1.45rem; margin-bottom: .3rem; }
.auth-card .sub { color: var(--text-muted); font-size: .88rem; margin-bottom: 1.35rem; }
.auth-alt { text-align: center; font-size: .85rem; color: var(--text-muted); margin-top: 1.1rem; }
.auth-divider { display: flex; align-items: center; gap: .7rem; margin: 1.1rem 0; color: var(--text-muted); font-size: .78rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.btn-google { background: #fff; border: 1px solid var(--border); color: #334155; }
.btn-google:hover { background: #f8fafc; }
.small-note { font-size: .78rem; color: var(--text-muted); }

.status-card { text-align: center; }
.status-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; margin: 0 auto 1rem; }
.status-icon.warning { background: var(--warning-soft); color: var(--warning); }
.status-icon.danger { background: var(--danger-soft); color: var(--danger); }
.status-icon.success { background: var(--success-soft); color: var(--success); }
/* ---------------- Font Awesome ---------------- */
.brand-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    padding: 3px;
    flex: 0 0 auto;
}

.auth-side .brand .brand-logo { width: 42px; height: 42px; border-radius: 12px; }
.landing-nav .brand .brand-logo { width: 34px; height: 34px; border-radius: 9px; }

.nav-link .nav-icon i { font-size: .92rem; }
.nav-link .nav-count { font-variant-numeric: tabular-nums; }
.status-icon i { font-size: 1.5rem; }
.empty-state .icon i { font-size: 2rem; }
.feature .ic i { font-size: 1.05rem; }
.points .tick i { font-size: .85rem; }
.topbar .dropdown-item i { width: 1.15rem; color: var(--text-muted); }
.btn i { font-size: .9em; }
.avatar { object-fit: cover; }

#sidebarToggle { display: none; }

@media (max-width: 900px) {
    #sidebarToggle { display: inline-flex; align-items: center; justify-content: center; }
}


/* ---------------- Landing page ---------------- */
.landing-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.1rem 6vw;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 40;
}
.landing-nav .brand { display: flex; align-items: center; gap: .6rem; font-weight: 750; color: #0f172a; }
.landing-nav .brand .logo { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #3b82f6, #06b6d4); display: grid; place-items: center; color: #fff; font-weight: 800; }
.landing-nav .links { display: flex; gap: 1.35rem; margin-left: 1rem; }
.landing-nav .links a { color: #475569; font-size: .9rem; font-weight: 500; }
.landing-nav .actions { margin-left: auto; display: flex; gap: .6rem; }

.hero { padding: 4.2rem 6vw 3.2rem; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; background: linear-gradient(180deg, #f8fafc, #eef4ff); }
.hero .pill { display: inline-flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid #dbeafe; color: var(--brand-dark); padding: .28rem .7rem; border-radius: 999px; font-size: .76rem; font-weight: 700; margin-bottom: 1rem; }
.hero h1 { font-size: 2.7rem; line-height: 1.12; letter-spacing: -.03em; margin-bottom: 1rem; }
.hero h1 span { background: linear-gradient(120deg, #2563eb, #06b6d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.02rem; color: #475569; max-width: 540px; }
.hero-actions { display: flex; gap: .7rem; margin-top: 1.5rem; flex-wrap: wrap; }
.hero-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 1.35rem; }
.hero-card .row { display: flex; justify-content: space-between; font-size: .84rem; padding: .45rem 0; border-bottom: 1px dashed #eef2f7; }
.hero-card .row:last-child { border-bottom: 0; }

.section { padding: 3.4rem 6vw; }
.section-head { max-width: 640px; margin-bottom: 2rem; }
.section-head h2 { font-size: 1.85rem; letter-spacing: -.02em; }
.section-head p { color: var(--text-muted); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm); }
.feature .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-weight: 800; margin-bottom: .8rem; }
.feature h3 { font-size: 1rem; }
.feature p { color: var(--text-muted); font-size: .87rem; margin: 0; }

.landing-footer { background: #0f172a; color: #94a3b8; padding: 2.4rem 6vw; font-size: .85rem; }
.landing-footer a { color: #cbd5e1; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .auth-wrapper { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; transform: translateX(-100%); transition: transform .22s ease; }
    .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
    .app-shell { display: block; }
    .page { padding: 1.1rem 1rem 2rem; }
    .grid-2, .grid-3, .grid-4, .form-grid.cols-2, .form-grid.cols-3 { grid-template-columns: 1fr; }
    .landing-nav .links { display: none; }
    .hero h1 { font-size: 2rem; }
}

@media (max-width: 560px) {
    .topbar { padding: 0 1rem; }
    .page-header { flex-direction: column; }
    .stat-value { font-size: 1.35rem; }
}





