/* ET Verify: one stylesheet for the site and the dashboard. Mobile first; light and dark follow the device. */
:root {
  --ink: #0b1220; --ink-2: #39465a; --muted: #6b778b; --bg: #f4f6fb;
  --card: #ffffff; --glass: rgba(255, 255, 255, .72); --sunken: #f1f4f9;
  --line: rgba(15, 23, 42, .08); --line-2: rgba(15, 23, 42, .14);
  --brand: #c2410c; --brand-text: #c2410c; --brand-2: #f97316; --brand-soft: rgba(249, 115, 22, .11); --brand-ink: #7c2d12;
  --grad: linear-gradient(135deg, #fb923c 0%, #ea580c 45%, #c2410c 100%);
  --gold: #f59e0b; --gold-soft: rgba(245, 158, 11, .14);
  --ok: #15803d; --ok-soft: rgba(34, 197, 94, .12); --warn: #b45309; --warn-soft: rgba(245, 158, 11, .14);
  --bad: #c0262d; --bad-soft: rgba(239, 68, 68, .1); --info: #2563eb; --info-soft: rgba(59, 130, 246, .1);
  --glow-1: rgba(249, 115, 22, .16); --glow-2: rgba(245, 158, 11, .09); --glow-3: rgba(99, 102, 241, .07);
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 1px rgba(15, 23, 42, .03);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -6px rgba(15, 23, 42, .1);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 24px 48px -12px rgba(15, 23, 42, .18);
  --ring: 0 0 0 4px rgba(249, 115, 22, .2);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, .7);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef2f8; --ink-2: #c4cedc; --muted: #8794a8; --bg: #060a13;
    --card: #0d1422; --glass: rgba(14, 21, 36, .7); --sunken: #0a101c;
    --line: rgba(148, 163, 184, .11); --line-2: rgba(148, 163, 184, .2);
    --brand-text: #fb923c; --brand-soft: rgba(251, 146, 60, .12); --brand-ink: #fed7aa;
    --gold-soft: rgba(245, 158, 11, .16);
    --ok: #4ade80; --ok-soft: rgba(74, 222, 128, .12); --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .13);
    --bad: #f87171; --bad-soft: rgba(248, 113, 113, .12); --info: #60a5fa; --info-soft: rgba(96, 165, 250, .13);
    --glow-1: rgba(249, 115, 22, .17); --glow-2: rgba(245, 158, 11, .07); --glow-3: rgba(99, 102, 241, .1);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 30px -8px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 60px -12px rgba(0, 0, 0, .7);
    --ring: 0 0 0 4px rgba(251, 146, 60, .22);
    --highlight: inset 0 1px 0 rgba(255, 255, 255, .05);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh; color: var(--ink);
  background:
    radial-gradient(900px 520px at 8% -8%, var(--glow-1), transparent 62%),
    radial-gradient(760px 460px at 100% 0%, var(--glow-2), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, var(--glow-3), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  font: 15.5px/1.55 Inter, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: rgba(249, 115, 22, .25); }
a { color: var(--brand-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.02em; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, "Cascadia Code", SFMono-Regular, Menlo, Consolas, monospace; font-size: .94em; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 10px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 12px;
  background: var(--grad); color: #fff; font-family: inherit; font-size: 14.5px; font-weight: 700; letter-spacing: .005em;
  cursor: pointer; text-decoration: none !important; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 16px -4px rgba(234, 88, 12, .55);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 22px -6px rgba(234, 88, 12, .6); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 17px; height: 17px; }
.btn.secondary { background: var(--card); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm), var(--highlight); }
.btn.secondary:hover { background: var(--sunken); filter: none; }
.btn.danger { background: var(--card); color: var(--bad); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn.danger:hover { background: var(--bad-soft); border-color: transparent; filter: none; }
.btn.light { background: #fff; color: #0b1220; }
.btn.small { min-height: 36px; padding: 0 13px; font-size: 13px; border-radius: 10px; gap: 6px; }
.btn.small .icon { width: 15px; height: 15px; }
.btn.block { width: 100%; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > span:first-child { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 12.5px; }
.input {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--card); color: var(--ink); font-family: inherit; font-size: 16px; outline: none;
  box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.input::placeholder { color: var(--muted); opacity: .75; }
.input:hover { border-color: rgba(249, 115, 22, .45); }
.input:focus { border-color: var(--brand-2); box-shadow: var(--ring); }
select.input { padding-right: 8px; cursor: pointer; }
.control { position: relative; display: block; }
.control > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; transition: color .15s; }
.control > .input { padding-left: 42px; }
.control:focus-within > .icon { color: var(--brand-text); }
.code-input { text-align: center; font: 800 28px ui-monospace, "Cascadia Code", Menlo, monospace; letter-spacing: 12px; min-height: 60px; background: var(--sunken); }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; border: 1px solid var(--line); background: var(--card); }
.alert.error { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.alert.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.alert.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.alert .icon { margin-top: 2px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

/* ---------- Cards and layout ---------- */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.card {
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--glass); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow), var(--highlight);
}
.card-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 15.5px; font-weight: 700; }
.card-title i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-text); }
.card-title .icon { width: 16px; height: 16px; }
.grid > div > .card-title, .app-main > .card-title { margin-top: 4px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 12px; color: var(--muted); font-size: 14px; text-align: center; border: 1px dashed var(--line-2); border-radius: 14px; }
.empty .icon { width: 26px; height: 26px; opacity: .7; }
td .empty { border: 0; padding: 18px 0; }

