/*
  PAYTM REDESIGN — VERSION B
  ─────────────────────────────────────────────────────────────
  Design language: Dark-anchored top navigation, light content
  body. Tab-based top nav instead of bottom bar. Card-less list
  patterns, data-forward typography, full-bleed section zones.
  ─────────────────────────────────────────────────────────────
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ── Tokens ─────────────────────────────────────────── */
:root {
  /* Brand */
  --brand:        #00BAF2;
  --brand-dk:     #0099CC;
  --brand-xdk:    #006E96;
  --brand-lt:     #E0F7FF;
  --brand-mid:    #B3EDFC;

  /* Semantic */
  --success:      #10B981;
  --success-lt:   #D1FAE5;
  --danger:       #EF4444;
  --danger-lt:    #FEE2E2;
  --warning:      #F59E0B;
  --warning-lt:   #FEF3C7;
  --info-lt:      #EFF6FF;

  /* Neutrals — darker, richer than version A */
  --n-950:  #060B11;
  --n-900:  #0F1923;
  --n-800:  #1C2B38;
  --n-700:  #2D3F50;
  --n-600:  #405569;
  --n-400:  #6E8499;
  --n-300:  #9AAEBF;
  --n-200:  #C8D6E0;
  --n-100:  #E4EDF3;
  --n-050:  #F3F7FA;
  --n-000:  #FFFFFF;

  /* Nav */
  --nav-surface: #0F1923;
  --nav-h:       56px;

  /* Type */
  --font:       'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radius — sharper than A */
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;

  /* Shadows — more pronounced */
  --sh-xs: 0 1px 2px rgba(0,0,0,.06);
  --sh-sm: 0 2px 8px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --sh-md: 0 6px 20px rgba(0,0,0,.10);
  --sh-lg: 0 16px 40px rgba(0,0,0,.14);
  --sh-brand: 0 6px 20px rgba(0,186,242,.28);
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--n-050);
  color: var(--n-800);
  line-height: 1.55;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ── Page shell ─────────────────────────────────────── */
.page {
  padding-bottom: calc(var(--nav-h) + 16px);
  min-height: 100vh;
}

/* ── TOP NAV (dark, tab-based — differs from A's white topbar) ── */
.top-nav {
  background: var(--nav-surface);
  position: sticky; top: 0; z-index: 300;
}
.top-nav-inner {
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 54px;
}
.tnav-logo {
  font-size: 20px; font-weight: 700; color: #fff;
  letter-spacing: -.5px; flex-shrink: 0;
}
.tnav-logo span { color: var(--brand); }
.tnav-upi {
  font-size: 9px; font-weight: 700; letter-spacing: .5px;
  color: var(--brand); background: rgba(0,186,242,.15);
  padding: 2px 6px; border-radius: 3px; margin-left: 8px; flex-shrink: 0;
}
.tnav-spacer { flex: 1; }
.tnav-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--n-300); transition: background .14s; flex-shrink: 0;
}
.tnav-icon:hover { background: rgba(255,255,255,.08); }
.tnav-icon svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tnav-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; cursor: pointer;
  border: 2px solid rgba(255,255,255,.15);
  color: var(--nav-surface);
  background: var(--brand);
}

