/* ═══════════════════════════════════════════════════
   OrbitPay — 2026 Professional Fintech System
   Mobile-first · OLED black · Optical type · iOS depth
   ═══════════════════════════════════════════════════ */

:root {
  --black: #000000;
  --ink: #0a0a0b;
  --sheet: #ffffff;
  --sheet-2: #f5f5f7;
  --muted: #8e8e93;
  --label: #aeaeb2;
  --hair: rgba(60, 60, 67, 0.12);
  --hair-dark: rgba(255, 255, 255, 0.08);
  --green: #30d158;
  --green-dim: #248a3d;
  --blue: #0a84ff;
  --red: #ff453a;
  --pill: rgba(255, 255, 255, 0.14);
  --pill-press: rgba(255, 255, 255, 0.22);
  --nav: rgba(22, 22, 24, 0.92);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  background: var(--black);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  background: var(--black);
  color: #fff;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
  letter-spacing: -0.011em;
}
::selection { background: rgba(10,132,255,0.35); color: #fff; }
html { scroll-behavior: smooth; }

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}
img { display: block; max-width: 100%; }

/* ─── App shell ─── */
.app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  position: relative;
  background: var(--black);
  overflow-x: hidden;
}
.app::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 320px;
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(255,255,255,0.055), transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 10%, rgba(10,132,255,0.06), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Header ─── */
.header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(12px + var(--safe-t)) 20px 8px;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:
    linear-gradient(145deg, #6b6b73 0%, #3a3a40 40%, #1c1c1f 100%);
  border: 1.5px solid rgba(255,255,255,0.18);
  box-shadow:
    0 0 0 0.5px rgba(0,0,0,0.5),
    0 2px 10px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #f5f5f7;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.name-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 510;
  color: #f5f5f7;
  letter-spacing: -0.02em;
}
.name-row svg { opacity: 0.4; width: 12px; height: 12px; }
.search-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: background 0.15s var(--ease);
}
.search-btn:active { background: rgba(255,255,255,0.08); }

/* ─── Balance ─── */
.balance-section {
  position: relative;
  z-index: 5;
  padding: 28px 24px 28px;
}
.balance-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.balance {
  font-size: clamp(44px, 12vw, 52px);
  font-weight: 600;
  letter-spacing: -0.048em;
  line-height: 1.02;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "ss01" 1;
}
.balance-sub {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 510;
  letter-spacing: -0.015em;
  color: #fff;
  background: var(--pill);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    inset 0 0.5px 0 rgba(255,255,255,0.18),
    0 1px 2px rgba(0,0,0,0.2);
  transition: background 0.15s var(--ease), transform 0.12s var(--ease);
}
.pill:active {
  background: var(--pill-press);
  transform: scale(0.97);
}
.pill svg { flex-shrink: 0; opacity: 0.95; }

/* ─── White sheet ─── */
.sheet {
  position: relative;
  z-index: 6;
  background: var(--sheet);
  color: var(--ink);
  border-radius: 28px 28px 0 0;
  min-height: calc(100dvh - 240px);
  padding: 22px 0 calc(110px + var(--safe-b));
  box-shadow:
    0 -12px 48px rgba(0,0,0,0.45),
    0 -1px 0 rgba(255,255,255,0.06);
}
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 22px 12px;
}
.sheet-header h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.032em;
  color: var(--ink);
}
.filter {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--sheet-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #636366;
  transition: background 0.12s;
}
.filter:active { background: #e5e5ea; }

.day-label {
  padding: 16px 22px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--label);
}

