/* ==========================================================================
   Finora — design system
   A refined fintech aesthetic: paper-light & ink-dark, emerald accent,
   tabular figures, soft layered depth. No external fonts or libraries.
   ========================================================================== */

:root {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-num: "SF Mono", "Segoe UI", ui-monospace, var(--font-sans);

    --r-sm: 9px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 26px;

    --t-fast: 140ms cubic-bezier(.4, 0, .2, 1);
    --t-med: 260ms cubic-bezier(.4, 0, .2, 1);
}

/* ---- Light (default) ---- */
:root,
[data-theme="light"] {
    --bg: #eef1f6;
    --bg-grad-1: #eaf2ef;
    --bg-grad-2: #eef1f6;
    --surface: #ffffff;
    --surface-2: #f4f6fa;
    --surface-3: #eceff5;
    --text: #0e1726;
    --text-muted: #5b6b82;
    --text-faint: #93a0b4;
    --border: #e3e7ef;
    --border-strong: #d3d9e4;

    --accent: #0d9f6e;
    --accent-strong: #0a7d57;
    --accent-soft: #e3f6ee;
    --accent-contrast: #ffffff;

    --pos: #0d9f6e;
    --neg: #e5484d;
    --warn: #d9870a;
    --info: #2f6fed;

    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .04);
    --shadow-md: 0 4px 14px rgba(16, 24, 40, .07), 0 2px 6px rgba(16, 24, 40, .04);
    --shadow-lg: 0 18px 48px rgba(16, 24, 40, .14), 0 6px 16px rgba(16, 24, 40, .06);
    --ring: 0 0 0 3px rgba(13, 159, 110, .18);
}

/* ---- Dark (ink/slate) ---- */
[data-theme="dark"] {
    --bg: #070c16;
    --bg-grad-1: #0a1422;
    --bg-grad-2: #070c16;
    --surface: #0f1828;
    --surface-2: #131f33;
    --surface-3: #18263d;
    --text: #e8eef7;
    --text-muted: #8fa0b8;
    --text-faint: #5e6f88;
    --border: #1d2c44;
    --border-strong: #27395a;

    --accent: #2dd4a0;
    --accent-strong: #36e0ac;
    --accent-soft: #0e2a22;
    --accent-contrast: #04140d;

    --pos: #2dd4a0;
    --neg: #ff6b6b;
    --warn: #f5b13d;
    --info: #5b9bff;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
    --ring: 0 0 0 3px rgba(45, 212, 160, .22);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background:
        radial-gradient(1200px 700px at 78% -10%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%),
        linear-gradient(160deg, var(--bg-grad-1), var(--bg-grad-2));
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: -0.006em;
}

h1, h2, h3, h4 { margin: 0; font-weight: 680; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ==========================================================================
   App shell
   ========================================================================== */
.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }

.sidebar {
    position: sticky; top: 0; height: 100vh;
    display: flex; flex-direction: column;
    padding: 22px 16px;
    background: color-mix(in srgb, var(--surface) 70%, transparent);
    backdrop-filter: blur(14px);
    border-right: 1px solid var(--border);
    z-index: 40;
}

.brand { display: flex; align-items: center; gap: 11px; padding: 6px 10px 22px; }
.brand-mark svg { width: 34px; height: 34px; display: block; }
.brand-mark rect { fill: var(--accent); }
.brand-mark path { stroke: var(--accent-contrast); }
.brand-name { font-size: 21px; font-weight: 760; letter-spacing: -0.03em; }

.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: var(--r-md);
    color: var(--text-muted); font-weight: 560; font-size: 14.5px;
    position: relative; transition: background var(--t-fast), color var(--t-fast);
}
.nav-item .nav-ic { width: 20px; height: 20px; opacity: .85; flex: none; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent-strong); }
.nav-item.active::before {
    content: ""; position: absolute; left: -16px; top: 50%; transform: translateY(-50%);
    width: 3px; height: 22px; border-radius: 0 3px 3px 0; background: var(--accent);
}

