/* FeeDesk — design system from the Vanquish "Metrics" design (dark, Inter, lavender accent). */
:root {
  color-scheme: dark;
  --dark-900: #101011;
  --dark-800: #191A1B;
  --dark-700: #212223;
  --dark-600: #343437;
  --dark-500: #4F5055;
  --dark-400: #97979D;
  --dark-300: #C4C4CC;
  --dark-200: #EBEEF0;
  --dark-100: #FFFFFF;
  --accent-400: #9796F0;
  --accent-300: #C5C5F9;
  --accent-200: #FFDBE4;
  --accent-100: #FBC7D4;
  --red-300: #FF5147;
  --pos: #9CF170;
  --neg: #F2715E;
  --card: radial-gradient(63.94% 63.94% at 50% 0%, rgba(255,255,255,.04) 0%, rgba(255,255,255,0) 100%), rgba(255,255,255,.04);
  --control: rgba(255,255,255,.05);
  --control-shadow: inset -1px 0 1px rgba(255,255,255,.04), inset 0 0 6px rgba(255,255,255,.03);
  --radius: 10px;
  --gutter: 24px;
  --page: 1224px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--dark-900);
  color: var(--dark-100);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
a.link { color: var(--accent-300); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(197,197,249,.4); }
a.link:hover { text-decoration-color: var(--accent-300); }
h1, h2, h3 { margin: 0; font-weight: 400; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--dark-400); font-weight: 300; }
.dim { color: var(--dark-500); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.lav { color: var(--accent-300); }
.small { font-size: 12px; line-height: 18px; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { width: 100%; max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Top navigation ---------- */
.topnav { height: 80px; border-bottom: 1px solid var(--dark-700); position: sticky; top: 0; z-index: 20;
  background: rgba(16,16,17,.86); backdrop-filter: blur(10px); }
.topnav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-left { display: flex; align-items: center; gap: 32px; min-width: 0; }
.logo { display: flex; align-items: center; color: var(--dark-100); flex: none; }
.brand-mark { width: 32px; height: 32px; display: block; }
.brand-logo { height: 30px; width: auto; display: block; color: var(--dark-100); }
.nav-links { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.nav-links a { position: relative; font-size: 16px; line-height: 24px; color: var(--dark-400); padding: 28px 0; white-space: nowrap; }
.nav-links a:hover { color: var(--dark-200); }
.nav-links a.active { color: var(--dark-100); }
.nav-links a.active::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 12px; height: 2px; border-radius: 0 0 2px 2px; background: var(--accent-400);
  box-shadow: 0 4px 40px 4px var(--accent-400), 0 4px 16px var(--accent-400); }
.nav-right { display: flex; align-items: center; gap: 24px; flex: none; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dark-400); }
.live-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--dark-500); }
.live-dot.on i { background: var(--pos); box-shadow: 0 0 0 4px rgba(156,241,112,.12); }
.user-menu { position: relative; }
.user-menu > button { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--dark-400);
  font: 300 16px/24px inherit; cursor: pointer; padding: 0; font-family: inherit; }