/* ─── Transactions ─── */
.tx {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  width: 100%;
  text-align: left;
  transition: background 0.12s var(--ease);
}
.tx:active { background: #f2f2f7; }
.tx-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.tx-body { flex: 1; min-width: 0; }
.tx-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--ink);
  line-height: 1.25;
}
.tx-cat {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.tx-amt {
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.022em;
  color: var(--ink);
  white-space: nowrap;
}
.tx-amt.in { color: var(--green-dim); }

.logo-sb { background: #00704a; color: #fff; font-size: 22px; }
.logo-pp {
  background: linear-gradient(135deg, #003087, #009cde);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.04em;
  padding: 0 4px;
  text-align: center;
  line-height: 1.1;
}
.logo-wm { background: #0071ce; color: #ffc220; font-size: 20px; font-weight: 800; }
.logo-nf {
  background: #000;
  color: #e50914;
  font-size: 22px;
  font-weight: 900;
  font-family: "Helvetica Neue", Impact, sans-serif;
}
.logo-ap {
  background: #f5f5f7;
  color: #1d1d1f;
  font-size: 26px;
}
.logo-ap::before {
  content: "";
  width: 20px;
  height: 24px;
  background: #1d1d1f;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.logo-ub {
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.logo-ab { background: #ff5a5f; color: #fff; font-size: 18px; font-weight: 800; }

/* ─── Bottom nav ─── */
.bottom-nav {
  position: fixed;
  bottom: calc(18px + var(--safe-b));
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 48px), 280px);
  height: 60px;
  background: var(--nav);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 0 8px;
  z-index: 100;
  box-shadow:
    0 14px 40px rgba(0,0,0,0.55),
    0 0 0 0.5px rgba(255,255,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.08);
}
.nav-item {
  width: 56px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #636366;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.nav-item.active {
  color: #fff;
  background: rgba(255,255,255,0.12);
}
.nav-item svg { width: 24px; height: 24px; }

/* ═══════════════════════════════════
   AUTH
   ═══════════════════════════════════ */
.auth-shell {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--black);
  display: flex;
  flex-direction: column;
  padding: calc(48px + var(--safe-t)) 28px calc(32px + var(--safe-b));
  position: relative;
}
.auth-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,255,255,0.04), transparent 60%);
  pointer-events: none;
}
.auth-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(160deg, #3a3a42, #141416);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  margin: 0 auto 28px;
  position: relative;
  z-index: 1;
}
.auth-shell h1 {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.auth-shell .sub {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 40px;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}
.field { margin-bottom: 16px; position: relative; z-index: 1; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.field input {
  width: 100%;
  height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #fff;
  padding: 0 16px;
  font-size: 16px;
  outline: none;
  letter-spacing: -0.01em;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.field input::placeholder { color: rgba(255,255,255,0.25); }
.field input:focus {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.04);
}
.btn-primary {
  width: 100%;
  height: 54px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 12px;
  position: relative;
  z-index: 1;
  transition: transform 0.12s, opacity 0.12s;
}
.btn-primary:active { transform: scale(0.985); opacity: 0.92; }
.btn-ghost {
  width: 100%;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 510;
  margin-top: 12px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.auth-footer {
  text-align: center;
  margin-top: auto;
  padding-top: 32px;
  font-size: 13px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.auth-footer a { color: #fff; font-weight: 510; }

/* ═══════════════════════════════════
   ONBOARDING
   ═══════════════════════════════════ */
.onboard {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  background: #000;
  display: flex;
  flex-direction: column;
}
.onboard-art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48vh;
  padding: 64px 32px 24px;
  position: relative;
}
.onboard-art::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 70%);
  filter: blur(20px);
}
.sculpture {
  width: min(240px, 62vw);
  height: min(300px, 48vh);
  position: relative;
  z-index: 1;
  background:
    linear-gradient(155deg, #4a4a52 0%, #1a1a1e 28%, #0e0e10 55%, #2c2c32 100%);
  clip-path: polygon(18% 0%, 82% 6%, 100% 38%, 72% 100%, 22% 96%, 0% 44%);
  box-shadow:
    0 40px 80px rgba(0,0,0,0.75),
    inset 0 1px 0 rgba(255,255,255,0.12);
}
.sculpture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, transparent 25%, rgba(255,255,255,0.1) 48%, transparent 70%);
}
.onboard-copy {
  padding: 20px 28px calc(40px + var(--safe-b));
}
.onboard-copy h1 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.038em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.onboard-copy p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 320px;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}
.onboard-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 56px;
  padding: 0 8px 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 15px;
  font-weight: 510;
  letter-spacing: -0.015em;
  color: #fff;
  transition: background 0.15s;
}
.onboard-cta:active { background: rgba(255,255,255,0.06); }
.onboard-cta .arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════
   TRANSACTION DETAIL
   ═══════════════════════════════════ */
