/* =========================================================================
   Biuci — Design System (light / Coinbase-inspired)
   ========================================================================= */
:root {
  /* Brand teal (sampled from the Biuci logo) — kept under the --blue tokens
     so every existing var(--blue) reference rebrands site-wide at once. */
  --blue: #0b9e8d;
  --blue-600: #088576;
  --blue-700: #066b60;
  --blue-050: #e4faf6;
  --blue-rgb: 11, 158, 141;
  /* Logo gold accent */
  --gold: #ecc564;
  --gold-600: #d8ab3c;
  --gold-700: #946f12;
  --gold-050: #fbf4dd;
  --gold-rgb: 236, 197, 100;
  /* Bright aqua used only for glows / decorative art (not text) */
  --aqua: #1fd6bf;
  --ink: #0a0b0d;
  --text: #0a0b0d;
  --text-2: #5b616e;
  --text-3: #8a919e;
  --line: #ebecf0;
  --line-2: #dfe1e8;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-soft-2: #f0f2f5;
  --green: #048a4f;
  --green-bg: #e7f6ee;
  --red: #cf202f;
  --red-bg: #fdecec;
  --amber: #9a6a00;
  --amber-bg: #fdf3e1;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(10, 11, 13, .06), 0 1px 3px rgba(10, 11, 13, .04);
  --shadow: 0 4px 20px rgba(10, 11, 13, .08);
  --shadow-lg: 0 18px 50px rgba(10, 11, 13, .14);
  --maxw: 1160px;
  --nav-h: 72px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  /* Clean canvas — just a whisper of teal daylight from the very top. The
     structure now lives in the section panels, not in floating colour. */
  background-image: radial-gradient(50rem 22rem at 50% -12%, rgba(var(--blue-rgb), .05), transparent 60%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; color: var(--text-2); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
small { font-size: .82rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 3px solid rgba(var(--blue-rgb), .4); outline-offset: 2px; border-radius: 4px; }

/* Layout ----------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; position: relative; }
/* Defined panel: a faintly teal-tinted band with a fine dot texture and crisp
   hairline edges, so sections read as deliberate surfaces rather than washes. */
.section--soft {
  background-color: #f4f7f8;
  background-image: radial-gradient(rgba(10, 11, 13, .04) 1px, transparent 1.3px);
  background-size: 22px 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--tight { padding: 48px 0; }
.center { text-align: center; }
.eyebrow { color: var(--blue); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 640px; }
.muted { color: var(--text-2); }
.tiny { font-size: .8rem; color: var(--text-3); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.hide { display: none !important; }
.spacer { flex: 1; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: .98rem; line-height: 1;
  padding: 13px 22px; border-radius: var(--pill); border: 1px solid transparent;
  cursor: pointer; transition: transform .06s ease, background .15s ease, box-shadow .15s ease, color .15s; white-space: nowrap;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 3px 10px rgba(var(--blue-rgb), .16); }
.btn-primary:hover { background: var(--blue-600); box-shadow: 0 5px 14px rgba(var(--blue-rgb), .22); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1d2026; }
.btn-ghost { background: var(--bg-soft-2); color: var(--ink); }
.btn-ghost:hover { background: #e6e8ee; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { background: var(--bg-soft); }
.btn-link { background: transparent; color: var(--blue); padding: 10px 6px; }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-sm { padding: 9px 14px; font-size: .85rem; }
.btn:disabled, .btn.is-loading { opacity: .6; cursor: not-allowed; }
.btn.is-loading { color: transparent !important; position: relative; }
.btn.is-loading::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; }
.btn-outline.is-loading::after, .btn-ghost.is-loading::after { border-color: rgba(10,11,13,.3); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Header / Nav ----------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: 0; }
.brand:hover { text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand__word {
  display: inline-flex; align-items: center; line-height: 1; font-weight: 800;
  color: var(--ink);
  background: linear-gradient(90deg, var(--ink), var(--blue) 72%, var(--gold-600));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand__word::after {
  content: ""; width: 6px; height: 6px; margin-left: 3px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 3px rgba(var(--gold-rgb), .14);
  transform: translateY(-7px);
}
.nav__links { display: flex; gap: 26px; align-items: center; }
.nav__links a { color: var(--ink); font-weight: 500; font-size: .96rem; }
.nav__links a:hover { color: var(--blue); text-decoration: none; }
.nav__cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

[data-auth="user"] { display: none; }
body:not(.is-auth-ready) [data-auth] { visibility: hidden; }
body.is-authenticated [data-auth="guest"], body.is-guest [data-auth="user"] { display: none; }
body.is-authenticated [data-auth="user"], body.is-guest [data-auth="guest"] { display: inline-flex; visibility: visible; }
body.is-auth-ready [data-auth] { visibility: visible; }

.btn,
button,
.nav__links a,
.side__nav a,
.side__signout,
.product-link,
.store-badge,
.tabs button,
.asset-pick button,
.net-pick button,
.choice__opt {
  -webkit-tap-highlight-color: transparent;
}
.btn,
button,
.store-badge,
.product-link,
.choice__opt,
.tabs button,
.asset-pick button,
.net-pick button,
.side__nav a,
.side__signout {
  position: relative;
  overflow: hidden;
}
.click-ripple {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(255, 255, 255, .48);
  animation: clickRipple .55s ease-out forwards;
  mix-blend-mode: screen;
}
.btn-link .click-ripple,
.btn-outline .click-ripple,
.btn-ghost .click-ripple,
.nav__links a .click-ripple,
.product-link .click-ripple,
.choice__opt .click-ripple,
.tabs button .click-ripple,
.asset-pick button .click-ripple,
.net-pick button .click-ripple,
.side__nav a .click-ripple,
.side__signout .click-ripple {
  background: rgba(var(--blue-rgb), .18);
  mix-blend-mode: normal;
}
.ui-pressing { transform: translateY(1px) scale(.99); }
.input-group__btn.ui-pressing { transform: translateY(-50%) scale(.97); }
@keyframes clickRipple {
  to { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

/* Hero ------------------------------------------------------------------- */
.hero { padding: clamp(40px, 7vw, 96px) 0; position: relative; overflow: hidden; }
/* Structured hero backdrop: a faint engineering grid that fades toward the
   edges — gives a designed, product feel without any colour blur. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(10, 11, 13, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 11, 13, .045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 95% at 28% 4%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 95% at 28% 4%, #000 0%, transparent 72%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 span { color: var(--blue); }
.hero .lead { margin-bottom: 28px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero__note { margin-top: 18px; color: var(--text-3); font-size: .85rem; }
.hero__art { position: relative; }
/* Soft teal glow lifting the card off the grid */
.hero__art::before {
  content: ""; position: absolute; inset: 2% 0 6% 16%; z-index: 0;
  background: radial-gradient(62% 58% at 60% 42%, rgba(var(--blue-rgb), .14), transparent 72%);
  filter: blur(28px); border-radius: 40px;
}
.hero__art > * { position: relative; z-index: 1; }

/* The floating "balance" visual */
.glass-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .9));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(var(--blue-rgb), .06);
  padding: 22px;
}
/* Teal→gold hairline along the top edge */
.glass-card::after {
  content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--gold), transparent);
  border-radius: 2px; opacity: .9;
}
.balance-preview { max-width: 420px; margin-left: auto; }
.balance-preview .bp__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.balance-preview .bp__amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.balance-preview .bp__chg { color: var(--green); font-weight: 600; font-size: .9rem; }
.spark { width: 100%; height: 72px; margin: 10px 0 16px; }
.bp__row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.bp__ico { width: 36px; height: 36px; flex: 0 0 36px; }
.bp__name { font-weight: 600; }
.bp__val { margin-left: auto; text-align: right; font-weight: 600; }
.bp__val small { display: block; color: var(--text-3); font-weight: 500; }

/* Pills / chips ---------------------------------------------------------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--pill); background: var(--bg-soft-2); font-size: .82rem; font-weight: 600; color: var(--text-2); }
.chip--blue { background: var(--blue-050); color: var(--blue); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--pill); font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.badge--green { background: var(--green-bg); color: var(--green); }
.badge--amber { background: var(--amber-bg); color: var(--amber); }
.badge--red { background: var(--red-bg); color: var(--red); }
.badge--blue { background: var(--blue-050); color: var(--blue); }
.badge--gray { background: var(--bg-soft-2); color: var(--text-2); }

/* Cards ------------------------------------------------------------------ */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card--pad-lg { padding: 32px; }
.card--soft { background: var(--bg-soft); border-color: transparent; }
.feature { position: relative; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.feature::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(var(--blue-rgb), .25); }
.feature:hover::before { transform: scaleX(1); }
.feature .feat-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-050); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; transition: box-shadow .22s ease, transform .22s ease; }
.feature:hover .feat-ico { box-shadow: 0 8px 22px rgba(var(--blue-rgb), .28); transform: scale(1.06); }
.feature h3 { font-size: 1.15rem; }
.feature p { margin-bottom: 0; }

/* Asset / APR rows ------------------------------------------------------- */
.asset-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.asset-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 16px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); }
.asset-row:first-child { border-top: 0; }
.asset-row:hover { background: var(--bg-soft); }
.asset-id { display: flex; align-items: center; gap: 12px; }
.asset-id .ico { width: 36px; height: 36px; flex: 0 0 36px; }
.asset-id b { display: block; }
.asset-id span { color: var(--text-3); font-size: .85rem; }
.apr-tag { color: var(--green); font-weight: 700; }
.num { font-variant-numeric: tabular-nums; }

