/* ==========================================================================
   Rurbit design system — mobile-first PWA
   Brand palette: Bitcoin orange (#F7931A), white, black.
   ========================================================================== */

:root {
  /* brand */
  --orange: #f7931a;
  --orange-600: #e07d0b;
  --orange-500: #ff9f33;
  --orange-100: #fff1e0;
  --orange-tint: rgba(247, 147, 26, 0.12);

  --ink: #0b0b0c;
  --ink-soft: #1c1c1f;
  --black: #000000;
  --paper: #ffffff;

  /* neutrals */
  --cream: #ffffff;
  --surface: #f7f7f8;
  --surface-2: #f1f1f3;
  --muted: #6b6b72;
  --muted-2: #9a9aa3;
  --line: #e8e8ec;
  --line-strong: #d8d8de;
  --line-dark: rgba(255, 255, 255, 0.14);

  /* status */
  --danger: #d0342c;
  --danger-bg: #fdeceb;
  --warn: #b25c00;
  --warn-bg: #fff4e5;
  --success: #0b0b0c;
  --success-bg: #f1f1f3;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(11, 11, 12, 0.06), 0 2px 8px rgba(11, 11, 12, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 11, 12, 0.09), 0 2px 6px rgba(11, 11, 12, 0.05);
  --shadow-lg: 0 24px 60px rgba(11, 11, 12, 0.22);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 15px;
  line-height: 1.5;
}

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
a { color: var(--orange-600); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
::selection { background: var(--orange); color: #0b0b0c; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 6px;
}

.hidden { display: none !important; }
.tab-panel { display: block; }
/* keep content clear of the fixed mobile tab bar */
@media (max-width: 959px) { .tab-panel { padding-bottom: 8px; } }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------ layout */
.shell {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 18px calc(92px + var(--safe-b));
  min-height: 100%;
}

@media (min-width: 960px) {
  .shell { max-width: 1080px; padding: 0 32px 48px; }
}

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 0 14px;
  background: linear-gradient(var(--cream) 78%, rgba(247, 245, 239, 0));
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(150deg, var(--orange-500), var(--orange-600));
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  flex: none;
}
.brand-mark svg { width: 19px; height: 19px; color: #0b0b0c; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -0.03em; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

  .icon-btn {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  transition: transform .16s ease, box-shadow .16s ease, background .16s;
}
.icon-btn:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }

.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; letter-spacing: .02em; border: 0;
}

/* -------------------------------------------------------------- balance card */
.balance-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  padding: 24px 22px 20px;
  color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(247, 147, 26, .34), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(247, 147, 26, .16), transparent 60%),
    linear-gradient(160deg, #1c1c1f 0%, #0b0b0c 55%, #000000 100%);
  box-shadow: 0 20px 44px -20px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.balance-card::after {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(247, 147, 26, .22), transparent 65%);
  pointer-events: none;
}

.balance-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.balance-label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.live-dot {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  color: var(--orange-500); background: rgba(247, 147, 26, .14);
  border: 1px solid rgba(247, 147, 26, .32); border-radius: 999px; padding: 4px 9px;
}
.live-dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange-500);
  box-shadow: 0 0 0 0 rgba(247, 147, 26, .7); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 7px rgba(247, 147, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(247, 147, 26, 0); }
}

.balance-amount {
  display: flex; align-items: baseline; gap: 6px; margin-top: 12px;
  font-size: clamp(34px, 9vw, 44px); font-weight: 700; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.balance-amount .cur { font-size: 22px; font-weight: 600; color: rgba(255, 255, 255, .72); }
.balance-amount.skeleton { color: rgba(255, 255, 255, .18); }

.balance-meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px;
  font-size: 13px; color: rgba(255, 255, 255, .68); font-variant-numeric: tabular-nums;
}
.balance-meta b { color: rgba(255, 255, 255, .92); font-weight: 600; }

