/* Jayaam ERP Pro - mobile app design system (plain CSS, no build step). */
:root {
  --brand: #e11d27; --brand-2: #ff4d57; --brand-deep: #8f0f1a;
  --bg: #f4f5f9; --surface: #ffffff; --surface-2: #f8f9fc; --text: #0f172a; --muted: #64748b; --line: rgba(15,23,42,.07);
  --green: #16a34a; --green-bg: #e9f8ef; --red: #dc2626; --red-bg: #fdecec; --amber: #d97706; --amber-bg: #fff4e0;
  --blue: #2563eb; --blue-bg: #e8effe; --violet: #7c3aed; --violet-bg: #f1eafe; --gray-bg: #eef1f5;
  --radius: 22px; --radius-sm: 14px; --shadow: 0 0 0 1px rgba(15,23,42,.035), 0 10px 30px rgba(15,23,42,.06), 0 2px 6px rgba(15,23,42,.04);
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 70px;
  /* Side margin of every screen: 18px, 20px on wide phones such as the Galaxy S24 Ultra (384px) and S25 Ultra (412px). */
  --gutter: 18px;
  /* Hairline dividers: a true thin line on sharp (high-density) screens instead of a thick 1px one. */
  --hair: 1px;
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: light;
}
@media (min-width: 380px) { :root { --gutter: 20px; } }
@media (min-resolution: 2.5dppx) { :root { --hair: .5px; } }
:root[data-theme="dark"] {
  --bg: #0b0e15; --surface: #151a24; --surface-2: #1b2130; --text: #eef2f8; --muted: #94a3b8; --line: rgba(255,255,255,.07);
  --green-bg: rgba(22,163,74,.15); --red-bg: rgba(220,38,38,.16); --amber-bg: rgba(217,119,6,.16); --blue-bg: rgba(37,99,235,.16);
  --violet-bg: rgba(124,58,237,.18); --gray-bg: rgba(255,255,255,.06);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { overflow-x: hidden; margin: 0; background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, -apple-system, Roboto, sans-serif; text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; overscroll-behavior-y: contain; -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; }
input, textarea, select { user-select: text; -webkit-user-select: text; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
svg { flex-shrink: 0; }
.ic { width: 22px; height: 22px; }
.ic-sm { width: 18px; height: 18px; }
.ic-lg { width: 26px; height: 26px; }

/* ---------- page shell ---------- */
.page { padding: calc(var(--safe-top) + 8px) var(--gutter) calc(var(--tabbar-h) + var(--safe-bottom) + 28px); max-width: 560px; margin: 0 auto; animation: page-in .28s ease-out; }
.page.no-tabbar { padding-bottom: calc(var(--safe-bottom) + 28px); }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.topbar { display: flex; align-items: center; gap: 12px; padding: 10px 0 14px; }
.topbar h1 { font-size: 1.35rem; font-weight: 700; margin: 0; flex: 1; letter-spacing: -.01em; }
.topbar .sub { font-size: .8rem; color: var(--muted); }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); position: relative; }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--brand); color: #fff; font-size: .62rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--surface); }
.avatar { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--brand-2), var(--brand-deep)); color: #fff; display: grid; place-items: center; font-weight: 700; }
.greet small { display: block; color: var(--muted); font-size: .8rem; }
.greet b { font-size: 1.15rem; }

/* ---------- hero card ---------- */
/* translateZ(0) gives each big gradient card its own layer: some Android WebViews otherwise leave a blank strip across it. */
.hero { position: relative; overflow: hidden; border-radius: 26px; padding: 22px; color: #fff; transform: translateZ(0);
  background: radial-gradient(120% 140% at 100% 0%, #ff6b73 0%, rgba(255,107,115,0) 45%), linear-gradient(140deg, #f0333d 0%, #c8121c 50%, #7d0c16 100%);
  box-shadow: 0 18px 40px rgba(200,18,28,.35); }
.hero::after { content: ''; position: absolute; right: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); }
.hero::before { content: ''; position: absolute; right: 40px; top: -70px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.06); }
.hero .label { font-size: .82rem; opacity: .85; display: flex; align-items: center; gap: 6px; }
.hero .big { font-size: clamp(1.75rem, 8vw, 2.15rem); font-weight: 700; letter-spacing: -.02em; margin: 6px 0 2px; }
.hero .meta { display: flex; gap: 10px; margin-top: 16px; position: relative; z-index: 1; flex-wrap: wrap; }
.hero .pill { background: rgba(255,255,255,.16); backdrop-filter: blur(6px); border-radius: 999px; padding: 6px 12px; font-size: .78rem; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.stat { background: var(--surface); border-radius: 20px; padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.stat .bubble { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; }
.stat span { font-size: .76rem; color: var(--muted); }
.stat strong { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }

/* ---------- quick actions ---------- */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 8px; }
.quick a, .quick button { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: .72rem; font-weight: 500; color: var(--text); }
.quick .q-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); transition: transform .12s; }
.quick a:active .q-ic, .quick button:active .q-ic { transform: scale(.92); }

