/* =====================================================================
   Wander Fund demo — styles (brand: black / neon / gradient cards)
   ===================================================================== */
:root {
  --black: #0E0E0E;
  --black-2: #161616;
  --surface: #1C1C1C;
  --surface-2: #242424;
  --line: rgba(255,255,255,0.09);
  --white: #FFFFFF;
  --gray: #8A8A86;
  --gray-2: #B5B5B0;
  --neon: #D9F24F;
  --neon-dark: #C4E03A;
  --red: #FF6B6B;
  --grad-violet: linear-gradient(150deg, #FF5EDF 0%, #B44CF0 35%, #FF9A5A 80%, #FFD25A 100%);
  --grad-green: linear-gradient(160deg, #7BF5C8 0%, #35C98E 40%, #1E6E5A 100%);
  --grad-orange: linear-gradient(160deg, #FFC55A 0%, #FF8A5A 45%, #E85D75 100%);
}
/* ================= alternative skins (scoped to the phone) =================
   noir (default)  - black + neon, the landing page brand
   daylight        - light surfaces + indigo, the original mobile app palette
   midnight        - deep navy + electric cyan
   sunset          - warm cocoa + coral                                       */
.phone[data-theme="daylight"] {
  --black: #F4F4F2;
  --black-2: #FFFFFF;
  --surface: #ECECEA;
  --surface-2: #E3E3E0;
  --line: rgba(14,14,14,0.10);
  --white: #0E0E0E;
  --gray: #75756F;
  --gray-2: #4A4A44;
  --neon: #4F46E5;
  --neon-dark: #4338CA;
}
.phone[data-theme="midnight"] {
  --black: #0A1120;
  --black-2: #101A30;
  --surface: #16233E;
  --surface-2: #1D2D4E;
  --line: rgba(140,170,255,0.14);
  --gray: #7D8BA6;
  --gray-2: #AAB7CF;
  --neon: #5EE1FF;
  --neon-dark: #3BC9EC;
}
.phone[data-theme="sunset"] {
  --black: #171010;
  --black-2: #221715;
  --surface: #2C1E1A;
  --surface-2: #362621;
  --line: rgba(255,200,160,0.12);
  --gray: #9C8578;
  --gray-2: #C7AF9F;
  --neon: #FF8A5A;
  --neon-dark: #F07040;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", -apple-system, sans-serif;
  background: var(--black);
  color: var(--white);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: "Space Grotesk", "Inter", sans-serif; letter-spacing: -0.02em; }
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select { font-family: inherit; }
::selection { background: var(--neon); color: var(--black); }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; border-radius: 4px; }

/* ================= stage (page around the phone) ================= */
.stage {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  gap: 72px; padding: 40px 32px;
  background:
    radial-gradient(700px 500px at 12% 88%, rgba(138,92,246,0.10), transparent 60%),
    radial-gradient(600px 400px at 88% 12%, rgba(217,242,79,0.05), transparent 60%),
    var(--black);
}
.stage-side { max-width: 380px; }
.stage-side .logo {
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.25rem;
  color: #fff; text-decoration: none; letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 36px;
}
.stage-side .logo .tick { color: var(--neon); align-self: flex-start; }
.stage-side .logo .mark { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,0.12); }
.stage-side h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.05; margin-bottom: 18px; }
.stage-side p { color: var(--gray-2); font-size: 0.95rem; line-height: 1.6; margin-bottom: 28px; }
.hints { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.hints li { display: flex; align-items: center; gap: 12px; color: var(--gray-2); font-size: 0.88rem; }
.hints li strong { color: var(--neon); }
.hints li span {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--black-2); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 0.75rem; color: var(--neon);
}