.balance-actions { display: flex; gap: 10px; margin-top: 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 18px; border-radius: 14px;
  font-weight: 650; font-size: 14.5px; letter-spacing: -0.01em;
  transition: transform .14s ease, box-shadow .18s ease, background .18s, opacity .18s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-lime, .btn-orange {
  background: var(--orange); color: #0b0b0c; flex: 1; font-weight: 700;
  box-shadow: 0 8px 22px -10px rgba(247, 147, 26, .9);
}
.btn-lime:hover:not(:disabled), .btn-orange:hover:not(:disabled) { background: var(--orange-500); }
.btn-ghost-light {
  flex: 1; background: rgba(255, 255, 255, .1); color: #fff;
  border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px);
}
.btn-ghost-light:hover:not(:disabled) { background: rgba(255, 255, 255, .16); }

.btn-primary { background: var(--orange); color: #0b0b0c; font-weight: 700; box-shadow: 0 10px 24px -14px rgba(247, 147, 26, .95); }
.btn-primary:hover:not(:disabled) { background: var(--orange-500); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover:not(:disabled) { background: var(--ink-soft); }
.btn-secondary { background: var(--paper); color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-secondary:hover:not(:disabled) { background: #fbfaf7; }
.btn-danger { background: var(--danger-bg); color: var(--danger); }
.btn-block { width: 100%; }
.btn-sm { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-text { height: auto; padding: 0; color: var(--orange-600); font-weight: 600; font-size: 13.5px; }

/* ------------------------------------------------------------------- pills */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 650; letter-spacing: .02em;
  padding: 4px 9px; border-radius: 999px; background: var(--orange-100); color: var(--orange-600);
  white-space: nowrap;
}
.pill-ink { background: var(--ink); color: #fff; }
.pill svg { width: 12px; height: 12px; }
.pill-amber { background: #fdf0dd; color: #a35d0c; }
.pill-grey { background: var(--surface-2); color: var(--muted); }
.pill-red { background: var(--danger-bg); color: var(--danger); }
.pill-dark { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .18); }

/* ------------------------------------------------------------------ panels */
.panel {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.panel-pad { padding: 18px; }

.section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 26px 2px 12px;
}
.section-title { font-size: 15px; font-weight: 680; letter-spacing: -0.015em; }
.section-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.notice {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 13px 14px; border-radius: var(--r-md);
  background: var(--orange-100); border: 1px solid #f6dcbc; color: #7a4406;
  font-size: 12.8px; line-height: 1.45;
}
.notice svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.notice strong { font-weight: 700; }
.notice-green { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.notice-red { background: var(--danger-bg); border-color: #f6d3cf; color: #8f2f27; }

/* ------------------------------------------------------------- quick actions */
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.quick {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 14px 13px; border-radius: var(--r-md); background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-align: left;
  transition: transform .16s ease, box-shadow .18s ease, border-color .18s;
}
.quick:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #d6ded6; }
.quick-ico {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: var(--orange-100); color: var(--orange-600);
}
.quick-ico svg { width: 17px; height: 17px; }
.quick-ico.amber { background: var(--orange-100); color: var(--orange-600); }
.quick-ico.blue { background: var(--ink); color: #fff; }
.quick-label { font-size: 13px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; }
.quick-sub { font-size: 11.5px; color: var(--muted-2); margin-top: -4px; line-height: 1.3; }

/* ---------------------------------------------------------------- list rows */
.list { display: flex; flex-direction: column; }
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
  background: var(--paper); transition: background .16s;
}
.row:last-child { border-bottom: 0; }
.row:first-child { border-top-left-radius: var(--r-lg); border-top-right-radius: var(--r-lg); }
.row:last-child { border-bottom-left-radius: var(--r-lg); border-bottom-right-radius: var(--r-lg); }
.row.clickable { cursor: pointer; text-align: left; width: 100%; }
.row.clickable:hover { background: #fbfaf7; }

.row-ico {
  width: 40px; height: 40px; border-radius: 13px; flex: none; display: grid; place-items: center;
  background: var(--orange-100); color: var(--orange-600); font-weight: 700; font-size: 14px;
}
.row-ico.out { background: var(--ink); color: #fff; }
.row-ico.in { background: var(--orange-100); color: var(--orange-600); }
.row-ico svg { width: 18px; height: 18px; }

.row-main { flex: 1; min-width: 0; }
.row-title {
  font-size: 14px; font-weight: 620; letter-spacing: -0.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.row-sub {
  font-size: 12px; color: var(--muted); margin-top: 2px;
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
  overflow: hidden;
}
.row-end {
  flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  text-align: right; white-space: nowrap; margin-left: 8px;
}
.row-amount { font-size: 14px; font-weight: 680; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.row-amount.in { color: var(--orange-600); }
.row-amount.out { color: var(--ink); }
.row-time { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }

.empty {
  padding: 34px 20px; text-align: center; color: var(--muted);
  background: var(--paper); border: 1px dashed var(--line); border-radius: var(--r-lg);
}
.empty-ico { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; background: var(--orange-100); display: grid; place-items: center; color: var(--orange-600); }
.empty h4 { font-size: 14.5px; color: var(--ink); margin-bottom: 4px; }
.empty p { font-size: 13px; max-width: 34ch; margin: 0 auto 14px; }

/* ------------------------------------------------------------------- forms */
.field { margin-bottom: 14px; }
.label {
  display: block; font-size: 12px; font-weight: 650; letter-spacing: .02em;
  color: var(--muted); margin-bottom: 6px; text-transform: uppercase;
}
.input, .select, textarea.input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: var(--r-md);
  border: 1.5px solid var(--line); background: #fdfcf9; color: var(--ink);
  transition: border-color .16s, background .16s, box-shadow .16s;
  font-size: 15px;
}
.input::placeholder { color: #a7b2ab; }
.input:focus, .select:focus {
  outline: none; border-color: var(--orange); background: #fff;
  box-shadow: 0 0 0 4px var(--orange-tint);
}
.input.error { border-color: var(--danger); background: #fffafa; }
.hint { font-size: 12px; color: var(--muted-2); margin-top: 5px; }
.field-error { font-size: 12.5px; color: var(--danger); margin-top: 5px; font-weight: 550; }

.input-group { display: flex; align-items: center; gap: 8px; }
.input-prefix {
  position: absolute; padding-left: 14px; font-weight: 650; color: var(--muted); pointer-events: none;
}
.with-prefix .input { padding-left: 34px; }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 13px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--paper); font-size: 13px; font-weight: 600; color: var(--muted);
  transition: all .15s;
}
.chip:hover { border-color: #cfd8d0; color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.segmented {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px;
  padding: 4px; background: #edefe9; border-radius: 13px;
}
.segmented button {
  height: 36px; border-radius: 10px; font-size: 13px; font-weight: 650; color: var(--muted);
  transition: all .15s;
}
.segmented button.active { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }

.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch-track {
  width: 42px; height: 24px; border-radius: 999px; background: #d8ddd6; position: relative;
  transition: background .18s; flex: none;
}
.switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .18s;
}
.switch input:checked + .switch-track { background: var(--orange); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }

/* ------------------------------------------------------------------ modals */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(8, 22, 18, .5); backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .22s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }

@media (min-width: 640px) {
  .modal-backdrop { align-items: center; }
}

.modal {
  width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto;
  background: var(--cream); border-radius: 26px 26px 0 0;
  box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(.99); transition: transform .26s cubic-bezier(.2, .8, .2, 1);
  padding-bottom: calc(20px + var(--safe-b));
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }
@media (min-width: 640px) {
  .modal { border-radius: 26px; max-height: 88vh; padding-bottom: 20px; }
}

.modal-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px 14px; background: var(--cream); border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 17px; }
.modal-close {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: #eceee8; color: var(--ink); flex: none;
}
.modal-close:hover { background: #e2e5df; }
.modal-close svg { width: 15px; height: 15px; }
.modal-body { padding: 18px 20px 8px; }
.modal-foot { padding: 6px 20px 0; display: flex; gap: 10px; }

.grabber { width: 38px; height: 4px; border-radius: 999px; background: #d7dbd3; margin: 8px auto 0; }

/* -------------------------------------------------------------- top-up view */
.address-card {
  background: linear-gradient(165deg, #fffdf9, #fdf3e6);
  border: 1.5px dashed #f0d3ad; border-radius: var(--r-lg); padding: 16px; text-align: center;
}
.qr-wrap {
  width: 168px; height: 168px; margin: 4px auto 14px; padding: 10px;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
}
.qr-wrap img { width: 100%; height: 100%; border-radius: 8px; display: block; }
.address-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.address-value {
  font-family: var(--mono); font-size: 12.5px; word-break: break-all; line-height: 1.6;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 10px 12px; margin: 8px 0 12px; color: var(--ink); font-weight: 600;
}
.copy-row { display: flex; gap: 8px; }
.copy-row .btn { flex: 1; }

.provider {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  border-bottom: 1px solid var(--line); background: var(--paper); cursor: pointer;
  transition: background .16s; text-align: left; width: 100%;
}
.provider:last-child { border-bottom: 0; }
.provider:hover { background: #fbfaf7; }
.provider-logo {
  width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center;
  font-weight: 750; font-size: 15px; letter-spacing: -0.02em;
}
.provider-main { flex: 1; min-width: 0; }
.provider-name { font-size: 14px; font-weight: 650; display: flex; align-items: center; gap: 7px; }
.provider-tag { font-size: 12px; color: var(--muted); margin-top: 1px; }
.provider-meta { display: flex; gap: 10px; margin-top: 6px; font-size: 11px; color: var(--muted-2); flex-wrap: wrap; }
.provider-cta { align-self: center; color: var(--orange-600); flex: none; }
.provider-cta svg { width: 16px; height: 16px; }

.steps { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.steps li::marker { color: var(--orange); font-weight: 700; }

/* ------------------------------------------------------------------ toast */
.toast-stack {
  position: fixed; z-index: 120; left: 50%; transform: translateX(-50%);
  bottom: calc(108px + var(--safe-b)); display: flex; flex-direction: column; gap: 8px;
  width: min(440px, calc(100vw - 32px));
  pointer-events: none;
}
@media (min-width: 640px) { .toast-stack { bottom: calc(104px + var(--safe-b)); } }
.toast {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 14px; background: var(--ink); color: #fff;
  box-shadow: var(--shadow-lg); font-size: 13.5px; line-height: 1.4;
  animation: toast-in .26s cubic-bezier(.2, .8, .2, 1);
}
.toast.out { animation: toast-out .2s forwards; }
.toast svg { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--orange-500); }
.toast.err { background: #4a1c17; }
.toast.err svg { color: #ffb3a8; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

/* ------------------------------------------------------------- bottom nav */
/* Floating navigation: pinned to the viewport so it is reachable at any scroll depth. */
.tabbar {
  position: fixed; z-index: 60; left: 0; right: 0;
  bottom: calc(14px + var(--safe-b));
  display: flex; justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}
.tabbar-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  width: 100%; max-width: 430px; padding: 6px;
  background: rgba(11, 11, 12, .92); backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6);
  pointer-events: auto;
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 7px 4px 6px; border-radius: 999px; color: rgba(255, 255, 255, .55);
  font-size: 10px; font-weight: 620; letter-spacing: .01em;
  transition: color .15s, background .15s;
}
.tab svg { width: 20px; height: 20px; stroke-width: 1.9; }
.tab.active { color: #0b0b0c; background: var(--orange); }
.tab:hover { color: #fff; }
.tab.active:hover { color: #0b0b0c; }

@media (min-width: 960px) {
  .tab { flex-direction: row; gap: 8px; font-size: 12.5px; padding: 10px 16px; }
  .tabbar-inner { max-width: 560px; }
}

/* ------------------------------------------------------------------- login */
.auth-wrap {
  min-height: 100vh; display: grid; grid-template-columns: 1fr;
  background: var(--cream);
}
@media (min-width: 960px) {
  .auth-wrap { grid-template-columns: 1.05fr .95fr; }
}
.auth-hero {
  position: relative; overflow: hidden; padding: 40px 30px;
  background:
    radial-gradient(90% 70% at 85% 10%, rgba(247, 147, 26, .32), transparent 60%),
    radial-gradient(70% 60% at 10% 90%, rgba(247, 147, 26, .18), transparent 65%),
    linear-gradient(155deg, #1c1c1f, #0b0b0c 60%, #000000);
  color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
@media (max-width: 959px) { .auth-hero { padding: 30px 24px 34px; gap: 26px; } }
.auth-hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.05; letter-spacing: -0.035em; margin-bottom: 14px; }
.auth-hero h1 em { font-style: normal; color: var(--orange-500); }
.auth-hero p { color: rgba(255, 255, 255, .74); font-size: 15px; max-width: 42ch; }
.hero-stats { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.hero-stat span { font-size: 12px; color: rgba(255, 255, 255, .6); letter-spacing: .04em; text-transform: uppercase; }
.hero-route {
  display: flex; align-items: center; gap: 10px; font-size: 12.5px;
  color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; padding: 8px 14px; width: fit-content;
}
.hero-route svg { width: 15px; height: 15px; color: var(--orange-500); }

.auth-panel { display: flex; align-items: center; justify-content: center; padding: 32px 22px 44px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h2 { font-size: 24px; letter-spacing: -0.03em; margin-bottom: 6px; }
.auth-card .lede { font-size: 14px; color: var(--muted); margin-bottom: 22px; }

.otp-inputs { display: flex; gap: 8px; justify-content: space-between; margin: 4px 0 10px; }
.otp-inputs input {
  width: 100%; height: 56px; text-align: center; font-size: 22px; font-weight: 700;
  border-radius: 14px; border: 1.5px solid var(--line); background: #fdfcf9;
  font-variant-numeric: tabular-nums; transition: all .15s;
}
.otp-inputs input:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px var(--orange-tint); }
.otp-inputs input.filled { border-color: var(--orange); background: #fff; }

.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted-2); font-size: 12px; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }

.spinner {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid currentColor; border-top-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton-box {
  background: linear-gradient(100deg, #ececed 30%, #f6f6f7 50%, #ececed 70%);
  background-size: 300% 100%; animation: shimmer 1.4s infinite; border-radius: 8px;
}
@keyframes shimmer { to { background-position: -120% 0; } }

/* ---------------------------------------------------------------- settings */
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 620; text-align: right; word-break: break-all; }
.mono { font-family: var(--mono); font-size: 12.5px; }

.footnote { text-align: center; font-size: 11.5px; color: var(--muted-2); padding: 22px 10px 8px; line-height: 1.6; }
.footnote a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ==========================================================================
   v1.1 additions — Lightning rail, provider logos, recipient confirmation
   ========================================================================== */

/* keep page content clear of the floating nav */
.shell { padding-bottom: calc(112px + var(--safe-b)); }
@media (min-width: 960px) { .shell { padding-bottom: calc(104px + var(--safe-b)); } }

/* ------------------------------------------------------------- rail switch */
.rail-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 5px; background: var(--surface-2); border-radius: 14px; margin-bottom: 16px;
}
.rail-switch button {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; border-radius: 10px; font-size: 13.5px; font-weight: 650;
  color: var(--muted); transition: all .15s;
}
.rail-switch button svg { width: 16px; height: 16px; }
.rail-switch button.active { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.rail-switch button.active svg { color: var(--orange); }

.rail-panel { display: none; }
.rail-panel.active { display: block; animation: fade-in .18s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } }

/* ---------------------------------------------------------- provider logos */
.provider-logo {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
}
.provider-logo img, .provider-logo svg { width: 26px; height: 26px; object-fit: contain; display: block; }
.provider-logo.tile { border: 0; }
.provider-logo.tile img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; }
.wallet-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.wallet-chip {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--paper);
  text-align: left; width: 100%; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.wallet-chip:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.wallet-chip .provider-logo { width: 36px; height: 36px; }
.wallet-chip .provider-logo img, .wallet-chip .provider-logo svg { width: 24px; height: 24px; }
.wallet-chip-main { flex: 1; min-width: 0; padding-right: 8px; }
.wallet-chip-name { display: block; font-size: 13.5px; font-weight: 650; }
.wallet-chip-sub { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.wallet-chip-cta { font-size: 11.5px; font-weight: 650; color: var(--orange-600); flex: none; margin-left: auto; white-space: nowrap; }

/* ------------------------------------------------------------- invoice card */
.invoice-card {
  border: 1.5px solid var(--line-strong); border-radius: var(--r-lg); padding: 16px;
  background: var(--paper); text-align: center;
}
.invoice-card .qr-wrap { width: 176px; height: 176px; margin: 2px auto 12px; }
.invoice-amount { font-size: 26px; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.invoice-amount small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.invoice-bolt {
  font-family: var(--mono); font-size: 10.5px; word-break: break-all; line-height: 1.6;
  height: 54px; overflow: hidden; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px; margin: 10px 0 12px; color: var(--ink); text-align: left;
}
.invoice-bolt::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px;
  background: linear-gradient(rgba(247, 247, 248, 0), var(--surface));
  pointer-events: none;
}
.invoice-meta { display: flex; justify-content: center; gap: 14px; font-size: 11.5px; color: var(--muted); margin-bottom: 12px; }
.invoice-meta b { color: var(--ink); font-weight: 650; }
.preset-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.preset-row .chip { padding: 8px 4px; font-size: 12px; text-align: center; }

/* --------------------------------------------------------- confirm recipient */
.payee-card {
  border: 1.5px solid var(--line-strong); border-radius: var(--r-lg); padding: 16px;
  background: var(--paper); margin-bottom: 14px;
}
.payee-head { display: flex; align-items: center; gap: 12px; }
.payee-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--ink); color: var(--orange); font-weight: 700; font-size: 15px;
}
.payee-name { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.payee-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.payee-verified {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 8px;
  font-size: 11.5px; font-weight: 650; color: var(--orange-600);
}
.payee-verified svg { width: 13px; height: 13px; }
.payee-warning {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px;
  background: var(--warn-bg); border-radius: 10px; font-size: 12px; color: #7a4406; line-height: 1.45;
}
.payee-warning svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.confirm-name-row { display: flex; gap: 8px; margin-top: 10px; }
.save-hint {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 12px;
  border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--surface);
  font-size: 12.5px; color: var(--muted); line-height: 1.45;
}
.save-hint .switch-track { margin-top: 1px; }

/* ------------------------------------------------------------------- misc */
.provider-empty { padding: 16px; font-size: 13px; color: var(--muted); text-align: center; }
.mono-small { font-family: var(--mono); font-size: 11.5px; }
.inline-note { font-size: 12px; color: var(--muted); line-height: 1.5; }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 46px; }
.password-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: var(--muted);
}
.password-toggle:hover { background: var(--surface-2); color: var(--ink); }
.password-toggle svg { width: 17px; height: 17px; }
.step-dots { display: flex; gap: 6px; align-items: center; }
.step-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.step-dot.active { background: var(--orange); width: 18px; border-radius: 999px; }