/* App store coming-soon badges ------------------------------------------ */
.store-badges { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; padding: 20px 18px 13px; border-radius: 14px;
  background: var(--ink); color: #fff; position: relative; min-width: 206px; min-height: 70px;
  justify-content: flex-start;
}
.store-badge:hover { text-decoration: none; background: #1d2026; }
.store-badge svg { width: 27px; height: 27px; flex: 0 0 27px; }
.store-badge > span:last-child { display: block; min-width: 0; padding-top: 2px; }
.store-badge .sb__t { display: inline-block; font-size: .68rem; opacity: .8; line-height: 1.05; white-space: nowrap; }
.store-badge .sb__b { display: inline-block; font-size: 1.08rem; font-weight: 600; line-height: 1.12; white-space: nowrap; }
.store-badge .sb__soon {
  position: absolute; top: 6px; right: 10px; background: var(--blue); color: #fff;
  font-size: .54rem; font-weight: 700; padding: 2px 7px; border-radius: var(--pill);
  letter-spacing: .04em; text-transform: uppercase; line-height: 1.2;
}

/* Forms ------------------------------------------------------------------ */
.field { margin-bottom: 16px; }
.field > label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.field .hint { color: var(--text-3); font-size: .8rem; margin-top: 6px; }
.input, .select, textarea.input {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, textarea.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(var(--blue-rgb),.14); outline: none; }
.input::placeholder { color: var(--text-3); }
.input--error { border-color: var(--red); }
.field-error { color: var(--red); font-size: .82rem; margin-top: 6px; }
.input-group { position: relative; }
.input-group .input { padding-right: 46px; }
.input-group__btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; padding: 8px; color: var(--text-3); border-radius: 8px; }
.input-group__btn:hover { background: var(--bg-soft); color: var(--ink); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--text-2); cursor: pointer; }
.checkbox input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue); flex: 0 0 18px; }
.pw-meter { height: 6px; border-radius: 4px; background: var(--bg-soft-2); overflow: hidden; margin-top: 8px; }
.pw-meter span { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s, background .2s; }

