/* ==========================================================================
   VAF Compliance — KYT console
   Palette lifted from vaf.global design tokens (HSL, dark surface + teal).
   ========================================================================== */

:root {
  --bg:            hsl(0 0% 10%);
  --surface:       hsl(0 0% 8%);
  --card:          hsl(0 0% 13%);
  --card-hover:    hsl(0 0% 16%);
  --elevated:      hsl(0 0% 18%);
  --border:        hsl(0 0% 22%);
  --border-soft:   hsl(0 0% 17%);
  --fg:            hsl(0 0% 98%);
  --muted:         hsl(0 0% 65%);
  --faint:         hsl(0 0% 45%);

  --teal:          hsl(163 68% 55%);
  --teal-glow:     hsl(163 68% 65%);
  --teal-dim:      hsl(163 68% 55% / .12);

  --risk-low:      hsl(163 68% 55%);
  --risk-moderate: hsl(38 88% 58%);
  --risk-high:     hsl(1 76% 58%);
  --risk-undefined:hsl(0 0% 42%);

  /* vaf.global's header is light (bg-white/95) — its logo is black + teal,
     so the bar must be light for the wordmark to read at all. */
  --bar:           hsl(0 0% 100% / .95);
  --bar-border:    #E5E7EB;
  --bar-fg:        #111827;
  --bar-muted:     #4B5563;
  --bar-faint:     #6B7280;
  --bar-hover:     #F3F4F6;
  --teal-ink:      hsl(163 68% 33%);   /* teal that holds contrast on white */

  --radius:        .625rem;
  --radius-lg:     1rem;
  --shadow:        0 1px 2px hsl(0 0% 0% / .4), 0 8px 24px hsl(0 0% 0% / .28);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
button { font: inherit; color: inherit; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.shell { width: min(1180px, 100% - 3rem); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .86em; letter-spacing: -.01em; }
.is-hidden { display: none !important; }
.muted { color: var(--muted); }

/* ------------------------------------------------------------------ topbar */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--bar);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bar-border);
}
.topbar-inner {
  width: min(1180px, 100% - 3rem); margin-inline: auto;
  height: 68px; display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .875rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 30px; width: auto; display: block; }
.brand-divider { width: 1px; height: 22px; background: var(--bar-border); }
.brand-module { display: flex; flex-direction: column; line-height: 1.1; }
.brand-module strong { font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: var(--teal-ink); }
.brand-module em { font-size: .68rem; font-style: normal; color: var(--bar-faint); letter-spacing: .04em; }

.nav { display: flex; gap: .25rem; margin-left: auto; }
.nav-link {
  background: none; border: 0; cursor: pointer;
  padding: .5rem .875rem; border-radius: var(--radius);
  font-size: .875rem; font-weight: 500; color: var(--bar-muted);
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--bar-fg); background: var(--bar-hover); }
.nav-link.is-active { color: var(--bar-fg); background: var(--bar-hover); font-weight: 600; }

.topbar-meta { display: flex; align-items: center; }
.status-pill {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--bar-muted); padding: .35rem .7rem;
  border: 1px solid var(--bar-border); border-radius: 999px;
}
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-ink); box-shadow: 0 0 0 3px var(--teal-dim); }
.status-pill.is-down i { background: var(--risk-high); box-shadow: 0 0 0 3px hsl(1 76% 58% / .15); }

/* -------------------------------------------------------------------- view */

.view { display: none; padding-bottom: 5rem; }
.view.is-active { display: block; }

.hero { padding: 4.5rem 0 2.5rem; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -40% 0 auto 30%;
  height: 480px; pointer-events: none;
  background: radial-gradient(ellipse at center, hsl(163 68% 55% / .13), transparent 62%);
}
.hero .shell { position: relative; }
.eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1.125rem;
}
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; }
.lede { margin-top: 1.25rem; max-width: 58ch; color: var(--muted); font-size: 1.02rem; }

.page-head { padding: 3.25rem 0 1.75rem; }
.page-head h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
.page-head p { margin-top: .75rem; max-width: 70ch; color: var(--muted); }
.segmented.inline { margin-top: 1.5rem; display: inline-flex; }

/* ----------------------------------------------------------------- console */