/* ---------- Top bar (site) ---------- */
.site-nav { position: sticky; top: 0; z-index: 10; background: var(--glass); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border-bottom: 1px solid var(--line); }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink) !important; font-weight: 800; font-size: 17.5px; letter-spacing: -.02em; text-decoration: none !important; }
.logo-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--grad); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 6px 14px -4px rgba(234, 88, 12, .6); }
.logo-mark .icon { width: 19px; height: 19px; stroke-width: 2.1; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 10px; }
.nav-links a:not(.btn):hover { color: var(--ink); text-decoration: none; background: var(--brand-soft); }
.nav-links a:not(.btn) .icon { width: 16px; height: 16px; color: var(--muted); }
.nav-links .btn { margin-left: 4px; }
.nav-links .hide-sm { display: none; }

/* ---------- Home: the banks ---------- */
body:has(.home) { display: flex; flex-direction: column; }
.home { flex: 1; display: flex; align-items: center; }
.section { padding: 48px 0; width: 100%; }
.section h2 { margin: 0 0 10px; font-size: clamp(26px, 5vw, 38px); line-height: 1.12; letter-spacing: -.03em; }
.section .sub { margin: 0 0 30px; color: var(--muted); max-width: 640px; }
.head-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 17px; background: var(--grad); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 16px 32px -10px rgba(234, 88, 12, .7); }
.head-icon .icon { width: 26px; height: 26px; }
.section-head { max-width: 680px; margin: 0 auto 30px; text-align: center; }
.section-head .sub { margin: 0 auto; }
.section-head h2 { background: linear-gradient(180deg, var(--ink) 30%, color-mix(in srgb, var(--ink) 70%, var(--brand-2))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head h1.home-title { margin: 0 0 12px; font-size: clamp(30px, 5.5vw, 48px); line-height: 1.08; letter-spacing: -.035em; background: linear-gradient(180deg, var(--ink) 30%, color-mix(in srgb, var(--ink) 70%, var(--brand-2))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.banks { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 980px; margin: 0 auto; }
.bank-chip {
  position: relative; display: flex; align-items: center; gap: 12px; flex: 1 1 100%; max-width: 100%;
  padding: 14px 16px 14px 14px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow), var(--highlight); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.bank-chip:hover { transform: translateY(-2px); border-color: rgba(249, 115, 22, .35); box-shadow: var(--shadow-lg), var(--highlight); }
.bank-chip .bank-logo { width: 46px; height: 46px; padding: 4px; border-radius: 13px; }
.bank-chip .bank-initial { font-size: 18px; }
.bank-name { display: grid; flex: 1; min-width: 0; gap: 2px; }
.bank-name strong { font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.bank-name small { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; color: var(--warn); }
.bank-name small.live { color: var(--ok); }
.bank-name small.live i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.bank-name small.live i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: currentColor; opacity: .25; animation: et-pulse 2s ease-out infinite; }
@keyframes et-pulse { 0% { transform: scale(.5); opacity: .45; } 100% { transform: scale(1.6); opacity: 0; } }
.bank-chip > .icon { width: 30px; height: 30px; padding: 7px; border-radius: 50%; color: var(--ok); background: var(--ok-soft); stroke-width: 2.4; }
.bank-chip.soon > .icon { color: var(--warn); background: var(--warn-soft); stroke-width: 2; }
.bank-chip.soon .bank-logo { filter: grayscale(.5); opacity: .85; }
.bank-chip.soon { border-style: dashed; border-color: var(--line-2); }

/* Footer */
.site-footer { padding: 22px 0 30px; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 60%, transparent); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: center; }
.site-footer .icon { width: 15px; height: 15px; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.foot-brand .icon { color: var(--brand-text); }
.foot-links { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a, .foot-links span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }

/* ---------- Sign in / sign up ---------- */
.auth { display: grid; min-height: 100vh; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px 44px; }
.auth-top { margin-bottom: 22px; }
.auth-box {
  position: relative; width: 100%; max-width: 440px; padding: 30px 22px 26px;
  border: 1px solid var(--line); border-radius: 24px; background: var(--glass);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--shadow-lg), var(--highlight);
}
.auth-box::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--brand-2), var(--gold), transparent); opacity: .8; }
.auth-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 16px; border-radius: 15px; background: var(--brand-soft); color: var(--brand-text); box-shadow: inset 0 0 0 1px rgba(249, 115, 22, .22); }
.auth-icon .icon { width: 24px; height: 24px; }
.auth-box h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.03em; line-height: 1.2; }
.auth-box > p { margin: 0 0 24px; color: var(--muted); font-size: 15px; }
.auth-box .btn.block { margin-top: 4px; min-height: 50px; font-size: 15px; }
.auth-alt { margin-top: 20px; text-align: center; color: var(--muted); font-size: 14.5px; }
.auth-box .auth-alt { margin-top: 16px; }
.auth-alt a { font-weight: 650; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -6px 0 18px; font-size: 13.5px; }
.row-between a { font-weight: 600; }