/* Sub-tabs (inside top nav) */
.top-tabs {
  display: flex;
  background: var(--nav-surface);
  padding: 0 20px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.top-tab {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 10px 0 12px;
  font-size: 11px; font-weight: 600; color: var(--n-400);
  cursor: pointer; position: relative;
  gap: 3px; text-decoration: none;
  transition: color .14s;
  letter-spacing: .3px;
}
.top-tab svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.top-tab.active { color: var(--brand); }
.top-tab.active::after {
  content: '';
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 24px; height: 2px; border-radius: 2px 2px 0 0;
  background: var(--brand);
}

/* ── Account strip (replaces Version A's hero card) ── */
.account-strip {
  background: var(--nav-surface);
  padding: 0 20px 20px;
}
.acct-row {
  display: flex; align-items: center; gap: 12px;
  padding-top: 4px;
}
.acct-info { flex: 1; }
.acct-greeting { font-size: 12px; color: var(--n-400); font-weight: 400; }
.acct-name     { font-size: 17px; font-weight: 700; color: #fff; margin-top: 1px; letter-spacing: -.2px; }
.acct-bank     { font-size: 11px; color: var(--n-400); margin-top: 2px; }
.acct-balance-row {
  display: flex; align-items: center; gap: 0;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-top: 12px;
}
.acct-bal-left { flex: 1; }
.acct-bal-label { font-size: 10px; font-weight: 600; color: var(--n-400); letter-spacing: .6px; text-transform: uppercase; }
.acct-bal-value { font-size: 26px; font-weight: 700; color: #fff; letter-spacing: -1px; margin-top: 3px; line-height: 1; }
.acct-bal-hidden { font-size: 22px; color: var(--n-400); letter-spacing: 3px; margin-top: 3px; line-height: 1; }
.eye-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  background: rgba(0,186,242,.15);
  border: 1px solid rgba(0,186,242,.25);
  border-radius: 99px;
  font-size: 12px; font-weight: 600; color: var(--brand);
  cursor: pointer; white-space: nowrap;
  transition: background .14s;
}
.eye-pill:hover { background: rgba(0,186,242,.22); }
.eye-pill svg { width: 14px; height: 14px; stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; }

/* 3 hero actions below balance */
.hero-3 {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 8px; margin-top: 12px;
}
.hero-3-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  cursor: pointer; font-family: var(--font);
  transition: background .14s;
}
.hero-3-btn:hover { background: rgba(255,255,255,.12); }
.hero-3-btn.primary {
  background: var(--brand);
  border-color: var(--brand);
}
.hero-3-btn.primary:hover { background: var(--brand-dk); }
.hero-3-ico {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12);
}
.hero-3-btn.primary .hero-3-ico { background: rgba(255,255,255,.22); }
.hero-3-ico svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-3-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.75); }
.hero-3-btn.primary .hero-3-label { color: #fff; }

/* ── Content surface (white body below dark top) ──── */
.content-surface {
  background: var(--n-050);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  margin-top: 0;
  position: relative;
}

/* ── Section ─────────────────────────────────────── */
.sec { padding: 20px 20px 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sec-title {
  font-size: 13px; font-weight: 700; color: var(--n-800);
  letter-spacing: -.1px;
}
.sec-link { font-size: 12px; font-weight: 600; color: var(--brand); }

/* ── Reminder cards (pill style, differs from A's border-left) */
.reminder-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--n-000);
  border-radius: var(--r-md);
  padding: 12px 14px;
  box-shadow: var(--sh-xs);
  border: 1px solid var(--n-100);
  margin-bottom: 8px;
}
.reminder-card.urgent { background: var(--danger-lt); border-color: #FCA5A5; }
.rem-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.rem-dot.red   { background: var(--danger); }
.rem-dot.amber { background: var(--warning); }
.rem-dot.blue  { background: var(--brand); }
.rem-body { flex: 1; }
.rem-title { font-size: 13px; font-weight: 600; color: var(--n-900); }
.rem-sub   { font-size: 11px; color: var(--n-400); margin-top: 2px; }
.rem-action {
  font-size: 12px; font-weight: 700; color: var(--brand);
  white-space: nowrap; cursor: pointer;
}
.rem-action.danger { color: var(--danger); }
.rem-dismiss {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--n-100);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
}
.rem-dismiss svg { width: 10px; height: 10px; stroke: var(--n-400); fill: none; stroke-width: 2.5; stroke-linecap: round; }