/* Choice cards (register options) --------------------------------------- */
.choice { display: grid; gap: 12px; }
.choice__opt {
  display: flex; gap: 16px; align-items: center; text-align: left; width: 100%;
  padding: 18px 20px; border: 1.5px solid var(--line-2); border-radius: var(--radius);
  background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s, transform .15s; font-family: inherit;
}
.choice__opt:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.choice__opt:hover .arr { transform: translateX(3px); }
.choice__opt .arr { transition: transform .18s ease; }
.choice__opt .ci { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: var(--blue-050); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.choice__opt b { display: block; font-size: 1.02rem; color: var(--ink); }
.choice__opt span { color: var(--text-2); font-size: .9rem; }
.choice__opt .arr { margin-left: auto; color: var(--text-3); }

/* Auth shell ------------------------------------------------------------- */
.auth {
  position: relative; overflow: hidden;
  min-height: calc(100vh - var(--nav-h));
  display: grid; place-items: center; padding: 56px 20px;
  background: linear-gradient(140deg, #061f1c 0%, #0a3a35 48%, #050d0c 100%);
}
/* Living teal aurora that drifts behind the card */
.auth::before {
  content: ""; position: absolute; inset: -25%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 38% at 22% 28%, rgba(31, 214, 191, .5), transparent 60%),
    radial-gradient(34% 34% at 78% 18%, rgba(11, 158, 141, .55), transparent 60%),
    radial-gradient(42% 42% at 68% 78%, rgba(20, 224, 200, .42), transparent 60%),
    radial-gradient(38% 38% at 28% 76%, rgba(8, 120, 108, .5), transparent 62%);
  filter: blur(46px);
  animation: auroraMove 20s ease-in-out infinite alternate;
}
/* Faint grid texture over the dark field */
.auth::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 50px 50px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 50%, #000, transparent 80%);
  mask-image: radial-gradient(120% 100% at 50% 50%, #000, transparent 80%);
}
.auth__card {
  position: relative; z-index: 1; width: 100%; max-width: 460px;
  background: #fff; border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--radius-lg);
  box-shadow: 0 34px 80px -22px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
  padding: 34px;
}
/* Teal accent along the top edge of the card */
.auth__card::before {
  content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--aqua), transparent);
  border-radius: 3px;
}
@keyframes auroraMove {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate(3%, -4%) scale(1.12) rotate(2deg); }
  100% { transform: translate(-4%, 3%) scale(1.06) rotate(-2deg); }
}
/* Step transition — each step fades + rises in when shown (re-fired from JS) */
.auth__card > section.is-entering { animation: authStep .5s cubic-bezier(.22, .68, .26, 1) both; }
@keyframes authStep {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.auth__card h1 { font-size: 1.7rem; }
.auth__steps { display: flex; gap: 6px; margin-bottom: 22px; }
.auth__steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--bg-soft-2); }
.auth__steps i.on { background: var(--blue); }
.auth__foot { margin-top: 18px; text-align: center; color: var(--text-2); font-size: .92rem; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--text-3); font-size: .82rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Notices / toasts ------------------------------------------------------- */
.notice { display: flex; gap: 10px; padding: 13px 15px; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 16px; }
.notice--info { background: var(--blue-050); color: var(--blue-700); }
.notice--warn { background: var(--amber-bg); color: var(--amber); }
.notice--ok { background: var(--green-bg); color: var(--green); }
.notice--err { background: var(--red-bg); color: var(--red); }
.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--ink); color: #fff; padding: 13px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: .9rem; max-width: 340px; animation: toastIn .25s ease; }
.toast--ok { background: #0b6b43; }
.toast--err { background: #b21e2b; }
@keyframes toastIn { from { transform: translateY(12px); opacity: 0; } }

/* Footer ----------------------------------------------------------------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 64px 0 36px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: var(--text-2); font-size: .92rem; }
.footer a:hover { color: var(--ink); text-decoration: none; }
.footer__bottom { display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .82rem; }
.lang-select { display: inline-flex; align-items: center; gap: 8px; }
.lang-select select { font-family: inherit; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--pill); background: #fff; font-size: .85rem; cursor: pointer; }
.disclaimer { color: var(--text-3); font-size: .78rem; line-height: 1.6; margin-top: 18px; }

/* Logos strip ------------------------------------------------------------ */
.logos { display: flex; gap: 40px; align-items: center; justify-content: center; flex-wrap: wrap; opacity: .65; }
.logos span { font-weight: 700; color: var(--text-3); font-size: 1.1rem; letter-spacing: -.01em; }

/* Stats ------------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.stat b { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.03em; color: var(--ink); }
.stat span { color: var(--text-2); }

/* Brand text accent (hero headline highlight, etc.) — restrained single-hue
   teal gradient rather than a multi-colour wash. */
/* -webkit-text-fill-color wins over `color`, so the clip survives even where a
   more specific rule (e.g. .hero h1 span) sets a solid color. */
.grad-text {
  background: linear-gradient(110deg, var(--blue), var(--blue-600));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* CTA band --------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 64px);
  background:
    radial-gradient(26rem 26rem at 12% 0%, rgba(var(--blue-rgb), .3), transparent 62%),
    radial-gradient(24rem 24rem at 92% 110%, rgba(var(--gold-rgb), .18), transparent 62%),
    linear-gradient(135deg, #0a0b0d, #0c2422 72%, #0a0b0d);
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 18px 18px; opacity: .6; pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.78); }

/* Tabs ------------------------------------------------------------------- */
.tabs { display: inline-flex; background: var(--bg-soft-2); border-radius: var(--pill); padding: 4px; margin-bottom: 22px; gap: 2px; }
.tabs button { border: 0; background: none; font-family: inherit; font-weight: 600; font-size: .92rem; color: var(--text-2); padding: 9px 18px; border-radius: var(--pill); cursor: pointer; }
.tabs button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* Copyable address ------------------------------------------------------- */
.addr-box { display: flex; align-items: center; gap: 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.addr-box code { font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace; font-size: .86rem; word-break: break-all; color: var(--ink); }
.copy-btn { margin-left: auto; flex: 0 0 auto; }

/* Modal ------------------------------------------------------------------ */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10,11,13,.45); z-index: 150; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .18s; }
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal { background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; box-shadow: var(--shadow-lg); transform: translateY(10px); transition: transform .18s; }
.modal-backdrop.open .modal { transform: translateY(0); }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.modal__head h3 { margin: 0; }
.modal__body { padding: 24px; }
.modal__x { background: none; border: 0; cursor: pointer; font-size: 1.4rem; line-height: 1; color: var(--text-3); padding: 4px; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .balance-preview { margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav__links, .nav__cta .btn-desktop { display: none; }
  body.is-authenticated .nav__cta .btn-desktop[data-auth],
  body.is-guest .nav__cta .btn-desktop[data-auth] { display: none; }
  .nav__burger { display: block; margin-left: auto; }
  .nav.open .nav__links { display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px; gap: 4px; box-shadow: var(--shadow); }
  .nav.open .nav__links a { padding: 12px 0; width: 100%; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  .section { padding: 56px 0; }
  .asset-row { grid-template-columns: 1.4fr 1fr auto; }
  .asset-row .col-vol { display: none; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
  .store-badges { gap: 10px; }
  .store-badge { min-width: 156px; flex: 1 1 156px; padding: 20px 12px 12px; gap: 9px; }
  .store-badge svg { width: 24px; height: 24px; flex-basis: 24px; }
  .store-badge .sb__b { font-size: .98rem; }
  .store-badge .sb__soon { right: 8px; font-size: .5rem; padding: 2px 6px; }
}

/* Mobile background is heavy to keep fixed — scroll it with the page */
@media (max-width: 820px) {
  body { background-attachment: scroll; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .card-stack:hover .card-stack__front,
  .card-stack:hover .card-stack__back { transform: none; }
  .auth::before, .auth__card > section.is-entering { animation: none; }
  .click-ripple { display: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================================
   Card page — premium card visual, steps, notifications, FAQ
   ========================================================================= */

/* Bank-card mockup — matte black metal, realistic layout ----------------- */
.bcard {
  position: relative; isolation: isolate; aspect-ratio: 1.586 / 1;
  border-radius: 14px; padding: 22px 24px; color: #e8ebf0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  /* Matte black: near-black base, one cool highlight catching the top edge,
     a deep shadow falling away below. */
  background:
    radial-gradient(125% 125% at 82% 0%, rgba(150, 158, 172, .16) 0%, transparent 42%),
    radial-gradient(120% 120% at 10% 112%, rgba(0, 0, 0, .7) 0%, transparent 52%),
    linear-gradient(150deg, #1b1d21 0%, #101114 44%, #08090b 74%, #050506 100%);
  box-shadow:
    0 30px 56px -22px rgba(0, 0, 0, .7),
    0 12px 24px -12px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255, 255, 255, .14),
    inset 0 -2px 4px rgba(0, 0, 0, .6),
    inset 0 0 0 1px rgba(255, 255, 255, .05);
}
/* Brushed-metal striations + fine grain */
.bcard::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .5; mix-blend-mode: soft-light;
  background-image:
    repeating-linear-gradient(96deg, rgba(255,255,255,0) 0 2px, rgba(255, 255, 255, .045) 2px 3px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: auto, 130px 130px;
}
/* (glossy centre reflection removed) */
.bcard__sheen { display: none; }
/* Back card — lifted charcoal so the fanned pair separates from the black */
.bcard--alt {
  background:
    radial-gradient(125% 125% at 80% 0%, rgba(150, 158, 172, .14) 0%, transparent 42%),
    linear-gradient(150deg, #2c2f35 0%, #1b1d21 50%, #0b0c0e 100%);
}

.bcard__top { display: flex; align-items: flex-start; justify-content: space-between; }
.bcard__id { display: flex; flex-direction: column; }
.bcard__brand { font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; color: #f4f6f9; text-shadow: 0 1px 2px rgba(0, 0, 0, .55); }
.bcard__tier { margin-top: 4px; font-size: .58rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(232, 235, 240, .52); }
.bcard__wifi { width: 22px; height: 22px; opacity: .6; transform: rotate(90deg); }

/* Gold EMV chip — beveled edge and contact pads */
.bcard__chip {
  width: 50px; height: 39px; border-radius: 6px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #fbeaa8 0%, #e8c659 34%, #b88a1e 68%, #f0d684 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .7),
    inset 0 -2px 3px rgba(120, 80, 0, .55),
    0 1px 2px rgba(0, 0, 0, .4);
}
.bcard__chip::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent 31%, rgba(90, 60, 0, .5) 31% 33%, transparent 33% 67%, rgba(90, 60, 0, .5) 67% 69%, transparent 69%),
    linear-gradient(0deg, transparent 36%, rgba(90, 60, 0, .5) 36% 38%, transparent 38% 62%, rgba(90, 60, 0, .5) 62% 64%, transparent 64%);
}
.bcard__chip::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 17px; height: 14px; border: 1.5px solid rgba(90, 60, 0, .5); border-radius: 3px;
  background: linear-gradient(135deg, #f4d97e, #cda034);
}

/* Embossed-style card number */
.bcard__num {
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: clamp(1.05rem, 2.6vw, 1.36rem); font-weight: 500; letter-spacing: .15em;
  color: #eef1f6;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .6), 0 -1px 0 rgba(255, 255, 255, .08);
}
.bcard__meta { display: flex; align-items: flex-end; gap: 18px; }
.bcard__meta small { display: block; font-size: .56rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(232, 235, 240, .5); margin-bottom: 3px; }
.bcard__meta b { font-weight: 600; font-size: .92rem; letter-spacing: .06em; color: #eef1f6; text-shadow: 0 1px 1px rgba(0, 0, 0, .5); }

/* Amex wordmark — clean monochrome, no box */
.bcard__net {
  margin-left: auto; align-self: flex-end;
  font-weight: 800; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  color: #f4f6f9; text-shadow: 0 1px 1px rgba(0, 0, 0, .55);
}
.bcard__net sup { font-size: .48em; font-weight: 600; vertical-align: super; margin-left: 1px; opacity: .8; }

/* Fanned stack of two cards */
.card-stack { position: relative; max-width: 410px; margin: 0 auto; padding: 24px 0; }
.card-stack__back {
  position: absolute; inset: 24px 0; transform: translate(24px, -30px) rotate(-9deg);
  z-index: 0; opacity: .95; transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.card-stack__front {
  position: relative; z-index: 1; transform: rotate(2deg);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.card-stack:hover .card-stack__front { transform: rotate(0) translateY(-6px); }
.card-stack:hover .card-stack__back { transform: translate(34px, -40px) rotate(-12deg); }

/* Steps ------------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { position: relative; }
.step__n {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 1.1rem; color: #fff; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-600));
  box-shadow: 0 10px 24px rgba(var(--blue-rgb), .32);
}
.step h3 { font-size: 1.12rem; }
.step p { margin-bottom: 0; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 23px; left: 64px; right: -14px; height: 2px;
  background: linear-gradient(90deg, rgba(var(--blue-rgb), .4), rgba(var(--blue-rgb), 0));
}

/* Transaction notifications (highlight visual) --------------------------- */
.notif-stack { display: grid; gap: 14px; max-width: 380px; margin-left: auto; }
.notif {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.notif__ico { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: #fff; }
.notif b { display: block; font-size: .95rem; }
.notif small { color: var(--text-3); font-size: .8rem; }
.notif__amt { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.notif__amt.pos { color: var(--green); }

/* FAQ -------------------------------------------------------------------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 2px 22px; transition: border-color .2s, box-shadow .2s; }
.faq__item[open] { border-color: rgba(var(--blue-rgb), .3); box-shadow: var(--shadow-sm); }
.faq__item summary { cursor: pointer; list-style: none; padding: 17px 0; font-weight: 600; font-size: 1.02rem; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--blue); transition: transform .2s ease; flex: 0 0 auto; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: -4px 0 18px; color: var(--text-2); }

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .step:not(:last-child)::after { display: none; }
  .notif-stack { margin: 0 auto; }
}

/* Products overview — clickable product cards ---------------------------- */
.product-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.product-link:hover { text-decoration: none; }
.product-link h3 { color: var(--ink); }
.product-link .arr { margin-top: auto; padding-top: 16px; color: var(--blue); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; transition: gap .2s ease; }
.product-link:hover .arr { gap: 11px; }