.detail-page {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  background: #fff;
  color: var(--ink);
}
.detail-top {
  display: flex;
  justify-content: flex-end;
  padding: calc(12px + var(--safe-t)) 18px 4px;
}
.detail-top button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f2f2f7;
  color: #636366;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-hero {
  text-align: center;
  padding: 8px 24px 20px;
}
.detail-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #000;
  color: #e50914;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 900;
  font-family: "Helvetica Neue", Impact, sans-serif;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.detail-hero h1 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.detail-hero .cat {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.detail-hero .amount {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.045em;
  margin-top: 16px;
  font-variant-numeric: tabular-nums;
}
.detail-hero .when {
  font-size: 13px;
  color: var(--label);
  margin-top: 8px;
}
.detail-actions {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 8px 24px 28px;
}
.detail-actions button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  color: #636366;
  letter-spacing: -0.01em;
}
.detail-actions .circle {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #f2f2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.detail-section {
  padding: 0 24px 16px;
}
.detail-section h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  font-size: 15px;
  border-bottom: 0.5px solid var(--hair);
}
.detail-row:last-child { border-bottom: none; }
.detail-row .label { color: var(--muted); }
.detail-row .value {
  font-weight: 510;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}
.detail-map {
  margin: 8px 20px;
  border-radius: 18px;
  overflow: hidden;
  height: 156px;
  position: relative;
  background: #1c1c1e;
  box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.15);
}
.detail-map .map-placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 58% 42%, #3a3a3c 0%, transparent 40%),
    linear-gradient(150deg, #2c2c2e, #111113);
  position: relative;
}
.detail-map .map-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.detail-map .pin {
  position: absolute;
  left: 54%;
  top: 38%;
  width: 18px;
  height: 18px;
  background: #ff3b30;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2.5px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 2;
}
.detail-address {
  padding: 4px 24px 48px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

/* ═══════════════════════════════════
   DOCUMENTS / INTERIOR LISTS
   ═══════════════════════════════════ */
.page-dark {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--black);
  padding-bottom: calc(100px + var(--safe-b));
}
.page-h {
  padding: calc(16px + var(--safe-t)) 20px 8px;
}
.page-h .back {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
}
.page-h h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.038em;
}
.page-h p {
  font-size: 15px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: -0.01em;
}
.doc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 0.5px solid var(--hair-dark);
  transition: background 0.12s;
}
.doc-row:active { background: rgba(255,255,255,0.04); }
.doc-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.doc-body { flex: 1; min-width: 0; }
.doc-body strong {
  display: block;
  font-size: 15px;
  font-weight: 510;
  letter-spacing: -0.015em;
}
.doc-body span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}
.doc-dl {
  font-size: 14px;
  font-weight: 510;
  color: rgba(255,255,255,0.7);
}

/* Cards interior */
.card-visual {
  margin: 12px 20px 24px;
  height: 200px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, #1c1c1e 0%, #0a0a0c 50%, #1a1a1c 100%);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 48px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}
.card-visual::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 70%);
}
.card-visual .chip {
  width: 36px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #d4af37, #aa8c2c);
  opacity: 0.9;
}
.card-visual .last4 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}
.card-visual .network {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.7;
  text-align: right;
}

.demo-banner { display: none !important; }