/* ── Action chips (horizontal scroll) — vs A's square grid */
.action-chips {
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
  padding: 4px 20px; margin: 0 -20px;
  -webkit-overflow-scrolling: touch;
}
.action-chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--n-000);
  border: 1px solid var(--n-100);
  border-radius: 99px;
  font-size: 13px; font-weight: 600; color: var(--n-800);
  cursor: pointer; white-space: nowrap;
  box-shadow: var(--sh-xs);
  transition: box-shadow .14s, border-color .14s;
  text-decoration: none;
}
.chip:hover { border-color: var(--n-200); box-shadow: var(--sh-sm); }
.chip svg { width: 16px; height: 16px; stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; }
.chip.chip-scan {
  background: var(--brand); color: #fff; border-color: var(--brand);
  box-shadow: var(--sh-brand);
}
.chip.chip-scan svg { stroke: #fff; }

/* ── Recent contacts (list style vs A's scroll avatars) ─── */
.contact-row {
  display: flex; gap: 0;
  overflow-x: auto; scrollbar-width: none;
  padding: 4px 20px; margin: 0 -20px;
  -webkit-overflow-scrolling: touch;
}
.contact-row::-webkit-scrollbar { display: none; }
.contact-bubble {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 4px 10px;
  cursor: pointer;
}
.cb-ring {
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid var(--n-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.cb-name { font-size: 11px; font-weight: 500; color: var(--n-600); width: 56px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Colour rings */
.r-teal   { border-color: #0D9488; background: #F0FDFA; color: #0D9488; }
.r-indigo { border-color: #4F46E5; background: #EEF2FF; color: #4F46E5; }
.r-rose   { border-color: #E11D48; background: #FFF1F2; color: #E11D48; }
.r-amber  { border-color: #D97706; background: #FFFBEB; color: #D97706; }
.r-violet { border-color: #7C3AED; background: #F5F3FF; color: #7C3AED; }
.r-cyan   { border-color: #0891B2; background: #ECFEFF; color: #0891B2; }
.r-emerald{ border-color: #059669; background: #ECFDF5; color: #059669; }

/* ── Transaction list (timeline style vs A's flat rows) ─── */
.txn-group { background: var(--n-000); border-radius: var(--r-md); border: 1px solid var(--n-100); overflow: hidden; box-shadow: var(--sh-xs); }
.txn-month-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px 8px;
  background: var(--n-050);
  border-bottom: 1px solid var(--n-100);
}
.txn-month-label { font-size: 11px; font-weight: 700; color: var(--n-400); letter-spacing: .5px; text-transform: uppercase; }
.txn-month-net   { font-size: 12px; font-weight: 600; color: var(--n-600); }

.txn-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; cursor: pointer;
  transition: background .12s;
}
.txn-row:hover { background: var(--n-050); }
.txn-row + .txn-row { border-top: 1px solid var(--n-100); }
.txn-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.txn-detail { flex: 1; min-width: 0; }
.txn-name { font-size: 14px; font-weight: 600; color: var(--n-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txn-meta { font-size: 11px; color: var(--n-300); margin-top: 2px; }
.txn-note { display: inline-block; font-size: 10px; font-weight: 600; color: var(--n-600); background: var(--n-100); padding: 1px 6px; border-radius: 3px; margin-top: 4px; }
.txn-right { text-align: right; flex-shrink: 0; }
.txn-amount { font-size: 15px; font-weight: 700; }
.txn-amount.out { color: var(--n-900); }
.txn-amount.in  { color: var(--success); }
.txn-dir { font-size: 10px; font-weight: 600; margin-top: 2px; letter-spacing: .3px; }
.txn-dir.out { color: var(--n-300); }
.txn-dir.in  { color: var(--success); }

/* ── Service grid (2-column card vs A's 4-column icon) ─── */
.service-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.service-card {
  background: var(--n-000);
  border: 1px solid var(--n-100);
  border-radius: var(--r-md);
  padding: 14px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: box-shadow .14s;
  box-shadow: var(--sh-xs);
  text-decoration: none;
}
.service-card:hover { box-shadow: var(--sh-sm); }
.svc-ico {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.svc-ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.svc-text { flex: 1; }
.svc-title { font-size: 13px; font-weight: 600; color: var(--n-900); }
.svc-sub   { font-size: 11px; color: var(--n-400); margin-top: 2px; }

/* ── Recharge scroll cards ─────────────────────────── */
.rech-scroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px 20px; margin: 0 -20px; -webkit-overflow-scrolling: touch; }
.rech-scroll::-webkit-scrollbar { display: none; }
.rech-card {
  flex: 0 0 130px;
  background: var(--n-000);
  border: 1px solid var(--n-100);
  border-radius: var(--r-md);
  padding: 14px 12px;
  cursor: pointer; transition: box-shadow .14s;
  box-shadow: var(--sh-xs);
}
.rech-card:hover { box-shadow: var(--sh-sm); }
.rech-ico { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.rech-ico svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; }
.rech-title { font-size: 13px; font-weight: 600; color: var(--n-900); margin-top: 10px; }
.rech-sub   { font-size: 11px; color: var(--n-400); margin-top: 2px; }

/* ── Offer cards (horizontal strip vs A's grid) ───── */
.offer-strip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px 20px; margin: 0 -20px; -webkit-overflow-scrolling: touch; }
.offer-strip::-webkit-scrollbar { display: none; }
.offer-tile {
  flex: 0 0 200px;
  background: var(--n-000);
  border: 1px solid var(--n-100);
  border-radius: var(--r-md);
  padding: 14px;
  box-shadow: var(--sh-xs);
  cursor: pointer;
}
.offer-tag {
  display: inline-flex; align-items: center;
  padding: 3px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .2px;
  margin-bottom: 8px;
}
.tag-green  { background: var(--success-lt); color: var(--success); }
.tag-blue   { background: var(--brand-lt);  color: var(--brand-xdk); }
.tag-amber  { background: var(--warning-lt); color: #92400E; }
.offer-tile-title { font-size: 13px; font-weight: 700; color: var(--n-900); line-height: 1.3; }
.offer-tile-desc  { font-size: 11px; color: var(--n-400); margin-top: 4px; line-height: 1.4; }
.offer-tile-cta   { font-size: 12px; font-weight: 700; color: var(--brand); margin-top: 10px; display: block; }

/* Reward summary bar */
.reward-bar {
  background: var(--n-900);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 0;
}
.reward-stat { flex: 1; text-align: center; padding: 0 8px; }
.reward-stat + .reward-stat { border-left: 1px solid rgba(255,255,255,.1); }
.reward-val { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -.5px; }
.reward-lbl { font-size: 10px; font-weight: 600; color: var(--n-400); margin-top: 2px; text-transform: uppercase; letter-spacing: .4px; }
.reward-bar-cta {
  padding: 7px 14px;
  background: var(--brand); color: #fff;
  border-radius: 99px; font-size: 12px; font-weight: 700;
  cursor: pointer; border: none; font-family: var(--font);
  box-shadow: var(--sh-brand); white-space: nowrap;
}

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 700; font-family: var(--font);
  cursor: pointer; border: none; transition: opacity .14s, transform .1s;
}
.btn:active { transform: scale(.97); opacity: .9; }
.btn-brand    { background: var(--brand); color: #fff; box-shadow: var(--sh-brand); }
.btn-brand:hover { background: var(--brand-dk); }
.btn-outline  { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn-muted    { background: var(--n-100); color: var(--n-700); }
.btn-muted:hover { background: var(--n-200); }
.btn-danger   { background: var(--danger-lt); color: var(--danger); }
.btn-full { width: 100%; }
.btn svg  { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ── Input ─────────────────────────────────────── */
.field-wrap {
  display: flex; flex-direction: column; gap: 6px;
}
.field-label { font-size: 12px; font-weight: 600; color: var(--n-600); letter-spacing: .2px; }
.field-inner {
  position: relative; display: flex; align-items: center;
}
.field-inner svg { position: absolute; left: 14px; width: 17px; height: 17px; stroke: var(--n-300); fill: none; stroke-width: 1.9; pointer-events: none; }
.field-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--n-200);
  border-radius: var(--r-sm);
  font-size: 14px; font-family: var(--font);
  background: var(--n-000); color: var(--n-900);
  outline: none; transition: border-color .15s;
}
.field-input:focus { border-color: var(--brand); }
.field-input::placeholder { color: var(--n-300); }
.field-action {
  position: absolute; right: 12px;
  width: 32px; height: 32px; border-radius: var(--r-sm);
  background: var(--brand-lt); display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.field-action svg { stroke: var(--brand); width: 15px; height: 15px; stroke-width: 2; }

/* ── Avatar system ─────────────────────────────── */
.av {
  border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.av-36 { width: 36px; height: 36px; font-size: 12px; }
.av-40 { width: 40px; height: 40px; font-size: 13px; }
.av-44 { width: 44px; height: 44px; font-size: 14px; }
.av-56 { width: 56px; height: 56px; font-size: 19px; }
.av-72 { width: 72px; height: 72px; font-size: 24px; }
.t1 { background: #F0FDFA; color: #0D9488; }
.t2 { background: #EEF2FF; color: #4F46E5; }
.t3 { background: #FFF1F2; color: #E11D48; }
.t4 { background: #FFFBEB; color: #D97706; }
.t5 { background: #F5F3FF; color: #7C3AED; }
.t6 { background: #ECFEFF; color: #0891B2; }
.t7 { background: #ECFDF5; color: #059669; }
.t8 { background: var(--brand-lt); color: var(--brand-xdk); }

/* ── Badge ──────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: .3px; }
.badge-brand   { background: var(--brand-lt); color: var(--brand-xdk); }
.badge-success { background: var(--success-lt); color: var(--success); }
.badge-danger  { background: var(--danger-lt); color: var(--danger); }
.badge-warning { background: var(--warning-lt); color: #92400E; }

/* ── Sheet (bottom) ─────────────────────────────── */
.overlay {
  position: fixed; inset: 0; background: rgba(15,25,35,.6);
  z-index: 400; display: none; backdrop-filter: blur(2px);
}
.sheet {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: var(--n-000);
  border-radius: 20px 20px 0 0;
  z-index: 401; padding: 0 0 32px;
  display: none;
  box-shadow: 0 -4px 40px rgba(0,0,0,.18);
}
.sheet-handle { display: flex; justify-content: center; padding: 12px 0 4px; }
.sheet-handle span { width: 32px; height: 3px; background: var(--n-200); border-radius: 2px; display: block; }
.sheet-title { font-size: 17px; font-weight: 700; color: var(--n-900); padding: 8px 20px 16px; }

/* ── Divider ─────────────────────────────────────── */
.hr { height: 1px; background: var(--n-100); }

/* ── PIN ─────────────────────────────────────────── */
.pin-overlay {
  position: fixed; inset: 0; background: rgba(15,25,35,.6);
  z-index: 500; display: none; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(2px);
}
.pin-overlay.show { display: flex; }
.pin-sheet {
  width: 100%; max-width: 430px;
  background: var(--n-000);
  border-radius: 20px 20px 0 0;
  padding: 0 20px 32px;
  box-shadow: 0 -4px 40px rgba(0,0,0,.2);
}
.pin-dots { display: flex; gap: 12px; justify-content: center; margin: 22px 0 20px; }
.pin-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--n-200); transition: background .15s; }
.pin-dot.on { background: var(--n-900); }
.pin-keys { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.pin-key {
  height: 58px; border-radius: var(--r-sm);
  background: var(--n-050); border: 1px solid var(--n-100);
  font-size: 22px; font-weight: 600; color: var(--n-900);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-family: var(--font); transition: background .1s;
}
.pin-key:active { background: var(--n-200); }
.pin-key.sm { font-size: 13px; color: var(--n-500); }

/* ── Contact list item ────────────────────────────── */
.clist-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; cursor: pointer;
  transition: background .1s;
}
.clist-item:hover { background: var(--n-050); }
.clist-item + .clist-item { border-top: 1px solid var(--n-100); }
.clist-name { font-size: 14px; font-weight: 600; color: var(--n-900); }
.clist-sub  { font-size: 12px; color: var(--n-400); margin-top: 2px; }

/* ── Settings row ────────────────────────────────── */
.srow {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; cursor: pointer;
  transition: background .12s;
}
.srow:hover { background: var(--n-050); }
.srow + .srow { border-top: 1px solid var(--n-100); }
.srow-ico {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.srow-ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.srow-body { flex: 1; }
.srow-title { font-size: 14px; font-weight: 600; color: var(--n-900); }
.srow-sub   { font-size: 12px; color: var(--n-400); margin-top: 2px; }
.srow-chev svg { width: 15px; height: 15px; stroke: var(--n-300); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Success screen ──────────────────────────────── */
.success-ring {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--success-lt);
  display: flex; align-items: center; justify-content: center; margin: 0 auto;
  border: 3px solid var(--success);
}
.success-ring svg { width: 40px; height: 40px; stroke: var(--success); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── Detail row ──────────────────────────────────── */
.detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 0;
}
.detail-row + .detail-row { border-top: 1px solid var(--n-100); }
.detail-label { font-size: 13px; color: var(--n-400); }
.detail-value { font-size: 13px; font-weight: 600; color: var(--n-900); }

/* ── Scan screen ─────────────────────────────────── */
.scan-surface {
  background: #000;
  min-height: calc(100vh - 110px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative;
}
.qr-frame { width: 230px; height: 230px; position: relative; }
.qf-c { position: absolute; width: 26px; height: 26px; border-color: var(--brand); border-style: solid; }
.qf-tl { top: 0; left: 0; border-width: 3px 0 0 3px; border-radius: 6px 0 0 0; }
.qf-tr { top: 0; right: 0; border-width: 3px 3px 0 0; border-radius: 0 6px 0 0; }
.qf-br { bottom: 0; right: 0; border-width: 0 3px 3px 0; border-radius: 0 0 6px 0; }
.qf-bl { bottom: 0; left: 0; border-width: 0 0 3px 3px; border-radius: 0 0 0 6px; }
.scan-beam {
  position: absolute; left: 4px; right: 4px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  border-radius: 1px; animation: beam 2s ease-in-out infinite;
}
@keyframes beam { 0%,100%{top:4px} 50%{top:calc(100% - 6px)} }
.scan-tip { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 24px; text-align: center; }
.scan-btn-row { display: flex; gap: 24px; margin-top: 36px; }
.scan-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer;
}
.scan-btn-circle {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
  transition: background .14s;
}
.scan-btn-circle:hover { background: rgba(255,255,255,.18); }
.scan-btn-circle svg { width: 22px; height: 22px; stroke: rgba(255,255,255,.75); fill: none; stroke-width: 1.8; stroke-linecap: round; }
.scan-btn-label { font-size: 11px; color: rgba(255,255,255,.45); font-weight: 600; }

/* ── Tabs (scan mode switcher) ─────────────────── */
.mode-tabs {
  display: flex; gap: 0; background: rgba(255,255,255,.08);
  border-radius: 99px; padding: 3px; margin-top: 16px;
}
.mode-tab {
  padding: 7px 22px; border-radius: 99px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.45);
  cursor: pointer; transition: all .15s;
}
.mode-tab.on { background: #fff; color: var(--n-900); }

/* ── Offers page ─────────────────────────────────── */
.offer-cat-tabs {
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
  padding: 4px 20px; margin: 0 -20px;
}
.offer-cat-tabs::-webkit-scrollbar { display: none; }
.oct {
  flex: 0 0 auto; padding: 8px 16px; border-radius: 99px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  background: var(--n-000); color: var(--n-600);
  border: 1.5px solid var(--n-200);
  transition: all .14s;
}
.oct.on { background: var(--brand); color: #fff; border-color: var(--brand); }

.offer-card-full {
  background: var(--n-000);
  border: 1px solid var(--n-100);
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: var(--sh-xs);
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 10px;
  cursor: pointer;
}
.ofc-ico {
  width: 46px; height: 46px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ofc-ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.ofc-body { flex: 1; }
.ofc-title { font-size: 14px; font-weight: 700; color: var(--n-900); }
.ofc-desc  { font-size: 12px; color: var(--n-500); margin-top: 4px; line-height: 1.45; }
.ofc-cta   { margin-top: 12px; }

/* Scratch card slot */
.scratch-slot {
  background: var(--n-000);
  border: 1.5px dashed var(--n-200);
  border-radius: var(--r-md);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .14s;
}
.scratch-slot:hover { border-color: var(--brand); }
.scratch-cover {
  background: var(--n-100);
  border-radius: var(--r-sm);
  padding: 14px;
  margin-bottom: 8px;
  font-size: 13px; font-weight: 600; color: var(--n-500);
}
.scratch-label { font-size: 11px; color: var(--n-400); }
.scratch-revealed {
  font-size: 22px; font-weight: 700; color: var(--success); margin-bottom: 4px;
}

/* ── Animations ──────────────────────────────────── */
@keyframes fadeUp { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
.fu  { animation: fadeUp .22s ease both; }
.fu1 { animation-delay: .05s; }
.fu2 { animation-delay: .10s; }
.fu3 { animation-delay: .15s; }
.fu4 { animation-delay: .20s; }

/* ── Utility ─────────────────────────────────────── */
.flex { display: flex; }
.items-c { align-items: center; }
.jc-sb   { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-8   { margin-top: 8px; }
.mt-12  { margin-top: 12px; }
.mt-16  { margin-top: 16px; }
.mt-20  { margin-top: 20px; }
.mt-24  { margin-top: 24px; }
.pb-20  { padding-bottom: 20px; }
.spacer { height: 24px; }
.text-c { text-align: center; }
.card-surface {
  background: var(--n-000);
  border: 1px solid var(--n-100);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-xs);
}