/* ================= phone frame ================= */
.phone {
  width: 396px; max-width: 100%;
  height: 820px; max-height: calc(100dvh - 56px);
  border-radius: 54px;
  background: #050505;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    0 0 0 10px #111,
    0 0 0 11px rgba(255,255,255,0.08),
    0 60px 120px rgba(0,0,0,0.8);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 118px; height: 30px; border-radius: 20px;
  background: #000; z-index: 50;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}
.phone-screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: var(--black);
  color: var(--white); /* restart inheritance inside the themed phone */
  border-radius: 53px;
  overflow: hidden;
}
.statusbar {
  height: 54px; flex-shrink: 0;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 32px 6px;
  font-size: 0.85rem; font-weight: 600; color: var(--white);
  font-family: "Space Grotesk", sans-serif;
}
.statusbar-icons { display: inline-flex; gap: 6px; align-items: center; }

/* ================= screen container ================= */
.screen {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 12px 22px 110px;
  scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }
.screen-enter { animation: screenIn 0.3s cubic-bezier(0.22,1,0.36,1); }
@keyframes screenIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ================= tab bar ================= */
.tabbar {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 92px; padding: 10px 26px 26px;
  background: color-mix(in srgb, var(--black-2) 96%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  border-radius: 0 0 52px 52px;
  display: flex; align-items: center; justify-content: space-around;
  z-index: 40;
}
.tabbar.hidden { display: none; }
.tabbar button {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--gray); font-size: 0.68rem; font-weight: 500;
  width: 68px;
  transition: color 0.15s ease;
}
.tabbar button svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button .tb-ic {
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 34px; border-radius: 999px;
  transition: background 0.2s ease;
}
.tabbar button:active .tb-ic { background: rgba(255,255,255,0.06); }
.tabbar button.active { color: var(--white); }
.tabbar button.active .tb-ic { background: color-mix(in srgb, var(--neon) 15%, transparent); }
.tabbar button.active .tb-ic svg { stroke: var(--neon); }

/* ================= shared components ================= */
.app-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 0 18px; gap: 12px; }
.app-header .h-title { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.15rem; }
.greeting-name { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.3rem; }
.greeting-sub { color: var(--gray); font-size: 0.8rem; margin-top: 2px; }
.back-btn {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--black-2); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
}
.back-btn svg { width: 18px; height: 18px; stroke: var(--white); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.icon-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--black-2);
  border-radius: 999px; padding: 7px 13px;
  font-size: 0.72rem; font-weight: 600; color: var(--neon);
}

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 15px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn:active { transform: scale(0.98); }
.btn-neon { background: var(--neon); color: var(--black); }
.btn-neon:disabled { opacity: 0.35; cursor: default; }
.btn-dark { background: var(--surface); border: 1px solid var(--line); color: var(--white); }
.btn-ghost { color: var(--gray-2); font-size: 0.85rem; padding: 10px; }
.btn-danger { background: rgba(255,107,107,0.12); border: 1px solid rgba(255,107,107,0.35); color: var(--red); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--gray-2); margin-bottom: 8px; }
.field input, .field select {
  width: 100%; padding: 15px 16px; border-radius: 14px;
  background: var(--black-2); border: 1px solid var(--line);
  color: var(--white); font-size: 16px; outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus { border-color: var(--neon); box-shadow: 0 0 0 3px color-mix(in srgb, var(--neon) 12%, transparent); }
.field input::placeholder { color: var(--gray); }

.card-panel {
  background: var(--black-2); border: 1px solid var(--line);
  border-radius: 20px; padding: 18px;
}
.section-title { font-size: 0.95rem; font-weight: 700; font-family: "Space Grotesk", sans-serif; }
.section-row { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 12px; }
.see-all { color: var(--neon); font-size: 0.78rem; font-weight: 600; }

.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; color: #0E0E0E; /* avatar colors are fixed, keep text dark in every skin */
}
.avatar.sm { width: 30px; height: 30px; font-size: 0.6rem; }