.avatar { width: 32px; height: 32px; border-radius: 32px; flex: none;
  background: conic-gradient(from 200deg, #9796F0, #FBC7D4, #6fd3ff, #9796F0); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.caret { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid var(--dark-400); }
.menu { position: absolute; right: 0; top: 44px; min-width: 200px; background: var(--dark-800); border: 1px solid var(--dark-600);
  border-radius: var(--radius); padding: 6px; display: none; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.menu.open { display: block; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 6px; color: var(--dark-200);
  background: none; border: 0; font: inherit; cursor: pointer; }
.menu a:hover, .menu button:hover { background: rgba(255,255,255,.05); }
.menu .muted { padding: 8px 12px 4px; display: block; }

/* ---------- Page ---------- */
main { flex: 1; padding: 48px 0 24px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }
.page-head h1 { font-size: 30px; line-height: 38px; }
.page-head .sub { margin-top: 8px; color: var(--dark-400); font-weight: 300; }
.head-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.updated { color: var(--dark-500); font-size: 14px; }
.toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.toolbar label.inline { display: flex; align-items: center; gap: 16px; color: var(--dark-100); }
.crumbs { color: var(--dark-400); font-weight: 300; margin-bottom: 10px; display: flex; gap: 8px; }
.crumbs a:hover { color: var(--dark-200); }

.grid { display: grid; gap: 24px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.mt { margin-top: 24px; }
.mt-lg { margin-top: 48px; }
@media (max-width: 960px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .g4, .g2 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } :root { --gutter: 16px; }
  .nav-right .hello { display: none; } main { padding-top: 28px; } }

/* ---------- Cards ---------- */
.card { background: var(--card); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: var(--radius); padding: 24px; min-width: 0; position: relative; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.card-title { font-size: 20px; line-height: 30px; color: var(--dark-200); }
.section-title { font-size: 20px; line-height: 30px; color: var(--dark-200); margin-bottom: 16px; }

/* KPI widget */
.kpi { min-height: 196px; display: flex; flex-direction: column; justify-content: space-between; container-type: inline-size; }
.kpi .top { display: flex; justify-content: space-between; align-items: flex-start; min-height: 24px; }
.kpi .label, .kpi .sublabel { color: var(--dark-400); font-weight: 300; }
.kpi .value { display: flex; align-items: flex-end; gap: 8px; margin-top: 4px; }
.kpi .big { font-size: 30px; line-height: 38px; font-weight: 500; color: var(--dark-100); white-space: nowrap; }
.kpi .big .cents, .subvalue .cents { color: var(--dark-500); }
.kpi .delta { font-weight: 300; color: var(--accent-300); padding-bottom: 3px; white-space: nowrap; }
.kpi .sublabel .delta { padding: 0; margin-left: 8px; }  /* e.g. "Equity  -16.0%": keeps the figure below short */
@container (max-width: 250px) { .kpi .big { font-size: 24px; line-height: 32px; } .kpi .subvalue { font-size: 17px; } }
.kpi .delta.neg { color: var(--neg); }
.kpi .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 12px; margin-top: 18px; }
.subvalue { font-size: 20px; line-height: 30px; font-weight: 500; color: var(--dark-300); white-space: nowrap; }
/* sparkline: 108px when there's room, narrower beside long figures, and under them when even 48px won't fit */
.spark-box { flex: 1 1 48px; min-width: 48px; max-width: 108px; height: 48px; margin-left: auto; position: relative; }

/* ---------- Controls ---------- */
.tabs { display: flex; gap: 24px; flex-wrap: wrap; }
.tabs a, .tabs button { display: flex; flex-direction: column; gap: 4px; color: var(--dark-400); background: none; border: 0; padding: 0;
  font: inherit; cursor: pointer; }
.tabs a::after, .tabs button::after { content: ""; height: 2px; border-radius: 2px; background: transparent; }
.tabs .active { color: var(--dark-100); }
.tabs .active::after { background: var(--accent-400); }
.tabs.strong a, .tabs.strong button { font-weight: 500; }
.tabs.loose a, .tabs.loose button { gap: 16px; }

.seg { display: inline-flex; padding: 4px; background: var(--dark-800); border-radius: 10px; gap: 2px; }
.seg button, .seg a { min-width: 40px; height: 32px; padding: 0 10px; border-radius: 6px; border: 0; background: none; color: var(--dark-400);
  font: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.seg .active { background: var(--dark-600); color: var(--dark-100); }
.seg svg { width: 20px; height: 20px; }

.control, select, input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], textarea {
  background: var(--control); box-shadow: var(--control-shadow); border: 1px solid transparent; border-radius: 8px; color: var(--dark-100);
  font: inherit; padding: 10px 12px; min-height: 40px; outline: none; }
select { appearance: none; padding-right: 34px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--dark-400) 50%), linear-gradient(135deg, var(--dark-400) 50%, transparent 50%);
  background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px; background-size: 5px 5px; background-repeat: no-repeat; background-color: var(--control); }
select option { background: var(--dark-800); }
input:focus, select:focus, textarea:focus { border-color: rgba(151,150,240,.6); }
input::placeholder, textarea::placeholder { color: var(--dark-500); }
textarea { min-height: 90px; resize: vertical; width: 100%; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { color: var(--dark-400); font-weight: 300; }
.field .hint { color: var(--dark-500); font-size: 12px; line-height: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 24px; }
.check { display: inline-flex; align-items: center; gap: 10px; color: var(--dark-300); cursor: pointer; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent-400); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 24px; min-height: 36px; border-radius: 8px;
  background: var(--control); box-shadow: var(--control-shadow); color: var(--dark-100); border: 0; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: rgba(255,255,255,.09); }
.btn.accent { background: var(--accent-400); color: #101011; font-weight: 500; box-shadow: 0 0 24px rgba(151,150,240,.25); }
.btn.accent:hover { background: #a9a8f6; }
.btn.danger { color: var(--neg); }
.btn.sm { padding: 4px 12px; min-height: 30px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: 8px; }
table.dt { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.dt th { background: var(--dark-800); border-bottom: 1px solid var(--dark-600); color: var(--dark-400); font-weight: 300; font-size: 12px;
  line-height: 18px; padding: 12px 16px; text-align: center; white-space: nowrap; }
.dt th:first-child { border-radius: 8px 0 0 0; text-align: left; padding-left: 24px; }
.dt th:last-child { border-radius: 0 8px 0 0; }
.dt th a { display: inline-flex; align-items: center; gap: 4px; }
.dt th a.sorted { color: var(--dark-100); }
/* sortable headings (accounts list): ↕ until sorted, then ↑ / ↓ */
.dt.sortable th button { all: unset; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.dt.sortable th button:hover, .dt.sortable th:not([aria-sort="none"]) button { color: var(--dark-100); }
.dt.sortable th button:focus-visible { outline: 2px solid var(--accent-400); outline-offset: 3px; border-radius: 4px; }
.dt.sortable .arrow::after { content: "↕"; opacity: .35; font-size: 11px; }
.dt.sortable th[aria-sort="ascending"] .arrow::after { content: "↑"; opacity: 1; }
.dt.sortable th[aria-sort="descending"] .arrow::after { content: "↓"; opacity: 1; }
.toolbar.filters { margin: 0 0 24px; gap: 12px; }
.toolbar .grow { flex: 1 1 240px; min-width: 220px; }
.dt td { white-space: nowrap; padding: 16px; border-bottom: 1px solid var(--dark-600); text-align: center; font-size: 15px; line-height: 22px; color: var(--accent-300); vertical-align: middle; }
.dt td:first-child { text-align: left; padding-left: 24px; color: var(--dark-100); }
.dt td.text, .dt th.text { text-align: left; white-space: normal; }
.dt td.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }  /* even on elements styled display:flex, e.g. .btn */
.dt td.white { color: var(--dark-100); }
.dt td .support { display: block; color: var(--dark-400); font-size: 13px; line-height: 18px; font-weight: 300; }
.dt tr:last-child td { border-bottom: 0; }
.dt tbody tr { transition: background .12s; }
.dt tbody tr:hover { background: rgba(255,255,255,.025); }
.dt tr.click { cursor: pointer; }
.dt.tall td { padding-top: 24px; padding-bottom: 24px; font-size: 16px; }
.dt.compact td { padding-top: 12px; padding-bottom: 12px; font-size: 14px; }
.dt.dense th, .dt.dense td { padding-left: 10px; padding-right: 10px; }
.dt.dense th:first-child, .dt.dense td:first-child { padding-left: 24px; }
.kpi .big { font-size: clamp(22px, 2.1vw, 30px); }
.dt tfoot td { border-top: 1px solid var(--dark-600); border-bottom: 0; color: var(--dark-100); font-weight: 500; }
.icon-cell { width: 64px; color: var(--dark-400); }
.sym { color: var(--accent-300); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(197,197,249,.4); }

.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; color: var(--dark-400); }
.pagination a, .pagination span { min-width: 34px; height: 34px; padding: 4px 6px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.pagination a:hover { color: var(--dark-100); }
.pagination .current { background: rgba(255,255,255,.12); border: 1px solid rgba(226,232,240,.06); color: var(--dark-100); }

/* ---------- Stats ---------- */
.stat-hero { text-align: center; margin-bottom: 24px; }
.stat-hero .label { color: var(--dark-400); }
.stat-hero .big { font-size: 30px; line-height: 38px; font-weight: 500; margin-top: 4px; }
.stat-rows { display: flex; flex-direction: column; gap: 16px; }
.stat-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stat-row > span:first-child { color: var(--dark-400); font-weight: 300; white-space: nowrap; }
.stat-row > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.meter { flex: 1; max-width: 194px; height: 8px; border-radius: 8px; background: var(--dark-600); overflow: hidden; display: flex; }
.meter i { display: block; height: 100%; }
.meter .a { background: var(--accent-300); }
.meter .b { background: var(--accent-200); }
.meter .r { background: var(--red-300); }

/* Chart containers */
.chart { position: relative; width: 100%; }
.chart.h352 { height: 352px; }
.chart.h260 { height: 260px; }
.chart.h228 { height: 228px; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 16px; color: var(--dark-400); font-weight: 300; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; display: inline-block; }
.donut-wrap { position: relative; height: 234px; display: flex; align-items: center; justify-content: center; margin-top: 8px; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.donut-center .big { font-size: 30px; line-height: 38px; font-weight: 500; color: var(--dark-200); }
.donut-center .muted { font-weight: 400; }
.chart-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.chart-tools { display: flex; align-items: center; gap: 16px; }

/* Badges & notices */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; line-height: 20px;
  background: rgba(255,255,255,.06); color: var(--dark-300); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dark-400); }
.badge.ok::before { background: var(--pos); }
.badge.warn::before { background: #fab219; }
.badge.bad::before { background: var(--neg); }
.badge.accent::before { background: var(--accent-400); }
.badge.plain::before { display: none; }
.flash { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 24px; background: rgba(151,150,240,.12); color: var(--dark-100);
  border: 1px solid rgba(151,150,240,.3); display: flex; align-items: center; gap: 10px; }
.flash.bad { background: rgba(242,113,94,.1); border-color: rgba(242,113,94,.35); }
.flash.warn { background: rgba(250,178,25,.08); border-color: rgba(250,178,25,.3); }
.notice { color: var(--dark-400); font-weight: 300; padding: 12px 0; }
.flags { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.flags span { color: #f3c35a; font-size: 12px; line-height: 16px; }
.empty { padding: 48px 24px; text-align: center; color: var(--dark-400); font-weight: 300; }
.demo-bar { background: linear-gradient(90deg, rgba(151,150,240,.18), rgba(251,199,212,.12)); color: var(--dark-200); text-align: center;
  font-size: 12px; padding: 6px 12px; }
.kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: rgba(255,255,255,.06); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
details.more summary { cursor: pointer; color: var(--dark-400); }
.bulkbar { display: none; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 16px; border-radius: var(--radius);
  background: rgba(151,150,240,.1); border: 1px solid rgba(151,150,240,.25); }
.bulkbar.show { display: flex; }

/* ---------- Footer ---------- */
footer { padding: 48px 0; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; color: var(--dark-400); font-size: 16px; line-height: 26px; flex-wrap: wrap; }
footer .powered { display: flex; align-items: center; gap: 8px; }
footer .serif { font-family: Athelas, "Iowan Old Style", Georgia, serif; font-size: 18px; }

/* ---------- Auth ---------- */
.auth { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 16px; }
.auth .card { width: 100%; max-width: 420px; padding: 36px; }
.auth h1 { font-size: 24px; line-height: 32px; margin: 24px 0 8px; }
.auth p { color: var(--dark-400); font-weight: 300; margin: 0 0 24px; }
.auth form { display: flex; flex-direction: column; gap: 16px; }
.auth input { width: 100%; }
.auth .btn { width: 100%; min-height: 42px; }
.qr { background: #fff; border-radius: 10px; padding: 10px; width: 200px; margin: 0 auto 16px; }
.qr svg { width: 100%; height: auto; display: block; }
.code-input { letter-spacing: .4em; text-align: center; font-size: 20px !important; }

@media print {
  .topnav, footer, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
}

details.notes summary { list-style: none; cursor: pointer; }
details.notes summary::-webkit-details-marker { display: none; }
details.notes[open] .flags { margin-top: 8px; min-width: 240px; white-space: normal; }

/* ---------- Sign-in pages: split layout ---------- */
.auth-body main { padding: 0; display: flex; }
.auth-body main > .wrap { max-width: none; padding: 0; display: flex; flex: 1; }
.auth-split { flex: 1; display: flex; min-height: 100%; }
.auth-form-col { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px; }
.auth-form { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 24px; }
.auth-brand { display: inline-flex; align-self: flex-start; margin-bottom: 12px; }
.auth-brand .brand-logo { height: 28px; }
.auth-head { display: flex; flex-direction: column; gap: 14px; }
.auth-title { font-size: clamp(38px, 4.2vw, 50px); line-height: 1.08; font-weight: 300; letter-spacing: -0.045em; color: var(--dark-100); }
.auth-desc { color: var(--dark-400); font-weight: 300; font-size: 15px; line-height: 24px; margin: 0; }
.auth-fields { display: flex; flex-direction: column; gap: 20px; }
.auth-label { display: block; font-size: 14px; font-weight: 500; color: var(--dark-400); margin-bottom: 8px; }
.glass-input { position: relative; border-radius: 16px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.04);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: border-color .2s, background-color .2s; }
.glass-input:focus-within { border-color: rgba(151,150,240,.7); background: rgba(151,150,240,.09); }
.glass-input input { width: 100%; min-height: 54px; padding: 16px; border: 0; border-radius: 16px; background: transparent; box-shadow: none; font-size: 14px; }
.glass-input input:focus { border: 0; }
.glass-input .eye { position: absolute; top: 0; bottom: 0; right: 12px; display: flex; align-items: center; background: none; border: 0; padding: 0 4px;
  color: var(--dark-400); cursor: pointer; }
.glass-input .eye:hover { color: var(--dark-100); }
.glass-input .eye svg { width: 20px; height: 20px; }
.glass-input:has(.eye) input { padding-right: 48px; }
.glass-input .code-input { letter-spacing: .35em; font-size: 20px !important; text-align: center; }
.auth-hint { color: var(--dark-500); font-size: 12px; line-height: 18px; margin: 8px 0 0; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.auth-check { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; color: rgba(255,255,255,.9); }
input[type=checkbox].custom-checkbox { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; border-radius: 6px; flex: none; cursor: pointer;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.04); display: grid; place-content: center; transition: background .15s, border-color .15s; }
.custom-checkbox::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #101011; border-bottom: 2px solid #101011; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.custom-checkbox:checked { background: var(--accent-400); border-color: var(--accent-400); }
.custom-checkbox:checked::after { opacity: 1; }
.custom-checkbox:focus-visible, .auth-link:focus-visible, .btn-auth:focus-visible, .eye:focus-visible { outline: 2px solid var(--accent-400); outline-offset: 2px; }
.auth-link { background: none; border: 0; padding: 0; font: inherit; color: #a9a8f6; cursor: pointer; text-decoration: none; }
.auth-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-note { margin: -6px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(151,150,240,.08); border: 1px solid rgba(151,150,240,.22);
  color: var(--dark-300); font-size: 13px; line-height: 20px; }
.btn-auth { width: 100%; padding: 16px; border: 0; border-radius: 16px; background: var(--accent-400); color: #101011; font: inherit; font-size: 15px;
  font-weight: 500; cursor: pointer; transition: background .2s, box-shadow .2s; box-shadow: 0 0 32px rgba(151,150,240,.22); }
.btn-auth:hover { background: #a9a8f6; box-shadow: 0 0 40px rgba(151,150,240,.32); }
.auth-foot { text-align: center; color: var(--dark-400); font-size: 14px; font-weight: 300; margin: 0; }
.auth-qr { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.auth-qr .qr { margin: 0 0 8px; width: 184px; }

.auth-hero-col { flex: 1; position: relative; padding: 16px; display: none; }
@media (min-width: 900px) { .auth-hero-col { display: block; } }
.auth-hero { position: absolute; inset: 16px; border-radius: 24px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 55% at 85% 12%, rgba(151,150,240,.42), transparent 70%),
    radial-gradient(45% 40% at 10% 95%, rgba(251,199,212,.16), transparent 70%),
    radial-gradient(70% 60% at 50% 40%, rgba(197,197,249,.08), transparent 75%),
    #141416; border: 1px solid rgba(255,255,255,.06); }
.hero-grid { position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 85%); }
.hero-curve { position: absolute; left: 0; right: 0; bottom: 18%; width: 100%; height: 42%; }
.hero-mark { position: absolute; top: 15%; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.92);
  filter: drop-shadow(0 0 48px rgba(151,150,240,.45)); }
.hero-mark .brand-mark { width: clamp(96px, 11vw, 150px); height: auto; }
.hero-cards { position: absolute; left: 0; right: 0; bottom: 32px; display: flex; justify-content: center; gap: 16px; padding: 0 32px; }
.hero-card { flex: 0 1 272px; min-width: 232px; display: flex; align-items: flex-start; gap: 12px; padding: 20px; border-radius: 24px; background: rgba(39,39,42,.42);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(255,255,255,.1); font-size: 14px; line-height: 1.35; }
.hero-icon { width: 40px; height: 40px; border-radius: 14px; flex: none; display: grid; place-content: center; color: #101011;
  background: linear-gradient(135deg, #C5C5F9, #9796F0); }
.hero-icon svg { width: 20px; height: 20px; }
.hc-title { margin: 0; font-weight: 500; color: var(--dark-100); }
.hc-sub { margin: 0; color: var(--dark-400); }
.hc-text { margin: 4px 0 0; color: rgba(255,255,255,.8); }
.xl-only, .xxl-only { display: none; }
@media (min-width: 1280px) { .xl-only { display: flex; } }
@media (min-width: 1840px) { .xxl-only { display: flex; } }

/* Entrance animations (as in the reference design) */
@keyframes fadeSlideIn { to { opacity: 1; filter: blur(0); transform: translateY(0); } }
@keyframes slideRightIn { to { opacity: 1; filter: blur(0); transform: translateX(0); } }
@keyframes testimonialIn { to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); } }
.anim { opacity: 0; filter: blur(4px); transform: translateY(12px); animation: fadeSlideIn .6s ease-out forwards; }
.anim-right { opacity: 0; filter: blur(4px); transform: translateX(32px); animation: slideRightIn .7s ease-out .3s forwards; }
.anim-card { opacity: 0; filter: blur(4px); transform: translateY(16px) scale(.96); animation: testimonialIn .6s ease-out forwards; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .2s; } .d3 { animation-delay: .3s; } .d4 { animation-delay: .4s; }
.d5 { animation-delay: .5s; } .d6 { animation-delay: .6s; } .d7 { animation-delay: .7s; }
.c1 { animation-delay: 1s; } .c2 { animation-delay: 1.2s; } .c3 { animation-delay: 1.4s; }
@media (prefers-reduced-motion: reduce) {
  .anim, .anim-right, .anim-card { animation: none; opacity: 1; filter: none; transform: none; }
}

/* Refresh live */
.refresh-box { display: flex; align-items: center; gap: 12px; }
.refresh-status { font-size: 12px; color: var(--dark-400); min-height: 18px; text-align: right; }
.refresh-status.bad { color: var(--neg); }
.btn[data-refresh-login].busy svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
