/* Proprevo design system. Light by default, dark via [data-theme="dark"]. */
:root {
  --bg: #f3f5f9;
  --bg-2: #eef1f6;
  --panel: #ffffff;
  --panel-2: #f6f8fb;
  --panel-3: #eef2f8;
  --line: #e3e8ef;
  --line-2: #d3dae5;
  --text: #121826;
  --text-2: #2b3445;
  --muted: #5e6a7f;
  --faint: #8c96a8;
  --brand: #2563ff;
  --brand-2: #1d4fd8;
  --brand-ink: #ffffff;
  --brand-soft: #e8efff;
  --brand-soft-2: #d6e2ff;
  --up: #0f9f5f;
  --down: #e5344d;
  --warn: #d98a00;
  --up-bg: #e3f6ec;
  --down-bg: #fde8eb;
  --warn-bg: #fff3d6;
  --header: #14161b;
  --header-2: #23262e;
  --header-text: #f3f4f6;
  --accent-1: #7c5cff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 8px 28px rgba(16, 24, 40, .08);
  --shadow-lg: 0 18px 50px rgba(16, 24, 40, .16);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --chart-grid: #eef1f6;
  --chart-text: #5e6a7f;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0b0e14;
  --bg-2: #0f131b;
  --panel: #131822;
  --panel-2: #181e2a;
  --panel-3: #1e2532;
  --line: #232b39;
  --line-2: #2e3848;
  --text: #e9edf4;
  --text-2: #cdd4df;
  --muted: #929cb0;
  --faint: #677187;
  --brand: #4c7dff;
  --brand-2: #6b93ff;
  --brand-soft: #18233d;
  --brand-soft-2: #1f2e52;
  --up: #22c983;
  --down: #f2526a;
  --warn: #f0b429;
  --up-bg: rgba(34, 201, 131, .12);
  --down-bg: rgba(242, 82, 106, .12);
  --warn-bg: rgba(240, 180, 41, .12);
  --header: #0a0c11;
  --header-2: #1a1e27;
  --shadow: 0 8px 28px rgba(0, 0, 0, .35);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, .5);
  --chart-grid: #1a202b;
  --chart-text: #8c96a8;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14.5px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; color: var(--text); }