.console-wrap { margin-top: .5rem; }
.console {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
}
.console-tabs { display: flex; border-bottom: 1px solid var(--border); background: hsl(0 0% 11%); }
.ctab {
  background: none; border: 0; cursor: pointer;
  padding: 1rem 1.5rem; font-size: .9rem; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.ctab:hover { color: var(--fg); }
.ctab.is-active { color: var(--fg); border-bottom-color: var(--teal); }
.tag {
  font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .12rem .4rem; border-radius: 4px; background: var(--elevated); color: var(--faint);
}

.console-body { padding: 1.75rem; display: grid; gap: 1.375rem; }
.field-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.375rem; }
.field { display: grid; gap: .5rem; }
.field label {
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
}
.hint { font-size: .8rem; color: var(--faint); }

.segmented {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .25rem;
  padding: .25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.seg {
  background: none; border: 0; cursor: pointer;
  padding: .55rem .75rem; border-radius: calc(var(--radius) - .25rem);
  font-size: .85rem; font-weight: 500; color: var(--muted);
  transition: background .15s, color .15s;
}
.seg:hover { color: var(--fg); }
.seg.is-active { background: var(--elevated); color: var(--fg); font-weight: 600; }

.input-wrap { position: relative; display: flex; }
.input {
  width: 100%; padding: .8rem 1rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--fg); font-family: var(--mono); font-size: .85rem;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: hsl(0 0% 34%); }
.input:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-dim); }
.ghost-btn {
  position: absolute; right: .4rem; top: 50%; transform: translateY(-50%);
  background: var(--elevated); border: 1px solid var(--border); cursor: pointer;
  padding: .3rem .6rem; border-radius: 6px; font-size: .75rem; font-weight: 500; color: var(--muted);
}
.ghost-btn:hover { color: var(--fg); border-color: var(--faint); }

.console-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: .375rem; flex-wrap: wrap;
}
.checkbox { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; font-size: .85rem; color: var(--muted); }
.checkbox input { accent-color: hsl(163 68% 55%); width: 15px; height: 15px; cursor: pointer; }
.checkbox em { font-style: normal; color: var(--faint); }

.btn-primary {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--teal); color: hsl(0 0% 8%); border: 0; cursor: pointer;
  padding: .75rem 1.5rem; border-radius: var(--radius);
  font-size: .9rem; font-weight: 700; letter-spacing: -.01em;
  transition: background .15s, transform .1s;
}
.btn-primary:hover:not(:disabled) { background: var(--teal-glow); }
.btn-primary:active:not(:disabled) { transform: translateY(1px); }
.btn-primary:disabled { opacity: .55; cursor: progress; }
.btn-primary.is-loading svg { display: none; }
.btn-primary.is-loading::after {
  content: ''; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid hsl(0 0% 8% / .3); border-top-color: hsl(0 0% 8%);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-error {
  padding: .75rem 1rem; border-radius: var(--radius);
  background: hsl(1 76% 58% / .1); border: 1px solid hsl(1 76% 58% / .3);
  color: hsl(1 80% 76%); font-size: .875rem;
}

.examples { display: flex; align-items: center; gap: .625rem; margin-top: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--faint); }
.example {
  background: var(--card); border: 1px solid var(--border-soft); cursor: pointer;
  padding: .35rem .7rem; border-radius: 999px; font-size: .78rem; color: var(--muted);
}
.example:hover { border-color: var(--teal); color: var(--fg); }

/* ----------------------------------------------------------------- results */

.result { margin-top: 2.5rem; display: grid; gap: 1.25rem; animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.verdict {
  display: flex; align-items: flex-start; gap: 1.25rem; padding: 1.375rem 1.5rem;
  border-radius: var(--radius-lg); border: 1px solid; background: var(--card);
}
.verdict-icon {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.1rem; font-weight: 800;
}
.verdict h3 { font-size: 1.05rem; }
.verdict p { margin-top: .3rem; color: var(--muted); font-size: .9rem; max-width: 78ch; }
.verdict-actions { margin-left: auto; display: flex; gap: .5rem; flex: none; }

.grade-low       { border-color: hsl(163 68% 55% / .35); background: hsl(163 68% 55% / .07); }
.grade-low .verdict-icon { background: hsl(163 68% 55% / .18); color: var(--risk-low); }
.grade-moderate  { border-color: hsl(38 88% 58% / .35); background: hsl(38 88% 58% / .07); }
.grade-moderate .verdict-icon { background: hsl(38 88% 58% / .18); color: var(--risk-moderate); }
.grade-high      { border-color: hsl(1 76% 58% / .38); background: hsl(1 76% 58% / .08); }
.grade-high .verdict-icon { background: hsl(1 76% 58% / .18); color: var(--risk-high); }
.grade-undefined { border-color: var(--border); }
.grade-undefined .verdict-icon { background: var(--elevated); color: var(--muted); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap;
  background: var(--elevated); border: 1px solid var(--border); cursor: pointer;
  padding: .55rem 1rem; border-radius: var(--radius); font-size: .82rem; font-weight: 600; color: var(--fg);
}
.btn-secondary:hover { background: var(--card-hover); border-color: var(--faint); }
.btn-secondary:disabled { opacity: .5; cursor: progress; }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.125rem; flex-wrap: wrap; }
.card-head h4 { font-size: .95rem; }
.card-head .sub { font-size: .8rem; color: var(--faint); }