/* ---------- sections & lists ---------- */
.section { margin-top: 24px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 4px 10px; }
.section-head h2 { font-size: 1rem; font-weight: 700; margin: 0; }
.section-head a { font-size: .8rem; color: var(--brand); font-weight: 600; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card.pad { padding: 18px; }
.row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; position: relative; transition: background .15s; }
.row + .row::before { content: ''; position: absolute; top: 0; left: 64px; right: 16px; height: var(--hair); background: var(--line); }
a.row:active, button.row:active { background: var(--surface-2); }
button.row { width: 100%; text-align: left; }
.bub { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; }
.bub.red { background: var(--red-bg); color: var(--red); } .bub.green { background: var(--green-bg); color: var(--green); }
.bub.amber { background: var(--amber-bg); color: var(--amber); } .bub.blue { background: var(--blue-bg); color: var(--blue); }
.bub.violet { background: var(--violet-bg); color: var(--violet); } .bub.gray { background: var(--gray-bg); color: var(--muted); }
.bub.brand { background: linear-gradient(135deg, var(--brand-2), var(--brand-deep)); color: #fff; }
.row .main { flex: 1; min-width: 0; }
.row .t { font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .s { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.row .r { text-align: right; flex-shrink: 0; }
.row .amt { font-size: .92rem; font-weight: 700; white-space: nowrap; }
.row .when { font-size: .72rem; color: var(--muted); margin-top: 2px; white-space: nowrap; }
.in { color: var(--green); } .out { color: var(--red); } .late { color: var(--red); font-weight: 600; }
.chev { color: var(--muted); opacity: .6; }
.group-label { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 20px 6px 8px; }

/* ---------- chips / segmented ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: .8rem; font-weight: 500; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.chip.on { background: var(--text); color: var(--bg); }
.chip .n { background: var(--brand); color: #fff; border-radius: 999px; font-size: .66rem; padding: 1px 6px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--gray-bg); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { white-space: nowrap; padding: 9px 4px; border-radius: 11px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.badge.green { background: var(--green-bg); color: var(--green); } .badge.red { background: var(--red-bg); color: var(--red); }
.badge.amber { background: var(--amber-bg); color: var(--amber); } .badge.gray { background: var(--gray-bg); color: var(--muted); }
.badge.blue { background: var(--blue-bg); color: var(--blue); }

/* ---------- wallet cards (accounts) ---------- */
.wallet { display: grid; gap: 14px; }
.acct { position: relative; overflow: hidden; border-radius: 24px; padding: 20px; color: #fff; transform: translateZ(0); min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 14px 30px rgba(15,23,42,.18); transition: transform .15s; }
.acct:active { transform: translateZ(0) scale(.98); }
.acct::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.09); }
.acct.bank { background: linear-gradient(135deg, #1e3a8a, #2563eb 60%, #60a5fa); }
.acct.cash { background: linear-gradient(135deg, #065f46, #059669 60%, #34d399); }
.acct.card { background: linear-gradient(135deg, #111827, #374151 60%, #6b7280); }
.acct.od { background: linear-gradient(135deg, #581c87, #7c3aed 60%, #a78bfa); }
.acct .top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }
.acct .name { font-weight: 600; font-size: .95rem; }
.acct .num { font-size: .75rem; opacity: .8; letter-spacing: .12em; margin-top: 2px; }
.acct .bal { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; position: relative; z-index: 1; }
.acct .cap { font-size: .72rem; opacity: .8; }
.meter { height: 6px; border-radius: 6px; background: rgba(255,255,255,.25); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; background: #fff; border-radius: 6px; }

/* ---------- bottom tab bar ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 0 12px calc(var(--safe-bottom) + 10px); pointer-events: none; }
.tabbar nav { pointer-events: auto; max-width: 520px; margin: 0 auto; height: var(--tabbar-h); background: var(--surface); border-radius: 24px; box-shadow: 0 -2px 30px rgba(15,23,42,.12); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 48px; justify-content: center; font-size: .7rem; font-weight: 500; color: var(--muted); position: relative; }
.tab.on { color: var(--brand); font-weight: 600; }
.tab.on::after { content: ''; position: absolute; bottom: -9px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.tab .dot { position: absolute; top: -4px; right: calc(50% - 18px); min-width: 15px; height: 15px; border-radius: 8px; background: var(--brand); color: #fff; font-size: .58rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.fab { justify-self: center; width: 60px; height: 60px; border-radius: 20px; margin-top: -30px; background: linear-gradient(140deg, #ff4d57, #c8121c 60%, #8f0f1a); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 24px rgba(200,18,28,.45), 0 0 0 6px var(--bg); transition: transform .15s; }
.fab:active { transform: scale(.92) rotate(45deg); }

/* ---------- bottom sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(5,8,15,.45); z-index: 60; backdrop-filter: blur(2px); }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: var(--surface); border-radius: 28px 28px 0 0; padding: 10px var(--gutter) calc(var(--safe-bottom) + 22px); max-height: 88vh; overflow-y: auto; max-width: 560px; margin: 0 auto; box-shadow: 0 -10px 40px rgba(0,0,0,.2); }
.sheet .grab { width: 42px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 14px; background: rgba(120,130,150,.35); }
.sheet h3 { margin: 0 0 14px; font-size: 1.1rem; }
.sheet-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sheet-grid a { background: var(--surface-2); border-radius: 18px; padding: 16px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .78rem; font-weight: 500; text-align: center; }
.sheet-grid a:active { transform: scale(.96); }
.slide-up-enter { transition: transform .28s cubic-bezier(.2,.9,.3,1); } .slide-up-start { transform: translateY(100%); } .slide-up-end { transform: none; }
.fade-enter { transition: opacity .2s; } .fade-start { opacity: 0; } .fade-end { opacity: 1; }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.form > *, .two > * { min-width: 0; }
.amount-box { text-align: center; padding: 18px 10px 8px; }
.amount-box label { font-size: .8rem; color: var(--muted); }
.amount-box .inp { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 6px; }
.amount-box .cur { font-size: 1.8rem; font-weight: 600; color: var(--muted); }
.amount-box input { font: inherit; font-family: var(--font-display); font-size: clamp(2.2rem, 10.5vw, 2.8rem); font-weight: 700; letter-spacing: -.02em; field-sizing: content; min-width: 1ch; width: auto; max-width: 80%; border: 0; background: none; color: var(--text); text-align: left; outline: none; padding: 0; }
.field { background: var(--surface); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); display: block; }
.field > span { display: block; font-size: .72rem; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.field input, .field select, .field textarea { width: 100%; border: 0; background: none; font: inherit; font-size: .95rem; color: var(--text); outline: none; padding: 4px 0; appearance: none; -webkit-appearance: none; }
.field textarea { resize: none; min-height: 52px; }
.field.err { box-shadow: 0 0 0 2px var(--red); }
.err-text { color: var(--red); font-size: .74rem; margin: -6px 6px 0; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.pick { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
.pick::-webkit-scrollbar { display: none; }
.pick button { flex-shrink: 0; padding: 10px 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); font-size: .8rem; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.pick button.on { background: var(--brand); color: #fff; }
.toggle { display: flex; align-items: center; justify-content: space-between; background: var(--surface); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); font-size: .9rem; }
.toggle input { width: 46px; height: 28px; appearance: none; -webkit-appearance: none; background: var(--gray-bg); border-radius: 14px; position: relative; transition: background .2s; }
.toggle input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s; }
.toggle input:checked { background: var(--brand); } .toggle input:checked::after { transform: translateX(18px); }
.photo { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); border: 2px dashed rgba(225,29,39,.25); font-size: .88rem; }
.photo input { display: none; }
.photo img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; }
.btn { width: 100%; min-height: 54px; padding: 0 18px; border-radius: 18px; background: linear-gradient(140deg, #ff4d57, #d3131d 55%, #9f1020); color: #fff; font-weight: 600; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 10px 22px rgba(211,19,29,.35); transition: transform .12s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; }
.btn.ghost { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.btn.green { background: linear-gradient(140deg, #22c55e, #16a34a); box-shadow: 0 10px 22px rgba(22,163,74,.3); }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sticky-cta { position: sticky; bottom: calc(var(--safe-bottom) + 12px); margin-top: 18px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 16px; padding: 0 14px; box-shadow: var(--shadow); min-height: 48px; color: var(--muted); }
.search input { flex: 1; border: 0; background: none; font: inherit; font-size: .92rem; color: var(--text); outline: none; }

/* ---------- misc ---------- */
.empty { text-align: center; padding: 34px 20px; color: var(--muted); font-size: .88rem; }
.empty .em { font-size: 2.2rem; margin-bottom: 6px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: .88rem; border-bottom: var(--hair) solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { font-weight: 600; text-align: right; }
.bars { display: grid; gap: 12px; }
.bar-row .top { display: flex; justify-content: space-between; font-size: .82rem; margin-bottom: 6px; }
.bar { height: 8px; border-radius: 6px; background: var(--gray-bg); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #ff6b73, var(--brand)); }
.notice { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--amber-bg); color: var(--amber); font-size: .85rem; font-weight: 500; margin-top: 14px; }
.toast { position: fixed; left: 50%; top: calc(var(--safe-top) + 14px); transform: translateX(-50%); z-index: 80; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 16px; font-size: .88rem; font-weight: 500; box-shadow: 0 12px 30px rgba(0,0,0,.25); display: flex; gap: 8px; align-items: center; max-width: 90vw; }
.ptr { position: fixed; top: calc(var(--safe-top) + 8px); left: 50%; transform: translate(-50%, -60px); z-index: 70; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--brand); transition: transform .2s; }
.ptr.spin svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--brand); z-index: 90; }
.skeleton { background: linear-gradient(90deg, var(--gray-bg), var(--surface-2), var(--gray-bg)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.back { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); }
.big-amt { font-size: clamp(1.8rem, 8.2vw, 2.25rem); font-weight: 700; letter-spacing: -.02em; }
.center { text-align: center; }
.muted { color: var(--muted); }
.mt { margin-top: 14px; } .mt2 { margin-top: 22px; }
.small { font-size: .78rem; }

/* ---------- login: the same look as the computer sign-in page (deep ink, red glow, LED ticker) ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.login .top { position: relative; isolation: isolate; overflow: hidden; transform: translateZ(0); padding: calc(var(--safe-top) + 30px) 24px 66px;
  color: #fff; background: #090b11; border-radius: 0 0 32px 32px; }
.login .top::before { content: ''; position: absolute; inset: -30%; z-index: -2; pointer-events: none;
  background: radial-gradient(42% 36% at 14% 22%, rgba(225,29,39,.55), transparent 70%), radial-gradient(38% 32% at 92% 8%, rgba(59,76,220,.28), transparent 70%),
    radial-gradient(50% 42% at 82% 96%, rgba(225,29,39,.36), transparent 72%);
  animation: login-drift 22s ease-in-out infinite alternate; }
.login .top::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 34px 34px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 35%, #000 15%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 30% 35%, #000 15%, transparent 75%); }
@keyframes login-drift { from { transform: translate3d(-3%, -2%, 0); } to { transform: translate3d(3%, 2%, 0) scale(1.06); } }
.login-logo { display: block; width: 168px; height: auto; }
.login-kicker { display: flex; align-items: center; gap: 10px; margin: 26px 0 8px; font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.login-kicker::before { content: ''; width: 26px; height: 2px; border-radius: 2px; background: var(--brand); }
.login h1 { margin: 0 0 6px; font-family: var(--font-display); font-size: clamp(1.75rem, 8vw, 2.05rem); font-weight: 700; letter-spacing: -.03em; }
.login .top p.lead { margin: 0; color: rgba(255,255,255,.7); font-size: .9rem; line-height: 1.5; }
/* The LED ticker, like the boards on railway platforms. */
.login-ticker { position: relative; overflow: hidden; margin-top: 20px; padding: 9px 0; border-radius: 12px; border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(#07080c, #0b0d13); box-shadow: inset 0 10px 18px -12px rgba(0,0,0,.95); }
.login-ticker::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #08090d, transparent 10%, transparent 90%, #08090d); }
.login-ticker-track { display: flex; width: max-content; animation: login-ticker 40s linear infinite; }
.login-ticker span { display: inline-flex; align-items: center; gap: 20px; padding-right: 20px; white-space: nowrap; color: #ff6a70; font-size: .68rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; text-shadow: 0 0 6px rgba(255,60,70,.7), 0 0 16px rgba(255,60,70,.3); }
.login-ticker span::after { content: ''; width: 5px; height: 5px; background: #ffb3b7; box-shadow: 0 0 6px #ff4b55; opacity: .75; transform: rotate(45deg); }
@keyframes login-ticker { to { transform: translate3d(-50%, 0, 0); } }
.login .body { padding: 0 var(--gutter) calc(var(--safe-bottom) + 32px); margin-top: -40px; position: relative; z-index: 2; }
.login .card { padding: 22px; display: grid; gap: 14px; }
.login .field { box-shadow: none; background: var(--surface-2); }
.login label.rem { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--muted); }
.login-secure { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 13px 14px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.login-secure .bub { width: 34px; height: 34px; border-radius: 11px; }
.login-secure p { margin: 0; font-size: .76rem; line-height: 1.5; color: var(--muted); }
.login-secure b { display: block; margin-bottom: 1px; font-size: .82rem; font-weight: 600; color: var(--text); }
@media (prefers-reduced-motion: reduce) { .login .top::before, .login-ticker-track { animation: none; } }

/* ---------- fonts: headings and big amounts in Plus Jakarta Sans; figures line up ---------- */
.topbar h1, .greet b, .section-head h2, .sheet h3, .hero .big, .emi-hero .big, .bal-card .big, .acct .bal, .big-amt, .stat strong, .login-brand b {
  font-family: var(--font-display); }
.topbar h1 { letter-spacing: -.02em; }
.section-head h2 { letter-spacing: -.01em; }
.hero .big, .emi-hero .big, .bal-card .big, .acct .bal, .big-amt, .stat strong, .row .amt, .recv-grid b, .kv b, .amount-box input, .section-head .sum,
.bar-row .top, .next-emi, .cp-detail .kv b { font-variant-numeric: tabular-nums; }

[x-cloak] { display: none !important; }

/* ---------- brand ---------- */
.brand-tile { width: 44px; height: 44px; border-radius: 14px; background: #fff; padding: 5px; object-fit: contain; box-shadow: var(--shadow); flex-shrink: 0; }
.brand-tile.big { width: 64px; height: 64px; border-radius: 20px; padding: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.login-brand { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.login-brand b { display: block; font-size: 1.2rem; }
.login-brand span { font-size: .78rem; opacity: .85; }

/* ---------- loan EMI hero ---------- */
.emi-hero { display: block; position: relative; overflow: hidden; border-radius: 26px; padding: 20px; margin-top: 4px; color: #fff; transform: translateZ(0);
  background: radial-gradient(120% 140% at 100% 0%, #ff6b73 0%, rgba(255,107,115,0) 45%), linear-gradient(140deg, #f0333d 0%, #c8121c 50%, #7d0c16 100%);
  box-shadow: 0 18px 40px rgba(200,18,28,.35); }
.emi-hero::after { content: ''; position: absolute; right: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.07); pointer-events: none; }
.emi-hero.calm { background: linear-gradient(140deg, #1e293b, #0f172a); box-shadow: 0 14px 30px rgba(15,23,42,.25); }
.emi-hero.today { animation: glow 2s ease-in-out infinite; }
.emi-hero.late { background: linear-gradient(140deg, #7f1d1d, #450a0a); box-shadow: 0 18px 40px rgba(127,29,29,.45); }
@keyframes glow { 50% { box-shadow: 0 18px 50px rgba(240,51,61,.65); } }
.emi-hero .row1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; position: relative; z-index: 1; }
.emi-hero .tag { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; background: rgba(255,255,255,.16); padding: 5px 10px; border-radius: 999px; }
.emi-hero .count { font-size: .8rem; font-weight: 700; background: #fff; color: #b3111b; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.emi-hero.late .count { color: #7f1d1d; } .emi-hero.calm .count { color: #0f172a; }
.emi-hero .big { font-size: clamp(1.85rem, 8.6vw, 2.35rem); font-weight: 700; letter-spacing: -.02em; margin: 12px 0 2px; position: relative; z-index: 1; }
.emi-hero .what { font-size: .9rem; font-weight: 500; opacity: .92; position: relative; z-index: 1; }
.emi-hero .date { display: flex; align-items: center; gap: 6px; font-size: .8rem; opacity: .85; margin-top: 6px; position: relative; z-index: 1; }
.emi-hero .funds { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 11px 12px; border-radius: 16px; background: rgba(255,255,255,.14); position: relative; z-index: 1; font-size: .8rem; }
.emi-hero .funds b { display: block; font-weight: 600; } .emi-hero .funds span { opacity: .9; }
.emi-hero .funds.bad { background: #fff; color: #991b1b; }
.emi-hero .warn { margin-top: 10px; font-size: .78rem; background: rgba(0,0,0,.25); padding: 9px 12px; border-radius: 12px; position: relative; z-index: 1; }
.emi-hero .btns { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-top: 14px; position: relative; z-index: 1; }
.emi-hero .btns a { height: 46px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: .9rem; }
.emi-hero .b1 { background: #fff; color: #b3111b; } .emi-hero .b2 { background: rgba(255,255,255,.16); color: #fff; }
.emi-hero .meter { margin-top: 12px; }

.alerts-card { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 20px; margin: 0 0 14px; background: var(--surface); box-shadow: var(--shadow); border: 1.5px solid rgba(225,29,39,.25); font-size: .86rem; }
.alerts-card .small { color: var(--muted); }
.bar.bad i { background: linear-gradient(90deg, #f97316, var(--red)); }
.bar-row { display: block; }
.when.soon { color: var(--amber); font-weight: 600; }
.loading-fade { opacity: .5; transition: opacity .2s; }
.meter.dark { background: var(--gray-bg); margin-top: 14px; } .meter.dark i { background: linear-gradient(90deg, #22c55e, #16a34a); }
.loan-card { display: block; }
.next-emi { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); font-size: .82rem; }
.next-emi span:first-child { flex: 1; color: var(--muted); }
.next-emi.soon { background: var(--amber-bg); } .next-emi.late { background: var(--red-bg); }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.bar.good i { background: linear-gradient(90deg, #4ade80, var(--green)); }

/* ---------- home: bank balance cards (styled like the EMI card; swipe sideways) ---------- */
.section-head .sum { font-size: .85rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.bal-scroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain;
  margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.bal-scroll::-webkit-scrollbar { display: none; }
.bal-card { flex: 0 0 84%; scroll-snap-align: start; position: relative; overflow: hidden; border-radius: 26px; padding: 18px; min-height: 158px;
  display: flex; flex-direction: column; color: #fff; transform: translateZ(0); box-shadow: 0 12px 26px rgba(15,23,42,.2); transition: transform .15s; }
.bal-card:active { transform: translateZ(0) scale(.98); }
.bal-scroll.one .bal-card { flex-basis: 100%; }
.bal-card::after { content: ''; position: absolute; right: -56px; bottom: -76px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.bal-card.bank { background: radial-gradient(120% 140% at 100% 0%, rgba(96,165,250,.6) 0%, rgba(96,165,250,0) 45%), linear-gradient(140deg, #2563eb 0%, #1d4ed8 50%, #1e3a8a 100%); box-shadow: 0 14px 30px rgba(29,78,216,.3); }
.bal-card.od { background: radial-gradient(120% 140% at 100% 0%, rgba(167,139,250,.55) 0%, rgba(167,139,250,0) 45%), linear-gradient(140deg, #7c3aed 0%, #6d28d9 50%, #4c1d95 100%); box-shadow: 0 14px 30px rgba(109,40,217,.3); }
.bal-card.wallet { background: radial-gradient(120% 140% at 100% 0%, rgba(52,211,153,.55) 0%, rgba(52,211,153,0) 45%), linear-gradient(140deg, #059669 0%, #047857 50%, #064e3b 100%); box-shadow: 0 14px 30px rgba(4,120,87,.3); }
.bal-card.card { background: radial-gradient(120% 140% at 100% 0%, rgba(148,163,184,.45) 0%, rgba(148,163,184,0) 45%), linear-gradient(140deg, #374151 0%, #1f2937 50%, #0b1120 100%); }
.bal-card .row1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; position: relative; z-index: 1; }
.bal-card .tag { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: .66rem; font-weight: 700; letter-spacing: .08em; background: rgba(255,255,255,.16); padding: 5px 10px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bal-card .num { font-size: .74rem; letter-spacing: .12em; opacity: .85; white-space: nowrap; }
.bal-card .big { font-size: clamp(1.5rem, 7vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; margin: 14px 0 2px; position: relative; z-index: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bal-card .what { font-size: .86rem; font-weight: 500; opacity: .92; position: relative; z-index: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bal-card .foot { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; font-size: .76rem; opacity: .85; position: relative; z-index: 1; }
.bal-dots { display: flex; justify-content: center; gap: 6px; margin-top: 2px; }
.bal-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(120,130,150,.35); transition: width .2s, background .2s; }
.bal-dots i.on { width: 18px; background: var(--brand); }
.bal-cash { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); font-size: .84rem; }
.bal-cash > span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.bal-cash .go { color: var(--brand); font-weight: 600; font-size: .78rem; gap: 2px; flex-shrink: 0; }

/* ---------- money to receive (home card + receivables screen) ---------- */
.recv-card { display: block; }
.recv-top { display: flex; align-items: center; gap: 12px; }
.recv-top .main { flex: 1; min-width: 0; }
.recv-top b { font-size: .95rem; }
.recv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.recv-grid > div { background: var(--surface-2); border-radius: 14px; padding: 10px 10px 11px; min-width: 0; }
.recv-grid span { display: block; font-size: .7rem; font-weight: 500; color: var(--muted); }
.recv-grid b { display: block; margin-top: 3px; font-size: .82rem; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.recv-grid .late { background: var(--red-bg); }
.recv-grid .late span, .recv-grid .late b { color: var(--red); }
.recv-list .row .t, .recv-list .row .s { white-space: normal; overflow-wrap: anywhere; }
.recv-list .nw { white-space: nowrap; }

/* ---------- shared footer (More screen): one copyright line ---------- */
.ja-footer { margin: 18px 4px 0; padding: 14px 0 2px; border-top: var(--hair) solid var(--line); text-align: center; font-size: .72rem; line-height: 1.6; color: var(--muted); }
.ja-footer strong { color: var(--text); font-weight: 600; }

/* ---------- contract-wise P&L ---------- */
.ic-xs { width: 12px; height: 12px; }
.cp-item { position: relative; }
.cp-item + .cp-item::before { content: ''; position: absolute; top: 0; left: 64px; right: 16px; height: var(--hair); background: var(--line); }
.cp-item .row .s { display: flex; align-items: center; gap: 6px; }
.cp-item .row .s .badge { flex-shrink: 0; }
.cp-chev { display: grid; place-items: center; flex-shrink: 0; margin-left: -4px; }
.cp-chev svg { transition: transform .2s; }
.cp-chev.open svg { transform: rotate(180deg); }
.cp-detail { padding: 0 16px 16px 68px; }
.cp-name { font-size: .8rem; font-weight: 600; overflow-wrap: anywhere; padding-bottom: 4px; }
.cp-detail .kv { padding: 8px 0; font-size: .84rem; }
.cp-detail .kv span { min-width: 0; }
.cp-detail .kv b { white-space: nowrap; }
.cp-head { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 10px; }
.cp-detail .bars { gap: 12px; }
.cp-detail .bar-row .top { gap: 10px; }
.cp-detail .bar-row .top span { min-width: 0; overflow-wrap: anywhere; }
.cp-detail .bar-row .top b { white-space: nowrap; }
.cp-warn { margin-top: 12px; font-size: .78rem; line-height: 1.45; color: var(--red); background: var(--red-bg); padding: 9px 12px; border-radius: 12px; }
.cp-notice { align-items: flex-start; line-height: 1.45; }
.cp-notice svg { flex-shrink: 0; margin-top: 1px; }
.cp-unlinked p { margin: 0; }
.cp-unlinked p + p { margin-top: 8px; }