/* Plans on the sign-up page */
.plan-picks { display: grid; gap: 8px; }
.plan-pick { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, background-color .15s; }
.plan-pick:hover { border-color: rgba(249, 115, 22, .45); }
.plan-pick:has(input:checked) { border-color: var(--brand-2); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(249, 115, 22, .15); }
.plan-pick input { position: absolute; opacity: 0; pointer-events: none; }
.plan-pick:has(input:focus-visible) { box-shadow: var(--ring); }
.plan-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; background: var(--sunken); color: var(--muted); transition: background .15s, color .15s; }
.plan-pick:has(input:checked) .plan-icon { background: var(--grad); color: #fff; }
.plan-icon .icon { width: 17px; height: 17px; }
.plan-pick span { flex: 1; min-width: 0; display: grid; } .plan-pick small { color: var(--muted); font-size: 12.5px; }
.plan-pick b { white-space: nowrap; font-size: 14.5px; }

/* ---------- Dashboard ---------- */
.app { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; min-height: 100vh; }
.app-top { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; background: var(--glass); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border-bottom: 1px solid var(--line); }
.top-user { display: flex; align-items: center; gap: 10px; margin: 0; min-width: 0; }
.top-name { display: grid; font-size: 13.5px; font-weight: 650; line-height: 1.25; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-name small { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 0 0 2px var(--card), 0 0 0 3px rgba(249, 115, 22, .35); }
.avatar.small { width: 30px; height: 30px; font-size: 12.5px; box-shadow: none; }
.avatar.large { width: 52px; height: 52px; font-size: 20px; border-radius: 16px; box-shadow: none; }
.app-nav { display: flex; gap: 4px; overflow-x: auto; padding: 8px 12px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.app-nav::-webkit-scrollbar { display: none; }
.app-nav a { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px 7px 7px; border-radius: 12px; color: var(--ink-2); font-weight: 600; font-size: 14px; white-space: nowrap; text-decoration: none !important; transition: background-color .15s, color .15s; }
.app-nav a i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--sunken); color: var(--muted); transition: background .15s, color .15s; }
.app-nav a .icon { width: 16px; height: 16px; }
.app-nav a:hover { background: var(--brand-soft); color: var(--ink); }
.app-nav a:hover i { color: var(--brand-text); }
.app-nav a.active { background: var(--brand-soft); color: var(--ink); }
.app-nav a.active i { background: var(--grad); color: #fff; box-shadow: 0 6px 14px -6px rgba(234, 88, 12, .8); }
.nav-heading { display: none; }
.app-main { padding: 22px 16px 56px; width: 100%; min-width: 0; max-width: 1060px; margin: 0 auto; }
.page-title { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 22px; }
.page-title h1 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.title-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--grad); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 10px 22px -8px rgba(234, 88, 12, .7); }
.title-icon .icon { width: 21px; height: 21px; }

/* Numbers */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { position: relative; display: block; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow), var(--highlight); overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle, var(--brand-soft), transparent 70%); pointer-events: none; }
.stat-icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-text); }
.stat-icon .icon { width: 18px; height: 18px; }
.stat-icon.ok { background: var(--ok-soft); color: var(--ok); } .stat-icon.warn { background: var(--warn-soft); color: var(--warn); }
.stat-icon.bad { background: var(--bad-soft); color: var(--bad); } .stat-icon.info { background: var(--info-soft); color: var(--info); }
.stat span { display: block; color: var(--muted); font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.stat strong { display: block; margin-top: 2px; font-size: 28px; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat strong small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.stat-link { color: inherit; text-decoration: none !important; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.stat-link:hover { transform: translateY(-2px); border-color: rgba(249, 115, 22, .35); box-shadow: var(--shadow-lg), var(--highlight); }

.status-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 18px; }
.status-card .status-text { flex: 1 1 240px; min-width: 0; }
.status-icon { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 auto; border-radius: 16px; }
.status-icon .icon { width: 24px; height: 24px; }
.status-icon.ok { background: var(--ok-soft); color: var(--ok); } .status-icon.warn { background: var(--warn-soft); color: var(--warn); } .status-icon.bad { background: var(--bad-soft); color: var(--bad); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; vertical-align: 1px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill:has(.icon)::before { display: none; }
.pill .icon { width: 13px; height: 13px; stroke-width: 2.4; vertical-align: -2px; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); } .pill.info { background: var(--info-soft); color: var(--info); }

/* Lists */
.list { display: grid; gap: 10px; }
.list-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); box-shadow: var(--shadow-sm); transition: border-color .15s; }
.list-row:hover { border-color: var(--line-2); }
.list-row .main { min-width: 0; flex: 1 1 220px; }
.list-row .main strong { display: block; overflow-wrap: anywhere; }
.list-row .main small { display: block; color: var(--muted); font-size: 13px; }
.list-row .main.with-icon { display: flex; align-items: center; gap: 12px; }
.list-row .main.with-icon > span { display: grid; min-width: 0; gap: 1px; }
.row-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; background: var(--brand-soft); color: var(--brand-text); }
.row-icon.off { background: var(--sunken); color: var(--muted); }
.row-icon .icon { width: 19px; height: 19px; }
.result-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.result-name .icon { color: var(--muted); }
.card .list-row { box-shadow: none; background: var(--card); }

