:root {
  color-scheme: dark;
  --bg: #0c0c0c;
  --elev: #13171e;
  --elev-2: #1c222c;
  --text: #f4f5f7;
  --muted: #9aa3af;
  --line: #2a3140;
  --accent: #a585ff;
  --accent-2: #83e7ee;
  --gold: #fdcb0b;
  --danger: #ffb4b4;
  --ok: #8ee0b0;
  --warn-bg: #2a2416;
  --warn-text: #f3d48a;
  --cta: #a585ff;
  --cta-text: #140c22;
  --cta-off: #2a2e36;
  --cta-off-text: #8b939e;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --glow: rgba(165, 133, 255, 0.42);
  --glow-soft: rgba(165, 133, 255, 0.18);
  --motion: 180ms;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f4f7;
  --elev: #ffffff;
  --elev-2: #e8ebf1;
  --text: #1a1d26;
  --muted: #5c6570;
  --line: #e4e7ec;
  --warn-bg: #fff6df;
  --warn-text: #6b5200;
  --cta-text: #1a1030;
  --cta-off: #e4e7ec;
  --cta-off-text: #8b939e;
  --shadow: 0 12px 32px rgba(20, 24, 33, 0.08);
  --glow: rgba(165, 133, 255, 0.30);
  --glow-soft: rgba(165, 133, 255, 0.14);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: #07080a;
  color: var(--text);
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.app {
  min-height: 100dvh;
  height: 100dvh;
  max-width: 430px;
  margin: 0 auto;
  background:
    radial-gradient(120% 46% at 50% -12%, var(--glow), transparent 56%),
    radial-gradient(42% 26% at 100% 0%, var(--glow-soft), transparent 70%),
    var(--bg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.shell { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.main { flex: 1; min-height: 0; overflow: auto; padding: 20px 18px 24px; }
.top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.top h1, .screen-title {
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
  font-weight: 650;
}
.mark { width: 36px; height: 36px; border-radius: 10px; }
.muted { color: var(--muted); }
.lede { color: var(--muted); margin: 8px 0 0; line-height: 1.45; }
.back {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 0;
  background: var(--elev);
  color: var(--text);
}
html[dir="rtl"] .back svg { transform: scaleX(-1); }
.balance-label {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.balance-amt {
  margin: 4px 0 0;
  font-size: 40px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
.balance-ccy { font-size: 16px; margin-right: 6px; color: var(--muted); font-weight: 600; }
.peg { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 22px 0;
}
.action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 0;
}
.action span { font-size: 12px; color: var(--muted); }
.bubble {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--elev);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}
.action.primary .bubble { background: var(--accent); color: var(--cta-text); border-color: transparent; }
.btn svg, .action svg, .nav svg, .row svg, .choice svg, .trio svg, .my-cards svg, .empty-tx-mark svg, .nudge svg,
.refer-gem svg, .refer-go svg, .ccy-pill svg, .strip-ico svg, .strip-side svg, .token-pill svg, .swap-flip svg, .move-arrow svg, .asset-mark svg {
  width: 22px;
  height: 22px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.section { margin: 8px 0 18px; }
.section h2 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}
.card, .row, .choice, .notice, .warn, .demo, .qr-card, .field {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.row, .choice {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: start;
  padding: 14px;
  margin: 0 0 8px;
}
a.row, a.row:visited { color: inherit; text-decoration: none; }
a.row small { text-decoration: underline; text-underline-offset: 2px; }
.row strong, .choice strong { display: block; font-size: 15px; }
.row small, .choice small { color: var(--muted); }
.choice .keep { white-space: nowrap; }
.grow { flex: 1; }
.pill {
  font-size: 11px;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--elev-2);
  color: var(--muted);
}
.pill.live { color: var(--ok); }
.amt { font-variant-numeric: tabular-nums; font-weight: 650; }
.cards-strip { display: flex; flex-direction: column; gap: 10px; overflow: visible; }
.mini-card {
  min-width: 180px;
  height: 104px;
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(160deg, #24183d, #13171e 60%);
  border: 1px solid var(--line);
  color: inherit;
  text-align: left;
}
html[data-theme="light"] .mini-card { background: linear-gradient(160deg, #efe7ff, #ffffff 70%); }
.mini-card span { display: block; color: var(--muted); font-size: 12px; margin-top: 28px; }
.empty { color: var(--muted); padding: 8px 2px 16px; }
.nav {
  position: static;
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--muted);
  font-size: 11px;
  min-height: 48px;
  justify-content: center;
}
.nav a[aria-current="page"] { color: var(--text); }
.stack { display: flex; flex-direction: column; gap: 12px; }
label.lbl { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input[type="email"], input[type="password"], input[type="text"], input[type="tel"] {
  width: 100%;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 14px;
  outline: none;
  min-height: 48px;
}
input:focus { border-color: var(--accent); }
.btn {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #141414;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
}
html[data-theme="light"] .btn { background: #141414; color: #ffffff; }
.btn[disabled],
html[data-theme="light"] .btn[disabled] { background: var(--cta-off); color: var(--cta-off-text); cursor: default; }
.btn.secondary,
html[data-theme="light"] .btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.secondary:active,
.btn.secondary.is-copied,
html[data-theme="light"] .btn.secondary:active,
html[data-theme="light"] .btn.secondary.is-copied {
  background: var(--elev-2);
  border-color: var(--muted);
}
.btn.secondary[disabled] { color: var(--muted); cursor: default; }
.btn.text,
html[data-theme="light"] .btn.text { background: transparent; color: var(--accent); min-height: 40px; }
.add-btn { width: auto; min-height: 36px; padding: 0 16px; border-radius: 999px; margin-left: auto; }
.err { color: var(--danger); font-size: 14px; margin: 0; }
.ok-note, .notice {
  padding: 12px 14px;
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 12%, var(--elev));
  border-radius: 14px;
  border: 1px solid var(--line);
}
.demo, .warn { padding: 12px 14px; }
.warn { background: var(--warn-bg); color: var(--warn-text); border-color: transparent; }
.demo strong { font-weight: 700; }
.brand-lock { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.hero { padding-top: 28px; }
.qr-card { padding: 16px; display: grid; justify-items: center; gap: 8px; }
.qr-card > .btn { justify-self: stretch; }
.qr-card > svg { width: 220px; height: 220px; background: #fff; border-radius: 12px; }
.btn [data-copy-label] { white-space: nowrap; }
.addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  word-break: break-all;
  text-align: center;
  margin: 0;
}
.rules { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.rules li.met { color: var(--ok); }
.sheet-root {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 20;
}
.sheet {
  width: min(430px, 100%);
  background: var(--elev);
  color: var(--text);
  border-radius: 24px 24px 0 0;
  max-height: min(88vh, 720px);
  overflow: auto;
  padding: 12px 16px calc(18px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow);
  animation: sheet-rise var(--motion) ease-out;
}
.grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 4px auto 12px; }
.sheet h2 { margin: 0 0 8px; font-size: 18px; }
.sheet p { color: var(--muted); line-height: 1.45; }
.sheet .balance-amt { color: var(--text); }
.sheet .btn + .btn { margin-top: 8px; }
.sheet.soon { padding-top: 18px; }
.sheet.coupon-sheet { min-height: 320px; }
.sheet.coupon-sheet h2 { margin: 0; font-size: 18px; }
.coupon-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 12px 28px;
  color: var(--muted);
}
.coupon-empty .empty-tx-mark { background: var(--elev-2); }
.coupon-empty strong { color: var(--text); font-size: 16px; font-weight: 650; }
.coupon-empty p { margin: 6px 0 0; font-size: 13px; }
.soon-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 8px; }
.sheet.soon h2 { margin: 0; font-size: 22px; font-weight: 700; }
.soon-lede { margin: 0 0 12px; font-size: 15px; line-height: 1.45; }
.choice.active { border-color: var(--accent); }
.top h1 { flex: 1; }
.filters, .seg { display: flex; gap: 8px; margin: 0 0 12px; flex-wrap: wrap; }
.chip, .seg button {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  min-height: 36px;
  padding: 0 12px;
}
.chip[aria-pressed="true"], .seg button[aria-pressed="true"] { color: var(--text); border-color: var(--accent); background: var(--elev); }
.chip[data-action="card-sort-done"] {
  color: var(--cta-text);
  background: var(--accent);
  border-color: transparent;
  font-weight: 650;
}
.my-cards {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  min-height: 36px;
}
.my-cards svg { width: 16px; height: 16px; }
.card-overview { margin: 0 -18px; }
.card-overview-body { padding: 14px 18px 0; }
.hero-card {
  position: relative;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #12141a;
}
.hero-card.rainbow {
  background:
    radial-gradient(90% 80% at 18% 42%, rgba(165, 133, 255, 0.72), transparent 58%),
    radial-gradient(70% 70% at 62% 28%, rgba(224, 120, 90, 0.35), transparent 50%),
    linear-gradient(180deg, #1a1428, #0c0d12);
}
.hero-card.gold {
  background:
    radial-gradient(80% 75% at 20% 40%, rgba(212, 168, 74, 0.7), transparent 55%),
    linear-gradient(180deg, #2a2316, #100e0c);
}
.hero-card.mc {
  background:
    radial-gradient(88% 72% at 8% 0%, rgba(255, 122, 42, 0.62), transparent 58%),
    radial-gradient(48% 42% at 96% 0%, rgba(124, 92, 255, 0.28), transparent 62%),
    radial-gradient(70% 60% at 70% 18%, rgba(255, 186, 92, 0.22), transparent 54%),
    linear-gradient(180deg, #2a1810 0%, #16141c 58%, #0c0d11 100%);
}
.hero-card.visa {
  background:
    radial-gradient(85% 80% at 18% 46%, rgba(90, 120, 255, 0.42), transparent 56%),
    linear-gradient(180deg, #161a24, #0c0d11);
}
.hero-card.amex {
  background:
    radial-gradient(85% 80% at 18% 46%, rgba(80, 160, 190, 0.42), transparent 56%),
    linear-gradient(180deg, #14181c, #0c0d11);
}
.hero-face {
  min-height: 232px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 18px 20px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 20%, rgba(0, 0, 0, 0.34) 100%);
}
.hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hero-bal-label { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.78); }
.hero-bal-amt {
  margin: 6px 0 18px;
  font-size: 40px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero-bal-amt .bal-sym { font-size: 30px; margin-right: 1px; }
.hero-bal-amt .bal-ccy { font-size: 16px; margin-left: 6px; font-weight: 600; opacity: 0.8; }
.hero-more { color: rgba(255, 255, 255, 0.88); }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hero-last4 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.9);
}
.hero-brand { text-align: right; }
.hero-scheme {
  margin: 0;
  font-size: 28px;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1;
}
.hero-tier { margin: 4px 0 0; font-size: 15px; font-weight: 500; line-height: 1.1; color: rgba(255, 255, 255, 0.82); }
.bal-panel {
  background: var(--elev);
  border-radius: 16px;
  padding: 12px 8px 10px 16px;
  margin: 0 0 12px;
}
.bal-label { margin: 0; font-size: 13px; color: var(--muted); }
.bal-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bal-amt {
  margin: 2px 0 0;
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.bal-sym { font-size: 28px; margin-right: 1px; }
.bal-ccy { font-size: 14px; margin-left: 6px; color: var(--muted); font-weight: 600; }
.bal-more {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  flex: none;
  padding: 0;
}
.bal-more svg { width: 18px; height: 18px; stroke: none; fill: currentColor; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 16px; }
.trio .act {
  width: 100%;
  min-height: 78px;
  border: 0;
  border-radius: 14px;
  background: var(--elev);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 6px;
}
.trio .act span { font-size: 13px; font-weight: 500; }
.trio .act.ghost,
.trio .act:disabled {
  opacity: 0.38;
  color: var(--muted);
  cursor: default;
}
.section.tx-section h2 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
}
.section.tx-section.tx-quiet .top { margin-bottom: 2px; }
.section.tx-section.tx-quiet h2 {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.empty-tx {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 12px 12px;
  color: var(--muted);
}
.empty-tx-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--elev);
  color: var(--muted);
  margin-bottom: 12px;
}
.empty-tx strong { color: var(--text); font-size: 15px; font-weight: 650; }
.empty-tx p { margin: 4px 0 0; font-size: 13px; line-height: 1.45; }
.nick-row .nick-value {
  color: var(--muted);
  font-size: 14px;
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: none;
}
.freeze-row small { display: block; margin-top: 2px; line-height: 1.35; font-size: 12px; }
.switch {
  width: 51px;
  height: 31px;
  border-radius: 999px;
  background: #3a4150;
  position: relative;
  flex: none;
  transition: background 0.2s ease;
}
.switch:after {
  content: "";
  position: absolute;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.switch.on { background: #34c759; }
.switch.on:after { transform: translateX(20px); }
html[data-theme="light"] .switch { background: #d5dae3; }
html[data-theme="light"] .switch.on { background: #34c759; }
.btn.danger,
html[data-theme="light"] .btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--line); }
.group { margin: 14px 0 4px; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.faq-item { margin: 0 0 8px; }
.faq-q { margin-bottom: 0; }
.faq-q[aria-expanded="true"] { border-radius: 16px 16px 0 0; border-bottom-color: transparent; }
.faq-a {
  display: none;
  margin: 0;
  padding: 0 14px 14px;
  background: var(--elev);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  color: var(--muted);
  line-height: 1.45;
}
.faq-a.open { display: block; }
.faq-chevron { display: grid; place-items: center; color: var(--muted); flex: none; }
.faq-chevron svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s ease;
}
.faq-q[aria-expanded="true"] .faq-chevron svg { transform: rotate(90deg); }
.coming-soon { cursor: default; }
.refer-withdraw { margin-top: 12px; }
.pill.count { min-width: 1.75em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 650; }
.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 8px;
}
.about-version { margin: 0; color: var(--muted); font-size: 13px; }
.about-mark { width: 48px; height: 48px; border-radius: 14px; margin-top: 22px; }
.about-name { margin: 12px 0 0; font-size: 22px; font-weight: 700; }
.about-tagline { margin: 6px 0 0; font-size: 16px; font-weight: 650; }
.about .lede { max-width: 36em; }
.about-row { width: 100%; margin-top: 22px; text-align: start; }
.about-foot { margin: 28px 0 0; font-size: 13px; color: var(--muted); }
.key-input { letter-spacing: 0.28em; }
.card-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px;
  margin: 0 0 10px;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
}
.card-row.reordering { cursor: default; padding: 8px 8px 8px 6px; gap: 8px; margin-bottom: 8px; }
.card-row.reordering .cover { width: 56px; height: 36px; border-radius: 6px; }
.grip {
  width: 12px;
  display: grid;
  grid-template-columns: repeat(2, 3px);
  gap: 3px;
  align-content: center;
  justify-content: center;
  flex: none;
  color: var(--muted);
}
.grip i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  display: block;
}
.nudge { display: flex; flex-direction: column; gap: 2px; flex: none; }
.nudge button {
  width: 28px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  display: grid;
  place-items: center;
  padding: 0;
}
.nudge button:disabled { opacity: 0.35; cursor: default; }
.nudge button svg { width: 16px; height: 16px; }
.nudge button[data-dir="up"] svg { transform: rotate(-90deg); }
.nudge button[data-dir="down"] svg { transform: rotate(90deg); }
.card-row .grow { min-width: 0; }
.card-row .grow strong.card-name {
  display: block;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-row .grow small.card-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.5em;
  row-gap: 1px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}
.card-row .card-last4,
.card-row .card-kind { white-space: nowrap; }
.card-row .card-last4 { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.card-row.reordering .card-name { font-size: 14px; }
.card-row.reordering .card-sub { font-size: 12px; }
.card-row.reordering .card-meta .amt { font-size: 13px; }
.card-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; align-self: center; }
.card-meta small, .scheme, .cover-scheme { color: var(--muted); font-size: 11px; letter-spacing: 0.04em; }
.card-meta .amt,
.card-meta small { white-space: nowrap; }
.card-meta .amt { font-size: 14px; font-variant-numeric: tabular-nums; }
.cover {
  width: 74px;
  height: 48px;
  border-radius: 8px;
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px;
  color: #fff;
  font-size: 8px;
  line-height: 1.15;
}
.cover .cover-scheme { color: rgba(255, 255, 255, 0.85); }
.cover-hero {
  border-radius: 18px;
  min-height: 132px;
  padding: 16px;
  margin: 0 0 14px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
}
.cover-hero .cover-scheme { color: rgba(255, 255, 255, 0.85); font-size: 12px; letter-spacing: 0.08em; }
.cover-hero strong { font-size: 20px; }
.fee-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.fee-line .fee-label { font-size: 15px; font-weight: 650; }
.fee-line strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.identity-hub { margin-top: 8px; }
.identity-badge {
  width: 72px;
  height: 72px;
  margin: 8px auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, #3a2a62, #17141f 72%);
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.identity-hub .status-row { margin-bottom: 12px; }
.identity-hub .lede { margin: 0 0 16px; }
.rainbow { background: linear-gradient(135deg, #5b4b8a, #c45c86 55%, #e0a23a); }
.gold { background: linear-gradient(160deg, #3a3122, #b0893e 55%, #6b5424); }
.cover.mc,
.cover-hero.mc { background: linear-gradient(135deg, #3a2418, #c45c26 58%, #6a4ad4); }
.cover.visa { background: linear-gradient(135deg, #1a2744, #3d5bd6); }
.cover.amex { background: linear-gradient(135deg, #16343a, #2f8aa0); }
.hero-card.rainbow, .hero-card.gold, .hero-card.mc, .hero-card.visa, .hero-card.amex { color: #fff; border-color: transparent; }
.overlay-root {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  justify-content: center;
}
.key-gate {
  position: relative;
  width: min(430px, 100%);
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  padding: 24px 18px calc(12px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.gate-x { position: absolute; top: 16px; right: 16px; }
.lock-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--elev);
  margin: 48px 0 16px;
}
.lock-badge svg { width: 28px; height: 28px; }
.key-gate h1 { margin: 0; font-size: 22px; font-weight: 650; }
.key-gate .lede { margin-top: 6px; }
.pin-dots { display: flex; gap: 16px; margin: 22px 0 8px; }
.pin-dots i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--text);
  display: block;
}
.pin-dots i.on { background: var(--text); }
.keypad {
  width: 100%;
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.keypad button {
  height: 64px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 28px;
  border-radius: 12px;
}
.keypad button:active { background: var(--elev); }
.keypad svg { width: 26px; height: 26px; }
.key-spacer { display: block; }
.details-sheet {
  height: 50vh;
  max-height: 50vh;
  overflow: auto;
  border-radius: 24px 24px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
}
.details-sheet.guide-sheet {
  height: auto;
  max-height: min(85vh, 720px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.guide-body { overflow: auto; min-height: 0; }
.guide-steps {
  margin: 4px 0 12px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.guide-steps li { margin: 0 0 10px; }
.guide-sheet strong { color: var(--text); }
.store-links { display: grid; gap: 8px; margin-top: 8px; }
a.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
}
.details-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.details-head h1 { margin: 0; font-size: 24px; line-height: 30px; font-weight: 650; }
.details-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.copy-all {
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--elev-2);
  color: var(--text);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
}
.copy-all svg, .sheet-x svg, .icon-btn svg, .lock-badge svg, .keypad svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.copy-all svg, .sheet-x svg, .icon-btn svg { width: 15px; height: 15px; }
html[data-theme="light"] .hero-card,
html[data-theme="light"] .hero-card.rainbow,
html[data-theme="light"] .hero-card.gold,
html[data-theme="light"] .hero-card.mc,
html[data-theme="light"] .hero-card.visa,
html[data-theme="light"] .hero-card.amex { color: #fff; }
.sheet-x {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: var(--elev-2);
  color: var(--text);
  display: grid;
  place-items: center;
  padding: 0;
}
.detail-field { margin-bottom: 12px; }
.detail-label,
.sheet .lbl {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
  opacity: 0.35;
}
.detail-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 20px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.icon-btn {
  width: 20px;
  height: 20px;
  border: 0;
  background: transparent;
  color: var(--text);
  opacity: 0.5;
  padding: 0;
  display: grid;
  place-items: center;
  flex: none;
}
.detail-note { color: var(--muted); font-size: 13px; line-height: 1.4; }
.toast {
  position: fixed;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  z-index: 50;
  background: #1c1c1c;
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  max-width: min(320px, calc(100% - 32px));
}
.review-mode { margin: 0; color: var(--muted); }
.review-card {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 14px;
  margin: 12px 0 16px;
}
.review-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.review-line:last-child { border-bottom: 0; }
.review-line span { color: var(--muted); }
.review-line strong { text-align: right; word-break: break-all; font-weight: 600; }
select, textarea {
  width: 100%;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  outline: none;
  min-height: 48px;
}
.banner {
  margin: 8px 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--elev);
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.45;
}
.cust-support {
  position: fixed;
  z-index: 18;
  right: max(16px, calc((100vw - 430px) / 2 + 16px));
  bottom: calc(16px + env(safe-area-inset-bottom));
}
.cust-support.has-nav { bottom: calc(84px + env(safe-area-inset-bottom)); }
.cust-support-bubble {
  position: relative;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 18px;
  background: var(--accent);
  color: var(--cta-text);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.cust-support-bubble:focus-visible,
.cust-support-close:focus-visible,
.cust-support-send:focus-visible,
.cust-support-form textarea:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}
.cust-support-unread {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1404;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.cust-support-unread[hidden],
.cust-support[data-open="1"] .cust-support-unread { display: none; }
.cust-support-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(340px, calc(100vw - 32px));
  height: min(480px, 62dvh);
  display: flex;
  flex-direction: column;
  background: var(--elev);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cust-support-panel[hidden] { display: none; }
.cust-support-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--line);
}
.cust-support-kicker {
  margin: 0;
  color: var(--accent-2);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cust-support-head h2 { margin: 2px 0 0; font-size: 18px; }
.cust-support-sub { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.cust-support-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: var(--elev-2);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}
.cust-support-msgs {
  flex: 1;
  overflow: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cust-support-empty { color: var(--muted); font-size: 13px; line-height: 1.45; }
.cust-support-empty p { margin: 0 0 8px; }
.cust-support-msg {
  max-width: 88%;
  border-radius: 14px;
  padding: 8px 10px;
}
.cust-support-msg.is-mine {
  align-self: flex-end;
  background: var(--accent);
  color: var(--cta-text);
}
.cust-support-msg.is-theirs {
  align-self: flex-start;
  background: var(--elev-2);
  color: var(--text);
}
.cust-support-from { margin: 0 0 2px; font-size: 11px; opacity: 0.75; }
.cust-support-text { margin: 0; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.cust-support-hint {
  margin: 0;
  padding: 0 12px 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.cust-support-form {
  display: flex;
  gap: 8px;
  padding: 0 12px 12px;
  align-items: flex-end;
}
.cust-support-form textarea {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  resize: vertical;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.cust-support-send {
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--cta-text);
  min-height: 44px;
  padding: 0 14px;
  font-weight: 650;
}
.cust-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;
}
html[data-theme="light"] .app {
  background:
    radial-gradient(120% 46% at 50% -12%, var(--glow), transparent 58%),
    radial-gradient(42% 26% at 100% 0%, var(--glow-soft), transparent 72%),
    var(--bg);
}
.home-top > div { flex: 1; min-width: 0; }
.home-top h1 { font-size: 22px; }
.brand-kicker { font-size: 12px; color: var(--muted); font-weight: 650; }
.wallet-card {
  background: linear-gradient(180deg, var(--glow-soft), rgba(19, 23, 30, 0.92) 46%);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 24px;
  padding: 16px 14px 10px;
  box-shadow: 0 16px 40px color-mix(in srgb, var(--accent) 22%, transparent);
  margin: 0 0 14px;
}
html[data-theme="light"] .wallet-card {
  background: linear-gradient(180deg, var(--glow-soft), #fff 50%);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 12%, transparent);
}
.wallet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wallet-rule { height: 1px; background: var(--line); margin: 14px 0 6px; }
.ccy-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  min-height: 32px;
  padding: 0 10px 0 12px;
  font-size: 13px;
  font-weight: 700;
}
html[data-theme="light"] .ccy-pill { background: rgba(255, 255, 255, 0.7); }
.ccy-pill svg { width: 16px; height: 16px; transform: rotate(90deg); }
.wallet-card .actions { margin: 4px 0 2px; }
.wallet-card .bubble {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border-color: transparent;
}
html[data-theme="light"] .wallet-card .bubble { background: rgba(255, 255, 255, 0.72); }
.wallet-card .action span { color: var(--text); }
.refer-banner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: start;
  padding: 12px 14px;
  margin: 0 0 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(165, 133, 255, 0.2), var(--elev));
  color: inherit;
}
.refer-gem {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(165, 133, 255, 0.22);
  color: var(--accent);
  flex: none;
}
.refer-banner strong { display: block; font-size: 15px; }
.refer-banner small { color: var(--muted); }
.refer-go { color: var(--muted); display: grid; }
.refer-go svg, .strip-side svg, .token-pill svg { width: 16px; height: 16px; }
.section.plain h2 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 16px;
  color: var(--text);
  font-weight: 650;
}
.section .top h2 { flex: 1; margin-bottom: 0; }
.section .top .btn.text { width: auto; min-height: 32px; padding: 0 4px; }
.asset-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-weight: 700;
  font-size: 14px;
  background: var(--elev-2);
  color: #fff;
}
.asset-mark.usdt { background: #1f8a5b; }
.asset-mark.usdc { background: #2775ca; }
.asset-mark.btc { background: #f7931a; color: #1a1a1a; }
.asset-mark.eth { background: #627eea; }
.asset-mark.usd { background: #3c4a6b; }
.asset-mark svg { width: 18px; height: 18px; }
.strip-card {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: start;
}
html[data-theme="light"] .strip-card { background: rgba(255, 255, 255, 0.8); }
.strip-card.add { min-width: 0; }
.strip-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #141414;
  flex: none;
}
html[data-theme="light"] .strip-ico { background: #141414; color: #fff; }
.strip-card strong { display: block; font-size: 14px; }
.strip-card small { display: block; color: var(--muted); font-size: 12px; }
.strip-pan { letter-spacing: 0.06em; }
.strip-side { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.skel {
  background: linear-gradient(90deg, var(--elev) 0%, color-mix(in srgb, var(--accent) 34%, var(--elev-2)) 50%, var(--elev) 100%);
  background-size: 200% 100%;
  animation: skel 1.1s ease-in-out infinite;
  border-radius: 12px;
}
.skel-amt { display: inline-block; width: 120px; height: 32px; vertical-align: middle; }
.skel-qr { width: 220px; height: 220px; }
.skel-line { height: 14px; width: 72%; }
.skel-card { height: 74px; margin: 0 0 10px; border-radius: 16px; }
@keyframes skel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@keyframes sheet-rise {
  from { transform: translateY(16px); }
  to { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet, .skel { animation: none; }
}
.filter-head { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.filter-head h2 { flex: 1; margin: 0; font-size: 18px; }
.filter-reset { width: auto; min-height: 32px; padding: 0 4px; }
.btn.text.filter-reset[disabled],
html[data-theme="light"] .btn.text.filter-reset[disabled] { background: transparent; color: var(--muted); }
.filter-label {
  margin: 2px 0 8px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.filters.filter-dir { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 14px; }
.filters.filter-dir .chip { width: 100%; }
.filter-assets { max-height: 46vh; overflow: auto; }
.filter-asset { margin-bottom: 8px; }
.filter-sheet .choice.active {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 16px var(--glow-soft);
}
.filter-tick {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  position: relative;
  flex: none;
}
.filter-tick:after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.asset-mark.all {
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: var(--elev-2);
}
.section .top .btn.text.on {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.section .top .btn.text.on:after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--glow);
}
.seg.track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 4px;
  border-radius: 999px;
  background: var(--elev);
  border: 1px solid var(--line);
  flex-wrap: nowrap;
}
.seg.track button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  min-height: 36px;
}
.seg.track button[aria-pressed="true"] {
  background: #fff;
  color: #141414;
  border-color: transparent;
}
html[data-theme="light"] .seg.track button[aria-pressed="true"] { background: #141414; color: #fff; }
.flow-kicker { margin: 0; color: var(--muted); font-size: 13px; }
.amt-figure {
  margin: 6px 0 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 36px;
  font-weight: 650;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.amt-unit { font-size: 14px; color: var(--muted); font-weight: 700; }
.purpose-list .lbl, .amt-block .lbl { margin-bottom: 8px; }
.purpose-list .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.picker { margin-bottom: 0; }
form.money-flow { min-height: calc(100dvh - 168px); }
.money-dock { margin-top: auto; }
.min-line { margin: 0; color: var(--muted); font-size: 13px; }
.swap-card {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
}
.swap-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.token-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  border-radius: 999px;
  background: var(--elev-2);
  color: var(--text);
  min-height: 32px;
  padding: 0 10px;
  font-weight: 700;
}
.swap-flip {
  width: 40px;
  height: 40px;
  margin: -8px auto;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}
.swap-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.swap-meta strong { color: var(--text); font-weight: 650; }
.swap-meta .btn.text { width: auto; min-height: 32px; }
.amount-pad { margin-top: 4px; }
.move-pair { display: flex; flex-direction: column; gap: 0; }
.move-side {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
}
.move-row { display: flex; align-items: center; gap: 10px; }
.move-row .grow { min-width: 0; }
.move-row .grow strong { display: block; font-size: 15px; }
.move-row .grow small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.move-arrow {
  width: 32px;
  height: 32px;
  margin: -6px auto;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}
.move-arrow svg { width: 16px; height: 16px; }
.max-btn {
  margin-left: auto;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  min-height: 32px;
  padding: 0 12px;
  font-weight: 700;
  flex: none;
}
.move-amt { justify-content: center; margin: 8px 0; }
.modal-root { align-items: center; padding: 24px; }
.calm-modal {
  width: min(360px, 100%);
  background: var(--elev);
  color: var(--text);
  border-radius: 24px;
  padding: 22px 18px 16px;
  text-align: center;
  box-shadow: var(--shadow);
}
.calm-modal h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; }
.calm-modal p { margin: 0; color: var(--muted); line-height: 1.45; }
.calm-modal .btn { margin-top: 14px; }
.sandbox-deposit { margin-top: 18px; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