.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.list-row:last-child { border-bottom: none; }
.list-row .lr-main { flex: 1; min-width: 0; }
.list-row .lr-title { font-size: 0.9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .lr-sub { font-size: 0.74rem; color: var(--gray); margin-top: 2px; }
.list-row .lr-amount { font-weight: 700; font-size: 0.9rem; font-family: "Space Grotesk", sans-serif; }
.lr-amount.pos { color: var(--neon); }
.tx-icon {
  width: 40px; height: 40px; border-radius: 14px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1rem;
}

/* ================= gradient pot / bank cards ================= */
.gcard {
  border-radius: 20px; padding: 20px; color: #fff;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}
.gcard::after {
  content: ""; position: absolute; inset: 0; border-radius: 20px;
  background: linear-gradient(115deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.05) 30%, transparent 55%);
  pointer-events: none;
}
.gcard::before {
  content: ""; position: absolute; inset: 0; border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25); pointer-events: none;
}
.gcard.violet { background: var(--grad-violet); }
.gcard.green { background: var(--grad-green); }
.gcard.orange { background: var(--grad-orange); }
.gcard .gc-logo { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.05rem; text-shadow: 0 1px 4px rgba(0,0,0,0.15); }
.gcard > * { position: relative; z-index: 1; }

.balance-card { min-height: 190px; display: flex; flex-direction: column; }
.balance-card .bc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.balance-card .bc-label { font-size: 0.72rem; opacity: 0.85; font-weight: 600; letter-spacing: 0.4px; }
.balance-card .bc-amount { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 2.1rem; letter-spacing: -0.03em; margin-top: 4px; }
.balance-card .bc-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; font-size: 0.72rem; }
.progress-track { height: 6px; border-radius: 3px; background: rgba(0,0,0,0.25); overflow: hidden; margin-top: 10px; }
.progress-fill { height: 100%; border-radius: 3px; background: #fff; }
.progress-track.on-dark { background: rgba(255,255,255,0.14); }
.progress-track.on-dark .progress-fill { background: var(--neon); }

/* full bank card (card screens) */
.bank-card { aspect-ratio: 1.586; display: flex; flex-direction: column; justify-content: space-between; }
.bank-card .bk-row { display: flex; justify-content: space-between; align-items: flex-start; }
.bank-card .bk-num { font-family: "Space Grotesk", sans-serif; font-size: 1.12rem; letter-spacing: 2.5px; font-weight: 500; }
.bank-card .bk-meta { display: flex; gap: 22px; font-size: 0.68rem; }
.bank-card .bk-meta b { display: block; font-size: 0.82rem; margin-top: 2px; letter-spacing: 1px; }
.bank-card .bk-net { font-weight: 700; font-style: italic; font-size: 0.95rem; align-self: flex-end; }
.bank-card.frozen { filter: saturate(0.15) brightness(0.75); }
.frozen-badge {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: 3px; font-size: 0.85rem;
  background: rgba(10,10,10,0.35); border-radius: 20px; backdrop-filter: blur(1.5px);
}

/* quick actions */
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.qa {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 4px; border-radius: 16px;
  background: var(--black-2); border: 1px solid var(--line);
  font-size: 0.7rem; font-weight: 600; color: var(--gray-2);
  transition: background 0.15s ease;
}
.qa:active { background: var(--surface); }
.qa .qa-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); display: flex; align-items: center; justify-content: center;
}
.qa svg { width: 18px; height: 18px; stroke: var(--neon); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* pot list rows */
.pot-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--black-2); border: 1px solid var(--line);
  border-radius: 18px; padding: 14px 16px; margin-bottom: 10px;
  width: 100%; text-align: left;
  transition: background 0.15s ease;
}
.pot-row:active { background: var(--surface); }
.pot-row .pr-emoji {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.pot-row .pr-main { flex: 1; min-width: 0; }
.pot-row .pr-name { font-weight: 600; font-size: 0.92rem; }
.pot-row .pr-sub { color: var(--gray); font-size: 0.72rem; margin-top: 2px; }
.pot-row .pr-balance { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 0.95rem; }

/* OTP boxes */
.otp-row { display: flex; gap: 9px; justify-content: space-between; margin: 26px 0 18px; }
.otp-row input {
  width: 46px; height: 56px; text-align: center;
  font-size: 1.3rem; font-weight: 700; font-family: "Space Grotesk", sans-serif;
  background: var(--black-2); border: 1px solid var(--line); border-radius: 14px;
  color: var(--white); outline: none; caret-color: var(--neon);
}
.otp-row input:focus { border-color: var(--neon); box-shadow: 0 0 0 3px color-mix(in srgb, var(--neon) 12%, transparent); }

/* amount input (top-up) */
.amount-input {
  display: flex; align-items: baseline; justify-content: center; gap: 4px;
  margin: 26px 0 6px;
}
.amount-input .cur { font-size: 1.6rem; font-weight: 700; color: var(--gray-2); font-family: "Space Grotesk", sans-serif; }
.amount-input input {
  background: none; border: none; outline: none; color: var(--white);
  font-size: 3rem; font-weight: 700; font-family: "Space Grotesk", sans-serif;
  width: 200px; text-align: left; caret-color: var(--neon);
}
.amount-input input::placeholder { color: var(--surface-2); }
.presets { display: flex; gap: 8px; justify-content: center; margin: 14px 0 4px; flex-wrap: wrap; }
.preset-chip {
  padding: 9px 16px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  background: var(--black-2); border: 1px solid var(--line); color: var(--gray-2);
}
.preset-chip.selected { background: color-mix(in srgb, var(--neon) 12%, transparent); border-color: var(--neon); color: var(--neon); }

/* payment method rows */
.pm-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--black-2); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 16px; margin-bottom: 10px;
}
.pm-row.selected { border-color: var(--neon); background: color-mix(in srgb, var(--neon) 6%, transparent); }
.pm-brand {
  width: 44px; height: 30px; border-radius: 6px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.55rem; font-weight: 700; font-style: italic; letter-spacing: 0.5px;
}
.pm-radio {
  width: 20px; height: 20px; border-radius: 50%; margin-left: auto; flex-shrink: 0;
  border: 2px solid var(--gray);
}
.pm-row.selected .pm-radio { border-color: var(--neon); background: radial-gradient(circle, var(--neon) 45%, transparent 50%); }

