/* HoneyWeb user portal: design system. Brand: violet #8155fc, mist #eeedf4, ink #141528 (same as the status page).
   Every colour comes from a token below. The default tokens are the «nebula» theme; the other candidate themes in
   css/themes/*.css override tokens (and a few layout rules) under :root[data-theme="…"]. */
:root {
  --bg: #08081a;
  --panel: rgba(22, 22, 48, .66);
  --panel-solid: #14142e;
  --panel-2: rgba(255, 255, 255, .04);
  --panel-3: rgba(255, 255, 255, .06);
  --sunken: rgba(8, 8, 26, .4);
  --input-bg: rgba(8, 8, 26, .5);
  --line: rgba(238, 237, 244, .08);
  --line-2: rgba(238, 237, 244, .15);
  --track: rgba(238, 237, 244, .08);
  --text: #eeedf4;
  --muted: #a9a7c4;
  --faint: #75739a;
  --brand: #8155fc;
  --brand-2: #a98bff;
  --brand-soft: rgba(129, 85, 252, .16);
  --brand-line: rgba(169, 139, 255, .4);
  --brand-grad: linear-gradient(135deg, var(--brand), #9a5cf6);
  --brand-glow: 0 10px 26px -10px rgba(129, 85, 252, .9);
  --on-brand: #fff;
  --ok: #2bd69b;   --ok-soft: rgba(43, 214, 155, .13);   --ok-ink: #c4f5df;
  --weak: #f6b545; --weak-soft: rgba(246, 181, 69, .13); --weak-ink: #ffe2a8;
  --down: #ff5d7d; --down-soft: rgba(255, 93, 125, .13); --down-ink: #ff9db1;
  --info: #5db6ff; --info-soft: rgba(93, 182, 255, .13); --info-ink: #cfe7ff;
  --hero-bg: linear-gradient(140deg, rgba(129, 85, 252, .22), rgba(20, 21, 48, .72) 55%);
  --hero-line: rgba(169, 139, 255, .25);
  --sidebar-bg: rgba(10, 10, 28, .7);
  --topbar-bg: rgba(8, 8, 26, .7);
  --bottomnav-bg: rgba(10, 10, 28, .9);
  --nav-active-bg: linear-gradient(135deg, rgba(129, 85, 252, .26), rgba(129, 85, 252, .08));
  --nav-active-ring: inset 0 0 0 1px rgba(169, 139, 255, .3);
  --sheet-bg: #121230;
  --toast-bg: #1c1c42;
  --toast-ink: var(--text);
  --backdrop: rgba(4, 4, 14, .66);
  --code-bg: rgba(8, 8, 26, .6);
  --code-ink: #d9d6ff;
  --switch-off: rgba(238, 237, 244, .16);
  --avatar-grad: linear-gradient(135deg, var(--brand), #c443d6);
  --bank-grad: linear-gradient(135deg, #3b1d8f, #8155fc 55%, #c443d6);
  --radius: 20px;
  --radius-sm: 14px;
  --radius-btn: 14px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --shadow-card: none;
  --blur: 18px;
  --w-head: 900;
  --font: 'Estedad', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --side-w: 270px;
  --nav-h: 68px;
  --ribbon-h: 32px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 10px; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ltr { direction: ltr; unicode-bidi: isolate; text-align: right; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.t-ok { color: var(--ok); } .t-weak { color: var(--weak); } .t-down { color: var(--down); }

/* background */
.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: radial-gradient(1100px 600px at 90% -10%, rgba(129, 85, 252, .2), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, rgba(196, 67, 214, .1), transparent 60%), linear-gradient(180deg, #0b0a1f, var(--bg) 45%, #07071a); }
.aurora i { position: absolute; width: 44vmax; height: 44vmax; border-radius: 50%; filter: blur(90px); opacity: .26; animation: drift 30s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: #6a3cf5; top: -18vmax; right: -12vmax; }
.aurora i:nth-child(2) { background: #2440c8; bottom: -22vmax; left: -14vmax; opacity: .14; animation-duration: 38s; }
.aurora i:nth-child(3) { display: none; }
@keyframes drift { to { transform: translate3d(-5vmax, 4vmax, 0) scale(1.1); } }

/* preview ribbon (one line, fixed height: the sticky bars sit right under it) */
.preview-ribbon { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 10px; height: var(--ribbon-h); padding: 0 12px;
  font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; color: #1d1300; background: linear-gradient(90deg, #f6b545, #ffd98a); }
.preview-ribbon .rb-text { overflow: hidden; text-overflow: ellipsis; }
.preview-ribbon .rb-short { display: none; }
.preview-ribbon .rb-btn { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 10px; border-radius: 999px; background: rgba(29, 19, 0, .88); color: #ffd98a;
  font-size: 11.5px; font-weight: 800; flex: none; }
.preview-ribbon .rb-btn svg.i { width: 14px; height: 14px; }
@media (max-width: 640px) { .preview-ribbon .rb-long { display: none; } .preview-ribbon .rb-short { display: inline; } }

/* shell */
.shell { display: flex; min-height: calc(100vh - var(--ribbon-h)); }
.sidebar { position: sticky; top: var(--ribbon-h); display: none; flex-direction: column; gap: 14px; width: var(--side-w); height: calc(100vh - var(--ribbon-h)); padding: 22px 16px;
  border-inline-start: 1px solid var(--line); background: var(--sidebar-bg); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); flex: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 8px 24px -6px rgba(129, 85, 252, .7); }
.brand span { display: flex; flex-direction: column; line-height: 1.3; }
.brand strong { font-size: 17px; font-weight: 800; }
.brand small { font-size: 12px; color: var(--muted); }
.side-nav { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; overflow-y: auto; }
.nav-group { margin: 14px 10px 4px; font-size: 11px; font-weight: 700; color: var(--faint); }
.nav-link { position: relative; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 13px; color: var(--muted); font-weight: 600; font-size: 14.5px;
  white-space: nowrap; transition: background .2s, color .2s; }
.nav-link:hover { background: var(--panel-2); color: var(--text); }
.nav-link.is-active { background: var(--nav-active-bg); color: var(--text); box-shadow: var(--nav-active-ring); }
.nav-link.is-active svg.i { color: var(--brand-2); }
.nav-link svg.nav-ext { width: 14px; height: 14px; margin-inline-start: auto; opacity: .6; }
.side-support { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 12px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line); }
.side-support span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.side-support b { font-size: 13.5px; }
.side-support small { font-size: 12px; color: var(--muted); direction: ltr; text-align: right; }
.side-support-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); flex: none; }

.topbar { position: sticky; top: var(--ribbon-h); z-index: 40; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 16px;
  background: var(--topbar-bg); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); border-bottom: 1px solid var(--line); }
.brand-mobile img { width: 34px; height: 34px; border-radius: 10px; }
.brand-mobile strong { font-size: 16px; font-weight: 800; }
.page-title { display: none; margin: 0; font-size: 19px; font-weight: 800; }
.topbar-side { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.balance-chip { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line);
  font-size: 13px; transition: border-color .2s; }
.balance-chip:hover { border-color: var(--brand-line); }
.balance-chip svg.i { width: 17px; height: 17px; color: var(--brand-2); }
.balance-chip b { font-weight: 800; }
.balance-chip small { color: var(--muted); font-size: 11px; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-weight: 800; font-size: 15px; color: #fff; flex: none;
  background: var(--avatar-grad); box-shadow: 0 6px 18px -6px rgba(129, 85, 252, .8); }

.view { width: 100%; max-width: 1120px; margin: 0 auto; padding: 18px 16px calc(var(--nav-h) + 30px + env(safe-area-inset-bottom)); outline: none; }
.view.enter { animation: rise .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.bottom-nav { position: fixed; inset-inline: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding: 6px 6px env(safe-area-inset-bottom); background: var(--bottomnav-bg); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); border-top: 1px solid var(--line); }
.bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: none; border-radius: 14px;
  color: var(--faint); font-size: 11px; font-weight: 700; }
.bottom-nav .is-active { color: var(--text); }
.bottom-nav .is-active svg.i { color: var(--brand-2); }
.bottom-nav svg.i { width: 22px; height: 22px; }
.bottom-nav .bn-buy { position: relative; }
.bottom-nav .bn-buy span.bn-fab { display: grid; place-items: center; width: 46px; height: 46px; margin-top: -22px; border-radius: 16px; color: var(--on-brand);
  background: var(--brand-grad); box-shadow: var(--brand-glow); }
.bottom-nav .bn-buy span.bn-fab svg.i { color: var(--on-brand); }

@media (min-width: 1000px) {
  .sidebar { display: flex; }
  .bottom-nav, .brand-mobile { display: none; }
  .page-title { display: block; }
  .topbar { padding: 0 28px; }
  .view { padding: 26px 28px 48px; }
}

/* typography & layout helpers */
.h1 { margin: 0 0 4px; font-size: clamp(22px, 3.4vw, 28px); font-weight: var(--w-head); letter-spacing: -.4px; }
.lead { margin: 0; color: var(--muted); font-size: 14.5px; }
.section { margin-top: 24px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.section-head a, .link { color: var(--brand-2); font-size: 13.5px; font-weight: 700; }
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-2.stack-sm, .grid-3.stack-sm { grid-template-columns: 1fr; } }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }

/* cards */
.card { position: relative; padding: 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.card-title { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.card-sub { margin: 0; color: var(--muted); font-size: 13.5px; }
.card.glow { background: var(--hero-bg); border-color: var(--hero-line); box-shadow: var(--shadow); }
.card.tight { padding: 14px; }
.card-link { display: block; transition: transform .2s, border-color .2s; }
.card-link:hover { transform: translateY(-2px); border-color: var(--line-2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: var(--radius-btn); border: 1px solid transparent;
  font-weight: 800; font-size: 14.5px; white-space: nowrap; transition: transform .15s, background .2s, border-color .2s, box-shadow .2s; }
.btn:active { transform: scale(.98); }
.btn svg.i { width: 19px; height: 19px; }
.btn-primary { color: var(--on-brand); background: var(--brand-grad); box-shadow: var(--brand-glow); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-success { color: #04281b; background: var(--ok); }
.btn-ghost { background: var(--panel-2); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-2); background: var(--panel-3); }
.btn-danger { color: var(--down-ink); background: var(--down-soft); border-color: var(--down-soft); }
.btn-block { width: 100%; }
.btn-sm { height: 36px; padding: 0 12px; font-size: 13px; border-radius: calc(var(--radius-btn) - 3px); }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }

/* quick actions (bot home buttons) */
.actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.actions.actions-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.action { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: calc(var(--radius) - 2px); background: var(--panel); border: 1px solid var(--line);
  box-shadow: var(--shadow-card); transition: transform .2s, border-color .2s, background .2s; }
.action:hover { transform: translateY(-2px); border-color: var(--brand-line); background: var(--brand-soft); }
.action-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px; background: var(--brand-soft); color: var(--brand-2); }
.action-icon svg.i { width: 22px; height: 22px; }
.action-text, .action > span:not(.action-icon) { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.action b { font-size: 14px; font-weight: 800; line-height: 1.35; }
.action small { font-size: 12px; color: var(--muted); line-height: 1.5; }
.action br { display: none; }
.action-go { width: 16px; height: 16px; color: var(--faint); transition: transform .2s, color .2s; }
.action:hover .action-go { transform: translateX(-3px); color: var(--brand-2); }
@media (max-width: 560px) { .action { flex-direction: column; align-items: flex-start; } .action-go { display: none; } }
.action.is-primary { background: linear-gradient(140deg, rgba(129, 85, 252, .32), rgba(129, 85, 252, .1)); border-color: var(--brand-line); }
.action.is-primary .action-icon { background: var(--brand); color: var(--on-brand); }
.action.is-disabled { opacity: .45; pointer-events: none; }
.tone-ok .action-icon { background: var(--ok-soft); color: var(--ok); }
.tone-weak .action-icon { background: var(--weak-soft); color: var(--weak); }
.tone-info .action-icon { background: var(--info-soft); color: var(--info); }
@media (max-width: 760px) { .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } .action { padding: 14px; } }

/* wallet hero */
.wallet-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.wallet-hero .amount { font-size: clamp(28px, 5vw, 38px); font-weight: var(--w-head); letter-spacing: -.5px; line-height: 1.2; }
.wallet-hero .amount small { font-size: 15px; font-weight: 600; color: var(--muted); margin-inline-start: 6px; }
.eyebrow { font-size: 12px; font-weight: 700; color: var(--brand-2); }

/* dashboard (classic layout; the other layouts style their own blocks in css/layouts/) */
.dash-note { margin-top: 12px; }
.cl-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 22px; align-items: center; padding: 22px; }
.cl-hero-main { display: flex; flex-direction: column; gap: 2px; }
.cl-hero .amount { font-size: clamp(30px, 5vw, 42px); font-weight: var(--w-head); letter-spacing: -.5px; line-height: 1.25; }
.cl-hero .amount small { font-size: 15px; font-weight: 600; color: var(--muted); margin-inline-start: 6px; letter-spacing: 0; }
.cl-hero-btns { margin-top: 16px; flex-wrap: wrap; }
.cl-hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hstat { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--radius-sm); background: var(--sunken); border: 1px solid var(--line); }
.hstat-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-2); }
.hstat-ic svg.i { width: 18px; height: 18px; }
.hstat small { display: block; font-size: 12px; color: var(--muted); }
.hstat b { font-size: 18px; font-weight: var(--w-head); line-height: 1.35; white-space: nowrap; }
.hstat b small { display: inline; font-size: 12px; font-weight: 600; }
@media (max-width: 860px) { .cl-hero { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .cl-hero { padding: 18px; } .cl-hero-stats { gap: 6px; } .hstat { padding: 10px; gap: 6px; } .hstat b { font-size: 14.5px; } .hstat small { font-size: 11px; } }
.ic-brand { background: var(--brand-soft); color: var(--brand-2); }
.ic-ok { background: var(--ok-soft); color: var(--ok); }
.ic-weak { background: var(--weak-soft); color: var(--weak); }
.ic-info { background: var(--info-soft); color: var(--info); }
.ic-down { background: var(--down-soft); color: var(--down); }
.t-info { color: var(--info); }
.ringwrap { position: relative; display: inline-grid; place-items: center; flex: none; }
.mini-ring { display: block; transform: rotate(-90deg); }
.mini-ring .track { fill: none; stroke: var(--track); stroke-width: 5; }
.mini-ring .arc { fill: none; stroke: var(--brand-2); stroke-width: 5; stroke-linecap: round; }
.mini-ring.warn .arc { stroke: var(--weak); }
.mini-ring.bad .arc { stroke: var(--down); }
.ringwrap i { position: absolute; font-style: normal; font-size: 11px; font-weight: 800; }

/* pills, chips, progress */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap;
  background: var(--panel-3); color: var(--muted); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill svg.i { width: 14px; height: 14px; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.weak { background: var(--weak-soft); color: var(--weak); }
.pill.down { background: var(--down-soft); color: var(--down); }
.pill.info { background: var(--info-soft); color: var(--info); }
.pill.brand { background: var(--brand-soft); color: var(--brand-2); }
.pill.plain::before { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 9px; font-size: 12px; font-weight: 700; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; direction: ltr; unicode-bidi: isolate; letter-spacing: .5px; }
.progress { height: 8px; border-radius: 8px; overflow: hidden; background: var(--track); }
.progress > i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--brand-2), var(--brand)); transition: width .6s; }
.progress.warn > i { background: linear-gradient(90deg, #ffd98a, var(--weak)); }
.progress.bad > i { background: linear-gradient(90deg, #ff9bb0, var(--down)); }

/* plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px; text-align: right; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  box-shadow: var(--shadow-card); transition: transform .2s, border-color .2s, box-shadow .2s; }
.plan:hover { transform: translateY(-3px); border-color: var(--brand-line); box-shadow: 0 18px 40px -22px rgba(129, 85, 252, .9); }
.plan-name { font-size: 16px; font-weight: 800; }
.plan-specs { display: flex; gap: 8px; }
.plan-spec { flex: 1; padding: 10px; border-radius: 12px; background: var(--sunken); text-align: center; }
.plan-spec b { display: block; font-size: 20px; font-weight: var(--w-head); line-height: 1.3; }
.plan-spec small { font-size: 11.5px; color: var(--muted); }
.plan-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-price b { font-size: 21px; font-weight: var(--w-head); }
.plan-price s { color: var(--faint); font-size: 13px; }
.plan-price small { color: var(--muted); font-size: 12px; }
.plan-badge { position: absolute; top: 14px; left: 14px; }

/* steps */
.steps { display: flex; align-items: center; gap: 8px; margin: 4px 0 18px; }
.step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--faint); }
.step i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-style: normal; font-size: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.step i svg.i { width: 15px; height: 15px; }
.step.is-on { color: var(--text); }
.step.is-on i { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.step.is-done i { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.step-line { flex: 1; height: 1px; background: var(--line-2); max-width: 60px; }
@media (max-width: 520px) { .step span { display: none; } }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: var(--muted); }
.input { width: 100%; height: 48px; padding: 0 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--input-bg); outline: none; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: var(--brand-line); box-shadow: 0 0 0 3px var(--brand-soft); }
.input.ltr { text-align: left; }
select.input { padding-inline-end: 10px; }
.hint { font-size: 12px; color: var(--faint); }
.error-text { font-size: 12.5px; color: var(--down-ink); }
.amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.amount-btn { height: 48px; border-radius: 13px; border: 1px solid var(--line); background: var(--panel-2); font-weight: 800; font-size: 14px; transition: border-color .2s, background .2s; }
.amount-btn:hover { border-color: var(--line-2); }
.amount-btn.is-on { border-color: var(--brand-2); background: var(--brand-soft); }
.file-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 130px; padding: 18px; border-radius: 16px; border: 1.5px dashed var(--line-2);
  background: var(--sunken); text-align: center; color: var(--muted); cursor: pointer; }
.file-drop:hover { border-color: var(--brand-line); }
.file-drop input { display: none; }

/* key-value lists */
.kv { display: flex; flex-direction: column; }
.kv > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv > div:last-child { border-bottom: 0; }
.kv dt, .kv .k { color: var(--muted); }
.kv dd, .kv .v { margin: 0; font-weight: 700; text-align: left; }

/* list rows (services, invoices) */
.list { display: flex; flex-direction: column; gap: 10px; }
.svc { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: calc(var(--radius) - 2px); background: var(--panel); border: 1px solid var(--line);
  box-shadow: var(--shadow-card); transition: border-color .2s, transform .2s; }
.svc:hover { border-color: var(--line-2); transform: translateY(-1px); }
.svc-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-2); }
.svc-icon.ok { background: var(--ok-soft); color: var(--ok); }
.svc-icon.weak { background: var(--weak-soft); color: var(--weak); }
.svc-icon.down { background: var(--down-soft); color: var(--down); }
.svc-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.svc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.svc-name { font-weight: 800; font-size: 15px; }
.svc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.svc-meta svg.i { width: 15px; height: 15px; vertical-align: -3px; }
.svc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: left; }
.svc-side b { font-size: 18px; font-weight: var(--w-head); }
.svc-side small { font-size: 11.5px; color: var(--muted); }
@media (max-width: 560px) { .svc { grid-template-columns: auto 1fr; } .svc-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; } }
.warn-line { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; font-size: 12.5px; font-weight: 700; background: var(--weak-soft); color: var(--weak-ink);
  border: 1px solid var(--weak-soft); }