h1 { font-size: 30px; } h2 { font-size: 21px; } h3 { font-size: 16.5px; } h4 { font-size: 14.5px; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
.faint { color: var(--faint); }
.num, td.num, th.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 13px; }
.up { color: var(--up); } .down { color: var(--down); } .warn { color: var(--warn); } .brand-text { color: var(--brand); }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
code { font-family: var(--mono); background: var(--panel-3); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 16px; height: 16px; } svg.i.lg { width: 26px; height: 26px; } svg.i.xl { width: 34px; height: 34px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* layout helpers */
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 22px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.nowrap { flex-wrap: nowrap; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.spacer { flex: 1; }
.split { display: grid; gap: 18px; align-items: start; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.split.even { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.split.wizard { grid-template-columns: minmax(0, 1fr) 380px; }
/* Grid children default to min-width:auto, which lets a wide table push the
   column past the screen instead of scrolling inside its own wrapper. */
.split > *, .grid > *, .stack > * { min-width: 0; }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split.even, .split.wizard { grid-template-columns: 1fr; } .sticky { position: static !important; } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .wrap { padding: 0 16px; } }

/* surfaces */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.card.tight { padding: 16px 18px; }
.card.flat { box-shadow: none; }
.card.soft { background: var(--panel-2); }
.card.brand { background: var(--brand-soft); border-color: var(--brand-soft-2); }
.card h3 { margin-bottom: 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h3, .card-head h2 { margin: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 14px; }
.section-head h2 { margin: 0; }
.section-head a { color: var(--text); text-decoration: underline; font-weight: 600; font-size: 13.5px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .label { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat .value { font-size: 23px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat .sub { font-size: 12.5px; color: var(--muted); }
.icon-tile { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.icon-tile.plain { background: transparent; width: auto; height: auto; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--panel); color: var(--text);
  font: 650 14px var(--font); cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { border-color: var(--faint); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 4px 14px rgba(37, 99, 255, .28); }
.btn.primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn.outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn.outline:hover { background: var(--brand-soft); }
.btn.buy { background: var(--up); border-color: var(--up); color: #fff; }
.btn.sell { background: var(--down); border-color: var(--down); color: #fff; }
.btn.danger { color: var(--down); border-color: color-mix(in srgb, var(--down) 45%, transparent); background: transparent; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--panel-3); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.lg { height: 50px; padding: 0 26px; font-size: 15.5px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* forms */
label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
input, select, textarea { width: 100%; height: 44px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: var(--panel); color: var(--text); font: 14.5px var(--font); transition: border-color .15s, box-shadow .15s; }
textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
input[type=file] { height: auto; padding: 10px; background: var(--panel-2); }
input[disabled], select[disabled] { background: var(--panel-2); color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.field { margin-bottom: 16px; }
.field .error { color: var(--down); font-size: 12.5px; margin-top: 5px; }
.field .hint { color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; }
.check input { margin-top: 2px; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; flex-wrap: wrap; }
.inline-form input, .inline-form select { height: 32px; width: auto; font-size: 13px; padding: 0 10px; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--line-2); border-radius: 99px; transition: .2s; cursor: pointer; }
.switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%;
  transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::before { transform: translateX(18px); }
.input-group { display: flex; }
.input-group input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; height: 44px; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 650; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; background: var(--panel-2); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--panel-2); }
.card .table-wrap { border-radius: var(--radius-sm); }
.empty { padding: 32px; text-align: center; color: var(--muted); }
.kv-table td:first-child { color: var(--muted); }
.kv-table td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv-table td:last-child { text-align: right; font-weight: 650; }

/* badges, chips */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px;
  font-size: 12px; font-weight: 700; background: var(--panel-3); color: var(--muted); white-space: nowrap; }
.badge.up, .badge.active, .badge.paid, .badge.approved, .badge.passed { background: var(--up-bg); color: var(--up); }
.badge.down, .badge.failed, .badge.rejected, .badge.refunded { background: var(--down-bg); color: var(--down); }
.badge.warn, .badge.pending, .badge.required, .badge.waiting { background: var(--warn-bg); color: var(--warn); }
.badge.brand, .badge.funded, .badge.open { background: var(--brand-soft); color: var(--brand); }
.badge.solid { background: var(--brand); color: #fff; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--panel); color: var(--text-2) !important; font-weight: 600; font-size: 13.5px; white-space: nowrap; text-decoration: none !important; }
.chip:hover { border-color: var(--brand); color: var(--brand) !important; }
.chips { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 12.5px; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 5px 0 5px 28px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; font-size: 14px; flex: none;
  background: var(--brand-soft); color: var(--brand); }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; } .avatar.xl { width: 84px; height: 84px; font-size: 28px; }
.avatar.c1 { background: #ede7ff; color: #6b4de6; } .avatar.c2 { background: #e3f6ec; color: #0f9f5f; }
.avatar.c3 { background: #fff1db; color: #c27400; } .avatar.c4 { background: #ffe5ea; color: #d6334c; }
[data-theme="dark"] .avatar.c1 { background: #2a2350; } [data-theme="dark"] .avatar.c2 { background: #12321f; }
[data-theme="dark"] .avatar.c3 { background: #3a2a10; } [data-theme="dark"] .avatar.c4 { background: #3d1820; }

/* flash */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; border: 1px solid; font-size: 14px; }
.flash.success { background: var(--up-bg); border-color: color-mix(in srgb, var(--up) 30%, transparent); color: var(--text); }
.flash.error { background: var(--down-bg); border-color: color-mix(in srgb, var(--down) 30%, transparent); color: var(--text); }
.flash.info { background: var(--brand-soft); border-color: var(--brand-soft-2); color: var(--text); word-break: break-word; }
.flash.warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 35%, transparent); color: var(--text); }

/* progress */
.bar { height: 7px; background: var(--panel-3); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.bar.good > span { background: var(--up); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 26px 0 8px; }
.steps .step { position: relative; padding-top: 44px; font-weight: 650; font-size: 14px; color: var(--muted); }
.steps .step::before { content: ''; position: absolute; top: 15px; left: 34px; right: 0; height: 3px; background: var(--line); border-radius: 3px; }
.steps .step:last-child::before { right: 0; }
.steps .step .node { position: absolute; top: 0; left: 0; width: 33px; height: 33px; border-radius: 50%; display: grid; place-items: center;
  background: var(--panel-3); color: var(--faint); }
.steps .step.done { color: var(--up); }
.steps .step.done::before { background: var(--up); }
.steps .step.done .node { background: var(--up); color: #fff; }
.steps .step.current .node { background: var(--brand-soft); color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
.steps .step.current { color: var(--text); }
.steps a, .steps button { font: inherit; color: inherit; }

/* tabs */
.tabs { display: inline-flex; padding: 4px; background: var(--panel-3); border-radius: 11px; gap: 4px; flex-wrap: wrap; }
.tabs a, .tabs button { padding: 8px 16px; border-radius: 8px; color: var(--muted); font: 650 14px var(--font); border: 0; background: none;
  cursor: pointer; text-decoration: none !important; }
.tabs a.on, .tabs button.on { background: var(--panel); color: var(--text); box-shadow: var(--shadow-sm); }
.underline-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.underline-tabs a, .underline-tabs button { padding: 12px 0; color: var(--muted); font: 650 14.5px var(--font); border: 0; background: none; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none !important; }
.underline-tabs a.on, .underline-tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }

/* option cards (wizard) */
.options { display: grid; gap: 12px; }
.options.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.options.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.options.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 760px) { .options.c3, .options.c5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .options.c2 { grid-template-columns: 1fr; } }
.opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--panel-2); cursor: pointer; transition: border-color .15s, background .15s; min-height: 64px; }
.opt:hover { border-color: var(--brand-soft-2); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .radio { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; background: var(--panel); }
.opt.on, .opt:has(input:checked) { border-color: var(--brand); background: var(--brand); color: #fff; }
.opt.on .radio, .opt:has(input:checked) .radio { border-color: #fff; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563ff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.opt .icon-tile.plain { color: var(--brand); }
.opt.on .icon-tile.plain, .opt:has(input:checked) .icon-tile.plain { color: #fff; }
.opt .t { font-weight: 750; font-size: 15px; } .opt .s { font-size: 12px; opacity: .75; }
.opt.on .s, .opt:has(input:checked) .s { opacity: .9; }
.opt .tag { position: absolute; top: -10px; left: 12px; background: var(--brand); color: #fff; border: 2px solid var(--panel); border-radius: 99px;
  font-size: 11px; font-weight: 700; padding: 1px 9px; }
.opt.balance { flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; }
.opt.balance .radio { position: absolute; top: 14px; right: 14px; margin: 0; }
.opt.balance .amount { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.opt.balance .price { margin-top: 10px; padding-top: 10px; border-top: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 18%, transparent);
  width: 100%; font-weight: 700; }
.ccy { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 8px; background: var(--panel-3); font-weight: 700; font-size: 13px;
  cursor: pointer; border: 1.5px solid transparent; color: var(--text-2); }
.ccy:has(input:checked) { background: var(--brand); color: #fff; }
.ccy input { position: absolute; opacity: 0; pointer-events: none; }

/* ===== app shell ===== */
.apptop { position: sticky; top: 0; z-index: 30; height: 68px; background: var(--header); color: var(--header-text); display: flex; align-items: center;
  gap: 18px; padding: 0 22px; }
.apptop .logo { color: #fff !important; }
.apptop .acct-switch { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px 0 8px; border-radius: 10px; background: var(--header-2);
  color: #fff; border: 1px solid rgba(255, 255, 255, .08); cursor: pointer; font: inherit; text-align: left; }
.apptop .acct-switch .mk { width: 30px; height: 30px; border-radius: 50%; background: #2f3442; display: grid; place-items: center; }
.apptop .acct-switch b { display: block; font-size: 14px; line-height: 1.2; } .apptop .acct-switch small { color: #a7aebc; font-size: 12px; }
.apptop .me { display: flex; align-items: center; gap: 12px; background: none; border: 0; color: #fff; font: 650 15px var(--font); cursor: pointer; }
.apptop .me .avatar { background: #dde6ff; color: #2563ff; }
.apptop .bell { position: relative; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; border-radius: 10px; }
.apptop .bell:hover, .apptop .me:hover { background: var(--header-2); }
.apptop .bell .count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--down);
  color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.dropdown { position: relative; }
.menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 240px; background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 50; }
.menu.left { left: 0; right: auto; }
.dropdown.open > .menu { display: block; }
.menu a, .menu button.item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 8px; color: var(--text) !important;
  font: 550 14px var(--font); background: none; border: 0; cursor: pointer; text-decoration: none !important; text-align: left; }
.menu a:hover, .menu button.item:hover { background: var(--panel-2); }
.menu .sep { height: 1px; background: var(--line); margin: 6px 0; }
.menu .head { padding: 10px 12px 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.menu.wide { width: 380px; max-height: 70vh; overflow-y: auto; }
.notice { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text) !important; text-decoration: none !important; }
.notice:hover { background: var(--panel-2); }
.notice b { display: block; font-size: 13.5px; } .notice small { font-size: 12px; }
.notice.unread b::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-right: 7px; vertical-align: middle; }

.shell { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: calc(100vh - 68px); }
.sidenav { background: var(--panel); border-right: 1px solid var(--line); position: sticky; top: 68px; height: calc(100vh - 68px); display: flex; flex-direction: column; }
.sidenav .cta { padding: 20px 18px 16px; border-bottom: 1px solid var(--line); }
.sidenav .scroll { flex: 1; overflow-y: auto; padding: 12px; scrollbar-width: thin; }
.sidenav .foot { border-top: 1px solid var(--line); padding: 10px 12px; }
.nav-item { display: flex; align-items: center; gap: 14px; padding: 9px 14px; border-radius: 10px; color: var(--text) !important; font-weight: 600; font-size: 15px;
  text-decoration: none !important; background: none; border: 0; width: 100%; cursor: pointer; font-family: var(--font); text-align: left; }
.nav-item:hover { background: var(--panel-2); }
.nav-item.on { background: var(--panel-3); }
.nav-item .count { margin-left: auto; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; border-radius: 99px; padding: 1px 8px; }
.nav-group summary { list-style: none; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary .chev { transition: transform .15s; }
.nav-group[open] summary .chev { transform: rotate(90deg); }
.nav-group .sub { padding-left: 34px; }
.nav-group .sub .nav-item { font-size: 14px; padding: 9px 14px; }
.nav-sep { height: 12px; }
.main-col { min-width: 0; display: flex; flex-direction: column; }
.page { flex: 1; padding: 26px 34px 40px; max-width: 1480px; width: 100%; }
.crumbs { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.crumbs a { color: var(--muted); } .crumbs .sep { opacity: .5; }
.page-title { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-title h1 { margin: 0; font-size: 26px; }
.app-foot { padding: 26px 34px 30px; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line); }
.app-foot .links { display: flex; gap: 22px; justify-content: flex-end; margin-bottom: 12px; font-size: 14px; }
.app-foot .links a { color: var(--muted); }
.side-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }
@media (max-width: 1060px) {
  .shell { grid-template-columns: 1fr; }
  .sidenav { position: fixed; z-index: 40; left: 0; top: 68px; width: 290px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .sidenav.open { transform: none; }
  .side-toggle { display: inline-flex; }
  .page { padding: 20px 16px 32px; }
  .apptop { padding: 0 12px; gap: 10px; }
  .apptop .me .name, .apptop .acct-switch small { display: none; }
}
@media (max-width: 560px) { .apptop .logo-text { display: none; } .apptop .acct-switch > span:not(.mk), .apptop .acct-switch > svg { display: none; }
  .apptop .acct-switch { padding: 0 8px; } .apptop { gap: 8px; } .apptop .me .avatar { width: 36px; height: 36px; } .apptop .menu { position: fixed; left: 8px; right: 8px; top: 64px; min-width: 0; width: auto; } }

/* overview */
.welcome { display: flex; gap: 18px; align-items: center; }
.path-card { display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel-2); position: relative; overflow: hidden; }
.path-card.featured { background: var(--brand-soft); border-color: var(--brand); }
.path-card .deco { position: absolute; right: 22px; top: 18px; color: var(--brand); opacity: .12; }
.path-card .deco svg { width: 90px; height: 90px; stroke-width: 1.2; }
.path-card p { color: var(--muted); margin: 0; }
.path-card .pill { align-self: flex-start; }
.leader-card { display: flex; align-items: center; gap: 12px; padding: 16px; }
.leader-card .rank { font-size: 11px; font-weight: 800; color: var(--warn); align-self: flex-start; margin-left: -8px; }
.leader-card .amount { margin-left: auto; text-align: right; background: var(--panel-2); border-radius: 10px; padding: 6px 12px; }
.leader-card .amount b { color: var(--up); font-size: 18px; display: block; line-height: 1.2; }
.leader-card .amount small { font-size: 11.5px; }
.people { display: flex; gap: 16px; overflow-x: auto; padding: 14px 4px 10px; scrollbar-width: thin; }
.person { flex: none; width: 220px; padding: 22px 16px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; background: var(--panel); position: relative; }
.person.me { border: 2px solid var(--brand); }
.person.me::before { content: 'You'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff;
  border-radius: 99px; font-size: 12px; font-weight: 700; padding: 2px 12px; }
.person .avatar { margin: 0 auto 12px; }
.person b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person small { display: block; margin: 4px 0 14px; }
.hero-cta { text-align: center; padding: 50px 20px 20px; }
.hero-cta .cards { display: flex; justify-content: center; gap: 0; margin-bottom: 28px; }
.mini-cert { width: 190px; height: 130px; border-radius: 14px; padding: 16px; text-align: left; color: #fff; box-shadow: var(--shadow-lg);
  background: linear-gradient(140deg, #1c2233, #0f121a); font-size: 11px; position: relative; }
.mini-cert b { display: block; font-size: 16px; letter-spacing: .02em; margin: 6px 0; }
.mini-cert .amt { color: #22c983; font-size: 20px; font-weight: 800; position: absolute; bottom: 16px; }
.mini-cert.l { transform: rotate(-8deg) translate(20px, 14px); background: linear-gradient(140deg, #26173f, #120d1f); }
.mini-cert.r { transform: rotate(8deg) translate(-20px, 14px); background: linear-gradient(140deg, #13283a, #0b1620); }
.mini-cert.m { z-index: 2; width: 210px; height: 150px; }

/* account cards */
.acct { display: flex; flex-direction: column; gap: 16px; }
.acct .top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.acct .login { font-family: var(--mono); color: var(--muted); font-size: 12.5px; }
.acct .kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.acct .kv div span { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.acct .kv div b { font-variant-numeric: tabular-nums; }

/* objectives */
.objective { display: grid; grid-template-columns: 30px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.objective:last-child { border-bottom: 0; }
.objective .icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.objective .icon.ok { background: var(--up-bg); color: var(--up); }
.objective .icon.no { background: var(--down-bg); color: var(--down); }
.objective .icon.wait { background: var(--panel-3); color: var(--muted); }
.objective .bar { margin-top: 7px; }

/* summary panel */
.summary .row.between { padding: 8px 0; }
.summary .total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; }
.summary .total b { font-size: 26px; letter-spacing: -.02em; }
.trust { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* tiers */
.tier { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); display: flex; flex-direction: column; }
.tier .banner { height: 120px; display: grid; place-items: center; color: #fff; font-size: 30px; font-weight: 800; font-style: italic; letter-spacing: .02em; }
.tier.prime .banner { background: linear-gradient(135deg, #2b2a52, #3e3b78); }
.tier.elite .banner { background: linear-gradient(135deg, #3a2a10, #7a5418); color: #ffd36b; }
.tier.current { border: 2px solid var(--brand); }
.tier .body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 14px; }

/* public site */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--panel) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 28px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text) !important; text-decoration: none !important; }
.logo-img { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 0 12px rgba(59, 108, 255, .45)); transition: transform .4s cubic-bezier(.2, .9, .3, 1.4); }
.logo:hover .logo-img { transform: rotate(-8deg) scale(1.06); }
.logo-text { font-family: 'Space Grotesk', var(--font); font-weight: 700; font-size: 20px; letter-spacing: .06em; }
.logo-text b { background: linear-gradient(90deg, #22d3ee, #6f8bff 55%, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, #2563ff, #7c5cff); display: grid; place-items: center; color: #fff; font-size: 16px; font-weight: 800; }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--muted); font-weight: 600; }
.nav a:hover, .nav a.on { color: var(--text); text-decoration: none; }
.menu-toggle { display: none; }
@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--panel); border-bottom: 1px solid var(--line); padding: 8px 16px; }
  .nav.open { display: flex; } .nav a { padding: 10px 0; }
  .menu-toggle { display: inline-flex; }
  .topbar .actions .btn.hide-sm { display: none; }
}
.hero { padding: 96px 0 72px; text-align: center; background: radial-gradient(900px 420px at 50% -10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%); }
.hero h1 { font-size: clamp(36px, 6vw, 64px); letter-spacing: -.04em; max-width: 900px; margin: 0 auto 20px; }
.hero p.lead { font-size: 18.5px; color: var(--muted); max-width: 650px; margin: 0 auto 30px; }
.hero .proof { display: flex; gap: 40px; justify-content: center; margin-top: 46px; flex-wrap: wrap; }
.hero .proof div b { display: block; font-size: 26px; letter-spacing: -.03em; } .hero .proof div span { color: var(--muted); font-size: 13.5px; }
.section { padding: 70px 0; }
.section-title { text-align: center; margin-bottom: 38px; }
.section-title p { color: var(--muted); max-width: 640px; margin: 8px auto 0; font-size: 16px; }
.steps-cards .n { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; margin-bottom: 14px; }
.footer { border-top: 1px solid var(--line); padding: 44px 0; color: var(--muted); font-size: 13.5px; margin-top: 40px; background: var(--panel); }
.footer a { color: var(--muted); }
.footer .cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.footer h4 { color: var(--text); }
.footer ul { list-style: none; padding: 0; margin: 0; } .footer li { margin-bottom: 7px; }
@media (max-width: 720px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.size-pill { padding: 11px 18px; border: 1.5px solid var(--line-2); border-radius: 11px; background: var(--panel); color: var(--text); font: 750 15px var(--font); cursor: pointer; }
.size-pill.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.pricing-table td:first-child { color: var(--muted); }
.pricing-table td { font-variant-numeric: tabular-nums; }
.pricing-table th.phase, .pricing-table td.c { text-align: center; }
.price-big { font-size: 42px; font-weight: 800; letter-spacing: -.035em; }
.prose { max-width: 780px; }
.prose h2 { margin-top: 34px; }
.prose li { margin-bottom: 6px; }
.lesson h2 { margin-top: 28px; } .lesson p, .lesson li { font-size: 15.5px; line-height: 1.7; color: var(--text-2); }
.lesson .callout { background: var(--brand-soft); border-radius: 12px; padding: 16px 18px; margin: 18px 0; }
details.faq { border-bottom: 1px solid var(--line); padding: 18px 0; }
details.faq summary { cursor: pointer; font-weight: 650; font-size: 15.5px; }
details.faq p { color: var(--muted); margin: 10px 0 0; }
.pagination { display: flex; gap: 6px; margin-top: 16px; justify-content: flex-end; }

/* chat */
.chat-fab { position: fixed; right: 26px; bottom: 26px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--brand); color: #fff; border: 0;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37, 99, 255, .45); cursor: pointer; }
.chat-fab:hover { background: var(--brand-2); }
.chat-panel { position: fixed; right: 26px; bottom: 100px; z-index: 60; width: 380px; max-width: calc(100vw - 32px); background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-lg); display: none; overflow: hidden; }
.chat-panel.open { display: block; }
.chat-panel .head { background: var(--brand); color: #fff; padding: 18px 20px; }
.chat-panel .head h3 { color: #fff; margin: 0 0 2px; }
.chat-panel .body { padding: 18px 20px; max-height: 60vh; overflow-y: auto; }
.thread { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 80%; padding: 12px 14px; border-radius: 14px; background: var(--panel-3); }
.msg.mine { align-self: flex-end; background: var(--brand); color: #fff; }
.msg small { display: block; opacity: .7; font-size: 11.5px; margin-top: 4px; }
.msg p { margin: 0; white-space: pre-wrap; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; background: rgba(10, 12, 18, .55); padding: 16px; }
.modal.open { display: grid; }
.modal .box { background: var(--panel); border-radius: 18px; padding: 26px; width: 520px; max-width: 100%; box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto; }

/* certificate */
.cert { max-width: 900px; margin: 40px auto; padding: 60px; border-radius: 20px; text-align: center; color: #fff;
  background: radial-gradient(700px 300px at 50% 0, rgba(76, 125, 255, .35), transparent), linear-gradient(160deg, #141a28, #0a0d14); box-shadow: var(--shadow-lg); }
.cert h1 { font-size: 46px; color: #fff; }
.cert .muted { color: #a7aebc; }
.cert .stat .label { color: #a7aebc; } .cert .stat .value { color: #fff; }
.cert .verify { margin-top: 30px; font-size: 12px; color: #a7aebc; word-break: break-all; }
@media print { body { background: #fff; } .no-print { display: none !important; } .cert { box-shadow: none; } }
@media (max-width: 480px) { .options.c3 { grid-template-columns: 1fr; } .opt.balance .amount { font-size: 16px; } .chat-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; } }

/* ===== academy ===== */
.ac-hero { position: relative; overflow: hidden; border-radius: var(--radius); padding: 56px 44px; color: #fff; margin-bottom: 26px;
  background: radial-gradient(700px 300px at 85% 10%, rgba(76, 125, 255, .45), transparent 70%), radial-gradient(500px 260px at 0% 100%, rgba(124, 92, 255, .35), transparent 70%), #0d1220; }
.ac-hero h1 { color: #fff; font-family: 'Bebas Neue', var(--font); font-size: clamp(46px, 7vw, 86px); letter-spacing: .02em; line-height: .95; margin: 0 0 12px; font-weight: 400; }
.ac-hero p { color: #c6cde0; max-width: 620px; font-size: 16px; }
.ac-hero .stats { display: flex; gap: 36px; margin-top: 24px; flex-wrap: wrap; }
.ac-hero .stats b { display: block; font-size: 26px; } .ac-hero .stats span { color: #a7aebc; font-size: 13px; }
.ac-hero .candles { position: absolute; right: 40px; bottom: 30px; opacity: .9; }
@media (max-width: 760px) { .ac-hero { padding: 36px 22px; } .ac-hero .candles { display: none; } }
.ac-tools { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; margin-bottom: 8px; }
@media (max-width: 760px) { .ac-tools { grid-template-columns: 1fr; } }
.ac-section { margin-top: 38px; }
.ac-section h2 { font-size: 26px; display: flex; align-items: center; gap: 12px; }
.ac-section h2 .bar-c { width: 6px; height: 26px; border-radius: 3px; }
.ac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ac-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--radius); background: var(--panel);
  border: 1px solid var(--line); color: var(--text) !important; text-decoration: none !important; transition: transform .15s, box-shadow .15s, border-color .15s; }
.ac-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand-soft-2); }
.ac-card .no { font-family: 'Bebas Neue', var(--font); font-size: 30px; line-height: 1; color: var(--faint); }
.ac-card h3 { margin: 0; font-size: 16px; }
.ac-card p { margin: 0; font-size: 13px; color: var(--muted); }
.ac-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; font-size: 12.5px; color: var(--muted); }
.ac-card .done { color: var(--up); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 6px; font-size: 11.5px; font-weight: 700; color: #fff; align-self: flex-start; }
.lesson-banner { position: relative; overflow: hidden; border-radius: var(--radius); padding: 48px 44px; min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(120deg, #0d1220 40%, var(--cat) 180%); color: #fff; margin-bottom: 28px; }
.lesson-banner .brandline { position: absolute; top: 26px; left: 44px; display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .04em; font-size: 13px; color: #fff; }
.lesson-banner h1 { color: #fff; font-family: 'Bebas Neue', var(--font); font-weight: 400; font-size: clamp(40px, 6vw, 72px); line-height: .95; letter-spacing: .02em; margin: 0; max-width: 760px; }
.lesson-banner h1 em { font-style: normal; color: var(--cat); filter: brightness(1.35); }
.lesson-banner .art { position: absolute; right: 30px; top: 30px; bottom: 30px; opacity: .55; }
@media (max-width: 760px) { .lesson-banner { padding: 60px 22px 26px; min-height: 0; } .lesson-banner .art { display: none; } .lesson-banner .brandline { left: 22px; } }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
@media (max-width: 1100px) { .lesson-layout { grid-template-columns: 1fr; } .lesson-side { position: static !important; } }
.toc { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.toc h4 { margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 18px; } .toc li { margin: 6px 0; font-size: 14px; } .toc a { color: var(--text-2); }
.toc ol ol { padding-left: 16px; }
.article { font-size: 16px; line-height: 1.75; color: var(--text-2); }
.article h2 { font-size: 24px; margin: 38px 0 12px; color: var(--text); scroll-margin-top: 90px; }
.article h3 { font-size: 18px; margin: 26px 0 8px; color: var(--text); scroll-margin-top: 90px; }
.article p, .article li { color: var(--text-2); }
.article ul, .article ol { padding-left: 22px; } .article li { margin: 6px 0; }
.article table { margin: 18px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: block; overflow-x: auto; }
.article table th, .article table td { font-size: 14px; }
.article figure { margin: 24px 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.article figcaption { text-align: center; color: var(--muted); font-size: 13px; margin-top: 10px; }
.article strong { color: var(--text); }
.article code { font-size: 13px; }
.exam { margin-top: 44px; border-radius: var(--radius); background: #0d1220; color: #fff; padding: 40px; }
.exam h2 { color: #fff; font-size: 30px; text-align: center; }
.exam > p { color: #c6cde0; text-align: center; max-width: 560px; margin: 0 auto 22px; }
.exam .q { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.exam .q b { display: block; margin-bottom: 10px; }
.exam .q label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; color: #e9edf4; font-weight: 500; margin: 4px 0; cursor: pointer; }
.exam .q label:hover { background: rgba(255, 255, 255, .06); }
.exam .q label.right { background: rgba(34, 201, 131, .18); } .exam .q label.wrong { background: rgba(242, 82, 106, .2); }
.exam .why { color: #a7aebc; font-size: 13.5px; margin: 8px 0 0; }
.exam .score { text-align: center; font-size: 22px; font-weight: 800; margin-bottom: 18px; }
@media (max-width: 760px) { .exam { padding: 26px 18px; } }

/* ===== certificate ===== */
.cert2 { position: relative; max-width: 560px; margin: 0 auto; border-radius: 18px; overflow: hidden; color: #fff; box-shadow: var(--shadow-lg);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.015) 0 2px, transparent 2px 9px), linear-gradient(160deg, #22252c, #15171c); }
.cert2-top { padding: 38px 40px 26px; position: relative; }
.cert2-top::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,.12) 60%, #1fbfa6 60%); }
.cert2.passed .cert2-top::after { background: linear-gradient(90deg, rgba(255,255,255,.12) 60%, #4c7dff 60%); }
.cert2.scaled .cert2-top::after { background: linear-gradient(90deg, rgba(255,255,255,.12) 60%, #f0b429 60%); }
.cert2-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .06em; font-size: 15px; }
.cert2-title { font-family: 'Bebas Neue', var(--font); font-size: 52px; line-height: 1; margin-top: 16px; letter-spacing: .02em; }
.cert2-body { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 26px 40px; }
.cert2-label { font-size: 12px; color: #c3c8d4; }
.cert2-name { font-size: 20px; font-weight: 700; color: #f4d58d; }
.cert2-amount { font-size: 40px; font-weight: 800; color: #1fbfa6; letter-spacing: -.02em; line-height: 1.15; }
.cert2.passed .cert2-amount { color: #8fb0ff; } .cert2.scaled .cert2-amount { color: #f4d58d; }
.cert2-meta { font-size: 12px; color: #a7aebc; margin-top: 6px; }
.cert2-qr { background: #fff; border-radius: 10px; padding: 6px; width: 104px; height: 104px; flex: none; }
.cert2-qr svg { width: 100%; height: 100%; display: block; }
.cert2-foot { display: flex; justify-content: space-around; padding: 6px 40px 30px; text-align: center; }
.cert2-foot div { border-top: 1px solid rgba(255,255,255,.35); padding-top: 6px; min-width: 150px; }
.cert2-foot b { display: block; font-size: 13px; } .cert2-foot span { font-size: 11px; color: #a7aebc; }
@media (max-width: 560px) { .cert2-top, .cert2-body { padding-left: 22px; padding-right: 22px; } .cert2-amount { font-size: 30px; } .cert2-qr { width: 84px; height: 84px; } }

/* ===== public profile ===== */
.profile-page { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1000px) { .profile-page { grid-template-columns: 1fr; } }
.pcard { position: relative; overflow: hidden; border-radius: var(--radius); padding: 26px; background: radial-gradient(500px 200px at 100% 0, var(--brand-soft-2), transparent 70%), var(--panel); border: 1px solid var(--line); }
.pcard .verified { position: absolute; top: 14px; right: 14px; }
.pstat { text-align: center; padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.pstat b { display: block; font-size: 28px; letter-spacing: -.02em; } .pstat span { color: var(--muted); font-size: 13px; font-weight: 600; }
.pstat.glow { background: radial-gradient(300px 140px at 50% 120%, rgba(37, 99, 255, .35), transparent 70%), var(--panel); }
.divider-label { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 22px 0; }
.divider-label::before, .divider-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cert-tile { border-radius: var(--radius); background: var(--panel-2); border: 1px solid var(--line); padding: 12px; }
.cert-tile .inner { background: var(--panel); border-radius: 10px; padding: 16px; text-align: center; margin-bottom: 10px; }
.cert-tile .inner b { display: block; font-size: 16px; margin-top: 10px; }
.cert-tile .inner span { font-size: 12px; color: var(--muted); }
@media (max-width: 560px) {
  .topbar .wrap { gap: 10px; }
  .topbar [data-theme-toggle] { display: none; }
  .topbar .actions { gap: 6px; }
  .topbar .actions .btn.primary { height: 38px; padding: 0 14px; }
  .announce { font-size: 12px; gap: 6px; padding: 0 10px; text-align: center; }
}