.secret-box { padding: 14px; border-radius: 12px; border: 1px dashed var(--brand-2); background: var(--brand-soft); overflow-wrap: anywhere; }
.secret-box code { font-size: 14px; }
.inline-card { display: grid; gap: 4px; }
.inline-card .field { margin-bottom: 12px; }
.inline-card .btn { justify-self: start; }

/* Tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { position: sticky; top: 0; background: var(--sunken); color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
tbody tr { transition: background-color .12s; }
tbody tr:hover { background: var(--brand-soft); }
tr:last-child td { border-bottom: 0; }
.who { display: inline-flex; align-items: center; gap: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filters .input { min-height: 42px; width: auto; flex: 1 1 180px; font-size: 15px; }
.filters .control.grow { flex: 1 1 220px; }
.filters .control .input { width: 100%; }
.filters .btn { min-height: 42px; }
.inline-form { display: inline; }
.inline-form + .inline-form { margin-left: 4px; }

/* ---------- Admin ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.lookup-link { font-weight: 650; }
.lookup-detail-shell { max-width: 940px; }
.lookup-detail-card { display: grid; gap: 20px; }
.lookup-detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.lookup-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lookup-title h2 { margin: 3px 0 0; font-size: 23px; }
.lookup-eyebrow, .detail-label { display: block; color: var(--muted); font-size: 11.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.lookup-status-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 14px; }
.lookup-status-icon.ok { color: var(--ok); background: var(--ok-soft); }
.lookup-status-icon.bad { color: var(--bad); background: var(--bad-soft); }
.lookup-status-icon.info { color: var(--info); background: var(--info-soft); }
.lookup-status-icon .icon { width: 22px; height: 22px; stroke-width: 2.3; }
.lookup-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lookup-summary-item { display: grid; gap: 4px; min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--sunken); }
.lookup-summary-item strong { overflow-wrap: anywhere; }
.lookup-summary-item small { color: var(--muted); font-size: 11.5px; overflow-wrap: anywhere; }
.lookup-facts { padding-top: 2px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.detail-grid > div { display: grid; gap: 3px; min-width: 0; }
.detail-grid strong { overflow-wrap: anywhere; }
.detail-grid small { margin-top: 2px; }
.copy-field { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.copy-field strong { overflow-wrap: anywhere; }
.copy-button { padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--card); color: var(--brand-text); font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.copy-button:hover { border-color: var(--brand-text); background: var(--brand-soft); }
.copy-button.copied { color: var(--ok); border-color: var(--ok); }
.receipt-details { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--sunken); }
.receipt-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; color: var(--ink); cursor: pointer; list-style: none; }
.receipt-details > summary::-webkit-details-marker { display: none; }
.receipt-details > summary > span:first-child { display: grid; gap: 3px; }
.receipt-details > summary strong { font-size: 14px; }
.receipt-details > summary small { color: var(--muted); font-size: 12px; }
.receipt-chevron { color: var(--muted); transition: transform .15s ease; }
.receipt-details[open] .receipt-chevron { transform: rotate(180deg); }
.receipt-details-body { padding: 0 16px 16px; }
.lookup-detail-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 2px; border-top: 1px solid var(--line); }
.lookup-detail-footer .muted { font-size: 12px; }
.page-intro { margin: -8px 0 18px; max-width: 760px; }
.group-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 10px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.group-label a { display: inline-flex; align-items: center; gap: 4px; text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 650; }
.group-label a .icon { width: 15px; height: 15px; }
.nav-count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 11.5px; font-weight: 800; text-align: center; line-height: 1.6; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.row-actions .inline-form + .inline-form { margin-left: 0; }
.list-summary { margin: 0 0 10px; color: var(--muted); font-size: 13.5px; }
.card-note { margin: -6px 0 12px; font-size: 13.5px; }
.card.flush { padding-bottom: 8px; }
.soon { color: var(--warn); font-weight: 700; }

/* "⋯" menu for rarely used actions */
.more-menu { position: relative; display: inline-block; }
.more-menu > summary { list-style: none; min-width: 36px; padding: 0 10px; font-size: 16px; letter-spacing: 1px; }
.more-menu > summary::-webkit-details-marker { display: none; }
.more-pop { position: absolute; right: calc(100% + 6px); top: 50%; transform: translateY(-50%); z-index: 4; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: var(--shadow-lg); }
.more-pop .btn { width: 100%; justify-content: flex-start; }

/* Needs your attention */
.attention { margin-bottom: 6px; }
.todo-list { display: grid; gap: 8px; }
.todo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.todo-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px; }
.todo-icon.warn { background: var(--warn-soft); color: var(--warn); } .todo-icon.bad { background: var(--bad-soft); color: var(--bad); } .todo-icon.info { background: var(--info-soft); color: var(--info); }
.todo-main { flex: 1 1 220px; min-width: 0; display: grid; gap: 1px; }
.todo-main small { color: var(--muted); font-size: 13px; }
.all-clear { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--ok-soft); color: var(--ok); font-weight: 650; }