.sidebar-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding-top: 16px; }
.user-chip { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 8px; border-radius: var(--r-md); }
.avatar {
    width: 34px; height: 34px; border-radius: 10px; flex: none;
    display: grid; place-items: center; font-weight: 700; font-size: 15px;
    color: var(--accent-contrast); background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}
.user-meta { display: flex; flex-direction: column; min-width: 0; }
.user-name { font-weight: 620; font-size: 14px; }
.user-sub { font-size: 12px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logout { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-md); color: var(--text-muted); }
.logout:hover { background: var(--surface-2); color: var(--neg); }
.logout svg { width: 19px; height: 19px; }

.main { display: flex; flex-direction: column; min-width: 0; }

.topbar {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: 14px;
    padding: 16px 30px;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.topbar-title h1 { font-size: 21px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.content { padding: 28px 30px 60px; max-width: 1280px; width: 100%; }

.menu-toggle { display: none; }

.icon-btn {
    display: grid; place-items: center; width: 40px; height: 40px;
    border: 1px solid var(--border); border-radius: var(--r-md);
    background: var(--surface); color: var(--text-muted); cursor: pointer;
    transition: all var(--t-fast);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .ic-moon { display: none; }
[data-theme="dark"] .theme-toggle .ic-sun { display: none; }
[data-theme="dark"] .theme-toggle .ic-moon { display: block; }

.scrim { display: none; }

/* ==========================================================================
   Buttons, inputs, badges
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 16px; border-radius: var(--r-md); border: 1px solid transparent;
    font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all var(--t-fast); white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: var(--accent-contrast); box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 75%, transparent); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-subtle { background: var(--surface-2); color: var(--text-muted); }
.btn-subtle:hover { color: var(--text); }
.btn-danger { background: transparent; color: var(--neg); border-color: color-mix(in srgb, var(--neg) 40%, transparent); }
.btn-danger:hover { background: color-mix(in srgb, var(--neg) 12%, transparent); }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.input, .select, textarea.input {
    width: 100%; padding: 11px 13px; font-family: inherit; font-size: 14.5px;
    color: var(--text); background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--r-md);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    appearance: none;
}
.input::placeholder { color: var(--text-faint); }
.input:focus, .select:focus, textarea.input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2393a0b4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px;
}
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--text-faint); pointer-events: none; }
.input-icon .input { padding-left: 40px; }

.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 620;
    background: var(--surface-2); color: var(--text-muted);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-success { background: color-mix(in srgb, var(--pos) 14%, transparent); color: var(--pos); }
.badge-danger { background: color-mix(in srgb, var(--neg) 14%, transparent); color: var(--neg); }
.badge-warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.badge-info { background: color-mix(in srgb, var(--info) 14%, transparent); color: var(--info); }
.cat-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }

/* segmented control */
.segmented { display: inline-flex; padding: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); gap: 2px; }
.segmented a, .segmented button {
    border: 0; background: transparent; color: var(--text-muted); cursor: pointer;
    font: inherit; font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: 10px;
    transition: all var(--t-fast);
}
.segmented a.active, .segmented button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ==========================================================================
   Cards & layout grids
   ========================================================================== */
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
    padding: 20px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h2, .card-head h3 { font-size: 16px; }
.card-sub { font-size: 13px; color: var(--text-faint); font-weight: 500; }

.grid { display: grid; gap: 18px; }
.kpis { grid-template-columns: repeat(4, 1fr); }
.cols-2 { grid-template-columns: 1.4fr 1fr; }
.cols-2e { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.mt { margin-top: 18px; }

/* KPI */
.kpi { position: relative; overflow: hidden; }
.kpi .kpi-top { display: flex; align-items: center; gap: 9px; color: var(--text-muted); font-size: 13px; font-weight: 600; }
.kpi .kpi-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.kpi .kpi-ic svg { width: 16px; height: 16px; }
.kpi .kpi-val { font-size: 27px; font-weight: 720; margin-top: 12px; letter-spacing: -0.03em; }
.kpi .kpi-foot { margin-top: 6px; font-size: 12.5px; color: var(--text-faint); display: flex; align-items: center; gap: 6px; }
.delta { font-weight: 640; }
.delta.up { color: var(--pos); }
.delta.down { color: var(--neg); }

/* ==========================================================================
   Charts
   ========================================================================== */
.chart-wrap { position: relative; width: 100%; }
canvas { display: block; width: 100%; }
.legend { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.legend-row { display: flex; align-items: center; gap: 9px; font-size: 13.5px; }
.legend-row .cat-dot { width: 10px; height: 10px; border-radius: 3px; }
.legend-row .lg-name { color: var(--text-muted); }
.legend-row .lg-val { margin-left: auto; font-weight: 640; font-variant-numeric: tabular-nums; }
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.donut-center .dc-label { font-size: 12px; color: var(--text-faint); font-weight: 600; }
.donut-center .dc-val { font-size: 22px; font-weight: 720; letter-spacing: -0.03em; }
.empty-chart { display: grid; place-items: center; min-height: 180px; color: var(--text-faint); font-size: 14px; text-align: center; }

/* ==========================================================================
   Tables
   ========================================================================== */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th {
    text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em;
    color: var(--text-faint); font-weight: 660; padding: 0 14px 11px; white-space: nowrap;
}
table.tbl td { padding: 13px 14px; border-top: 1px solid var(--border); vertical-align: middle; }
table.tbl tbody tr { transition: background var(--t-fast); }
table.tbl tbody tr:hover { background: var(--surface-2); }
.tx-desc { display: flex; align-items: center; gap: 11px; }
.tx-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; font-weight: 700; font-size: 14px; color: #fff; }
.tx-name { font-weight: 580; }
.tx-meta { font-size: 12px; color: var(--text-faint); }
.amt { font-variant-numeric: tabular-nums; font-weight: 640; text-align: right; white-space: nowrap; }
.amt.pos { color: var(--pos); }
.amt.neg { color: var(--text); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; opacity: 0; transition: opacity var(--t-fast); }
tr:hover .row-actions { opacity: 1; }
.mini-btn { border: 0; background: transparent; color: var(--text-faint); cursor: pointer; padding: 5px; border-radius: 8px; }
.mini-btn:hover { background: var(--surface-3); color: var(--text); }
.mini-btn.danger:hover { color: var(--neg); }
.mini-btn svg { width: 16px; height: 16px; display: block; }

/* progress / budgets */
.bud-row { padding: 15px 0; border-top: 1px solid var(--border); }
.bud-row:first-child { border-top: 0; }
.bud-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.bud-name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.bud-fig { margin-left: auto; font-size: 13.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.bud-fig b { color: var(--text); }
.progress { height: 9px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; transition: width var(--t-med); }
.progress.over > span { background: var(--neg) !important; }
.bud-foot { font-size: 12.5px; margin-top: 7px; color: var(--text-faint); }
.bud-foot .over { color: var(--neg); font-weight: 600; }
.bud-foot .left { color: var(--pos); font-weight: 600; }

/* bills list */
.bill { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.bill:first-child { border-top: 0; }
.bill .b-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; }
.bill .b-main { min-width: 0; }
.bill .b-name { font-weight: 620; }
.bill .b-sub { font-size: 12.5px; color: var(--text-faint); }
.bill .b-right { margin-left: auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.bill .b-amt { font-weight: 680; font-variant-numeric: tabular-nums; }

/* list helpers */
.recent-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); }
.recent-item:first-child { border-top: 0; }
.spacer { flex: 1; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.right { text-align: right; }
.center { text-align: center; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: 8px; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }

.empty-state { text-align: center; padding: 46px 20px; color: var(--text-faint); }
.empty-state svg { width: 46px; height: 46px; opacity: .4; margin-bottom: 12px; }
.empty-state h3 { color: var(--text-muted); margin-bottom: 6px; }

/* ==========================================================================
   Modal
   ========================================================================== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 90; display: none;
    background: color-mix(in srgb, #060912 64%, transparent); backdrop-filter: blur(4px);
    align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; animation: fade var(--t-fast); }
.modal {
    width: 100%; max-width: 460px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg); padding: 24px;
    animation: pop var(--t-med);
}
.modal h2 { font-size: 18px; margin-bottom: 4px; }
.modal .modal-sub { color: var(--text-faint); font-size: 13.5px; margin-bottom: 20px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.modal-close { position: absolute; }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
    position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
    background: var(--text); color: var(--bg); font-weight: 580; font-size: 14px;
    padding: 12px 18px; border-radius: var(--r-md); box-shadow: var(--shadow-lg);
    opacity: 0; pointer-events: none; transition: all var(--t-med); z-index: 120; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--neg); color: #fff; }

/* ==========================================================================
   Auth pages
   ========================================================================== */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-aside {
    position: relative; overflow: hidden; padding: 52px;
    display: flex; flex-direction: column; justify-content: space-between;
    color: #eafff6;
    background:
        radial-gradient(900px 500px at 20% 10%, rgba(54, 224, 172, .35), transparent 55%),
        radial-gradient(700px 600px at 90% 90%, rgba(20, 120, 90, .5), transparent 60%),
        linear-gradient(150deg, #0a3a2c, #061f18);
}
.auth-aside .brand-name { color: #fff; }
.auth-aside .brand-mark rect { fill: #fff; }
.auth-aside .brand-mark path { stroke: #0a7d57; }
.auth-tag { font-size: 32px; font-weight: 720; line-height: 1.15; letter-spacing: -0.03em; max-width: 14ch; }
.auth-points { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.auth-point { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: #c7f5e6; }
.auth-point .ck { width: 24px; height: 24px; border-radius: 8px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; flex: none; }
.auth-point .ck svg { width: 14px; height: 14px; stroke: #6ff0c2; }
.auth-deco { position: absolute; inset: 0; opacity: .12; background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 26px 26px; }
.auth-card-area { display: grid; place-items: center; padding: 40px 28px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { font-size: 25px; margin-bottom: 6px; }
.auth-card .lead { color: var(--text-muted); margin-bottom: 26px; }
.auth-foot { margin-top: 22px; text-align: center; font-size: 14px; color: var(--text-muted); }
.auth-foot a { color: var(--accent-strong); font-weight: 620; }
.alert { padding: 11px 14px; border-radius: var(--r-md); font-size: 13.5px; margin-bottom: 18px; font-weight: 540; }
.alert-err { background: color-mix(in srgb, var(--neg) 13%, transparent); color: var(--neg); }
.alert-ok { background: color-mix(in srgb, var(--pos) 13%, transparent); color: var(--accent-strong); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-faint); font-size: 12.5px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--border); flex: 1; }
.btn-google { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.btn-google:hover { box-shadow: var(--shadow-sm); }
.checkbox { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-muted); margin-bottom: 18px; cursor: pointer; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--accent); }
.field-row { display: flex; align-items: center; justify-content: space-between; }
.pw-meter { height: 5px; border-radius: 999px; background: var(--surface-3); margin-top: 8px; overflow: hidden; }
.pw-meter > span { display: block; height: 100%; width: 0; border-radius: 999px; transition: all var(--t-fast); background: var(--neg); }

/* ==========================================================================
   Animations & motion
   ========================================================================== */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes riseup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; animation: riseup .5s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 60ms); }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; } * { transition: none !important; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
    .kpis { grid-template-columns: repeat(2, 1fr); }
    .cols-2, .cols-2e, .cols-3 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .app { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed; top: 0; left: 0; width: 270px; transform: translateX(-100%);
        transition: transform var(--t-med); background: var(--surface);
    }
    .app.nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
    .app.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(4, 9, 18, .45); }
    .menu-toggle { display: grid; }
    .topbar { padding: 14px 18px; }
    .content { padding: 20px 18px 70px; }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
}
@media (max-width: 520px) {
    .kpis { grid-template-columns: 1fr; }
    .topbar-title h1 { font-size: 18px; }
    .hide-sm { display: none !important; }
}
