:root {
    color-scheme: dark;
    --bg: #070a14;
    --bg-2: #0a0f1e;
    --surface: rgba(20, 27, 45, .55);
    --surface-2: rgba(28, 37, 60, .6);
    --surface-solid: #121829;
    --line: rgba(148, 163, 184, .12);
    --line-strong: rgba(148, 163, 184, .22);
    --muted: #8a98b5;
    --muted-2: #66738e;
    --text: #eef2fb;
    --primary: #3aa6ff;
    --primary-2: #7b6cff;
    --accent: #2dd4bf;
    --green: #34d399;
    --yellow: #fbbf24;
    --red: #fb7185;
    --radius: 20px;
    --radius-sm: 13px;
    --shadow: 0 30px 80px rgba(0, 0, 0, .45);
    --shadow-soft: 0 16px 40px rgba(2, 6, 16, .35);
    --ring: 0 0 0 4px rgba(58, 166, 255, .14);
    --font: "Vazirmatn", "Segoe UI", Tahoma, Arial, sans-serif;
    font-family: var(--font);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    background:
        radial-gradient(900px circle at 88% -5%, rgba(58, 166, 255, .16), transparent 55%),
        radial-gradient(820px circle at 6% 102%, rgba(123, 108, 255, .15), transparent 52%),
        radial-gradient(700px circle at 50% 50%, rgba(45, 212, 191, .04), transparent 60%),
        var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--primary); text-decoration: none; }
::selection { background: rgba(58, 166, 255, .28); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .18); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, .3); background-clip: padding-box; }

h1, h2, h3 { font-weight: 800; letter-spacing: -.01em; }

/* ---------- Boot ---------- */
.boot-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 24px; }
.brand-mark {
    width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center;
    font-weight: 900; font-size: 26px; letter-spacing: -3px; position: relative;
    background: linear-gradient(140deg, var(--primary), var(--primary-2));
    box-shadow: 0 18px 45px rgba(58, 166, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.brand-mark span { opacity: .65; }
.boot-screen p { color: var(--muted); margin: 0; }
.boot-line { width: 180px; height: 4px; border-radius: 99px; background: rgba(148, 163, 184, .14); overflow: hidden; }
.boot-line i { display: block; width: 42%; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--primary-2)); animation: loading 1.15s ease-in-out infinite; }
@keyframes loading { 0% { transform: translateX(150%); } 100% { transform: translateX(-260%); } }