/* Results as bars */
.result-bars { display: grid; gap: 14px; }
.result-bar { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; color: inherit; text-decoration: none !important; }
.result-bar .result-count { font-weight: 750; font-variant-numeric: tabular-nums; }
.result-bar .result-count small { color: var(--muted); font-weight: 600; }
.result-bar .bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--sunken); overflow: hidden; }
.result-bar .fill { display: block; height: 100%; border-radius: 99px; }
.result-bar .fill.ok { background: var(--ok); } .result-bar .fill.bad { background: var(--bad); } .result-bar .fill.info { background: var(--info); }
.result-bar:hover .result-name { color: var(--brand-text); }

/* A table inside a card, without its own frame */
.table-plain { overflow-x: auto; margin: 0 -22px; }
.table-plain th { background: transparent; white-space: normal; letter-spacing: .04em; }
.table-plain td:first-child, .table-plain th:first-child { padding-left: 22px; }
.table-plain tr:last-child td { border-bottom: 0; }
.table-plain td:last-child, .table-plain th:last-child { padding-right: 22px; }
.table-plain th, .table-plain td { padding-left: 10px; padding-right: 10px; }
.table-plain .bank-cell { white-space: normal; }

/* Status chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); color: var(--ink-2); font-size: 13.5px; font-weight: 650; text-decoration: none !important; transition: background-color .15s, border-color .15s; }
.chip b { min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--sunken); color: var(--muted); font-size: 12px; text-align: center; }
.chip:hover { border-color: rgba(249, 115, 22, .45); }
.chip.active { background: var(--brand-soft); border-color: var(--brand-2); color: var(--ink); }
.chip.active b { background: var(--grad); color: #fff; }
.chip.attention b { background: var(--gold); color: #fff; }

/* Tables: stacked cells and numbers */
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.stack small, td small.muted { display: block; font-size: 12.5px; }
td.stack strong { font-weight: 650; }
td.stack small { white-space: nowrap; }
.plan-line { display: block; margin-top: 6px; }
.plan-line strong { font-size: 13.5px; }
.who small { display: block; font-size: 12.5px; }
.table-cards td { white-space: normal; }
.table-cards td.nowrap, .table-cards .pill { white-space: nowrap; }
.actions-cell { text-align: right; white-space: nowrap; width: 1%; }
.actions-cell .row-actions { flex-wrap: nowrap; }
.actions-cell .row-actions { display: inline-flex; justify-content: flex-end; }

@media (max-width: 759px) {
  /* On phones each table row becomes a small card. */
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .table-cards tr:last-child { border-bottom: 0; }
  .table-cards td { padding: 4px 0; border: 0; white-space: normal; text-align: left; }
  .table-cards td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
  .table-cards td.num { text-align: left; }
  .table-cards .actions-cell { padding-top: 8px; width: 100%; white-space: normal; text-align: left; }
  .table-cards .actions-cell .row-actions { flex-wrap: wrap; }
  .table-cards tbody tr:hover { background: transparent; }
  .detail-grid { grid-template-columns: 1fr; }
  .lookup-detail-header { align-items: stretch; flex-direction: column; }
  .lookup-detail-header > .btn { align-self: flex-start; }
  .lookup-summary { grid-template-columns: 1fr; }
  .lookup-detail-footer { align-items: flex-start; flex-direction: column; }
}

