/* ==========================================================================
   Desklink design system
   8pt grid · Inter · dark first with light support · WCAG AA contrast
   ========================================================================== */
@font-face {
  font-family: InterVar;
  src: url("/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* spacing (8pt) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 40px; --s8: 48px; --s9: 64px; --s10: 96px;
  /* type scale */
  --t-xs: 12px; --t-sm: 14px; --t-md: 16px; --t-lg: 18px; --t-xl: 20px; --t-2xl: 24px; --t-3xl: 32px; --t-4xl: 40px; --t-5xl: 56px;
  /* radius */
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-full: 999px;
  /* brand */
  --brand: #7063ff;
  --brand-2: #3d8bff;
  --brand-grad: linear-gradient(135deg, #8a6bff 0%, #5b6cff 45%, #2f8cff 100%);
  --brand-soft: rgba(112, 99, 255, 0.14);
  --brand-ring: 0 0 0 3px rgba(112, 99, 255, 0.45);
  --success: #34d399; --success-soft: rgba(52, 211, 153, 0.12);
  --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, 0.10);
  --danger: #f87171; --danger-soft: rgba(248, 113, 113, 0.12);
  /* dark surfaces */
  --bg: #08090d;
  --bg-2: #0d0f15;
  --surface: #12141c;
  --surface-2: #181b25;
  --surface-3: #20242f;
  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.12);
  --text: #f4f5f8;
  --text-2: #a7acbd;
  --text-3: #858aa0;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 30px 60px -20px rgba(40, 30, 140, 0.55), 0 18px 36px -18px rgba(0, 0, 0, 0.7);
  --glass: rgba(10, 11, 16, 0.72);
  --tab-h: 72px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: InterVar, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f6fa; --bg-2: #eef0f6; --surface: #ffffff; --surface-2: #f7f8fb; --surface-3: #eceef4;
    --border: rgba(15, 18, 40, 0.08); --border-2: rgba(15, 18, 40, 0.14);
    --text: #0d1021; --text-2: #4a5068; --text-3: #5f657c;
    --shadow-sm: 0 1px 2px rgba(16, 20, 50, 0.06);
    --shadow-md: 0 8px 24px rgba(16, 20, 50, 0.08);
    --shadow-lg: 0 24px 64px rgba(16, 20, 50, 0.12);
    --glass: rgba(245, 246, 250, 0.8);
    --brand-soft: rgba(112, 99, 255, 0.10);
    --success: #059669; --warn: #b45309; --danger: #dc2626;
    color-scheme: light;
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  min-height: 100dvh;
  font-family: var(--font);
  font-size: var(--t-md);
  line-height: 1.5;
  font-feature-settings: "cv11", "ss01", "tnum" 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(700px 420px at 85% -8%, rgba(112, 99, 255, 0.16), transparent 60%),
    radial-gradient(600px 380px at -10% 110%, rgba(47, 140, 255, 0.10), transparent 60%);
}
.app { position: relative; z-index: 1; min-height: 100dvh; display: flex; flex-direction: column; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
a { color: inherit; }
:focus-visible { outline: none; box-shadow: var(--brand-ring); border-radius: var(--r-sm); }
.hidden { display: none !important; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: var(--s2) var(--s3); z-index: 50; border-radius: var(--r-sm); }
.skip:focus { left: var(--s2); top: var(--s2); }

.ico { width: 22px; height: 22px; flex: none; }
.ico.sm { width: 18px; height: 18px; }
.ico.xs { width: 14px; height: 14px; vertical-align: -2px; }

/* ---------- logo ---------- */
.logo-mark {
  position: relative; display: inline-block; width: 28px; height: 28px; border-radius: 9px;
  background: var(--brand-grad); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22), 0 4px 14px rgba(112, 99, 255, 0.45);
}
.logo-mark::before {
  content: ""; position: absolute; left: 8px; top: 7px; width: 9px; height: 14px;
  border: 2.5px solid #fff; border-left-width: 2.5px; border-radius: 0 8px 8px 0;
}
.logo-mark::after { content: ""; position: absolute; left: 7px; top: 7px; width: 2.5px; height: 14px; background: #fff; border-radius: 2px; }
.logo-mark.sm { width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3); }
.logo-mark.sm::before { left: 6px; top: 5px; width: 7px; height: 12px; border-width: 2px; }
.logo-mark.sm::after { left: 5px; top: 5px; width: 2px; height: 12px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--s3) + var(--safe-t)) var(--s4) var(--s3);
  background: var(--glass); backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; font-weight: 700; font-size: var(--t-lg); letter-spacing: -0.03em; }
.topbar-right { display: flex; align-items: center; gap: var(--s3); }
.badge {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border-2);
  padding: 5px 10px; border-radius: var(--r-full); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.only-landing { display: none; }
body.is-landing .only-landing { display: inline-flex; }

/* ---------- layout ---------- */
.shell { flex: 1; display: flex; flex-direction: column; }
main { width: 100%; max-width: 560px; margin: 0 auto; padding: var(--s5) var(--s4) calc(var(--tab-h) + var(--safe-b) + var(--s6)); }
body.is-landing main { max-width: 1160px; padding-bottom: var(--s6); }
.view { animation: viewIn 420ms var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- type ---------- */
h1 { font-size: var(--t-3xl); line-height: 1.12; letter-spacing: -0.035em; font-weight: 700; margin: 0 0 var(--s2); }
h2 { font-size: var(--t-md); font-weight: 600; margin: 0; letter-spacing: -0.02em; }
h3 { font-size: var(--t-lg); margin: var(--s3) 0 var(--s2); letter-spacing: -0.02em; }
.h2 { font-size: var(--t-2xl); font-weight: 700; letter-spacing: -0.03em; margin: 0 0 var(--s5); }
.display { font-size: 44px; line-height: 1.04; letter-spacing: -0.045em; font-weight: 750; margin: var(--s4) 0; }
.lede { color: var(--text-2); font-size: var(--t-md); line-height: 1.6; margin: 0 0 var(--s5); }
.lede.lg { font-size: var(--t-lg); }
.eyebrow { color: var(--text-2); font-size: var(--t-sm); margin: 0 0 var(--s1); }
.fine, .status-line, .hint, .warn { font-size: 13px; line-height: 1.5; color: var(--text-3); }
.fine { margin: var(--s4) 0 0; display: flex; gap: var(--s2); align-items: flex-start; }
.fine.center, .center { justify-content: center; text-align: center; }
.status-line { color: var(--text-2); margin: var(--s3) 0; min-height: 0; }
.status-line:empty { margin: 0; }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  width: 100%; min-height: 48px; padding: 0 var(--s5);
  border: 0; border-radius: var(--r-full);
  background: var(--brand-grad); color: #fff; font-weight: 650; font-size: var(--t-md); letter-spacing: -0.01em;
  box-shadow: 0 8px 24px -8px rgba(112, 99, 255, 0.65), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), filter 160ms;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.08); box-shadow: 0 12px 28px -8px rgba(112, 99, 255, 0.75), inset 0 1px 0 rgba(255,255,255,0.2); }