.summary-grid { display: grid; grid-template-columns: 320px 1fr; gap: 1.25rem; align-items: stretch; }

.score-card { display: grid; place-items: center; text-align: center; gap: .5rem; }
.gauge { position: relative; width: 190px; height: 190px; }
.gauge svg { transform: rotate(-90deg); }
.gauge-value {
  position: absolute; inset: 0; display: grid; place-content: center; gap: .1rem;
}
.gauge-value b { font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.gauge-value span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.grade-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .8rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.grade-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-low { background: hsl(163 68% 55% / .13); color: var(--risk-low); }
.badge-moderate { background: hsl(38 88% 58% / .13); color: var(--risk-moderate); }
.badge-high { background: hsl(1 76% 58% / .13); color: var(--risk-high); }
.badge-undefined { background: var(--elevated); color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--card); padding: 1rem 1.125rem; }
.fact dt { font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.fact dd { margin: .4rem 0 0; font-size: .98rem; font-weight: 600; word-break: break-word; }
.fact dd.num { font-family: var(--mono); font-size: .88rem; font-weight: 500; }
.fact dd .unit { color: var(--faint); font-weight: 500; font-size: .8em; margin-left: .25rem; }

.identity { display: grid; gap: .875rem; }
.identity-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .7rem; border-radius: 999px; background: var(--elevated);
  border: 1px solid var(--border); font-size: .75rem; font-weight: 600; color: var(--muted);
}
.chip strong { color: var(--fg); font-weight: 600; }
.addr-line { display: flex; align-items: center; gap: .625rem; }
.addr-line code {
  font-family: var(--mono); font-size: .82rem; word-break: break-all;
  background: var(--surface); border: 1px solid var(--border-soft);
  padding: .45rem .7rem; border-radius: 6px; color: var(--fg);
}
.copy-btn { background: none; border: 0; cursor: pointer; color: var(--faint); padding: .25rem; border-radius: 5px; font-size: .75rem; }
.copy-btn:hover { color: var(--teal); }

/* exposure bar */
.exposure-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--surface); }
.exposure-bar span { transition: width .5s cubic-bezier(.4,0,.2,1); }
.exposure-legend { display: flex; gap: 1.5rem; margin-top: 1.125rem; flex-wrap: wrap; }
.legend-item { display: grid; gap: .15rem; }
.legend-item b { display: flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 600; color: var(--muted); }
.legend-item b i { width: 8px; height: 8px; border-radius: 2px; }
.legend-item span { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; padding-left: 1.05rem; }

