:root {
  --purple: #5f13c7;
  --purple-dark: #3d087f;
  --purple-soft: #f0e6ff;
  --ink: #171717;
  --muted: #6f6f73;
  --line: #e8e8eb;
  --surface: #f7f7f8;
  --green: #168b4b;
  --pink: #bc0867;
  --shadow: 0 4px 18px rgba(29, 18, 55, .1);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: #e9e9ee;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #e9e9ee; }
button, input { font: inherit; }
button { cursor: pointer; }

.phone-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 36px rgba(0,0,0,.08);
}

#app { min-height: 100vh; padding-bottom: 84px; }
.status-bar {
  height: 32px;
  padding: 8px 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
}
.status-right { display: flex; align-items: center; gap: 7px; color: #4d4d51; }
.signal { letter-spacing: -3px; font-size: 13px; }
.battery { border: 1px solid #555; border-radius: 5px; padding: 1px 4px; font-size: 10px; }

.topbar {
  height: 74px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f1;
  background: #fff;
}
.profile-bubble {
  width: 44px; height: 44px; border-radius: 50%;
  background: #ffba00; color: white; display: grid; place-items: center;
  font-size: 22px; font-weight: 800; position: relative;
}
.profile-bubble::after {
  content: "▦"; position: absolute; right: -3px; bottom: -2px; width: 19px; height: 19px;
  background: #fff; border-radius: 50%; color: #171717; font-size: 13px; display: grid; place-items: center;
  box-shadow: 0 1px 4px #999;
}
.help-button {
  border: 1.7px solid #151515; background: #fff; border-radius: 50%;
  width: 28px; height: 28px; font-weight: 800; font-size: 17px; line-height: 1;
}
.page-bar {
  height: 62px; padding: 0 22px; display: flex; align-items: center; gap: 18px;
  border-bottom: 1px solid #f1f1f2; background: white;
}
.back-button { background: none; border: 0; font-size: 32px; line-height: .8; padding: 0; }
.page-title { font-size: 22px; font-weight: 750; }

.hero {
  min-height: 265px; color: white; overflow: hidden; padding: 14px 20px 18px; position: relative;
  background: radial-gradient(circle at 93% 17%, #9a36fa 0 11%, transparent 30%), linear-gradient(136deg, #7b0de1, #4810b9 70%, #700bd2);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.13);
}
.hero::before { width: 270px; height: 270px; top: -165px; right: -50px; box-shadow: 0 0 0 22px rgba(255,255,255,.03), 0 0 0 46px rgba(255,255,255,.03); }
.hero::after { width: 120px; height: 120px; bottom: -82px; left: -38px; }
.hero-head { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; }
.hero-head .profile-bubble { width: 43px; height: 43px; }
.hero-copy { position: relative; z-index: 1; padding: 20px 0 0 3px; max-width: 62%; }
.hero-kicker { font-size: 16px; margin: 0 0 3px; opacity: .95; }
.hero-title { font-size: 33px; line-height: 1.08; margin: 0; letter-spacing: -.7px; }
.hero-subtitle { font-size: 17px; margin: 10px 0 18px; opacity: .95; }
.primary-button, .white-button {
  border: 0; border-radius: 22px; padding: 11px 18px; font-weight: 750; color: var(--purple);
  background: white; box-shadow: 0 3px 0 rgba(0,0,0,.16);
}
.card-art {
  position: absolute; z-index: 1; right: -3px; top: 55px; width: 180px; height: 115px;
  background: #17171d; border-radius: 9px; transform: rotate(-29deg); box-shadow: 0 9px 14px rgba(0,0,0,.32);
  border: 1px solid rgba(255,255,255,.24);
}
.card-art::before { content: "पे"; position: absolute; left: 52px; top: 25px; color: #8c43e3; font-size: 53px; font-weight: 500; transform: rotate(29deg); }
.card-art::after { content: "SBI card"; position: absolute; left: 10px; bottom: 10px; color: #38a2d2; font-weight: 800; transform: rotate(29deg); }
.rupee-orb { position: absolute; right: 31px; top: 68px; width: 90px; height: 90px; border-radius: 50%; background: white; color: var(--purple); display: grid; place-items: center; font-size: 58px; font-weight: 800; z-index: 0; }
.hero-dots { position: absolute; right: 20px; bottom: 15px; font-size: 16px; letter-spacing: 4px; opacity: .8; }

.section { padding: 18px 22px 15px; border-bottom: 1px solid var(--line); background: #fff; }
.section.alt { background: #f7f7f8; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.section-heading h2 { margin: 0; font-size: 19px; letter-spacing: -.15px; }
.section-heading .view-all { border: 0; color: var(--purple); background: none; font-weight: 750; }
.money-grid, .service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.money-item, .service-item { text-align: center; border: 0; background: transparent; color: var(--ink); padding: 0; min-width: 0; }
.round-icon {
  width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 8px; display: grid; place-items: center;
  font-size: 31px; background: linear-gradient(#792ce6, #5004a6); color: white; box-shadow: inset 0 0 0 7px rgba(255,255,255,.13);
}
.money-item span:last-child, .service-item span:last-child { display: block; font-size: 14px; line-height: 1.22; }
.referral { padding: 10px 12px; border-radius: 22px; background: #fff4e9; color: #6c615a; font-weight: 650; font-size: 13px; white-space: nowrap; }
.promo-scroller { display: flex; gap: 10px; overflow-x: auto; margin: 0 -22px; padding: 0 22px 2px; scrollbar-width: none; }
.promo-scroller::-webkit-scrollbar, .horizontal-cards::-webkit-scrollbar { display: none; }
.promo-card {
  min-width: 224px; background: #fff; border: 1px solid #e2e2e4; border-radius: 12px; padding: 12px 13px;
  display: flex; gap: 10px; align-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.promo-icon { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; font-size: 24px; background: #e6f6f3; }
.promo-card strong { font-size: 14px; white-space: nowrap; }
.service-grid { gap: 13px 12px; }
.service-item .tile-icon {
  height: 65px; border: 1px solid #e2e2e4; border-radius: 11px; background: #f5f5f6; display: grid; place-items: center; font-size: 32px;
  box-shadow: inset 0 -1px 0 #e8e8ea;
}
.service-item span:last-child { margin-top: 7px; }
.wide-promo { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; }
.wide-message, .more-button {
  min-height: 47px; padding: 12px 14px; border: 1px solid #dfdfe2; border-radius: 11px; background: #f6f6f7; display: flex; align-items: center; justify-content: space-between; font-size: 14px; text-align: left;
}
.more-button { color: var(--purple); font-weight: 800; min-width: 90px; justify-content: center; }
.more-button::after { content: " →"; font-size: 20px; }
.credit-row { display: flex; gap: 18px; overflow-x: auto; padding: 2px 0; scrollbar-width: none; }
.credit-card { min-width: 90px; text-align: center; }
.credit-card-visual { height: 110px; border-radius: 9px; background: linear-gradient(145deg, #16161c, #7624bc); color: white; display: grid; place-items: center; font-size: 32px; border: 2px solid #171717; }
.credit-card p { margin: 7px 0 0; font-size: 13px; }
.brown-banner { margin: 0 -22px; padding: 17px 22px; background: linear-gradient(105deg, #3b1b04 55%, #5a2709); color: white; min-height: 106px; }
.brown-banner small { display: block; font-size: 13px; opacity: .8; margin-bottom: 7px; }
.brown-banner strong { font-size: 17px; }
.market-head { font-weight: 800; font-size: 19px; line-height: 1.2; }
.market-head span { color: var(--purple); }
.horizontal-cards { display: flex; gap: 12px; overflow-x: auto; margin: 14px -22px 0; padding: 0 22px 3px; scrollbar-width: none; }
.stock-card { min-width: 245px; border: 1px solid #e1e1e3; border-radius: 14px; background: white; padding: 14px; box-shadow: 0 1px 2px #eee; }
.stock-top { display: flex; align-items: center; gap: 9px; font-weight: 750; }
.stock-logo { width: 38px; height: 38px; border-radius: 50%; background: #35227e; color: white; display: grid; place-items: center; font-size: 22px; }
.stock-card:nth-child(2) .stock-logo { background: #e22d49; }
.stock-card:nth-child(3) .stock-logo { background: #b42837; }
.stock-price { font-weight: 800; font-size: 22px; margin: 20px 0 2px; }
.stock-label { color: var(--muted); font-size: 13px; }
.chart { height: 50px; margin-top: 8px; background: linear-gradient(150deg, transparent 40%, #268553 41% 43%, transparent 44% 58%, #268553 59% 61%, transparent 62%); border-bottom: 2px solid #2d8c58; clip-path: polygon(0 85%, 14% 64%, 30% 61%, 43% 18%, 50% 68%, 65% 38%, 73% 68%, 82% 50%, 100% 52%, 100% 100%, 0 100%); background-color: #eff8f2; }
.purple-link { display: inline-block; color: var(--purple); font-weight: 800; margin-top: 16px; }

.bottom-nav {
  position: fixed; z-index: 20; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(100%, 520px); height: 75px; background: rgba(255,255,255,.97); border-top: 1px solid #e5e5e7;
  display: grid; grid-template-columns: repeat(5, 1fr); padding: 7px 8px max(7px, env(safe-area-inset-bottom));
  box-shadow: 0 -3px 15px rgba(0,0,0,.06);
}
.nav-item { color: #646469; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; }
.nav-icon { font-size: 25px; line-height: 1; }
.nav-item.active { color: var(--ink); font-weight: 750; }
.scan-nav { position: relative; top: -19px; }
.scan-nav .nav-icon { width: 62px; height: 62px; border-radius: 50%; background: var(--purple); color: white; display: grid; place-items: center; border: 5px solid white; font-size: 31px; box-shadow: 0 2px 8px #ccc; }
.scan-nav span:last-child { margin-top: -4px; }

.screen-content { min-height: calc(100vh - 106px); }
.intro-copy { padding: 22px; }
.intro-copy h1 { margin: 0 0 8px; font-size: 27px; }
.intro-copy p { margin: 0; color: var(--muted); line-height: 1.45; }
.search-box { margin: 18px 22px; position: relative; }
.search-box input { width: 100%; padding: 15px 16px 15px 45px; border: 1px solid #dddde2; border-radius: 13px; outline: none; background: #f7f7f8; }
.search-box input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px #eee3ff; }
.search-icon { position: absolute; left: 16px; top: 11px; font-size: 24px; color: #777; }
.results-list, .account-list, .transaction-list { padding: 0 22px; }
.result-row, .account-row, .transaction-row { width: 100%; border: 0; border-bottom: 1px solid #f0f0f1; background: white; display: flex; align-items: center; gap: 13px; padding: 15px 0; text-align: left; }
.result-row .tile-icon, .account-icon { width: 47px; height: 47px; flex: 0 0 47px; border-radius: 12px; background: #f4f4f6; display: grid; place-items: center; font-size: 25px; }
.result-row strong, .account-row strong { display: block; font-size: 16px; }
.result-row small, .account-row small { color: var(--muted); font-size: 13px; }
.row-arrow { margin-left: auto; color: #999; font-size: 27px; }

.balance-banner { margin: 16px 22px 25px; padding: 17px 15px; border: 1px solid #e7e7e9; border-radius: 14px; box-shadow: var(--shadow); display: flex; justify-content: space-between; align-items: center; overflow: hidden; }
.balance-banner strong { font-size: 17px; }
.balance-banner p { color: var(--muted); margin: 4px 0 0; font-size: 14px; }
.mini-card { width: 88px; height: 62px; transform: rotate(-28deg); background: #17171c; color: #8337ca; display: grid; place-items: center; font-size: 29px; border-radius: 4px; margin-right: -14px; }
.balance-page .account-list { padding-bottom: 20px; }
.account-row { padding: 13px 0; }
.account-icon { background: transparent; }
.bank-indian { color: #e9b841; }
.bank-axis { color: #b51a6b; }
.bank-hdfc { color: #e13743; }
.bank-yes { color: #c11e52; }
.bank-upi { background: #def8ed !important; color: #008a69; }
.link-now { margin-left: auto; color: var(--purple); font-weight: 800; }

.success-screen { text-align: center; padding: 40px 22px 24px; }
.success-mark { width: 53px; height: 53px; background: #23a64b; color: white; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; font-size: 35px; }
.success-screen h1 { font-size: 22px; margin: 0 0 20px; }
.success-bank { color: #666; margin-bottom: 8px; }
.balance-number { font-size: 31px; margin: 0; }
.success-divider { height: 1px; background: #e7e7e7; margin: 30px -22px 22px; }
.brand-focus { color: #888; letter-spacing: 2px; font-size: 12px; }
.brand-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 17px; }
.brand-item { font-size: 11px; color: #67676b; }
.brand-icon { width: 38px; height: 38px; margin: auto auto 8px; border-radius: 11px; background: #c6086c; color: white; display: grid; place-items: center; font-size: 17px; font-weight: 800; }
.success-ad { margin: 26px -2px 25px; min-height: 160px; border-radius: 10px; background: linear-gradient(130deg, #e21c23, #8d0409); color: white; display: grid; place-items: center; font-size: 27px; font-weight: 850; padding: 20px; }
.done-button { width: 100%; border: 0; border-top: 1px solid #eee; background: #fff; color: #171717; font-weight: 800; padding: 17px; }

.scanner { min-height: calc(100vh - 160px); padding: 24px 22px; background: #16131d; color: white; text-align: center; }
.scanner h1 { margin: 12px 0 8px; font-size: 25px; }
.scanner p { color: #cfcad8; margin: 0 auto 24px; max-width: 290px; font-size: 14px; line-height: 1.4; }
.scan-frame { width: min(80vw, 310px); height: min(80vw, 310px); margin: 20px auto; border: 3px solid #fff; border-radius: 23px; position: relative; overflow: hidden; background: white; }
.scan-frame::before { content: ""; position: absolute; inset: 18px; background: repeating-linear-gradient(90deg, #111 0 6px, white 6px 12px), repeating-linear-gradient(0deg, transparent 0 11px, rgba(0,0,0,.55) 12px 17px); mix-blend-mode: multiply; opacity: .9; }
.scan-frame::after { content: "पे"; position: absolute; inset: 0; margin: auto; width: 53px; height: 53px; display: grid; place-items: center; background: #111; color: white; border: 4px solid white; border-radius: 50%; font-size: 31px; }
.scan-line { position: absolute; height: 2px; background: #a840ff; top: 50%; left: 18px; right: 18px; z-index: 1; box-shadow: 0 0 12px #ad43ff; }
.scanner .white-button { margin-top: 6px; }
.qr-screen { text-align: center; padding: 24px 22px; }
.qr-screen h1 { margin: 6px 0 5px; font-size: 24px; }
.qr-screen p { margin: 0 0 20px; color: var(--muted); }
.qr-card { border: 1px solid #e4e4e5; border-radius: 18px; padding: 20px 16px; box-shadow: var(--shadow); }
.qr-image { display: block; width: min(72vw, 300px); height: min(72vw, 300px); object-fit: cover; margin: 0 auto 14px; image-rendering: auto; }
.upi-id { color: #666; font-size: 13px; }

.alert-row { padding: 17px 22px; border-bottom: 1px solid #eee; display: flex; gap: 13px; align-items: flex-start; }
.alert-icon { width: 43px; height: 43px; border-radius: 50%; background: #f0e5ff; color: var(--purple); display: grid; place-items: center; font-size: 21px; flex: 0 0 43px; }
.alert-row h3 { margin: 0 0 4px; font-size: 15px; }
.alert-row p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.alert-row time { display: block; color: #aaa; font-size: 11px; margin-top: 6px; }
.transaction-row { gap: 12px; }
.transaction-row .amount { margin-left: auto; font-weight: 800; color: var(--green); }
.transaction-row small { color: #999; display: block; margin-top: 3px; }

.toast { position: fixed; z-index: 50; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: #26212f; color: white; padding: 11px 17px; border-radius: 22px; font-size: 13px; opacity: 0; pointer-events: none; transition: .22s ease; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal-backdrop { position: fixed; z-index: 40; inset: 0; background: rgba(18, 10, 34, .42); display: grid; align-items: end; }
.action-sheet { width: min(100%, 520px); margin: 0 auto; background: white; padding: 20px 22px calc(22px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; animation: up .22s ease-out; }
.sheet-handle { height: 4px; width: 42px; background: #ddd; border-radius: 6px; margin: -7px auto 18px; }
.action-sheet h2 { margin: 0 0 6px; font-size: 20px; }
.action-sheet p { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.sheet-actions { display: flex; gap: 10px; }
.sheet-actions button { flex: 1; border: 0; border-radius: 11px; padding: 13px; background: var(--purple-soft); color: var(--purple); font-weight: 800; }
.sheet-actions button:last-child { background: var(--purple); color: white; }
@keyframes up { from { transform: translateY(100%); } to { transform: translateY(0); } }

@media (min-width: 700px) {
  .phone-shell { margin: 20px auto; min-height: calc(100vh - 40px); border-radius: 26px; overflow: hidden; }
  .bottom-nav { bottom: 20px; border-radius: 0 0 26px 26px; }
  .toast { bottom: 110px; }
}
@media (max-width: 350px) {
  .section { padding-left: 15px; padding-right: 15px; }
  .promo-scroller, .horizontal-cards { margin-left: -15px; margin-right: -15px; padding-left: 15px; padding-right: 15px; }
  .money-grid, .service-grid { gap: 7px; }
  .round-icon { width: 58px; height: 58px; font-size: 27px; }
  .hero-copy { max-width: 64%; }
  .hero-title { font-size: 28px; }
}