/* ---------- Auth ---------- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(330px, 470px) 1fr; padding: 26px; gap: 26px; }
.auth-card {
    background: linear-gradient(180deg, rgba(18, 24, 41, .9), rgba(11, 16, 29, .92));
    border: 1px solid var(--line-strong); border-radius: 26px;
    padding: clamp(30px, 5vw, 54px); display: flex; flex-direction: column; justify-content: center;
    box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.auth-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--primary-2), var(--accent)); }
.auth-visual {
    position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 26px;
    background: linear-gradient(160deg, rgba(58, 166, 255, .08), rgba(123, 108, 255, .05));
    border: 1px solid var(--line);
}
.auth-visual::before { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; border: 1px solid rgba(58, 166, 255, .2); box-shadow: 0 0 120px rgba(58, 166, 255, .12), inset 0 0 120px rgba(123, 108, 255, .08); animation: spin 26s linear infinite; }
.auth-visual::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; border: 1px dashed rgba(123, 108, 255, .22); animation: spin 18s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.visual-copy { max-width: 480px; text-align: center; position: relative; padding: 30px; }
.visual-copy .brand-mark { margin: 0 auto; }
.visual-copy h2 { font-size: clamp(28px, 3.6vw, 50px); line-height: 1.3; margin: 26px 0 16px; }
.visual-copy p { color: var(--muted); line-height: 2.05; font-size: 16px; }
.eyebrow { color: var(--primary); letter-spacing: .14em; font-weight: 800; font-size: 11px; text-transform: uppercase; }
.auth-card h1 { font-size: 29px; margin: 26px 0 8px; }
.auth-card > p { color: var(--muted); line-height: 1.95; margin: 0 0 28px; }
.cookie-detected { color: var(--green); background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .26); padding: 12px 15px; border-radius: 13px; margin-bottom: 18px; font-size: 13px; }

/* ---------- Fields ---------- */
.field { display: grid; gap: 8px; margin-bottom: 17px; }
.field > span, .field > label { color: #c4cee0; font-size: 12px; font-weight: 700; }
input, textarea, select {
    width: 100%; border: 1px solid var(--line-strong); background: rgba(7, 11, 22, .7); color: var(--text);
    padding: 12px 15px; border-radius: var(--radius-sm); outline: none; transition: border-color .18s, box-shadow .18s, background .18s;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:hover, textarea:hover, select:hover { border-color: rgba(148, 163, 184, .34); }
input:focus, textarea:focus, select:focus { border-color: rgba(58, 166, 255, .7); box-shadow: var(--ring); background: rgba(7, 11, 22, .92); }
input:disabled, textarea:disabled, select:disabled { opacity: .55; cursor: not-allowed; }
textarea { resize: vertical; min-height: 92px; line-height: 1.85; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8593ad 50%), linear-gradient(135deg, #8593ad 50%, transparent 50%); background-position: 15px 53%, 9px 53%; background-size: 6px 6px; background-repeat: no-repeat; padding-left: 34px; }
.hint { color: var(--muted); font-size: 11px; line-height: 1.75; }
.char-counter { color: var(--muted); font-size: 11px; text-align: left; }

/* ---------- Buttons ---------- */
.btn {
    border: 1px solid var(--line-strong); color: var(--text); background: rgba(30, 41, 66, .7); padding: 10px 17px; border-radius: 12px;
    display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: 43px; font-weight: 600;
    transition: transform .16s ease, border-color .16s, background .16s, box-shadow .16s;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(148, 163, 184, .42); background: rgba(40, 53, 82, .82); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: wait; transform: none; }
.btn-primary { border-color: transparent; background: linear-gradient(135deg, var(--primary), var(--primary-2)); font-weight: 800; box-shadow: 0 12px 30px rgba(58, 166, 255, .26); }
.btn-primary:hover { box-shadow: 0 16px 38px rgba(58, 166, 255, .36); background: linear-gradient(135deg, #4cb0ff, #8a7bff); }
.btn-danger { color: #ffd4dc; border-color: rgba(251, 113, 133, .3); background: rgba(251, 113, 133, .12); }
.btn-danger:hover { background: rgba(251, 113, 133, .2); border-color: rgba(251, 113, 133, .45); }
.btn-success { color: #c8ffe9; border-color: rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .12); }
.btn-success:hover { background: rgba(52, 211, 153, .2); border-color: rgba(52, 211, 153, .45); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgba(148, 163, 184, .1); border-color: var(--line); }
.btn-sm { min-height: 35px; padding: 7px 13px; font-size: 12px; border-radius: 10px; }
.btn-block { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Layout ---------- */
.app-layout { min-height: 100vh; display: grid; grid-template-columns: 256px 1fr; }
.sidebar {
    border-left: 1px solid var(--line); background: linear-gradient(180deg, rgba(10, 15, 28, .92), rgba(8, 12, 22, .82));
    backdrop-filter: blur(22px); padding: 24px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; z-index: 12;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 22px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.brand .brand-mark { width: 44px; height: 44px; border-radius: 14px; font-size: 18px; }
.brand strong { display: block; font-size: 14px; }
.brand small { color: var(--muted); font-size: 10.5px; }
.nav { display: grid; gap: 4px; }
.nav-label { color: var(--muted-2); font-size: 10px; padding: 18px 12px 6px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nav-btn {
    border: 0; background: transparent; color: #9aa8c0; border-radius: 12px; padding: 11px 13px;
    display: flex; align-items: center; gap: 12px; text-align: right; width: 100%; font-weight: 600; transition: color .16s, background .16s;
}
.nav-btn:hover { color: #fff; background: rgba(148, 163, 184, .08); }
.nav-btn.active { color: #fff; background: linear-gradient(90deg, rgba(58, 166, 255, .2), rgba(123, 108, 255, .06)); box-shadow: inset -3px 0 var(--primary); }
.nav-icon { width: 22px; text-align: center; font-size: 16px; opacity: .9; }
.sidebar-footer { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.user-chip { display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: 13px; }
.avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(140deg, var(--primary), var(--primary-2)); font-weight: 800; color: #fff; box-shadow: 0 6px 16px rgba(58, 166, 255, .25); }
.user-chip strong { display: block; font-size: 12.5px; }
.user-chip small { color: var(--muted); font-size: 10.5px; }

.main { min-width: 0; }
.topbar {
    height: 78px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between;
    padding: 0 clamp(18px, 4vw, 42px); background: rgba(7, 11, 20, .55); backdrop-filter: blur(20px); position: sticky; top: 0; z-index: 10;
}
.topbar h1 { margin: 0; font-size: 19px; }
.topbar-sub { color: var(--muted); font-size: 11px; margin-top: 4px; }
.mobile-menu { display: none; }
.content { padding: clamp(20px, 4vw, 40px); max-width: 1560px; margin: auto; animation: fadeUp .4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.page-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; margin-bottom: 26px; }
.page-head h2 { font-size: clamp(23px, 3vw, 34px); margin: 6px 0 8px; }
.page-head p { margin: 0; color: var(--muted); line-height: 1.85; max-width: 640px; }

/* ---------- Metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.metric-card, .panel {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); backdrop-filter: blur(14px);
}
.metric-card { padding: 20px; position: relative; overflow: hidden; transition: transform .2s, border-color .2s; }
.metric-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.metric-card::after { content: ""; position: absolute; width: 130px; height: 130px; left: -35px; top: -45px; border-radius: 50%; background: var(--metric-glow, rgba(58, 166, 255, .1)); filter: blur(12px); }
.metric-label { color: var(--muted); font-size: 11.5px; margin-bottom: 14px; font-weight: 600; position: relative; }
.metric-value { font-size: 27px; font-weight: 900; letter-spacing: -.02em; position: relative; }
.metric-note { color: var(--muted-2); margin-top: 9px; font-size: 10.5px; position: relative; }

.panel { overflow: hidden; }
.panel-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h3 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 9px; }
.panel-body { padding: 22px; }

/* ---------- Tables / toolbar ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search { position: relative; min-width: 230px; flex: 1; max-width: 400px; }
.search input { padding-right: 40px; }
.search::before { content: "⌕"; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); z-index: 1; color: var(--muted); font-size: 19px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th { text-align: right; color: var(--muted); font-size: 10.5px; padding: 14px 20px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: rgba(7, 11, 22, .4); }
td { padding: 15px 20px; border-top: 1px solid var(--line); vertical-align: middle; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(58, 166, 255, .04); }
td.num { direction: ltr; text-align: right; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.num-empty { color: var(--muted-2); font-weight: 400; }
.ad-title { display: flex; gap: 13px; align-items: center; }
.ad-thumb { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; background: linear-gradient(140deg, rgba(58, 166, 255, .2), rgba(123, 108, 255, .22)); color: #a9d7ff; font-size: 17px; }
.ad-title strong { display: block; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-title small { color: var(--muted); font-size: 11px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; font-size: 10.5px; font-weight: 700; background: rgba(148, 163, 184, .12); color: #b7c1d1; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.status-active { color: var(--green); background: rgba(52, 211, 153, .12); }
.status-rejected { color: var(--red); background: rgba(251, 113, 133, .12); }
.status-in_review { color: var(--yellow); background: rgba(251, 191, 36, .12); }
.status-paused, .status-draft, .status-completed { color: #9aa8c0; }
.empty { padding: 54px 22px; text-align: center; color: var(--muted); }
.empty b { color: var(--text); display: block; font-size: 16px; margin: 14px 0 8px; }
.empty span { display: block; max-width: 420px; margin: 0 auto; line-height: 1.8; font-size: 12.5px; }
.empty-icon { font-size: 40px; opacity: .65; }

/* ---------- Alerts ---------- */
.alert { border: 1px solid var(--line); background: rgba(148, 163, 184, .06); border-radius: 14px; padding: 14px 17px; line-height: 1.85; margin-bottom: 18px; }
.alert-danger { border-color: rgba(251, 113, 133, .28); background: rgba(251, 113, 133, .08); color: #ffd2da; }
.alert-warning { border-color: rgba(251, 191, 36, .26); background: rgba(251, 191, 36, .07); color: #ffe6a0; }
.alert-success { border-color: rgba(52, 211, 153, .28); background: rgba(52, 211, 153, .08); color: #c8ffe9; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-section { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 14px; }
.form-section:first-child { border-top: 0; padding-top: 0; }
.form-section h3 { font-size: 14px; margin: 0 0 6px; }
.form-section > p { color: var(--muted); margin: 0 0 18px; line-height: 1.8; font-size: 11.5px; }
.check-row { display: flex; gap: 14px 18px; align-items: center; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 9px; color: #bcc7d9; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }
.segmented { display: flex; gap: 4px; background: rgba(7, 11, 22, .6); border: 1px solid var(--line); padding: 4px; border-radius: 13px; }
.segmented button { border: 0; background: transparent; color: var(--muted); border-radius: 10px; padding: 8px 15px; font-weight: 600; transition: background .16s, color .16s; }
.segmented button.active { background: linear-gradient(135deg, rgba(58, 166, 255, .9), rgba(123, 108, 255, .85)); color: #fff; box-shadow: 0 6px 16px rgba(58, 166, 255, .25); }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(2, 5, 12, .68); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 20px; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { width: min(900px, 100%); max-height: calc(100vh - 40px); background: linear-gradient(180deg, rgba(16, 22, 38, .98), rgba(11, 16, 29, .98)); border: 1px solid var(--line-strong); border-radius: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; animation: popIn .26s cubic-bezier(.2, .9, .3, 1.1); overflow: hidden; }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-lg { width: min(1080px, 100%); }
.modal-head { padding: 19px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.modal-head h3 { margin: 0 0 4px; }
.modal-head small { color: var(--muted); }
.modal-close { border: 0; color: var(--muted); background: rgba(148, 163, 184, .1); border-radius: 11px; width: 38px; height: 38px; font-size: 18px; transition: background .16s, color .16s; }
.modal-close:hover { background: rgba(251, 113, 133, .18); color: #ffd2da; }
.modal-body { padding: 24px; overflow: auto; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; background: rgba(7, 11, 22, .4); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: -6px 0 22px; overflow-x: auto; }
.tab { border: 0; background: transparent; color: var(--muted); padding: 12px 15px; border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 600; transition: color .16s; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeUp .25s ease; }
.stats-table { margin-top: 15px; }
.stats-table td { font-size: 11.5px; padding: 9px 13px; }

/* ---------- Users ---------- */
.user-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.user-card { padding: 20px; transition: transform .2s, border-color .2s; }
.user-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.user-card-head { display: flex; justify-content: space-between; gap: 10px; }
.user-card h3 { margin: 0 0 5px; font-size: 15px; }
.user-card p { color: var(--muted); font-size: 11.5px; margin: 0; }
.user-meta { display: flex; gap: 8px; margin: 18px 0; flex-wrap: wrap; }
.tag { color: #a8b5c9; border: 1px solid var(--line-strong); background: rgba(148, 163, 184, .06); border-radius: 9px; padding: 5px 9px; font-size: 10px; font-weight: 600; }
.tag-key { color: #a9d7ff; border-color: rgba(58, 166, 255, .3); background: rgba(58, 166, 255, .1); }
.tag-cap { color: #c8ffe9; border-color: rgba(45, 212, 191, .3); background: rgba(45, 212, 191, .1); }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.code-box { direction: ltr; text-align: left; font-family: "Vazirmatn", Consolas, monospace; font-size: 12px; }
.audit-list { display: grid; gap: 0; }
.audit-row { display: grid; grid-template-columns: 150px 110px 1fr; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 11.5px; align-items: center; }
.audit-row:first-child { border: 0; }
.audit-row time, .audit-row span { color: var(--muted); }
.audit-row b { color: var(--text); font-weight: 700; }

/* ---------- Skeleton & toast ---------- */
.skeleton { position: relative; overflow: hidden; background: rgba(148, 163, 184, .08); border-radius: 10px; min-height: 18px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); animation: shimmer 1.35s infinite; }
@keyframes shimmer { to { transform: translateX(-100%); } }
.toast-root { position: fixed; left: 22px; bottom: 22px; z-index: 70; display: grid; gap: 10px; width: min(370px, calc(100vw - 44px)); }
.toast { background: linear-gradient(180deg, rgba(22, 30, 50, .98), rgba(16, 22, 38, .98)); border: 1px solid var(--line-strong); box-shadow: var(--shadow); border-radius: 14px; padding: 14px 16px; line-height: 1.6; animation: toastIn .28s ease; border-right: 3px solid var(--primary); }
.toast.error { border-right-color: var(--red); color: #ffd3db; }
.toast.success { border-right-color: var(--green); color: #caffeb; }
@keyframes toastIn { from { opacity: 0; transform: translateX(-12px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .metrics { grid-template-columns: repeat(2, 1fr); }
    .user-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
    .auth-page { grid-template-columns: minmax(300px, 540px); justify-content: center; }
    .auth-visual { display: none; }
}
@media (max-width: 760px) {
    .app-layout { display: block; }
    .sidebar { position: fixed; right: 0; transform: translateX(105%); transition: transform .26s; width: 270px; box-shadow: var(--shadow); }
    .sidebar.open { transform: translateX(0); }
    .mobile-menu { display: inline-flex; }
    .topbar { height: 66px; }
    .content { padding: 18px 14px 32px; }
    .page-head { align-items: flex-start; flex-direction: column; }
    .form-grid, .settings-grid { grid-template-columns: 1fr; }
    .form-grid .full { grid-column: auto; }
    .user-grid { grid-template-columns: 1fr; }
    .modal-backdrop { padding: 0; place-items: end center; }
    .modal { max-height: 94vh; border-radius: 24px 24px 0 0; }
    .modal-foot { flex-direction: column; }
    .modal-foot .button-row { width: 100%; }
    .audit-row { grid-template-columns: 1fr 1fr; }
    .audit-row b { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .auth-page { padding: 0; display: block; }
    .auth-card { min-height: 100vh; border: 0; border-radius: 0; padding: 28px 20px; }
    .metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
    .metric-card { padding: 16px; }
    .metric-value { font-size: 21px; }
    .panel-head { align-items: flex-start; flex-direction: column; }
    .toolbar, .search { width: 100%; max-width: none; }
}