/* breakdown */
.tier-block + .tier-block { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-soft); }
.tier-head { display: flex; align-items: center; gap: .625rem; margin-bottom: .875rem; }
.tier-head h5 { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tier-head .count { font-size: .72rem; color: var(--faint); }
.cat-row { display: grid; grid-template-columns: minmax(160px, 1.3fr) 1fr 84px; gap: 1rem; align-items: center; padding: .45rem 0; }
.cat-row .name { font-size: .875rem; }
.cat-row .track { height: 6px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.cat-row .track i { display: block; height: 100%; border-radius: 999px; }
.cat-row .pct { font-family: var(--mono); font-size: .8rem; text-align: right; color: var(--muted); }

/* tables */
.table-scroll { overflow-x: auto; margin: 0 -1.5rem -1.5rem; padding: 0 1.5rem 1.5rem; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th {
  text-align: left; padding: .625rem .875rem; font-size: .68rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
td { padding: .8rem .875rem; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover { background: var(--card-hover); }
td.num { font-family: var(--mono); font-size: .82rem; text-align: right; white-space: nowrap; }
td.num.zero { color: var(--faint); }
.entity-name { display: flex; align-items: center; gap: .625rem; font-weight: 600; }
.entity-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

.sanction-alert {
  display: flex; gap: .875rem; align-items: flex-start; padding: 1rem 1.25rem;
  border-radius: var(--radius); background: hsl(1 76% 58% / .1); border: 1px solid hsl(1 76% 58% / .35);
}
.sanction-alert strong { color: hsl(1 80% 74%); }
.sanction-alert p { font-size: .875rem; color: var(--muted); margin-top: .2rem; }

.empty { padding: 3rem 1.5rem; text-align: center; color: var(--faint); font-size: .9rem; }

.skeleton { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.sk { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.sk::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, hsl(0 0% 100% / .04), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.meta-strip {
  display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: .78rem; color: var(--faint);
  padding-top: .25rem;
}
.meta-strip b { color: var(--muted); font-weight: 500; }

/* trust bar */
.trust { margin-top: 4rem; }
.trust-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); overflow: hidden;
}
.trust-grid > div { background: var(--card); padding: 1.5rem; display: grid; gap: .3rem; }
.trust-grid strong { font-size: 1.5rem; font-weight: 800; color: var(--teal); letter-spacing: -.03em; }
.trust-grid span { font-size: .82rem; color: var(--muted); }

/* ------------------------------------------------------------------ footer */

.footer { border-top: 1px solid var(--border-soft); background: var(--surface); padding: 3rem 0 2.5rem; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; }
.footer-logo { height: 34px; margin-bottom: 1rem; }
.footer p { font-size: .82rem; color: var(--faint); max-width: 46ch; }
.footer-note p + p { margin-top: 1rem; }
.footer-note strong { color: var(--muted); }

/* ----------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .summary-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 700px) {
  .shell, .topbar-inner { width: min(1180px, 100% - 2rem); }
  .nav { margin-left: 0; order: 3; width: 100%; }
  .topbar-inner { height: auto; flex-wrap: wrap; padding: .875rem 0; gap: .875rem; }
  .topbar-meta { margin-left: auto; }
  .console-body { padding: 1.25rem; }
  .console-tabs { overflow-x: auto; }
  .verdict { flex-wrap: wrap; }
  .verdict-actions { margin-left: 0; width: 100%; }
  .cat-row { grid-template-columns: 1fr 64px; }
  .cat-row .track { grid-column: 1 / -1; }
}

@media print {
  .topbar, .footer, .console-wrap, .trust, .verdict-actions { display: none !important; }
  body { background: #fff; color: #111; }
  .card, .verdict { border-color: #ddd; background: #fff; box-shadow: none; }
}

.flag-chip {
  display: inline-block; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  vertical-align: middle; padding: .18rem .5rem; margin: .1rem .15rem .1rem 0; border-radius: 5px;
  font-size: .7rem; font-weight: 600;
  color: var(--flag); background: color-mix(in srgb, var(--flag) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--flag) 28%, transparent);
}

/* Grid items default to min-width:auto, which lets a wide table push the whole
   page sideways even though .table-scroll can scroll on its own. Pin the tracks. */
.result { grid-template-columns: minmax(0, 1fr); }
.result > *, .summary-grid > *, .card { min-width: 0; }

/* ══════════════════════════════════════════════ accounts & billing ══ */

.balance-chip {
  display: inline-flex; align-items: baseline; gap: .5rem; cursor: pointer;
  background: var(--bar-hover); border: 1px solid var(--bar-border);
  padding: .4rem .8rem; border-radius: 999px; color: var(--bar-fg);
}
.balance-chip:hover { border-color: var(--teal-ink); }
.balance-label {
  font-size: .65rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--bar-faint);
}
.balance-chip strong { font-size: .9rem; font-weight: 700; letter-spacing: -.01em; }
.balance-chip.is-low strong { color: var(--risk-high); }

.btn-signin {
  background: var(--teal-ink); color: #fff; border: 0; cursor: pointer;
  padding: .5rem 1.1rem; border-radius: var(--radius);
  font-size: .85rem; font-weight: 700;
}
.btn-signin:hover { background: hsl(163 68% 28%); }

.btn-signout {
  background: none; border: 1px solid var(--bar-border); cursor: pointer;
  padding: .45rem .85rem; border-radius: var(--radius);
  font-size: .8rem; font-weight: 500; color: var(--bar-muted);
}
.btn-signout:hover { color: var(--bar-fg); border-color: var(--bar-faint); }

.topbar-meta { gap: .625rem; }
.btn-price {
  font-size: .78rem; font-weight: 600; opacity: .68;
  padding-left: .5rem; margin-left: .1rem; border-left: 1px solid hsl(0 0% 8% / .25);
}

/* sign-in */
.signin-wrap { padding: 5rem 0 3rem; display: flex; justify-content: center; }
.signin-card {
  width: min(460px, 100%); background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.25rem; box-shadow: var(--shadow);
}
.signin-card h2 { font-size: 1.5rem; margin: .5rem 0 .75rem; }
.signin-card form { margin-top: 1.75rem; display: grid; gap: .5rem; }
.signin-card label, .card form label {
  font-size: .72rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint);
}
.signin-card input { font-family: Inter, system-ui, sans-serif; font-size: .92rem; }
.signin-card .btn-primary { margin-top: .5rem; justify-content: center; }
.signin-note {
  margin-top: 1.25rem; padding: .875rem 1rem; border-radius: var(--radius);
  background: hsl(163 68% 55% / .1); border: 1px solid hsl(163 68% 55% / .3);
  color: var(--teal); font-size: .875rem;
}
.signin-note.is-error {
  background: hsl(1 76% 58% / .1); border-color: hsl(1 76% 58% / .3); color: hsl(1 80% 76%);
}
.signin-terms {
  margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--border-soft);
  font-size: .8rem; color: var(--faint); line-height: 1.6;
}
.signin-terms strong { color: var(--muted); }

/* account */
.account-grid { display: grid; grid-template-columns: 320px 1fr; gap: 1.25rem; align-items: start; }
.balance-card { display: grid; gap: .2rem; }
.balance-card .sub {
  font-size: .7rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint);
}
.balance-card strong {
  font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; color: var(--teal);
}
.amount-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: 1.25rem; }
.preset {
  background: var(--surface); border: 1px solid var(--border); cursor: pointer;
  padding: .6rem .4rem; border-radius: var(--radius);
  font-size: .88rem; font-weight: 600; color: var(--muted);
}
.preset:hover { color: var(--fg); border-color: var(--faint); }
.preset.is-active { background: var(--teal-dim); border-color: var(--teal); color: var(--teal); }

