/* ============================================================
   OneCard UI recreation — design system
   Premium black-metal theme, matched to OneCard's real identity
   (all-black metal card, "one" wordmark, maroon horse emblem).
   Pure CSS, no framework. Real assets live in assets/img/.
   ============================================================ */

/* Real OneCard fonts extracted from the APK */
@font-face { font-family: "Lucid"; src: url("../fonts/Lucid-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lucid"; src: url("../fonts/Lucid-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Lucid"; src: url("../fonts/Lucid-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Lucid"; src: url("../fonts/Lucid-Bold.ttf") format("truetype"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "LucidIcon"; src: url("../fonts/Lucid-Icon.otf") format("opentype"); font-display: block; }

/* Icon helper — uses OneCard's real symbol font */
.ic { font-family: "LucidIcon"; font-style: normal; font-weight: normal; line-height: 1;
  display: inline-block; vertical-align: middle; speak: none;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.appbar__action .ic { font-size: 20px; }
.appbar__back .ic { font-size: 22px; }
.pager__btn .ic { font-size: 13px; }
.kv__v .ic { font-size: 13px; color: var(--text-mute); }
.kv__k .ic { color: var(--text-dim); }

:root {
  /* Light theme — matched to OneCard's real app screens */
  --bg: #f4f5f7;          /* app background */
  --surface: #ffffff;     /* cards */
  --surface-2: #f1f2f5;   /* insets, field bg */
  --surface-3: #e7e9ee;   /* tracks */
  --line: #e8eaef;        /* borders */
  --text: #14161c;        /* primary text */
  --text-dim: #5c5f6a;    /* secondary text */
  --text-mute: #9195a0;   /* muted text */
  --brand: #1a56ff;       /* OneCard/SBM blue */
  --brand-2: #1a56ff;     /* accent (links, active) */
  --blue: #1a56ff;
  --primary: #111318;     /* black action buttons */
  --success: #16a34a;     /* Active green */
  --danger: #e5484d;
  --warn: #d98a00;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(20, 22, 28, 0.14);
  --card-shadow: 0 1px 3px rgba(20, 22, 28, 0.06), 0 1px 2px rgba(20, 22, 28, 0.04);
  --font: "Lucid", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: #e9ebef;
  color: var(--text);
  min-height: 100vh;
  display: flex;
}

/* ---------- Left rail (screen switcher) ---------- */
.rail {
  width: 250px; flex: 0 0 250px;
  background: #ffffff;
  border-right: 1px solid var(--line);
  padding: 18px 14px; height: 100vh; position: sticky; top: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.rail__brand { display: flex; flex-direction: column; align-items: flex-start; padding: 6px 8px; }
.rail__wordmark { height: 26px; width: auto; display: block; }
/* Dadapay monogram (square avatar spots where the wide logo won't fit) */
.dp-mono { border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-family: var(--font); }
.dp-logo { display: block; }
.rail__logo {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--brand); display: grid; place-items: center; overflow: hidden;
}
.rail__logo img { width: 100%; height: 100%; object-fit: cover; }
.rail__title { font-weight: 700; font-size: 16px; letter-spacing: .3px; }
.rail__sub { font-size: 11px; color: var(--text-mute); }
.rail__menu { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.rail__group { font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-mute); padding: 12px 10px 4px; }
.rail__item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px;
  cursor: pointer; color: var(--text-dim); font-size: 13.5px; border: none; background: none;
  text-align: left; width: 100%; transition: background .15s, color .15s;
}
.rail__item:hover { background: var(--surface-2); color: var(--text); }
.rail__item.is-active { background: var(--blue); color: #fff; font-weight: 600; }
.rail__item-ico { width: 16px; text-align: center; color: var(--brand-2); }
.rail__item.is-active .rail__item-ico { color: #fff; }
.rail__foot { margin-top: auto; font-size: 10.5px; color: var(--text-mute); padding: 0 6px; }

/* ---------- Screen enter animation + press feedback ---------- */
@keyframes screenIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.phone__screen > .screen { animation: screenIn .22s ease both; }
.row:active, .action:active, .chip:active, .card[data-nav]:active { transform: scale(.99); }
.rail__item, .bottomnav__item, .action, .row, .kv, .chip { transition: background .15s, transform .08s; }

/* ---------- Center stage + phone frame ---------- */
.stage { flex: 1; display: grid; place-items: center; padding: 24px; }
.phone {
  width: 390px; height: 800px; max-height: calc(100vh - 48px);
  background: #14161c; border-radius: 46px; padding: 9px;
  box-shadow: var(--shadow), 0 0 0 2px #d4d6dc; position: relative;
  display: flex; flex-direction: column;
}
.phone__notch { position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 118px; height: 26px; background: #14161c; border-radius: 14px; z-index: 5; }
.phone__statusbar {
  height: 38px; display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 26px 4px; font-size: 12px; color: var(--text); font-weight: 600;
  background: var(--bg); border-radius: 38px 38px 0 0;
}
.phone__statusbar-icons { font-size: 10px; color: var(--text-dim); }
.phone__screen { flex: 1; background: var(--bg); border-radius: 0 0 38px 38px;
  overflow: hidden; position: relative; display: flex; flex-direction: column; }

/* ---------- Scrollable screen body ---------- */
.screen { display: flex; flex-direction: column; height: 100%; }
.screen__body { flex: 1; overflow-y: auto; padding: 16px; scrollbar-width: thin; }
.screen__body::-webkit-scrollbar { width: 5px; }
.screen__body::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 4px; }

/* ---------- App bar ---------- */
.appbar { display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--bg); border-bottom: 1px solid var(--line); }
.appbar__back { background: none; border: none; color: var(--text); font-size: 22px;
  cursor: pointer; width: 26px; }
.appbar__title { font-size: 16px; font-weight: 700; flex: 1; }
.appbar__action { color: var(--brand-2); font-size: 13px; background: none; border: none; cursor: pointer; }
.brand-mini { display: flex; align-items: center; gap: 8px; }
.brand-mini__horse { width: 30px; height: 30px; border-radius: 8px; background: var(--brand);
  display: grid; place-items: center; overflow: hidden; }
.brand-mini__horse img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Bottom nav ---------- */
.bottomnav { display: flex; justify-content: space-around; align-items: center;
  padding: 8px 6px 12px; background: var(--surface); border-top: 1px solid var(--line); }
.bottomnav__item { display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: none; cursor: pointer; color: var(--text-mute); font-size: 10px; flex: 1; padding: 4px 0; }
.bottomnav__item.is-active { color: var(--blue); }
.bottomnav__ico { font-size: 18px; line-height: 1; }

/* ---------- Cards / generic surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--card-shadow); }
.card + .card { margin-top: 12px; }
.section-title { font-size: 13px; color: var(--text-dim); font-weight: 600;
  margin: 20px 2px 10px; display: flex; justify-content: space-between; align-items: center; }
.section-title a { color: var(--brand-2); font-size: 12px; text-decoration: none; cursor: pointer; }
.muted { color: var(--text-dim); } .mute2 { color: var(--text-mute); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 14px; border-radius: 12px; border: none; cursor: pointer; font-size: 15px;
  font-weight: 700; font-family: var(--font); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--brand { background: var(--blue); color: #fff; }
.btn--ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn--block { margin-top: 14px; }
.btn:active { transform: scale(.99); }

/* ---------- Form fields (display only, no validation) ---------- */
.field { margin-bottom: 14px; }
.field__label { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; display: block; }
.field__input { width: 100%; padding: 14px; border-radius: 12px; background: var(--surface-2);
  border: 1px solid var(--line); color: var(--text); font-size: 15px; font-family: var(--font); }
.field__input:focus { outline: none; border-color: var(--brand-2); }

/* ---------- Card caption text (used on the Dadapay card face) ---------- */
.metalcard__cap { opacity: .55; font-size: 8px; letter-spacing: .04em; }

/* ---------- Balance / progress / stats ---------- */
.balance { text-align: center; padding: 8px 0 4px; }
.balance__amt { font-size: 32px; font-weight: 800; }
.balance__cap { font-size: 12px; color: var(--text-dim); }
.progressbar { height: 7px; background: var(--surface-3); border-radius: 6px; overflow: hidden; margin: 12px 0 6px; }
.progressbar__fill { height: 100%; background: var(--blue); }
.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--surface-2); border-radius: 12px; padding: 12px; }
.stat__val { font-size: 18px; font-weight: 700; }
.stat__lbl { font-size: 11px; color: var(--text-mute); margin-top: 2px; }

/* ---------- Quick actions ---------- */
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; }
.action { background: none; border: none; cursor: pointer; color: var(--text); }
.action__ico { width: 48px; height: 48px; border-radius: 14px; background: var(--surface-2);
  display: grid; place-items: center; font-size: 20px; margin: 0 auto 6px; border: 1px solid var(--line); }
.action__lbl { font-size: 11px; color: var(--text-dim); }

/* ---------- List rows ---------- */
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: none; }
.row__ico { width: 42px; height: 42px; border-radius: 12px; flex: 0 0 42px; display: grid;
  place-items: center; font-size: 18px; background: var(--surface-2); overflow: hidden; }
.row__ico img { width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; }
.row__main { flex: 1; min-width: 0; }
.row__title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__sub { font-size: 12px; color: var(--text-mute); margin-top: 2px; }
.row__amt { font-size: 14px; font-weight: 700; text-align: right; white-space: nowrap; }
.amt--out { color: var(--text); } .amt--in { color: var(--success); }
.badge { font-size: 10px; padding: 2px 8px; border-radius: 20px; font-weight: 600; }
.badge--ok { background: rgba(22,163,74,.12); color: var(--success); }
.badge--pend { background: rgba(217,138,0,.14); color: var(--warn); }
.badge--fail { background: rgba(229,72,77,.12); color: var(--danger); }

/* ---------- Pagination ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 16px 4px 6px; flex-wrap: wrap; }
.pager__btn { min-width: 34px; height: 34px; padding: 0 8px; border-radius: 9px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-dim);
  font-size: 13px; font-family: var(--font); }
.pager__btn:hover:not(:disabled) { border-color: var(--brand-2); color: var(--text); }
.pager__btn.is-active { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 700; }
.pager__btn:disabled { opacity: .35; cursor: not-allowed; }
.pager__info { text-align: center; font-size: 11px; color: var(--text-mute); padding-bottom: 8px; }
.pager__ellipsis { color: var(--text-mute); padding: 0 2px; }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; padding: 7px 14px; border-radius: 20px; font-size: 12px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-dim); }
.chip.is-active { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 600; }

/* ---------- Spend analytics ---------- */
.bars { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; height: 140px; padding: 8px 2px 0; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar__fill { width: 60%; min-height: 4px; border-radius: 6px 6px 0 0;
  background: #c9d4f7; }
.bar__fill.is-current { background: var(--blue); }
.bar__lbl { font-size: 10px; color: var(--text-mute); }
.catbar { margin: 12px 0; }
.catbar__head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.catbar__track { height: 8px; background: var(--surface-3); border-radius: 6px; overflow: hidden; }
.catbar__fill { height: 100%; border-radius: 6px; }

/* ---------- Illustrations ---------- */
.illus { display: block; margin: 0 auto; }
.illus--hero { width: 200px; height: 200px; object-fit: contain; }
.illus--md { width: 120px; height: 120px; object-fit: contain; }
.offer-ico { width: 46px; height: 46px; border-radius: 12px; object-fit: contain;
  background: var(--surface-2); padding: 6px; flex: 0 0 46px; }
.bank-logo { width: 26px; height: 26px; object-fit: contain; background: #fff; border-radius: 6px; padding: 3px; }

/* ---------- Misc ---------- */
.center-col { display: flex; flex-direction: column; height: 100%; }
.spacer-sm { height: 8px; } .spacer { height: 16px; } .spacer-lg { height: 28px; }
.text-c { text-align: center; }
.h1 { font-size: 26px; font-weight: 800; line-height: 1.2; }
.h2 { font-size: 20px; font-weight: 700; }
.lead { font-size: 14px; color: var(--text-dim); line-height: 1.5; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.kv { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14px; align-items: center; }
.kv + .kv { border-top: 1px solid var(--line); }
.kv__k { color: var(--text-dim); } .kv__v { font-weight: 600; }
.toggle { width: 42px; height: 24px; border-radius: 20px; position: relative; display: inline-block; }
.toggle__dot { position: absolute; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }

/* OTP + onboarding dots */
.otp { display: flex; gap: 10px; justify-content: center; margin: 8px 0 18px; }
.otp__box { width: 46px; height: 54px; border-radius: 12px; background: var(--surface-2);
  border: 1px solid var(--line); color: var(--text); font-size: 22px; text-align: center; }
.otp__box:focus { outline: none; border-color: var(--brand-2); }
.dots { display: flex; gap: 6px; justify-content: center; margin: 16px 0; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--surface-3); }
.dot.is-active { width: 20px; border-radius: 4px; background: var(--blue); }

/* ---------- Segmented tabs (VISA / RuPay) ---------- */
.segtabs { display: flex; background: var(--surface-2); border-radius: 30px; padding: 4px; margin: 4px 0 8px; }
.segtab { flex: 1; text-align: center; padding: 11px; border-radius: 26px; font-weight: 700; font-size: 14px;
  cursor: pointer; color: var(--text-dim); background: none; border: none; font-family: var(--font); }
.segtab.is-active { background: #fff; color: var(--text); box-shadow: var(--card-shadow); }

/* ---------- Search bar ---------- */
.searchbar { display: flex; align-items: center; gap: 10px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; margin-bottom: 4px; }
.searchbar .ic { color: var(--text-mute); font-size: 18px; }
.searchbar input { flex: 1; border: none; background: none; outline: none; font-size: 14px;
  font-family: var(--font); color: var(--text); }

/* ---------- Underline tabs (Explore / Active Bill) ---------- */
.utabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.utab { padding: 10px 2px; font-size: 15px; font-weight: 600; color: var(--text-mute);
  background: none; border: none; cursor: pointer; position: relative; }
.utab.is-active { color: var(--text); }
.utab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--text); }

/* ---------- Operator logos (recharge / store history) ---------- */
.oplogo { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 12px; flex: 0 0 42px; letter-spacing: -.5px; }
.oplogo--jio { background: #0a2ea0; }
.oplogo--airtel { background: #e40000; }
.oplogo--bsnl { background: #0b56a4; font-size: 10px; }

/* ---------- Collapsible section header ---------- */
.collapse { display: flex; align-items: center; justify-content: space-between; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--card-shadow); font-weight: 700; font-size: 16px; cursor: pointer; margin-bottom: 12px; }
.collapse .ic { color: var(--text-mute); }

/* ---------- Card-control circular toggles ---------- */
.ctrlgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 8px; padding: 6px 0 4px; }
.ctrl { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  background: none; border: none; cursor: pointer; font-family: var(--font); }
.ctrl__circle { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: 26px; }
.ctrl__circle.is-on { background: var(--blue); }
.ctrl__circle.is-off { background: #14161c; }
.ctrl__lbl { font-size: 12px; color: var(--text); line-height: 1.25; font-weight: 500; }
.ctrl__status { font-size: 11px; font-weight: 700; }
.ctrl__status.on { color: var(--success); }
.ctrl__status.off { color: var(--text-mute); }

/* ---------- Info banner ---------- */
.infobar { display: flex; gap: 12px; background: #eef2ff; border-radius: var(--radius); padding: 16px; }
.infobar .ic { color: var(--blue); font-size: 20px; flex: 0 0 auto; }
.infobar__title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.infobar__body { font-size: 13px; color: var(--text-dim); line-height: 1.4; }

/* ---------- Rich list row (icon bubble + title + sub + chevron) ---------- */
.lrow { display: flex; align-items: center; gap: 14px; padding: 14px 4px; cursor: pointer; }
.lrow__ico { width: 46px; height: 46px; border-radius: 50%; background: var(--surface-2);
  display: grid; place-items: center; font-size: 20px; color: var(--blue); flex: 0 0 46px; overflow: hidden; }
.lrow__ico img { width: 100%; height: 100%; object-fit: cover; }
.lrow__main { flex: 1; min-width: 0; }
.lrow__title { font-size: 15px; font-weight: 600; }
.lrow__sub { font-size: 12.5px; color: var(--text-mute); margin-top: 2px; }
.lrow__end { color: var(--text-mute); }

/* ---------- My Cards specifics ---------- */
.primary-pill { display: inline-block; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 16px; border-radius: 20px; margin: 0 auto 16px; }
.card-btns { display: flex; gap: 12px; margin-top: 16px; }
.card-btns .btn { padding: 12px; font-size: 14px; }
.card-foot { display: flex; justify-content: space-around; padding: 16px 0 6px; margin-top: auto;
  border-top: 1px solid var(--line); font-size: 12px; color: var(--text-mute); }

/* ---------- Full detailed card (My Cards hero) ---------- */
.onecard {
  width: 100%; aspect-ratio: 1.55; border-radius: 18px; position: relative; overflow: hidden;
  color: #fff; padding: 18px; display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(80% 130% at 90% 50%, #3a3a42 0%, #1a1a1f 42%, transparent 64%),
    linear-gradient(105deg, #08080a 0%, #16161c 100%);
  box-shadow: 0 14px 34px rgba(0,0,0,.4);
}
.onecard__top { display: flex; justify-content: space-between; align-items: flex-start; }
.onecard__bank { font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.onecard__bank b { font-weight: 800; }
.onecard__bank span { color: #4aa8ff; font-weight: 500; }
.onecard__contactless { font-size: 20px; }
.onecard__chip { width: 46px; height: 34px; border-radius: 7px;
  background: linear-gradient(135deg,#e9e2c8,#b9ad84 60%,#d9cfa6); position: absolute; top: 60px; right: 24px; }
.onecard__name { font-size: 15px; letter-spacing: .5px; line-height: 1.3; }
.onecard__bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.onecard__visa { font-weight: 800; font-style: italic; font-size: 22px; }
.onecard__one { width: 46px; opacity: .95; }
.onecard__one img { width: 100%; display: block; }
.onecard__num { font-family: "Courier New", monospace; font-size: 20px; letter-spacing: 2px; text-align: center; }
.onecard__cvvrow { display: flex; flex-direction: column; gap: 4px; align-items: center; }

/* ---------- Home greeting header ---------- */
.greet { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--bg); }
.greet__sun { font-size: 26px; }
.greet__hi { font-size: 13px; color: var(--blue); font-weight: 600; }
.greet__name { font-size: 20px; font-weight: 700; }
.greet__icons { margin-left: auto; display: flex; gap: 14px; color: var(--blue); font-size: 20px; }

/* ---------- Dual wallet strip (top of Home) ---------- */
.walletwrap { background: linear-gradient(120deg,#0e1330,#182a6b); border-radius: 18px; padding: 14px 16px;
  color: #fff; box-shadow: 0 10px 26px rgba(26,86,255,.22); margin-bottom: 14px; }
.walletwrap__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.walletwrap__lbl { font-size: 11px; opacity: .7; }
.walletwrap__total { font-size: 22px; font-weight: 800; }
.walletwrap__eye { background: rgba(255,255,255,.14); border: none; color: #fff; width: 30px; height: 30px;
  border-radius: 50%; cursor: pointer; font-size: 14px; }
.wallets { display: flex; gap: 10px; }
.wallet { flex: 1; border-radius: 14px; padding: 12px; position: relative; overflow: hidden; cursor: pointer; }
.wallet--main { background: linear-gradient(135deg,#2f6bff,#0b3bb0); }
.wallet--prepaid { background: linear-gradient(135deg,#8d2149,#4a1226); }
.wallet__row { display: flex; align-items: center; gap: 8px; }
.wallet__ico { width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.16);
  display: grid; place-items: center; font-size: 15px; }
.wallet__name { font-size: 12px; font-weight: 600; opacity: .95; }
.wallet__bal { font-size: 20px; font-weight: 800; margin: 8px 0 10px; }
.wallet__add { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.16);
  border: none; color: #fff; font-size: 11.5px; font-weight: 700; padding: 6px 11px; border-radius: 20px; cursor: pointer; }

/* ---------- Home hero card widget (dark) ---------- */
.hero { border-radius: 18px; color: #fff; position: relative; margin-top: 16px;
  background:
    radial-gradient(75% 130% at 93% 50%, #3a3a42 0%, #1a1a1f 40%, transparent 62%),
    linear-gradient(100deg, #08080a 0%, #131317 100%);
  box-shadow: 0 10px 26px rgba(0,0,0,.28); }
.hero__tabs { position: absolute; top: -13px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.hero__tab { display: inline-flex; align-items: center; gap: 6px; background: #26262c;
  border-radius: 16px; padding: 6px 15px; font-size: 12px; font-weight: 700; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.hero__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.hero__body { padding: 20px 18px 18px; }
.hero__brandrow { display: flex; justify-content: space-between; align-items: flex-start; margin: 2px 0 20px; }
.hero__bank { font-weight: 800; font-size: 15px; }
.hero__bank span { color: #4aa8ff; font-weight: 500; }
.hero__one { font-weight: 800; font-size: 22px; letter-spacing: -1.5px; font-style: italic; }
.hero__last4 { font-size: 12px; opacity: .8; display: flex; align-items: center; gap: 4px; justify-content: flex-end; margin-top: 4px; }
.hero__stats { display: flex; justify-content: space-between; }
.hero__lbl { font-size: 12px; opacity: .7; display: flex; align-items: center; gap: 4px; }
.hero__val { font-size: 20px; font-weight: 800; margin-top: 4px; }
.hero__billrow { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.hero__date { background: linear-gradient(135deg,#caa34a,#7a5f1e); border-radius: 8px; text-align: center;
  padding: 4px 8px; min-width: 40px; }
.hero__date b { display: block; font-size: 15px; } .hero__date span { font-size: 9px; opacity: .85; }
.hero__billinfo { flex: 1; font-size: 13px; }
.hero__overdue { background: #e5484d; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.hero__paynow { background: #ffcf3f; color: #14161c; border: none; font-weight: 800; font-size: 14px;
  border-radius: 12px; padding: 12px 20px; cursor: pointer; }

/* ---------- Quick-action black circles ---------- */
.qcircles { display: flex; justify-content: space-between; gap: 6px; padding: 18px 2px 8px; }
.qcircle { display: flex; flex-direction: column; align-items: center; gap: 7px; background: none; border: none;
  cursor: pointer; color: var(--text); flex: 1; }
.qcircle__c { width: 54px; height: 54px; border-radius: 50%; background: #14161c; color: #fff;
  display: grid; place-items: center; font-size: 22px; }
.qcircle__l { font-size: 11px; line-height: 1.2; text-align: center; }

/* ---------- UPI row ---------- */
.upirow { display: flex; align-items: center; gap: 10px; padding: 6px 0 4px; overflow-x: auto; scrollbar-width: none; }
.upirow::-webkit-scrollbar { display: none; }
.upi-pill { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border: 1px solid var(--line);
  background: var(--surface); border-radius: 24px; padding: 9px 14px; font-size: 13px; font-weight: 600; color: var(--blue); }
.upi-pill.mute { color: var(--text-mute); font-weight: 500; }

/* ---------- Home tiles (Explore EMI / Insights / Budget) ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px;
  box-shadow: var(--card-shadow); cursor: pointer; }
.tile__ico { font-size: 26px; margin-bottom: 8px; color: var(--blue); }
.tile__t { font-weight: 700; font-size: 15px; }
.tile__s { font-size: 12px; color: var(--text-mute); margin-top: 4px; }

/* ---------- Do More horizontal cards ---------- */
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.promo { flex: 0 0 78%; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; box-shadow: var(--card-shadow); }
.promo__body { padding: 14px; }
.promo__t { font-weight: 700; font-size: 15px; }
.promo__s { font-size: 12px; color: var(--text-mute); margin-top: 4px; }
.promo__cta { display: block; background: #14161c; color: #fff; text-align: center; padding: 12px; font-weight: 700; cursor: pointer; }

/* ---------- Rewards summary strip ---------- */
.rwstrip { display: flex; align-items: center; gap: 14px; background: linear-gradient(100deg,#101a3d,#1a2b6b);
  color: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 8px 20px rgba(26,86,255,.22); }
.rwstrip__lbl { font-size: 11px; opacity: .75; }
.rwstrip__val { font-size: 20px; font-weight: 800; margin-top: 2px; }
.rwstrip__sub { font-size: 11px; opacity: .7; }
.rwstrip__div { width: 1px; align-self: stretch; background: rgba(255,255,255,.18); }
.rwstrip__btn { margin-left: auto; background: #ffcf3f; color: #14161c; border: none; font-weight: 800;
  font-size: 13px; border-radius: 10px; padding: 10px 16px; cursor: pointer; }

/* ---------- 5X category mini cards ---------- */
.fivex-row { display: flex; gap: 10px; }
.fx { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 8px; text-align: center; box-shadow: var(--card-shadow); }
.fx__c { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 8px; font-size: 20px; }
.fx__c.on { background: #e8f0ff; color: var(--blue); }
.fx__c.off { background: var(--surface-2); color: var(--text-mute); border: 1.5px dashed var(--line); }
.fx__name { font-size: 12.5px; font-weight: 600; }
.fx__badge { font-size: 10px; font-weight: 700; margin-top: 4px; }
.fx__badge.on { color: var(--success); } .fx__badge.off { color: var(--text-mute); }

/* ---------- 5X categories banner ---------- */
.fivex { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--card-shadow); }
.fivex__head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.fivex__ring { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--surface-3); display: grid; place-items: center;
  font-size: 12px; color: var(--text-mute); }

/* ---------- Rewards: redeem options + milestone ---------- */
.redeem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.redeem { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px; box-shadow: var(--card-shadow); cursor: pointer; }
.redeem__c { width: 40px; height: 40px; border-radius: 50%; background: #e8f0ff; color: var(--blue);
  display: grid; place-items: center; font-size: 18px; flex: 0 0 40px; }
.redeem__t { font-size: 13.5px; font-weight: 600; }
.redeem__s { font-size: 11px; color: var(--text-mute); }
.milestone { font-size: 12px; color: var(--text-dim); margin-top: 12px; text-align: left; }

/* ---------- Store: product cards ---------- */
.prod { flex: 0 0 150px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: var(--card-shadow); }
.prod__img { height: 96px; background: #f0f2f6; display: grid; place-items: center; font-size: 44px; position: relative; }
.prod__tag { position: absolute; top: 8px; left: 8px; font-size: 9px; font-weight: 700; background: var(--blue);
  color: #fff; padding: 2px 7px; border-radius: 6px; }
.prod__body { padding: 10px 12px 12px; }
.prod__name { font-size: 12.5px; font-weight: 600; line-height: 1.3; height: 32px; overflow: hidden; }
.prod__price { font-size: 15px; font-weight: 800; margin-top: 6px; }
.prod__price s { font-size: 11px; color: var(--text-mute); font-weight: 500; margin-left: 4px; }

/* ---------- Store ---------- */
.storebanner { border-radius: 16px; overflow: hidden; background: #eef1f6; padding: 18px; display: flex;
  justify-content: space-between; align-items: center; }
.storebanner__price { font-size: 22px; font-weight: 800; }
.storebanner__price s { color: var(--text-mute); font-weight: 500; font-size: 15px; }
.util-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; text-align: center; }
.util { background: none; border: none; cursor: pointer; }
.util__c { width: 56px; height: 56px; border-radius: 50%; background: #eef2ff; color: var(--blue);
  display: grid; place-items: center; font-size: 22px; margin: 0 auto 6px; position: relative; }
.util__badge { position: absolute; top: -4px; right: -2px; font-size: 8px; font-weight: 700; padding: 1px 5px;
  border-radius: 8px; background: var(--blue); color: #fff; }
.util__l { font-size: 11px; color: var(--text); line-height: 1.2; }

/* Spends month group */
.smonth { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 2px 8px; }
.smonth__m { font-size: 18px; font-weight: 700; }
.smonth__t { font-size: 13px; color: var(--text-dim); }
.smonth__t b { color: var(--text); }
.empty-state { text-align: center; padding: 30px 0; color: var(--text-mute); }
.empty-state img { width: 120px; opacity: .9; margin-bottom: 10px; }
.tag { display: inline-block; background: var(--surface-2); color: var(--text-dim); font-size: 11px;
  padding: 2px 8px; border-radius: 6px; margin-top: 4px; }

/* responsive */
@media (max-width: 760px) {
  .rail { display: none; }
  .stage { padding: 0; }
  .phone { width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; padding: 0; }
  .phone__notch { display: none; }
  .phone__statusbar, .phone__screen { border-radius: 0; }
}