.btn:active { transform: scale(0.975); }
.btn.lg { min-height: 56px; font-size: var(--t-md); }
.btn.sm { min-height: 36px; width: auto; padding: 0 var(--s4); font-size: var(--t-sm); }
.btn.ghost { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-2); }
.btn.ghost:hover { background: var(--surface-3); filter: none; }
.text-btn { background: none; border: 0; color: var(--brand); font-weight: 600; font-size: var(--t-sm); padding: var(--s2); margin: calc(var(--s2) * -1); min-height: 44px; }
@media (prefers-color-scheme: dark) { .text-btn { color: #a39aff; } }
.back { display: inline-flex; align-items: center; gap: var(--s1); background: none; border: 0; color: var(--text-2); font-weight: 600; font-size: var(--t-sm); padding: var(--s2) var(--s2) var(--s2) 0; margin-bottom: var(--s3); min-height: 44px; }
.back:hover { color: var(--text); }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-3); color: var(--text); border: 0; border-radius: var(--r-full); padding: 0 var(--s3); min-height: 36px; font-weight: 600; font-size: 13px; transition: background 150ms; }
.copy-btn:hover { background: var(--brand-soft); color: var(--text); }

/* ---------- forms ---------- */
.form { display: grid; gap: var(--s4); }
.field { display: grid; gap: var(--s2); }
.field > span:first-child, legend { font-size: 13px; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0 0 var(--s2); }
input, select {
  width: 100%; min-height: 52px; padding: 0 var(--s4);
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-md);
  font-size: var(--t-md); transition: border-color 150ms, box-shadow 150ms, background 150ms;
}
input::placeholder { color: var(--text-3); }
input:hover, select:hover { border-color: rgba(255,255,255,0.2); }
input:focus-visible, select:focus-visible { border-color: var(--brand); box-shadow: var(--brand-ring); border-radius: var(--r-md); }
input:disabled { opacity: 0.6; }
input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: var(--s7); }
.field-error, .form-error { color: var(--danger); font-size: 13px; font-weight: 500; }
.field-error:empty { display: none; }
.form-error { margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s4); border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--border-2); color: var(--text); font-weight: 600; font-size: var(--t-sm);
  cursor: pointer; transition: all 150ms var(--ease); white-space: nowrap;
}
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.chip:hover { border-color: rgba(255,255,255,0.22); }
.chip:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.chip:has(input:focus-visible) { box-shadow: var(--brand-ring); }
.coin-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; }
.coin-dot.usdt { background: #26a17b; }
.coin-dot.usdc { background: #2775ca; }

.amount-wrap { display: flex; align-items: center; gap: var(--s2); background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-lg); padding: 0 var(--s4); transition: border-color 150ms, box-shadow 150ms; }
.amount-wrap:focus-within { border-color: var(--brand); box-shadow: var(--brand-ring); }
.amount-wrap input { border: 0; background: transparent; padding: 0; min-height: 72px; font-size: 36px; font-weight: 700; letter-spacing: -0.03em; box-shadow: none !important; font-variant-numeric: tabular-nums; }
.amount-wrap .cur { font-size: 28px; font-weight: 600; color: var(--text-3); }
.amount-wrap .cur-code { font-size: var(--t-sm); font-weight: 600; color: var(--text-3); }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); margin-top: calc(var(--s2) * -1); }
.preset { min-height: 40px; border-radius: var(--r-full); border: 1px solid var(--border-2); background: var(--surface); font-weight: 600; font-size: var(--t-sm); transition: all 150ms; }
.preset:hover, .preset.on { border-color: var(--brand); background: var(--brand-soft); }