.amount-field { position: relative; display: flex; align-items: center; }
.amount-field span {
  position: absolute; left: .9rem; color: var(--faint); font-size: .95rem; font-weight: 600;
}
.amount-field .input {
  padding-left: 1.9rem; font-family: Inter, system-ui, sans-serif;
  font-size: .95rem; font-weight: 600;
}
#topUpForm { display: grid; gap: .5rem; }
#topUpForm .btn-primary { margin-top: .75rem; justify-content: center; }

.ledger-amount { font-family: var(--mono); font-size: .84rem; text-align: right; white-space: nowrap; }
.ledger-amount.credit { color: var(--teal); }
.ledger-amount.debit { color: var(--muted); }
.kind-badge {
  display: inline-block; padding: .18rem .5rem; border-radius: 5px;
  font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: var(--elevated); color: var(--muted);
}

.gate {
  margin-top: 2.5rem; padding: 2rem; text-align: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.gate h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.gate p { color: var(--muted); font-size: .9rem; max-width: 52ch; margin: 0 auto 1.25rem; }

@media (max-width: 900px) {
  .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .amount-presets { grid-template-columns: repeat(2, 1fr); }
}

/* Shown when the provider cannot serve screenings — the customer is stopped
   here, before any charge is attempted. */
.service-notice {
  display: flex; gap: .875rem; align-items: flex-start;
  margin-bottom: 1.25rem; padding: 1rem 1.25rem; border-radius: var(--radius);
  background: hsl(38 88% 58% / .08); border: 1px solid hsl(38 88% 58% / .32);
}
.service-notice .dot {
  width: 8px; height: 8px; margin-top: .45rem; flex: none; border-radius: 50%;
  background: var(--risk-moderate); box-shadow: 0 0 0 3px hsl(38 88% 58% / .18);
}
.service-notice strong { color: var(--risk-moderate); font-size: .9rem; }
.service-notice p { margin-top: .25rem; font-size: .85rem; color: var(--muted); }