/* tabs */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.tabs button { height: 34px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; }
.tabs button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.tabs button[aria-pressed="true"] .faint { color: inherit; opacity: .75; }

/* service detail */
.detail-hero { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
@media (max-width: 720px) { .detail-hero { grid-template-columns: 1fr; } }
.ring { position: relative; width: 150px; height: 150px; margin: 0 auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: var(--track); stroke-width: 10; }
.ring .arc { fill: none; stroke: url(#ringGrad); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.2, .8, .2, 1); }
.ring .g1 { stop-color: var(--brand-2); } .ring .g2 { stop-color: var(--brand); }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.3; }
.ring-label b { font-size: 24px; font-weight: var(--w-head); }
.ring-label small { font-size: 11.5px; color: var(--muted); }
.stat-boxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 720px) { .stat-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat-box { padding: 14px; border-radius: calc(var(--radius-sm) + 2px); background: var(--sunken); border: 1px solid var(--line); }
.stat-box small { display: block; font-size: 12px; color: var(--muted); }
.stat-box b { font-size: 18px; font-weight: var(--w-head); }
.copybox { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-radius: var(--radius-sm); background: var(--input-bg); border: 1px solid var(--line); }
.copybox .code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--muted); text-align: left; padding-inline-start: 4px; }
.copybox .code.strong { color: var(--text); }
.qr { display: grid; place-items: center; padding: 14px; border-radius: 18px; background: #fff; width: max-content; margin: 0 auto; border: 1px solid var(--line); }
.qr img, .qr svg { width: 210px; height: 210px; image-rendering: pixelated; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 720px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tool { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 12px 14px; border-radius: calc(var(--radius-sm) + 2px); border: 1px solid var(--line); background: var(--panel-2); text-align: right;
  font-weight: 700; font-size: 13.5px; transition: border-color .2s, background .2s; }
.tool:hover { border-color: var(--brand-line); background: var(--brand-soft); }
.tool > svg.i { color: var(--brand-2); }
.tool .tool-ic { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 11px; background: var(--brand-soft); color: var(--brand-2); }
.tool.tone-ok .tool-ic { background: var(--ok-soft); color: var(--ok); }
.tool.tone-weak .tool-ic { background: var(--weak-soft); color: var(--weak); }
.tool.tone-down .tool-ic { background: var(--down-soft); color: var(--down); }
.tool small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch { position: relative; width: 46px; height: 26px; flex: none; border-radius: 999px; border: 0; background: var(--switch-off); transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.switch[aria-checked="true"] { background: var(--ok); }
.switch[aria-checked="true"]::after { transform: translateX(-20px); }

/* invoices / timeline */
.invoice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.invoice .inv-ic { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--panel-2); color: var(--muted); }
.invoice .inv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.45; }
.invoice .inv-main b { font-size: 14px; }
.invoice .inv-main small { font-size: 12px; color: var(--muted); }
.invoice .inv-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.invoice .inv-amt { font-weight: var(--w-head); }

/* countdown & card */
.bank-card { position: relative; overflow: hidden; padding: 20px; border-radius: 22px; color: #fff; background: var(--bank-grad); box-shadow: 0 20px 50px -20px rgba(129, 85, 252, .8); }
.bank-card::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; left: -80px; top: -120px; background: rgba(255, 255, 255, .1); }
.bank-card .bc-num { font-size: clamp(19px, 4.5vw, 25px); font-weight: 800; letter-spacing: 2px; direction: ltr; text-align: center; margin: 18px 0 10px; }
.bank-card .bc-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; opacity: .92; }
.countdown { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--weak-soft); color: var(--weak); font-weight: 800; font-size: 13px; }
.bank-card .countdown { background: rgba(0, 0, 0, .25); color: #ffe2a8; }

/* help & misc */
.tut { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: calc(var(--radius) - 2px); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-card);
  transition: border-color .2s, transform .2s; }