.dropzone {
  position: relative; display: grid; justify-items: center; text-align: center; gap: var(--s2);
  padding: var(--s6) var(--s4); border: 1.5px dashed var(--border-2); border-radius: var(--r-lg);
  background: var(--surface); cursor: pointer; transition: all 200ms var(--ease);
}
.dropzone:hover { border-color: var(--brand); background: var(--brand-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.dropzone:has(input:focus-visible) { box-shadow: var(--brand-ring); }
.dz-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: var(--s1); }
@media (prefers-color-scheme: dark) { .dz-icon { color: #a39aff; } }
.dropzone.has-file { border-style: solid; border-color: var(--success); background: var(--success-soft); }
.dropzone.has-file .dz-icon { background: var(--success-soft); color: var(--success); }
.dz-main { font-weight: 650; word-break: break-all; }
.dz-sub { font-size: 13px; color: var(--text-3); max-width: 320px; }

/* ---------- stepper ---------- */
.stepper { margin: 0 0 var(--s5); }
.progress { list-style: none; display: flex; justify-content: space-between; padding: 0; margin: 0 0 var(--s3); }
.progress li { display: flex; align-items: center; gap: var(--s2); font-size: 13px; font-weight: 600; color: var(--text-3); }
.progress .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--surface-2); border: 1px solid var(--border-2); }
.progress .on { color: var(--text); }
.progress .on .dot { background: var(--brand-grad); border-color: transparent; color: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.progress .done { color: var(--text-2); }
.progress .done .dot { background: var(--success-soft); border-color: transparent; color: var(--success); }
.stepper .bar { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.stepper .bar span { display: block; height: 100%; background: var(--brand-grad); border-radius: 4px; animation: grow 600ms var(--ease) both; }
@keyframes grow { from { width: 0; } }

/* ---------- 3D card ---------- */
.card3d { perspective: 1200px; margin: var(--s2) auto var(--s5); width: 100%; max-width: 400px; --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%; }
.card3d-face {
  position: relative; overflow: hidden; aspect-ratio: 1.586 / 1; border-radius: 22px; padding: 22px 24px;
  display: grid; grid-template-rows: auto auto 1fr auto; color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(138, 107, 255, 0.95) 0%, rgba(91, 108, 255, 0.0) 55%),
    radial-gradient(90% 90% at 0% 100%, rgba(47, 140, 255, 0.85) 0%, rgba(47, 140, 255, 0) 60%),
    linear-gradient(135deg, #1b1745 0%, #0e0f24 55%, #0b1a3a 100%);
  box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(255,255,255,0.14), inset 0 1px 0 rgba(255,255,255,0.25);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d; transition: transform 500ms var(--ease);
}
.card3d-face::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 9px);
  mask-image: linear-gradient(120deg, transparent 20%, #000 50%, transparent 80%);
}
.card3d-face::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,255,255,0.22), transparent 45%);
  mix-blend-mode: soft-light;
}
.c-glow { position: absolute; width: 60%; height: 60%; right: -10%; top: -20%; background: radial-gradient(closest-side, rgba(255,255,255,0.25), transparent); filter: blur(8px); pointer-events: none; }
.c-top { display: flex; justify-content: space-between; align-items: center; position: relative; }
.c-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.c-nfc { width: 24px; height: 24px; opacity: 0.85; transform: rotate(0deg); }
.c-chip {
  position: relative; width: 44px; height: 33px; border-radius: 7px; margin-top: 18px;
  background: linear-gradient(135deg, #f6dd9b 0%, #c79a3c 45%, #f3d58a 70%, #a77a26 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
}
.c-chip::before { content: ""; position: absolute; inset: 7px 0; border-top: 1px solid rgba(0,0,0,0.25); border-bottom: 1px solid rgba(0,0,0,0.25); }
.c-chip::after { content: ""; position: absolute; inset: 0 15px; border-left: 1px solid rgba(0,0,0,0.25); border-right: 1px solid rgba(0,0,0,0.25); }
.c-pan { align-self: center; position: relative; font-family: var(--mono); font-size: clamp(16px, 5.2vw, 21px); letter-spacing: 0.12em; text-shadow: 0 1px 2px rgba(0,0,0,0.35); white-space: nowrap; }
.c-bot { display: flex; align-items: flex-end; gap: var(--s5); position: relative; }
.c-bot div { display: grid; gap: 2px; min-width: 0; }
.c-bot small { font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.c-bot span { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frost { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--s2); background: rgba(200, 215, 255, 0.16); backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 14px; animation: fadeIn 300ms var(--ease); }
.frost svg { width: 34px; height: 34px; }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- landing ---------- */
.landing { padding-top: var(--s2); }
.hero { display: grid; gap: var(--s6); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: var(--s2); padding: 6px 12px; border-radius: var(--r-full); background: var(--brand-soft); color: var(--text); font-size: 13px; font-weight: 600; margin: 0; border: 1px solid rgba(112, 99, 255, 0.3); }
.cta-row { display: flex; gap: var(--s3); flex-wrap: wrap; }
.cta-row .btn { flex: 1 1 180px; }
.trust { list-style: none; padding: 0; margin: var(--s6) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.trust li { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.trust .ico { color: var(--brand); }
@media (prefers-color-scheme: dark) { .trust .ico, .feature .ico { color: #a39aff; } }
.trust div { display: grid; }
.trust strong { font-size: var(--t-sm); }
.trust span { font-size: var(--t-xs); color: var(--text-3); }
.hero-art { position: relative; min-height: 300px; display: grid; place-items: center; }
.hero-art .card3d { max-width: 380px; margin: 0; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.orb { position: absolute; border-radius: 50%; filter: blur(50px); opacity: 0.55; pointer-events: none; }
.o1 { width: 260px; height: 260px; background: #6f5cff; top: 0; right: 10%; }
.o2 { width: 200px; height: 200px; background: #2f8cff; bottom: 0; left: 5%; }
.float-chip { position: absolute; display: flex; align-items: center; gap: var(--s2); padding: 10px 14px; border-radius: var(--r-full); background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border-2); font-size: 13px; box-shadow: var(--shadow-md); white-space: nowrap; }
.float-chip .ico { color: var(--success); }
.float-chip strong { margin-left: var(--s1); }
.fc1 { bottom: 6%; right: 0; animation: float 6s ease-in-out -2s infinite; }
.fc2 { top: 4%; left: 0; animation: float 7s ease-in-out -4s infinite; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3) var(--s6); padding: var(--s6) 0; margin: var(--s6) 0 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.logo-word { font-weight: 700; color: var(--text-3); font-size: var(--t-md); letter-spacing: -0.01em; }
.features { display: grid; gap: var(--s4); margin: var(--s8) 0; }
.feature { padding: var(--s5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); transition: transform 250ms var(--ease), border-color 250ms; }
.feature:hover { transform: translateY(-3px); border-color: var(--border-2); }
.feature .feat { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); }
.feature p { color: var(--text-2); margin: 0; font-size: var(--t-sm); line-height: 1.6; }
.how { margin: var(--s8) 0; }
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s4); }
.how-steps li { position: relative; padding: var(--s5); padding-left: 72px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); }
.how-steps span { position: absolute; left: var(--s5); top: var(--s5); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-grad); color: #fff; font-weight: 700; font-size: var(--t-sm); }
.how-steps p { margin: 2px 0 0; color: var(--text-2); font-size: var(--t-sm); }
.fees-preview { margin: var(--s8) 0; }
.fee-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); margin-bottom: var(--s5); }
.fee-card { display: grid; gap: 2px; padding: var(--s5) var(--s4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.fee-card strong { font-size: var(--t-3xl); letter-spacing: -0.04em; line-height: 1.1; }
.fee-card span { font-weight: 600; font-size: var(--t-sm); }
.fee-card small { color: var(--text-3); font-size: var(--t-xs); }
.fee-card.accent { background: linear-gradient(160deg, rgba(112,99,255,0.22), rgba(47,140,255,0.08)); border-color: rgba(112,99,255,0.35); }
.foot { padding: var(--s6) 0 var(--s4); border-top: 1px solid var(--border); color: var(--text-3); font-size: 13px; line-height: 1.6; }
.foot p { margin: 0 0 var(--s2); }
.foot strong { color: var(--text-2); }

/* ---------- home ---------- */
.balance-hero { padding: var(--s5); margin: 0 calc(var(--s1) * -1) var(--s4); border-radius: var(--r-xl); background: linear-gradient(160deg, rgba(112,99,255,0.18), rgba(47,140,255,0.04) 60%), var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.balance-label { margin: 0; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); font-weight: 600; }
.balance { font-size: var(--t-5xl); line-height: 1.05; font-weight: 750; letter-spacing: -0.05em; margin: var(--s2) 0 var(--s5); font-variant-numeric: tabular-nums; min-height: 1.05em; }
.sub-balance { margin: calc(var(--s4) * -1) 0 var(--s5); color: var(--text-2); font-size: var(--t-sm); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.qa, .act { display: flex; flex-direction: column; align-items: center; gap: var(--s2); background: none; border: 0; color: var(--text); font-size: 12px; font-weight: 600; padding: var(--s1) 0; border-radius: var(--r-md); }
.qa-ico { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--border); transition: transform 160ms var(--ease), background 160ms; }
.qa-ico.primary { background: var(--brand-grad); color: #fff; border: 0; box-shadow: 0 8px 20px -6px rgba(112, 99, 255, 0.7); }
.qa:hover .qa-ico, .act:hover .qa-ico { transform: translateY(-2px); }
.qa:active .qa-ico, .act:active .qa-ico { transform: scale(0.94); }
.home-card-peek { display: flex; align-items: center; gap: var(--s3); width: 100%; text-align: left; padding: var(--s4); margin-bottom: var(--s4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); color: var(--text); font-weight: 600; font-size: var(--t-sm); transition: border-color 150ms; }
.home-card-peek:hover { border-color: var(--border-2); }
.home-card-peek span:nth-child(2) { flex: 1; }
.peek-chip { width: 40px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #8a6bff, #2f8cff); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25); }
.good-text { color: var(--success); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.good-text::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.warn-text { color: var(--warn); font-size: 13px; font-weight: 600; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--s2) var(--s4); }
.panel.pad { padding: var(--s5) var(--s4); }
.section-head { display: flex; justify-content: space-between; align-items: center; padding: var(--s3) 0 var(--s1); }

/* ---------- transactions ---------- */
.txn-list { list-style: none; padding: 0; margin: 0; }
.txn-list li + li { border-top: 1px solid var(--border); }
.txn-row { display: flex; align-items: center; gap: var(--s3); width: 100%; padding: var(--s3) 0; min-height: 68px; background: none; border: 0; text-align: left; color: inherit; border-radius: var(--r-sm); transition: background 150ms; }
.txn-row:hover { background: rgba(255,255,255,0.02); }
.txn-ico { width: 42px; height: 42px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); }
.txn-ico svg { width: 20px; height: 20px; }
.txn-ico.credit { background: var(--success-soft); color: var(--success); }
.txn-ico.declined { background: var(--danger-soft); color: var(--danger); }
.txn-ico.spend { background: var(--brand-soft); color: #a39aff; }
.txn-ico.lg { width: 64px; height: 64px; border-radius: 22px; margin: 0 auto var(--s3); }
.txn-ico.lg svg { width: 28px; height: 28px; }
.txn-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.txn-main strong { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txn-main span { font-size: 13px; color: var(--text-3); }
.txn-amt { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; font-size: 15px; white-space: nowrap; }
.txn-amt small { display: block; font-weight: 500; font-size: 12px; color: var(--text-3); }
.txn-amt.credit { color: var(--success); }
.txn-amt.declined { color: var(--text-3); text-decoration: line-through; }
.txn-amt.neutral { color: var(--text-2); }
.txn-hero { text-align: center; padding: var(--s3) 0 var(--s2); }
.txn-hero .balance { font-size: var(--t-4xl); margin-bottom: var(--s4); }
.empty { display: grid; justify-items: center; text-align: center; gap: var(--s1); padding: var(--s7) var(--s4); color: var(--text-3); font-size: var(--t-sm); }
.empty strong { color: var(--text); font-size: var(--t-md); }
.empty-ico { width: 56px; height: 56px; padding: 14px; border-radius: 20px; background: var(--surface-3); color: var(--text-2); margin-bottom: var(--s2); }

/* ---------- meta / details ---------- */
.meta { margin: var(--s4) 0; padding: var(--s1) var(--s4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); }
.meta div { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s3) 0; font-size: var(--t-sm); }
.meta div + div { border-top: 1px solid var(--border); }
.meta span { color: var(--text-2); }
.meta strong { text-align: right; font-weight: 600; }
.details { display: grid; gap: 0; padding: var(--s1) var(--s4); margin: 0 0 var(--s4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); animation: viewIn 300ms var(--ease); }
.details > div { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: var(--s3); row-gap: 2px; padding: var(--s3) 0; }
.details > div + div { border-top: 1px solid var(--border); }
.details > div > span { grid-column: 1 / -1; font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.details > div > strong { font-size: 17px; white-space: nowrap; font-weight: 600; }
.details .fine { padding-bottom: var(--s3); margin-top: var(--s1); }
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin: 0 0 var(--s4); }
.wallet-btn { background: #000; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), var(--shadow-md); }
.wallet-btn:hover { background: #0b0b0b; filter: none; }
@media (prefers-color-scheme: light) { .wallet-btn { background: #0d1021; } }
.card-layout { display: grid; gap: var(--s4); }
.sandbox-panel { display: grid; gap: var(--s2); margin: var(--s4) 0; padding: var(--s4); border: 1px dashed var(--border-2); border-radius: var(--r-lg); }
.sandbox-panel .eyebrow { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; color: var(--text-3); }

/* ---------- fee breakdown / quote ---------- */
.fee-breakdown, .receipt { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--s2) var(--s4); margin: 0 0 var(--s5); }
.fb-row, .quote-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s3) 0; font-size: 15px; }
.fb-row + .fb-row, .quote-row + .quote-row { border-top: 1px solid var(--border); }
.fb-row span { display: inline-flex; align-items: center; gap: var(--s3); color: var(--text-2); }
.fb-row .ico { color: var(--text-3); }
.fb-row strong, .quote-row strong { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.fb-row.total, .quote-row.total { border-top: 1px dashed var(--border-2) !important; }
.fb-row.total span { color: var(--text); font-weight: 600; }
.quote { display: grid; gap: var(--s4); margin-top: var(--s5); animation: viewIn 380ms var(--ease); }
.receipt { margin: 0; position: relative; }
.receipt-title { display: flex; align-items: center; gap: var(--s2); margin: var(--s3) 0 var(--s1); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.quote-row span { display: grid; gap: 2px; }
.quote-row small { color: var(--text-3); font-size: 12px; font-weight: 400; }
.quote-row.credit strong { color: var(--success); }
.quote-row.total { font-size: var(--t-lg); }
.quote-row.total span { font-weight: 650; }
.qr-box { display: grid; justify-items: center; gap: var(--s3); padding: var(--s5) var(--s4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); text-align: center; }
.send-exact { margin: 0; color: var(--text-2); font-size: var(--t-sm); }
.send-exact strong { display: block; color: var(--text); font-size: var(--t-2xl); letter-spacing: -0.03em; margin-top: 2px; }
.qr { width: 196px; height: 196px; background: #fff; border-radius: var(--r-lg); padding: 10px; box-shadow: var(--shadow-md); }
.qr svg { display: block; width: 100%; height: 100%; }
.addr-row { display: flex; align-items: center; gap: var(--s2); width: 100%; padding: var(--s2) var(--s2) var(--s2) var(--s3); background: var(--surface-2); border-radius: var(--r-md); }
.addr-row .mono { flex: 1; margin: 0; font-size: 12px; word-break: break-all; text-align: left; }
.warn { color: var(--warn); margin: 0; display: flex; gap: var(--s2); align-items: flex-start; text-align: left; }
.hint { color: var(--text-3); }

/* ---------- wallet guide ---------- */
.seg { display: flex; padding: 4px; gap: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-full); margin: 0 0 var(--s5); }
.seg button { flex: 1; border: 0; background: none; color: var(--text-2); min-height: 40px; border-radius: var(--r-full); font-weight: 600; transition: all 200ms var(--ease); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--border-2); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 var(--s5); display: grid; gap: var(--s4); animation: viewIn 300ms var(--ease); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; column-gap: var(--s3); row-gap: 2px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--text); font-weight: 700; font-size: 13px; box-shadow: inset 0 0 0 1px rgba(112,99,255,0.35); }
.steps strong { font-size: 15px; }
.steps span { color: var(--text-2); font-size: var(--t-sm); line-height: 1.5; }
.callout { display: flex; gap: var(--s3); padding: var(--s4); margin: var(--s4) 0; border-radius: var(--r-lg); background: var(--warn-soft); border: 1px solid rgba(251, 191, 36, 0.25); }
.callout.info { display: block; background: var(--brand-soft); border-color: rgba(112, 99, 255, 0.3); }
.callout-ico { color: var(--warn); margin-top: 1px; }
.callout strong { display: block; margin-bottom: var(--s1); font-size: 15px; }
.callout p { margin: 0; color: var(--text-2); font-size: var(--t-sm); line-height: 1.55; }

/* ---------- fees table ---------- */
.fee-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; }
.fee-table th, .fee-table td { padding: var(--s4); vertical-align: top; }
.fee-table tr + tr th, .fee-table tr + tr td { border-top: 1px solid var(--border); }
.fee-table th { text-align: left; font-weight: 600; font-size: 15px; }
.fee-table th small { display: block; color: var(--text-3); font-weight: 400; font-size: 13px; margin-top: 2px; }
.fee-table td { text-align: right; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- settings ---------- */
.profile-head { display: flex; align-items: center; gap: var(--s4); margin: var(--s3) 0 var(--s5); }
.profile-head div { display: grid; }
.profile-head span:not(.avatar) { color: var(--text-3); font-size: var(--t-sm); }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-grad); color: #fff; font-weight: 700; font-size: var(--t-xl); box-shadow: 0 8px 20px -6px rgba(112,99,255,0.6); }
.settings-links { list-style: none; margin: var(--s4) 0 0; padding: var(--s1) var(--s4); }
.settings-links li + li { border-top: 1px solid var(--border); }
.row-link, .row-static { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 56px; padding: 0; background: none; border: 0; color: var(--text); font-weight: 600; font-size: 15px; text-align: left; }
.row-link span, .row-static span { flex: 1; }
.row-static strong { color: var(--text-2); font-weight: 500; font-size: var(--t-sm); }
.row-link .ico, .row-static .ico { color: var(--text-3); }

/* ---------- skeleton ---------- */
.skeleton { display: inline-block; height: 0.8em; border-radius: 8px; background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; vertical-align: middle; }
.w-10 { width: 3ch; } .w-20 { width: 5ch; } .w-40 { width: 40%; } .w-60 { width: 60%; }
.sk-row { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) 0; }
.sk-row .sk-ico { width: 42px; height: 42px; border-radius: 14px; }
.sk-row .sk-lines { flex: 1; display: grid; gap: var(--s2); }
.sk-row .skeleton { display: block; height: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- tab bar / sidebar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  padding: var(--s2) var(--s2) calc(var(--s2) + var(--safe-b));
  background: var(--glass); backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-top: 1px solid var(--border);
}
.tabbar button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; min-height: 52px; background: none; border: 0; color: var(--text-3); font-size: 11px; font-weight: 600; border-radius: var(--r-md); transition: color 150ms; }
.tabbar button .ico { width: 24px; height: 24px; transition: transform 200ms var(--ease); }
.tabbar button.on { color: var(--text); }
.tabbar button.on .ico { transform: translateY(-1px); }
.tabbar .tab-add .ico { width: 48px; height: 48px; padding: 12px; margin-top: -22px; border-radius: 18px; background: var(--brand-grad); color: #fff; box-shadow: 0 10px 24px -6px rgba(112, 99, 255, 0.8); }
.tabbar .tab-add span { color: var(--text-2); }

/* ---------- modal / toast / busy ---------- */
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: end center; padding: var(--s4); background: rgba(4, 5, 10, 0.6); backdrop-filter: blur(6px); animation: fadeIn 200ms var(--ease); }
.modal-card { width: 100%; max-width: 420px; padding: var(--s6) var(--s5) var(--s5); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border-2); box-shadow: var(--shadow-lg); text-align: center; animation: sheetUp 320ms var(--ease); margin-bottom: var(--safe-b); }
.modal-card h2 { font-size: var(--t-xl); margin: var(--s3) 0 var(--s2); }
.modal-card p { color: var(--text-2); margin: 0 0 var(--s5); font-size: 15px; }
.modal-ico { width: 56px; height: 56px; display: inline-grid; place-items: center; border-radius: 20px; background: var(--brand-soft); color: var(--text); }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
@keyframes sheetUp { from { transform: translateY(24px); opacity: 0; } }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + var(--s4)); z-index: 45;
  display: flex; align-items: center; gap: var(--s2); max-width: calc(100% - 32px);
  padding: 12px 18px 12px 14px; border-radius: var(--r-full);
  background: var(--surface-3); color: var(--text); border: 1px solid var(--border-2);
  font-weight: 600; font-size: var(--t-sm); box-shadow: var(--shadow-lg);
  transform: translateX(-50%); animation: toastIn 320ms var(--ease);
}
.toast .ico { color: var(--success); width: 20px; height: 20px; }
.toast.error .ico { color: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px) scale(0.98); } }
.busy { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(4, 5, 10, 0.25); animation: fadeIn 150ms 120ms both; }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--brand); animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .how-steps { grid-template-columns: repeat(3, 1fr); }
  .how-steps li { padding-left: var(--s5); padding-top: 72px; }
  .fee-cards { grid-template-columns: repeat(4, 1fr); }
  .fees-preview .btn { max-width: 320px; }
  .modal { place-items: center; }
}
@media (min-width: 960px) {
  .topbar { padding-left: var(--s6); padding-right: var(--s6); }
  .shell { flex-direction: row; max-width: 1240px; width: 100%; margin: 0 auto; }
  .tabbar {
    position: sticky; top: 65px; align-self: flex-start;
    display: flex; flex-direction: column; gap: var(--s1);
    width: 248px; height: calc(100dvh - 65px); padding: var(--s6) var(--s4);
    background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-top: 0; border-right: 1px solid var(--border);
  }
  .tabbar button { flex-direction: row; justify-content: flex-start; gap: var(--s3); width: 100%; min-height: 48px; padding: 0 var(--s4); font-size: 15px; color: var(--text-2); }
  .tabbar button:hover { background: var(--surface); color: var(--text); }
  .tabbar button.on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
  .tabbar .tab-add { order: 10; margin-top: var(--s4); background: var(--brand-grad) !important; color: #fff !important; justify-content: center; box-shadow: 0 8px 24px -8px rgba(112,99,255,0.7) !important; }
  .tabbar .tab-add .ico { width: 20px; height: 20px; padding: 0; margin: 0; background: none; box-shadow: none; }
  .tabbar .tab-add span { color: #fff; }
  main { max-width: 880px; padding: var(--s7) var(--s8) var(--s9); margin: 0; flex: 1; }
  main:has(> .view.narrow:not(.hidden)) > .view { max-width: 560px; }
  body.onboarding main { margin: 0 auto; max-width: 600px; }
  body.is-landing main { max-width: 1240px; margin: 0 auto; padding: var(--s6) var(--s6) var(--s6); }
  h1 { font-size: var(--t-4xl); }
  .display { font-size: 64px; }
  .hero { grid-template-columns: 1.05fr 1fr; gap: var(--s9); min-height: 560px; }
  .hero-art { min-height: 480px; }
  .hero-art .card3d { max-width: 440px; }
  .card-layout { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: var(--s7); align-items: start; }
  .card-layout .card3d { margin-top: 0; }
  .balance-hero { padding: var(--s6); }
  .quick { max-width: 480px; }
  .toast { bottom: var(--s6); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- terms / footers ---------- */
.terms h2 { font-size: var(--t-lg); margin: var(--s5) 0 var(--s2); }
.terms p { color: var(--text-2); line-height: 1.65; margin: 0; font-size: 15px; }
.foot-main { color: var(--text) !important; font-weight: 600; font-size: var(--t-sm); }
.link-btn { background: none; border: 0; padding: 0; color: var(--text-2); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--text); }
.app-foot { margin: var(--s6) 0 0; padding-top: var(--s4); border-top: 1px solid var(--border); color: var(--text-3); font-size: 12px; line-height: 1.6; text-align: center; }
body:not(.is-landing) .only-landing { display: none !important; }
.topbar .btn.sm { white-space: nowrap; }
@media (max-width: 420px) { body.is-landing .topbar .badge { display: none; } }

/* ---------- card network label ---------- */
.c-net { margin-left: auto; align-self: flex-end; font-size: 11px !important; font-weight: 700 !important; letter-spacing: 0.14em !important; text-transform: uppercase; color: rgba(255,255,255,0.78) !important; padding: 5px 9px; border: 1px solid rgba(255,255,255,0.22); border-radius: var(--r-full); background: rgba(255,255,255,0.06); white-space: nowrap; }
.c-net.brand { font-size: 22px !important; font-weight: 900 !important; font-style: italic; letter-spacing: -0.02em !important; text-transform: none; color: #fff !important; padding: 0; border: 0; background: none; }

/* ---------- card actions: 4 across ---------- */
#cardActions { grid-template-columns: repeat(4, 1fr); }

/* ---------- move to wallet ---------- */
.flow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s2); margin: 0 0 var(--s4); }
.flow-node { display: grid; justify-items: center; gap: 2px; padding: var(--s4) var(--s3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); text-align: center; }
.flow-node small { color: var(--text-3); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-top: var(--s1); }
.flow-node strong { font-size: var(--t-xl); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; min-width: 80px; }
.flow-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-2, #8a6bff); }
.flow-ico.alt { background: rgba(52, 211, 153, 0.14); color: var(--success); }
.flow-arrow { color: var(--text-3); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .flow-arrow { animation: none; } }
.fee-pill { display: flex; align-items: flex-start; gap: var(--s2); padding: var(--s3) var(--s4); margin: 0 0 var(--s5); border-radius: var(--r-lg); background: var(--brand-soft); border: 1px solid rgba(112, 99, 255, 0.3); font-size: var(--t-sm); }
.fee-pill .ico { margin-top: 2px; color: var(--brand-2, #8a6bff); flex: none; }
.fee-pill small { display: block; color: var(--text-3); font-size: 12px; margin-top: 2px; }
#moveQuote .btn { margin-top: var(--s4); width: 100%; }

/* ---------- fees table with split ---------- */
.fee-table thead th, .fee-table thead td { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); padding-top: var(--s3); padding-bottom: var(--s3); background: var(--surface-2); }
.fee-table tbody tr:first-child th, .fee-table tbody tr:first-child td { border-top: 1px solid var(--border); }
.fee-table td.col-split { color: var(--text-2); font-weight: 500; font-size: 14px; }
.fee-table td.col-split.desk { color: var(--brand-2, #8a6bff); }
@media (max-width: 639px) {
  .fee-table .col-split { display: none; }
}
.margins { margin-top: var(--s5); }
.margins h2 { font-size: var(--t-lg); margin: 0 0 var(--s3); }
.meta div.sub { padding: var(--s1) 0 var(--s2) var(--s4); border-top: 0 !important; font-size: 13px; color: var(--text-3); }
.meta div.sub strong { font-weight: 500; color: var(--text-2); }

/* neutral network label: compact stacked wordmark so it never truncates */
.c-bot .c-net { flex: none; overflow: visible !important; text-overflow: clip !important; }
.c-bot .c-net:not(.brand) { white-space: normal !important; width: 64px; text-align: right; line-height: 1.2; font-size: 10px !important; letter-spacing: 0.16em !important; padding: 0; border: 0; background: none; color: rgba(255,255,255,0.85) !important; }
.fee-table thead th, .fee-table thead td, .fee-table thead td.col-split { font-size: 11px !important; font-weight: 700 !important; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3) !important; }
.fee-table.split tbody th { width: 46%; }

/* ==========================================================================
   Simplicity pass: bigger targets, plain choices, loading states, PWA bits
   ========================================================================== */
.preset { min-height: 48px; font-size: var(--t-md); }
.presets.big { grid-template-columns: repeat(4, 1fr); margin: 0; }
.presets.big .preset { min-height: 56px; font-size: var(--t-lg); font-weight: 700; }
.legend-sub { display: block; font-weight: 500; color: var(--text-3); margin-top: 2px; }
.fine, .status-line, .hint, .warn { font-size: 14px; }

/* loading button: keeps its size, shows a spinner, blocks double taps */
.btn.loading, .act.loading { color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,0.35); border-top-color: #fff; animation: spin 700ms linear infinite; }
.btn.ghost.loading::after { border-color: var(--border-2); border-top-color: var(--text); }
.act.loading .qa-ico { animation: pulse 900ms ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.45; } }
.btn:disabled.loading { opacity: 1; }

/* copy feedback */
.copy-btn { min-height: 44px; padding: 0 var(--s4); }
.copy-btn.copied { background: var(--success-soft); color: var(--success); }
.copy-btn.copied svg { display: none; }
.copy-btn.copied::before { content: "✓"; font-weight: 800; }

/* toast action */
.toast-act { margin-left: var(--s2); background: var(--brand-soft); color: var(--text); border: 0; border-radius: var(--r-full); min-height: 36px; padding: 0 var(--s3); font-weight: 700; font-size: 13px; }

/* offline bar */
.offline-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: center; gap: var(--s2); padding: calc(var(--s2) + var(--safe-t)) var(--s4) var(--s2); background: var(--warn); color: #1a1200; font-weight: 650; font-size: var(--t-sm); }

/* landing cost calculator */
.calc { margin: var(--s8) 0 0; padding: var(--s5); border-radius: var(--r-xl); background: linear-gradient(160deg, rgba(112,99,255,0.16), rgba(47,140,255,0.05) 60%), var(--surface); border: 1px solid rgba(112,99,255,0.28); box-shadow: var(--shadow-md); scroll-margin-top: 90px; }
.calc .h2 { margin-bottom: var(--s2); }
.calc .lede { margin-bottom: var(--s4); }
.calc-body { display: grid; gap: var(--s4); }
.calc-result { display: grid; gap: var(--s3); padding: var(--s4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.calc-big { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.calc-big small { color: var(--text-2); font-weight: 600; font-size: var(--t-sm); }
.calc-big strong { font-size: var(--t-3xl); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.calc-line { display: flex; justify-content: space-between; gap: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--border); font-size: var(--t-sm); color: var(--text-2); }
.calc-line strong { color: var(--text); font-variant-numeric: tabular-nums; }
@media (min-width: 960px) {
  .calc { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s7); align-items: center; padding: var(--s7); }
  .calc .btn { max-width: 320px; }
}

/* live fee preview under the amount */
.preview { margin: calc(var(--s2) * -1) 0 0; min-height: 22px; font-size: var(--t-sm); color: var(--text-2); opacity: 0; transform: translateY(-4px); transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.preview.on { opacity: 1; transform: none; }
.preview strong { color: var(--text); }

/* network picker: big cards instead of a dropdown */
.net-list { display: grid; gap: var(--s2); }
.net-opt { position: relative; display: flex; align-items: center; gap: var(--s3); min-height: 64px; padding: var(--s3) var(--s4); background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-lg); cursor: pointer; transition: border-color 150ms, background 150ms, transform 120ms var(--ease); }
.net-opt:active { transform: scale(0.99); }
.net-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.net-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.net-opt:has(input:focus-visible) { box-shadow: var(--brand-ring); }
.net-opt.sk { display: grid; gap: var(--s2); cursor: default; }
.net-main { flex: 1; display: grid; gap: 2px; }
.net-main strong { font-size: var(--t-md); display: inline-flex; align-items: center; gap: var(--s2); }
.net-main small { color: var(--text-2); font-size: 13px; line-height: 1.4; }
.tag { display: inline-block; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; padding: 2px 8px; border-radius: var(--r-full); background: var(--success-soft); color: var(--success); margin-left: var(--s2); vertical-align: 2px; }
.radio-dot { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--border-2); transition: all 150ms; }
.net-opt:has(input:checked) .radio-dot { border: 7px solid var(--brand); background: #fff; }

/* send screen */
.net-banner { margin: 0; padding: var(--s2) var(--s4); border-radius: var(--r-full); background: var(--brand-soft); border: 1px solid rgba(112,99,255,0.35); font-size: var(--t-md); }
.checklist { list-style: none; padding: 0; margin: var(--s2) 0 0; display: grid; gap: var(--s3); text-align: left; width: 100%; }
.checklist li, .ios-steps li { display: flex; gap: var(--s3); align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.checklist strong, .ios-steps strong { color: var(--text); }
.step-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--brand-soft); color: var(--text); box-shadow: inset 0 0 0 1px rgba(112,99,255,0.35); }
.addr-row .mono { font-size: 13px; }
.qr { width: 220px; height: 220px; }
.sticky-cta { display: grid; gap: var(--s2); }
@media (max-width: 959px) {
  .sticky-cta { position: sticky; bottom: calc(var(--tab-h) + var(--safe-b) + var(--s2)); z-index: 5; padding: var(--s3); margin: 0 calc(var(--s3) * -1); border-radius: var(--r-xl); background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  body:not(:has(#tabbar:not(.hidden))) .sticky-cta { bottom: calc(var(--safe-b) + var(--s2)); }
}
.done-state { display: grid; justify-items: center; text-align: center; padding: var(--s8) 0; }
.done-ico { width: 88px; height: 88px; display: grid; place-items: center; border-radius: 50%; background: var(--success-soft); color: var(--success); margin-bottom: var(--s4); animation: pop 520ms var(--ease) both; }
.done-ico .ico { width: 44px; height: 44px; }
@keyframes pop { 0% { transform: scale(0.4); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }

/* help */
.faq { display: grid; gap: var(--s2); margin-bottom: var(--s5); }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: border-color 150ms; }
.faq details[open] { border-color: var(--border-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); min-height: 56px; padding: var(--s3) var(--s4); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--text-3); transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 var(--s4) var(--s4); color: var(--text-2); font-size: 15px; line-height: 1.6; animation: viewIn 250ms var(--ease); }
.support-card { display: flex; align-items: center; gap: var(--s3); padding: var(--s4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); text-decoration: none; }
.support-card span:nth-child(2) { flex: 1; display: grid; }
.support-card small { color: var(--text-3); font-size: 13px; }
.empty.big { padding: var(--s9) var(--s4); gap: var(--s2); }
.empty.big .btn { margin-top: var(--s4); max-width: 260px; }
.empty .btn.sm { margin-top: var(--s3); }

/* install banner and sheet */
.install-banner { position: fixed; left: var(--s3); right: var(--s3); bottom: calc(var(--tab-h) + var(--safe-b) + var(--s3)); z-index: 25; display: flex; align-items: center; gap: var(--s3); padding: var(--s3); border-radius: var(--r-xl); background: var(--surface-2); border: 1px solid var(--border-2); box-shadow: var(--shadow-lg); animation: sheetUp 360ms var(--ease) both; }
body.is-landing .install-banner { bottom: calc(var(--safe-b) + var(--s3)); }
.install-banner img { border-radius: 12px; flex: none; }
.install-banner div { flex: 1; display: grid; min-width: 0; }
.install-banner strong { font-size: 15px; }
.install-banner span { font-size: 13px; color: var(--text-2); }
.install-banner .btn.sm { min-height: 44px; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--text-2); flex: none; }
.icon-btn:hover { background: var(--surface-3); }
@media (min-width: 960px) { .install-banner { left: auto; right: var(--s6); bottom: var(--s6); max-width: 440px; } }
.sheet-icon { border-radius: 16px; box-shadow: var(--shadow-md); }
.ios-steps { list-style: none; padding: 0; margin: var(--s4) 0 var(--s5); display: grid; gap: var(--s3); text-align: left; }
.ico.inline { vertical-align: -3px; color: #3d8bff; }

/* smoother screen changes */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 220ms; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
.view { animation-duration: 320ms; }
h1:focus { outline: none; box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
  .preview { transition: none; }
}
.net-main strong .tag { margin-left: var(--s1); }
.sticky-cta { margin-top: var(--s2); }
@media (max-width: 959px) { .sticky-cta { padding: var(--s2); background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; } }