/* ─── Premium 2026 refinements ─── */
.tx {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  min-height: 64px;
  border-bottom: 0.5px solid var(--hair);
  transition: background 0.15s var(--ease);
}
.tx:last-child { border-bottom: none; }
.tx:active { background: rgba(0,0,0,0.03); }
.tx-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.02em;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.tx-body { flex: 1; min-width: 0; }
.tx-title {
  font-size: 16px;
  font-weight: 510;
  color: #1c1c1e;
  letter-spacing: -0.022em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tx-cat {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.tx-amt {
  font-size: 16px;
  font-weight: 510;
  color: #1c1c1e;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.022em;
  flex-shrink: 0;
}
.tx-amt.in { color: var(--green-dim); }
.day-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 16px 0 6px;
}

/* Brand tiles — no emoji */
.logo-sb { background: #00704a; }
.logo-sb::after { content: ""; width: 18px; height: 18px; background: #fff; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2C9 2 7 4.2 7 7.5c0 2.4 1.2 4.2 2.4 5.5.4.4.6.9.6 1.4v1.1h4v-1.1c0-.5.2-1 .6-1.4C16.8 11.7 18 9.9 18 7.5 18 4.2 15 2 12 2zm-1.5 16.5h3v1.8c0 .4-.3.7-.7.7h-1.6c-.4 0-.7-.3-.7-.7v-1.8z'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2C9 2 7 4.2 7 7.5c0 2.4 1.2 4.2 2.4 5.5.4.4.6.9.6 1.4v1.1h4v-1.1c0-.5.2-1 .6-1.4C16.8 11.7 18 9.9 18 7.5 18 4.2 15 2 12 2zm-1.5 16.5h3v1.8c0 .4-.3.7-.7.7h-1.6c-.4 0-.7-.3-.7-.7v-1.8z'/%3E%3C/svg%3E") center/contain no-repeat; }
.logo-pp { background: linear-gradient(180deg, #0070e0 0%, #1546a0 100%); font-size: 9px; font-weight: 700; line-height: 1.1; text-align: center; }
.logo-wm { background: #0071ce; }
.logo-wm::after { content: "★"; font-size: 20px; color: #ffc220; line-height: 1; }
.logo-nf { background: #000; border: 0.5px solid rgba(0,0,0,0.08); }
.logo-nf::after { content: "N"; font-family: Impact, Haettenschweiler, sans-serif; font-size: 22px; color: #e50914; font-weight: 700; }
.logo-ap { background: #1c1c1e; }
.logo-ap::after { content: ""; width: 16px; height: 20px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z'/%3E%3C/svg%3E") center/contain no-repeat; }
.logo-ub { background: #000; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
.logo-ab { background: #ff5a5f; font-size: 15px; font-weight: 700; }
.logo-tx { background: #3a3a3c; font-size: 15px; }

/* SF-style row icons (replace emoji) */
.doc-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0 !important;
  color: transparent !important;
  position: relative;
}
.doc-ico svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.doc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 0.5px solid var(--hair-dark);
  min-height: 60px;
}
.doc-row:active { background: rgba(255,255,255,0.04); }
.doc-body strong {
  display: block;
  font-size: 16px;
  font-weight: 510;
  letter-spacing: -0.02em;
  color: #fff;
}
.doc-body span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.doc-dl {
  font-size: 15px;
  font-weight: 510;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.sheet {
  position: relative;
  z-index: 2;
  background: var(--sheet);
  border-radius: 24px 24px 0 0;
  margin-top: 8px;
  padding: 8px 20px calc(100px + var(--safe-b));
  min-height: 50vh;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.25);
}
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 4px;
}
.sheet-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: #1c1c1e;
  letter-spacing: -0.03em;
}
.filter {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--sheet-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1c1c1e;
}

.balance {
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.balance-label {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  margin-bottom: 6px;
}
.balance-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
  font-weight: 400;
}

/* ─── 3-slide onboarding ─── */
.onboard-wrap {
  min-height: 100dvh;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  max-width: 430px;
  margin: 0 auto;
}
.onboard-slides {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.onboard-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 28px calc(28px + var(--safe-b));
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.onboard-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.onboard-visual {
  position: absolute;
  top: 8%;
  left: 0; right: 0;
  height: 48%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.onboard-visual .orb {
  width: min(72vw, 280px);
  height: min(72vw, 280px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.2), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(10,132,255,0.35), transparent 50%),
    linear-gradient(160deg, #1c1c1e, #000);
  box-shadow: 0 40px 80px rgba(0,0,0,0.55);
}
.onboard-visual .orb.alt {
  background:
    radial-gradient(circle at 40% 40%, rgba(48,209,88,0.25), transparent 50%),
    linear-gradient(160deg, #1a1a1c, #000);
}
.onboard-visual .orb.alt2 {
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,0.12), transparent 40%),
    radial-gradient(circle at 30% 80%, rgba(175,82,222,0.3), transparent 45%),
    linear-gradient(160deg, #1c1c1e, #000);
}
.onboard-slide h1 {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 12px;
}
.onboard-slide p {
  font-size: 16px;
  line-height: 1.45;
  color: rgba(255,255,255,0.58);
  max-width: 320px;
  margin-bottom: 28px;
}
.onboard-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}
.onboard-dots span {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255,255,255,0.2);
  transition: width 0.25s, background 0.25s;
}
.onboard-dots span.on {
  width: 22px;
  background: #fff;
}
.onboard-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.onboard-actions .btn-primary {
  width: 100%;
}
.onboard-actions .btn-ghost {
  width: 100%;
  color: rgba(255,255,255,0.7);
}

/* Auth form shells */
.auth-shell {
  min-height: 100dvh;
  max-width: 430px;
  margin: 0 auto;
  padding: calc(20px + var(--safe-t)) 24px calc(32px + var(--safe-b));
  background: #000;
  color: #fff;
}
.auth-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.auth-shell h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 8px;
}
.auth-shell .sub {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 28px;
  line-height: 1.4;
}
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
  font-weight: 500;
}
.field input, .field select {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 0 16px;
  font-size: 16px;
  outline: none;
  font-family: inherit;
}
.field input:focus, .field select:focus {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.09);
}
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 8px;
  border: none;
}
.btn-primary:disabled {
  opacity: 0.45;
}
.btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.14);
  margin-top: 10px;
}
.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}
.auth-footer a { color: #fff; font-weight: 500; }
.auth-error {
  background: rgba(255,69,58,0.12);
  color: #ff6961;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 14px;
  display: none;
}
.auth-error.on { display: block; }
.choice-grid {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.choice-card {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 18px 16px;
  text-align: left;
}
.choice-card strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.choice-card span {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}
.choice-card:active { background: rgba(255,255,255,0.1); }
.step-pill {
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Brand + neutral motion */
.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  margin-bottom: 24px;
  object-fit: contain;
}
.brand-logo.lg { height: 44px; margin-bottom: 28px; }
.brand-mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 24px;
  display: block;
}

/* Neutral global motion */
a, button, .pill, .doc-row, .tx, .choice-card, .rail-item, .icon-btn {
  transition: background-color 0.25s ease, opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.page-dark, .auth-shell, .receipt-page, .app {
  animation: pageIn 0.4s ease both;
}
@keyframes pageIn {
  from { opacity: 0.88; }
  to { opacity: 1; }
}

/* Onboarding: slow fade (no slide snap) */
.onboard-slide {
  transition: opacity 0.85s ease !important;
  transform: none !important;
}
.onboard-slide:not(.active) {
  opacity: 0;
  pointer-events: none;
}
.onboard-slide.active {
  opacity: 1;
}
.onboard-dots span {
  transition: width 0.45s ease, background 0.45s ease;
}

/* Boot bar — subtle continuous motion */
.boot-bar i {
  animation: bootslide 1.15s ease-in-out infinite !important;
  width: 42%;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .onboard-slide { transition-duration: 0.2s !important; }
  .boot-bar i { animation-duration: 2s !important; }
  .page-dark, .auth-shell, .receipt-page, .app { animation: none; }
}

/* Modal sheet — neutral fade */
#op-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
#op-modal.on { opacity: 1; visibility: visible; }
.op-modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.55);
}
.op-modal-sheet {
  position: relative; z-index: 1;
  width: 100%; max-width: 430px;
  max-height: 86dvh; overflow: auto;
  background: #1c1c1e; color: #fff;
  border-radius: 20px 20px 0 0;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(16px);
  transition: transform 0.4s ease;
}
#op-modal.on .op-modal-sheet { transform: translateY(0); }
.op-modal-x {
  position: absolute; right: 14px; top: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: #fff; font-size: 14px;
}
.op-modal-body h3 { font-size: 20px; letter-spacing: -0.03em; margin-bottom: 8px; }
.op-modal-body p { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.45; margin-bottom: 16px; }