/* emoji picker */
.emoji-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 16px; }
.emoji-grid button {
  aspect-ratio: 1; border-radius: 14px; font-size: 1.3rem;
  background: var(--black-2); border: 1px solid var(--line);
}
.emoji-grid button.selected { border-color: var(--neon); background: color-mix(in srgb, var(--neon) 10%, transparent); }

/* invite code panel */
.invite-panel { text-align: center; padding: 20px 18px; }
.invite-panel .inv-label { font-size: 0.72rem; color: var(--gray); font-weight: 600; letter-spacing: 0.5px; }
.invite-panel .inv-code {
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.5rem;
  letter-spacing: 3px; color: var(--neon); margin: 8px 0 14px;
}

/* profile rows */
.settings-row {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 16px 4px; border-bottom: 1px solid var(--line);
  font-size: 0.92rem; font-weight: 500;
}
.settings-row svg { width: 20px; height: 20px; stroke: var(--gray-2); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.settings-row .chev { margin-left: auto; }
.settings-row.danger { color: var(--red); border-bottom: none; }
.settings-row.danger svg { stroke: var(--red); }

/* auth screens */
.auth-screen { padding-top: 46px; }
.auth-logo { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.15rem; margin-bottom: 40px; display: flex; align-items: center; gap: 8px; }
.auth-logo .tick { color: var(--neon); }
.auth-screen h2 { font-size: 1.9rem; font-weight: 700; margin-bottom: 8px; }
.auth-screen .sub { color: var(--gray); font-size: 0.92rem; margin-bottom: 30px; line-height: 1.5; }
.auth-screen .sub b { color: var(--gray-2); }
.phone-input { display: flex; gap: 8px; }
.phone-input .cc {
  padding: 15px 14px; border-radius: 14px; flex-shrink: 0;
  background: var(--black-2); border: 1px solid var(--line);
  color: var(--white); font-weight: 600; font-size: 16px;
}
.phone-input input { flex: 1; }
.terms-note { font-size: 0.72rem; color: var(--gray); text-align: center; margin-top: 18px; line-height: 1.5; }
.demo-hint {
  margin-top: 14px; padding: 11px 14px; border-radius: 12px;
  background: color-mix(in srgb, var(--neon) 8%, transparent); border: 1px dashed color-mix(in srgb, var(--neon) 40%, transparent);
  color: var(--neon); font-size: 0.78rem; text-align: center;
}

/* KYC */
.kyc-step { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.kyc-step:last-child { border-bottom: none; }
.kyc-badge {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
}
.kyc-badge svg { width: 18px; height: 18px; stroke: var(--gray-2); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.kyc-step.done .kyc-badge { background: color-mix(in srgb, var(--neon) 12%, transparent); border-color: var(--neon); }
.kyc-step.done .kyc-badge svg { stroke: var(--neon); }
.kyc-step .ks-main { flex: 1; }
.kyc-step .ks-title { font-size: 0.9rem; font-weight: 600; }
.kyc-step .ks-sub { font-size: 0.74rem; color: var(--gray); margin-top: 2px; }
.kyc-spin {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--line); border-top-color: var(--neon);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* success check */
.big-check {
  width: 84px; height: 84px; border-radius: 50%; margin: 30px auto 22px;
  background: color-mix(in srgb, var(--neon) 12%, transparent); border: 1px solid var(--neon);
  display: flex; align-items: center; justify-content: center;
  animation: pop 0.4s cubic-bezier(0.22,1,0.36,1);
}
.big-check svg { width: 38px; height: 38px; stroke: var(--neon); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* toast (lives inside the phone screen, above the tab bar) */
.toast {
  position: absolute; left: 50%; bottom: 108px; transform: translateX(-50%) translateY(14px);
  background: var(--surface-2); border: 1px solid rgba(255,255,255,0.14);
  color: var(--white); font-size: 0.8rem; font-weight: 500;
  padding: 11px 18px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 60; box-shadow: 0 12px 32px rgba(0,0,0,0.55);
  width: max-content; max-width: 82%; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.phone-screen:has(.tabbar.hidden) .toast { bottom: 40px; }

/* active expenses / split editor */
.split-badge {
  display: inline-block; margin-top: 4px;
  font-size: 0.62rem; font-weight: 600;
  background: color-mix(in srgb, var(--neon) 10%, transparent); border: 1px solid color-mix(in srgb, var(--neon) 30%, transparent);
  color: var(--neon); padding: 2px 8px; border-radius: 999px;
  white-space: nowrap;
}
.expense.editing { background: rgba(255,255,255,0.02); border-radius: 14px; margin: 0 -8px; padding: 0 8px; }
.split-editor { padding: 4px 0 16px; border-bottom: 1px solid var(--line); }
.expense:last-child .split-editor { border-bottom: none; }
.split-modes { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.split-modes .preset-chip { font-size: 0.72rem; padding: 8px 12px; }
.member-picks { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.member-pick {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 12px 6px 6px; border-radius: 999px;
  background: var(--black-2); border: 1px solid var(--line);
  color: var(--gray-2); font-size: 0.75rem; font-weight: 600;
}
.member-pick.on { border-color: var(--neon); color: var(--white); background: color-mix(in srgb, var(--neon) 8%, transparent); }
.split-preview {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: 0.72rem; color: var(--gray);
  padding: 10px 12px; border-radius: 12px;
  background: var(--black-2); border: 1px dashed var(--line);
}
.split-preview b { color: var(--gray-2); font-weight: 600; }

/* bottom sheet (Apple Wallet add) */
.sheet-scrim {
  position: absolute; inset: 0; z-index: 70;
  background: rgba(0,0,0,0.55);
  animation: fadeIn 0.2s ease;
}
.sheet {
  position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 71;
  background: var(--surface); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 30px; padding: 10px 22px 22px;
  animation: sheetUp 0.3s cubic-bezier(0.22,1,0.36,1);
}
.sheet-grab {
  width: 40px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.2); margin: 6px auto 16px;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.apple-wallet-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 13px 20px; border-radius: 14px;
  background: #000; color: #fff; font-weight: 600; font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.18);
  transition: transform 0.12s ease;
}
.apple-wallet-btn:active { transform: scale(0.98); }
.apple-wallet-btn:disabled { opacity: 0.7; }
.aw-icon { display: inline-flex; width: 24px; height: 24px; }
.aw-icon svg { width: 100%; height: 100%; }
.qa.qa-done { border-color: color-mix(in srgb, var(--neon) 45%, transparent); color: var(--neon); }

/* theme picker (Profile → Appearance) */
.theme-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.theme-swatch {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 4px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--black-2);
  font-size: 0.68rem; font-weight: 600; color: var(--gray-2);
}
.theme-swatch .sw {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  position: relative; overflow: hidden;
}
.theme-swatch .sw::after {
  content: ""; position: absolute; right: 4px; bottom: 4px;
  width: 12px; height: 12px; border-radius: 50%;
}
.theme-swatch.selected { border-color: var(--neon); color: var(--white); background: color-mix(in srgb, var(--neon) 7%, transparent); }
.sw-noir { background: #0E0E0E; } .sw-noir::after { background: #D9F24F; }
.sw-daylight { background: #F4F4F2; } .sw-daylight::after { background: #4F46E5; }
.sw-midnight { background: #0A1120; } .sw-midnight::after { background: #5EE1FF; }
.sw-sunset { background: #171010; } .sw-sunset::after { background: #FF8A5A; }

/* empty states */
.empty { text-align: center; color: var(--gray); font-size: 0.85rem; padding: 40px 20px; line-height: 1.6; }
.empty .e-emoji { font-size: 2rem; display: block; margin-bottom: 10px; }

/* date group label */
.date-label { font-size: 0.7rem; font-weight: 700; color: var(--gray); letter-spacing: 1px; text-transform: uppercase; margin: 20px 0 4px; }

/* ================= responsive: phone fills screen on mobile ================= */
@media (max-width: 900px) {
  .stage { flex-direction: column; gap: 32px; padding: 32px 16px; }
  .stage-side { text-align: center; max-width: 430px; }
  .hints { align-items: flex-start; text-align: left; max-width: 320px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .stage { padding: 0; gap: 0; display: block; }
  .stage-side { display: none; }
  .phone {
    width: 100%; height: 100vh; height: 100dvh; max-height: none;
    border-radius: 0; border: none; box-shadow: none;
  }
  .phone-notch { display: none; }
  .statusbar { display: none; }
  .phone-screen { border-radius: 0; }
  .screen { padding-top: max(14px, env(safe-area-inset-top)); }
  .tabbar { padding-bottom: max(18px, env(safe-area-inset-bottom)); border-radius: 0; }
}


/* ================= offers ================= */
.search-row { display: flex; gap: 8px; margin-bottom: 4px; }
.search-box {
  flex: 1; display: flex; align-items: center; gap: 9px;
  background: var(--black-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 0 16px; height: 44px;
}
.search-box input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--white); font-size: 15px; font-family: inherit;
}
.search-box input::placeholder { color: var(--gray); }
.search-ic { width: 17px; height: 17px; stroke: var(--gray); stroke-width: 2; fill: none; stroke-linecap: round; flex-shrink: 0; }
.filter-btn {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  background: var(--black-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.filter-btn svg { width: 19px; height: 19px; stroke: var(--white); stroke-width: 1.7; fill: none; stroke-linecap: round; }

/* hero */
.offer-hero {
  position: relative; display: block; width: 100%; text-align: left;
  border: none; cursor: pointer; padding: 0; margin-bottom: 6px;
  height: 190px; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,0.28);
}
.oh-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.oh-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.20) 45%, rgba(0,0,0,0.72) 100%);
}
.oh-body { position: absolute; left: 18px; right: 18px; bottom: 16px; display: block; }
.oh-partner {
  display: block; color: rgba(255,255,255,0.92); font-size: 0.7rem;
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px;
}
.oh-title {
  display: block; font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: 1.22rem; line-height: 1.2; color: #fff; margin-bottom: 10px; max-width: 90%;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.oh-cta {
  display: inline-block; background: #fff; color: #0E0E0E; font-weight: 600;
  font-size: 0.8rem; padding: 8px 18px; border-radius: 999px;
}
.oh-save {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 11px;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
}
.oh-save svg { width: 15px; height: 15px; stroke: #0E0E0E; stroke-width: 1.8; fill: none; }
.oh-save.on { background: var(--neon); }
.oh-save.on svg { fill: #0E0E0E; }

/* category chips */
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: 9px 16px; border-radius: 999px;
  background: var(--black-2); border: 1px solid var(--line);
  color: var(--gray-2); font-size: 0.82rem; font-weight: 600; font-family: inherit;
}
.chip.on { background: var(--neon); border-color: var(--neon); color: #0E0E0E; }

/* list rows */
.offer-row {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  background: var(--black-2); border: 1px solid var(--line);
  border-radius: 18px; padding: 12px; margin-bottom: 10px;
  transition: background 0.15s ease;
}
.offer-row:active { background: var(--surface); }
.or-thumb {
  width: 68px; height: 68px; border-radius: 14px; flex-shrink: 0;
  object-fit: cover; display: block; background: var(--surface);
}
.or-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.or-title { font-size: 0.95rem; font-weight: 600; color: var(--white); }
.or-sub {
  font-size: 0.78rem; color: var(--gray-2); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.or-meta { display: flex; align-items: center; gap: 5px; font-size: 0.72rem; color: var(--gray); margin-top: 2px; }
.or-pin { width: 12px; height: 12px; stroke: var(--gray); stroke-width: 1.8; fill: none; flex-shrink: 0; }
.or-count {
  margin-left: auto; color: var(--neon); font-weight: 600;
  background: color-mix(in srgb, var(--neon) 12%, transparent);
  padding: 3px 9px; border-radius: 999px;
}

/* detail sheet banner */
.os-banner { position: relative; height: 130px; border-radius: 18px; overflow: hidden; margin-bottom: 4px; }
.os-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.os-badge {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,0.3); color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
}

/* ---- save-to-fund picker ---- */
.fund-pick {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--black-2); border: 1px solid var(--line);
  border-radius: 16px; padding: 12px 14px; margin-bottom: 8px;
}
.fund-pick.on { border-color: var(--neon); background: color-mix(in srgb, var(--neon) 7%, transparent); }
.fp-emoji {
  width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.fp-emoji.violet { background: var(--grad-violet); }
.fp-emoji.green  { background: var(--grad-green); }
.fp-emoji.orange { background: var(--grad-orange); }
.fp-main { flex: 1; min-width: 0; }
.fp-name { display: block; font-size: 0.92rem; font-weight: 600; }
.fp-sub  { display: block; font-size: 0.72rem; color: var(--gray); margin-top: 2px; }
.fp-tick {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--gray-2); font-size: 0.85rem; font-weight: 700;
}
.fund-pick.on .fp-tick { background: var(--neon); border-color: var(--neon); color: #0E0E0E; }

/* ---- saved-by-the-crew rows (inside a fund) ---- */
.saved-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 11px 0; border-bottom: 1px solid var(--line); background: none;
}
.saved-row:last-child { border-bottom: none; }
.sv-thumb { width: 56px; height: 56px; border-radius: 13px; object-fit: cover; flex-shrink: 0; }
.sv-main { flex: 1; min-width: 0; }
.sv-title { display: block; font-size: 0.9rem; font-weight: 600; }
.sv-sub { display: block; font-size: 0.75rem; color: var(--gray-2); margin-top: 1px;
          white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-who { display: flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 0.7rem; color: var(--gray); }
.sv-who .avatar.xs { width: 18px; height: 18px; font-size: 0.48rem; margin-right: -5px; border: 1.5px solid var(--black-2); }
.sv-who span:last-child { margin-left: 8px; }
.sv-save {
  flex-shrink: 0; font-size: 0.72rem; font-weight: 700; color: var(--neon);
  background: color-mix(in srgb, var(--neon) 12%, transparent);
  padding: 4px 10px; border-radius: 999px;
}