/* One merchant */
.merchant-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.merchant-head .status-text { flex: 1 1 260px; min-width: 0; }
.head-line { margin-bottom: 6px; }
.head-contact { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; font-weight: 600; }
.head-contact span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.head-contact .icon { width: 15px; height: 15px; color: var(--muted); }
.head-facts { margin-top: 4px; font-size: 13.5px; }
.plan-pay .field { margin-bottom: 0; }
.plan-pay .plan-limits { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.inline-control { display: flex; gap: 8px; }
.inline-control .input { flex: 1 1 auto; min-width: 0; }
.inline-control .btn { flex: 0 0 auto; }

/* Plans */
.plan-name > span { display: grid; gap: 1px; }
.plan-name small { font-size: 12.5px; }
.edit-cue { display: inline-flex; align-items: center; gap: 5px; color: var(--brand-text); font-size: 13px; font-weight: 650; }
.edit-cue .icon { width: 15px; height: 15px; }
.plan-card[open] .edit-cue { visibility: hidden; }

/* Bank endpoints: one card per bank, endpoints in the order they are tried */
.endpoint-editor { margin-bottom: 18px; padding: 0; overflow: hidden; }
.endpoint-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.endpoint-bank { margin-bottom: 14px; padding: 0; overflow: hidden; }
.endpoint-bank-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.endpoint-bank-head .bank-logo { width: 40px; height: 40px; border-radius: 12px; padding: 3px; }
.endpoint-bank-head strong { font-size: 16px; }
.endpoint-bank .empty { margin: 14px 18px; }
.endpoint-rows { display: grid; }
.endpoint-row { display: flex; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.endpoint-row:last-child { border-bottom: 0; }
.endpoint-row.dim .endpoint-body > :not(.row-actions) { opacity: .7; }
.order { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; background: var(--grad); color: #fff; font-size: 13px; font-weight: 800; }
.order.off { background: var(--sunken); color: var(--muted); }
.endpoint-body { flex: 1; min-width: 0; display: grid; gap: 6px; }
.endpoint-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.endpoint-url { display: block; padding: 7px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 9px; background: var(--sunken); color: var(--ink-2); font-size: 12.5px; }
.endpoint-meta { color: var(--muted); font-size: 13px; }
.endpoint-test { display: inline-block; }
.endpoint-test > summary { list-style: none; }
.endpoint-test > summary::-webkit-details-marker { display: none; }
.endpoint-test[open] { display: block; flex-basis: 100%; }
.endpoint-test[open] > summary { margin-bottom: 8px; }
.endpoint-test form { display: flex; flex-wrap: wrap; gap: 8px; }
.endpoint-test .input { flex: 1 1 240px; min-height: 38px; }
.archived { border-top: 1px solid var(--line); }
.archived > summary { padding: 10px 18px; color: var(--muted); font-size: 13.5px; font-weight: 650; cursor: pointer; }

/* Receiving accounts */
.bank-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.bank-title { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 17px; }
.bank-title .bank-logo { width: 40px; height: 40px; border-radius: 12px; padding: 3px; }

/* Bank logos (src/Verifiers/<id>.png, served at /banks/<id>.png); the first letter when a bank has none. */
.bank-logo { width: 28px; height: 28px; flex: 0 0 auto; padding: 2px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 2px 6px -2px rgba(15, 23, 42, .18); object-fit: contain; }
.bank-initial { display: inline-grid; place-items: center; padding: 0; background: var(--brand-soft); color: var(--brand-text); font-size: 13px; font-weight: 800; }
.bank-row { display: flex; align-items: center; gap: 12px; } .bank-row > span { display: grid; min-width: 0; }
.bank-row small { color: var(--muted); }
.bank-cell { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.check .bank-logo { width: 22px; height: 22px; border-radius: 6px; padding: 1px; }

/* Admin plans */
.plan-card { margin-bottom: 12px; padding: 0; overflow: hidden; }
.plan-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; cursor: pointer; list-style: none; transition: background-color .15s; }
.plan-summary:hover { background: var(--brand-soft); }
.plan-summary::-webkit-details-marker { display: none; }
.plan-name { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.plan-name .row-icon { width: 36px; height: 36px; border-radius: 11px; }
.plan-card[open] .plan-summary { border-bottom: 1px solid var(--line); }
.plan-form { padding: 18px; }
.checks-row { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 10px 0 2px; }
.plan-limits { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 18px; color: var(--ink-2); font-size: 14px; }
.plan-limits span { display: inline-flex; gap: 6px; align-items: center; } .plan-limits .icon { color: var(--brand-text); }

/* Docs */
.docs h2 { margin-top: 30px; font-size: 20px; } .docs h3 { font-size: 16px; margin-top: 22px; }
.docs h2:first-of-type { margin-top: 22px; }
.docs pre { padding: 16px; border-radius: 14px; background: #0a0f1a; color: #e2e8f0; border: 1px solid rgba(148, 163, 184, .14); overflow-x: auto; font: 13px/1.65 ui-monospace, "Cascadia Code", Menlo, monospace; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.docs code { font-family: ui-monospace, "Cascadia Code", Menlo, monospace; font-size: .92em; }
.docs p code, .docs li code { padding: 1px 6px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-ink); }
.docs li { margin-bottom: 6px; }

/* ---------- Wider screens ---------- */
@media (min-width: 560px) {
  .bank-chip { flex: 0 1 calc(50% - 7px); }
  .auth-box { padding: 36px 34px 30px; }
}
@media (min-width: 720px) {
  .nav-links .hide-sm { display: inline-flex; }
  .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .bank-chip { flex: 0 1 300px; }
  .section { padding: 64px 0; }
}
@media (min-width: 960px) {
  .app { grid-template-columns: 260px minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .app-top { grid-column: 1 / -1; padding: 12px 24px; }
  .app-nav { position: sticky; top: 63px; align-self: start; height: calc(100vh - 63px); flex-direction: column; overflow-y: auto; border-bottom: 0; border-right: 1px solid var(--line); padding: 18px 14px; gap: 2px; background: color-mix(in srgb, var(--glass) 60%, transparent); }
  .nav-heading { display: block; padding: 14px 12px 6px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
  .nav-heading:first-child { padding-top: 0; }
  .app-nav a.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
  .app-main { padding: 32px 36px 64px; }
}
@media (max-width: 479px) {
  .top-name { display: none; }
  .hide-xs { display: none; }
  .app-top .btn.small { padding: 0 10px; }
  .site-nav .logo { font-size: 16px; }
  .nav-links a:not(.btn) { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Laptops: a slimmer sidebar leaves room for the tables. */
@media (min-width: 960px) and (max-width: 1199px) {
  .app { grid-template-columns: 220px minmax(0, 1fr); }
  .app-main { padding: 28px 24px 56px; }
}
@media (max-width: 599px) {
  .table-plain th, .table-plain td { padding-left: 6px; padding-right: 6px; font-size: 13px; }
  .table-plain .bank-logo { width: 22px; height: 22px; }
  .table-plain .bank-cell { gap: 6px; font-size: 12.5px; }
  .table-plain td:first-child, .table-plain th:first-child { padding-left: 18px; }
  .table-plain td:last-child, .table-plain th:last-child { padding-right: 18px; }
}

/* ---------- Billing: buy or renew a plan (orange accent, scoped by .billing-orange) ---------- */
.billing-orange { --billing-accent: #f97316; --billing-accent-dark: #c2410c; --billing-soft: rgba(249, 115, 22, .12); --billing-line: rgba(249, 115, 22, .35); }
@media (prefers-color-scheme: dark) { .billing-orange { --billing-accent-dark: #fb923c; --billing-soft: rgba(251, 146, 60, .14); } }
.billing-shell { display: grid; gap: 16px; }
.billing-shell > .group-label { margin: 10px 0 -4px; }
.eyebrow { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.billing-orange a:not(.btn) { color: var(--billing-accent-dark); }
.billing-orange .input:focus { border-color: var(--billing-accent); box-shadow: 0 0 0 4px var(--billing-soft); }
.billing-primary { background: linear-gradient(135deg, #fb923c, #ea580c 55%, #c2410c); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 16px -4px rgba(234, 88, 12, .5); }
.billing-primary:hover { filter: brightness(1.06); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 22px -6px rgba(234, 88, 12, .55); }
.billing-note { margin: -6px 0 0; font-size: 13.5px; }

/* The plan they have */
.billing-current { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.billing-current > div { flex: 1 1 220px; min-width: 0; }
.billing-current h2 { margin: 2px 0 2px; font-size: 20px; }
.billing-current p { margin: 0; font-size: 14px; }
.billing-current-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; border-radius: 14px; background: var(--billing-soft); color: var(--billing-accent-dark); }
.billing-current-icon .icon { width: 23px; height: 23px; }
.billing-open { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-color: var(--billing-line); background: linear-gradient(135deg, var(--billing-soft), transparent 70%), var(--glass); }
.billing-open > div { display: grid; gap: 2px; min-width: 0; }
.billing-open small { font-size: 13px; }

/* Plans to buy */
.billing-plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.billing-plan-card { display: flex; flex-direction: column; gap: 10px; }
.billing-plan-top { display: flex; align-items: center; gap: 10px; }
.billing-plan-top h3 { margin: 0; font-size: 17px; }
.billing-plan-top p { margin: 1px 0 0; color: var(--muted); font-size: 13.5px; }
.billing-plan-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--billing-accent-dark); background: var(--billing-soft); }
.billing-plan-icon .icon { width: 19px; height: 19px; }
.billing-price { color: var(--billing-accent-dark); font-size: 26px; letter-spacing: -.02em; }
.billing-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; color: var(--ink-2); font-size: 14px; }
.billing-features li { display: flex; align-items: center; gap: 7px; }
.billing-features .icon { width: 15px; height: 15px; color: var(--ok); }
.bank-choices { display: grid; gap: 6px; margin: 4px 0 4px; padding: 0; border: 0; }
.bank-choices legend { margin-bottom: 6px; padding: 0; color: var(--ink-2); font-size: 13px; font-weight: 650; }
.bank-choice { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); cursor: pointer; font-size: 14px; font-weight: 600; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.bank-choice input { position: absolute; opacity: 0; pointer-events: none; }
.bank-choice span { flex: 1; }
.bank-choice > .icon { width: 18px; height: 18px; padding: 2px; border-radius: 50%; color: transparent; border: 1.5px solid var(--line-2); stroke-width: 3; }
.bank-choice:hover { border-color: var(--billing-line); }
.bank-choice:has(input:checked) { border-color: var(--billing-accent); background: var(--billing-soft); box-shadow: 0 0 0 3px var(--billing-soft); }
.bank-choice:has(input:checked) > .icon { color: #fff; background: var(--billing-accent); border-color: var(--billing-accent); }
.bank-choice:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--billing-soft); }
.billing-plan-card .btn.block { margin-top: auto; }

/* Checkout */
.billing-checkout-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: 16px; align-items: start; }
.billing-pay-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.billing-pay-head .bank-logo { width: 46px; height: 46px; padding: 4px; border-radius: 13px; }
.billing-pay-head h2 { margin: 2px 0 0; font-size: 24px; }
.billing-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 18px; }
.billing-steps > li { position: relative; padding-left: 40px; counter-increment: step; }
.billing-steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #fb923c, #c2410c); color: #fff; font-size: 13px; font-weight: 800; }
.billing-steps > li > strong { display: block; margin-bottom: 10px; }
.copy-box { display: grid; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); overflow: hidden; }
.copy-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.copy-box .copy-row:last-child { border-bottom: 0; }
.copy-label { color: var(--muted); font-size: 13px; }
.copy-value { font-size: 15.5px; overflow-wrap: anywhere; }
.copy-btn { min-height: 32px; }
.copy-btn.copied { color: var(--ok); border-color: var(--ok); }
.copy-row.invoice-code { border: 1.5px dashed var(--billing-accent); border-radius: 14px; background: var(--billing-soft); }
.copy-row.invoice-code .copy-value { color: var(--billing-accent-dark); font-size: 19px; letter-spacing: .04em; }
.billing-instructions { margin: 8px 0 0; font-size: 13.5px; }
.billing-remark-warning { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0; color: var(--ink-2); font-size: 13.5px; }
.billing-remark-warning .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--billing-accent-dark); }
.billing-callback-form .field { margin-bottom: 12px; }
.billing-callback-form .btn { min-height: 50px; font-size: 15px; }

/* Result of a payment */
.billing-result { display: grid; justify-items: center; gap: 6px; padding: 10px 6px 18px; text-align: center; }
.billing-result h2 { margin: 6px 0 0; font-size: 23px; }
.billing-result p { margin: 0; max-width: 460px; color: var(--ink-2); }
.billing-result-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; }
.billing-result-icon .icon { width: 30px; height: 30px; stroke-width: 2.4; }
.billing-result.ok .billing-result-icon { background: var(--ok-soft); color: var(--ok); }
.billing-result.warn .billing-result-icon { background: var(--warn-soft); color: var(--warn); }
.billing-result.bad .billing-result-icon { background: var(--bad-soft); color: var(--bad); }
.billing-attempt-note { display: grid; gap: 3px; justify-items: center; padding: 12px; border: 1px dashed var(--line-2); border-radius: 12px; text-align: center; }
.billing-result-actions { justify-content: center; margin-top: 16px; }

/* Summary */
.billing-summary { position: sticky; top: 88px; }
.billing-summary h2 { margin: 4px 0 8px; font-size: 20px; }
.billing-summary-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.billing-summary-row > span { color: var(--muted); }
.billing-summary-row strong { display: grid; text-align: right; overflow-wrap: anywhere; }
.billing-summary-row strong small { font-size: 12px; font-weight: 500; }
.billing-fresh { margin: 12px 0 0; font-size: 13px; }
.billing-back { width: 100%; margin-top: 14px; }
.billing-history .empty { margin: 4px 0 14px; }

@media (max-width: 819px) {
  .billing-checkout-grid { grid-template-columns: minmax(0, 1fr); }
  .billing-summary { position: static; order: -1; }
}
@media (max-width: 479px) {
  .copy-row { grid-template-columns: minmax(0, 1fr) auto; }
  .copy-label { grid-column: 1 / -1; margin-bottom: -6px; }
  .billing-steps > li { padding-left: 0; }
  .billing-steps > li::before { position: static; display: inline-grid; margin: 0 8px 6px 0; vertical-align: middle; }
  .billing-steps > li > strong { display: inline; }
  .billing-steps > li > strong + * { margin-top: 10px; }
}


/* Admin billing: review cards, receipt facts, filters */
.review-card { display: grid; gap: 12px; margin-bottom: 12px; border-color: var(--billing-line, var(--line)); }
.review-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.review-what { display: grid; gap: 2px; text-align: right; }
.review-what small { font-size: 12.5px; }
.review-why { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 14px; font-weight: 600; }
.review-why .icon { width: 16px; height: 16px; margin-top: 2px; }
.receipt-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--line); overflow: hidden; }
.receipt-facts > div { padding: 9px 12px; background: var(--card); min-width: 0; }
.receipt-facts dt { color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.receipt-facts dd { margin: 2px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.review-form { display: grid; gap: 4px; }
.review-form .field { margin-bottom: 8px; }
.billing-filters .input { flex: 1 1 150px; }
.date-filter { display: flex; align-items: center; gap: 6px; flex: 0 1 190px; }
.date-filter span { color: var(--muted); font-size: 13px; font-weight: 650; }
.date-filter .input { width: 100%; }
.delete-pop { right: 0; left: auto; top: calc(100% + 6px); transform: none; width: 260px; }
.delete-pop form { display: grid; gap: 8px; }
.delete-pop .input { min-height: 38px; font-size: 14px; }
.endpoint-row .order .icon { width: 15px; height: 15px; stroke-width: 2.6; }
@media (max-width: 719px) {
  .receipt-facts { grid-template-columns: minmax(0, 1fr); }
  .review-what { text-align: left; }
  .delete-pop { position: static; width: auto; margin-top: 6px; box-shadow: none; }
}
td.stack.wrap { min-width: 180px; }
td.stack.wrap small { white-space: normal; }
.billing-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); align-items: center; }
.billing-filters .input, .billing-filters .date-filter { width: 100%; }

/* Confirm my payment: waiting for the bank */
.spin { display: inline-block; width: 16px; height: 16px; margin-right: 8px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: et-spin .8s linear infinite; vertical-align: -3px; }
@keyframes et-spin { to { transform: rotate(360deg); } }
.billing-callback-form button:disabled { cursor: progress; opacity: .92; transform: none; }
.billing-wait { margin: 10px 0 0; font-size: 13.5px; }
.billing-wait:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s !important; } }