.tut:hover { border-color: var(--brand-line); transform: translateY(-2px); }
.tut-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-2); flex: none; }
.tut b { display: block; font-size: 15px; }
.tut small { color: var(--muted); font-size: 12.5px; }
.pre { margin: 0; padding: 14px; border-radius: var(--radius-sm); background: var(--code-bg); border: 1px solid var(--line); overflow-x: auto; direction: ltr; text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.6; color: var(--code-ink); }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13.5px; background: var(--info-soft); border: 1px solid var(--info-soft); color: var(--info-ink); }
.notice.warn { background: var(--weak-soft); border-color: var(--weak-soft); color: var(--weak-ink); }
.notice.ok { background: var(--ok-soft); border-color: var(--ok-soft); color: var(--ok-ink); }
.notice svg.i { flex: none; margin-top: 2px; }
.notice .link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 18px; text-align: center; border-radius: var(--radius); border: 1px dashed var(--line-2); color: var(--muted); }
.empty .empty-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--brand-soft); color: var(--brand-2); }
.success-burst { display: grid; place-items: center; width: 74px; height: 74px; margin: 6px auto 4px; border-radius: 50%; background: var(--ok-soft); color: var(--ok);
  box-shadow: 0 0 0 10px var(--ok-soft); animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.success-burst svg.i { width: 36px; height: 36px; stroke-width: 2.4; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* login */
.auth { display: grid; place-items: center; min-height: calc(100vh - 220px); }
.auth-card { width: 100%; max-width: 440px; text-align: center; }
.auth-card .brand-big { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 24px; box-shadow: 0 18px 44px -14px rgba(129, 85, 252, .9); }

/* sheet (modal / bottom sheet) */
.sheet-backdrop { position: fixed; inset: 0; z-index: 70; background: var(--backdrop); backdrop-filter: blur(4px); animation: fade .2s; }
.sheet { position: fixed; z-index: 71; inset-inline: 0; bottom: 0; max-height: 88vh; overflow-y: auto; padding: 8px 18px calc(22px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0; background: var(--sheet-bg); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: up .28s cubic-bezier(.2, .8, .2, 1); }
.sheet::before { content: ''; display: block; width: 44px; height: 5px; margin: 6px auto 12px; border-radius: 5px; background: var(--line-2); }
.sheet h3 { margin: 0 0 4px; font-size: 18px; font-weight: var(--w-head); }
@media (min-width: 700px) {
  .sheet { inset: auto; left: 50%; top: 50%; bottom: auto; width: min(520px, 92vw); transform: translate(-50%, -50%); border-radius: var(--radius); padding: 22px 24px; animation: fade .2s; }
  .sheet::before { display: none; }
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.more-list { display: flex; flex-direction: column; gap: 4px; }

/* toast */
.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: min(92vw, 460px);
  padding: 11px 16px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 700; background: var(--toast-bg); color: var(--toast-ink); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: up .25s; }
@media (min-width: 1000px) { .toast { bottom: 28px; } }

.noscript { margin: 20px; padding: 16px; border-radius: 14px; text-align: center; background: var(--panel-solid); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.theme-toggle svg.i { width: 19px; height: 19px; }
