/* बचत ही बचत — app.css
   Layout: एक-स्तंभ मोबाईल रजिस्टर — वर गट शीर्षक, मध्ये पान, खाली ५ टॅब; मोठ्या screen वर ५६०px मध्यभागी.
   रंग: Instagram-शैलीचा gradient (जांभळा → गुलाबी → केशरी); पैशांसाठी हिरवा/सोनेरी. */
:root {
  --bg: #F7F3F9;
  --surface: #FFFFFF;
  --surface-2: #FBF7FC;
  --text: #1F1529;
  --muted: #6C5F79;
  --line: #ECE2F0;
  --track: #F1E8F4;
  --sky: #C13584;
  --sky-soft: #FBE7F2;
  --violet: #833AB4;
  --leaf: #23904A;
  --leaf-soft: #E2F4E8;
  --gold: #E2A114;
  --gold-soft: #FFF2D6;
  --gold-ink: #8A5F00;
  --danger: #D0312D;
  --danger-soft: #FDE7E5;
  --warn: #A86300;
  --warn-soft: #FFF0D9;
  --on-hero: #FFFFFF;
  --grad: linear-gradient(135deg, #515BD4 0%, #8134AF 28%, #DD2A7B 62%, #F58529 100%);
  --grad-btn: linear-gradient(135deg, #8134AF 0%, #C13584 55%, #E1306C 100%);
  --grad-screen: linear-gradient(160deg, #3B1A73 0%, #8134AF 32%, #C13584 64%, #F56040 100%);
  --shadow: 0 1px 2px rgba(96, 30, 110, .06), 0 6px 18px rgba(96, 30, 110, .08);
  --shadow-lg: 0 18px 50px rgba(40, 10, 50, .3);
  --f-display: 'Baloo 2', 'Noto Sans Devanagari', system-ui, sans-serif;
  --f-body: 'Noto Sans Devanagari', 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 18px;
  --r-sm: 12px;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --tabbar-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #110A17; --surface: #1C1324; --surface-2: #170F1E; --text: #F3EAF7; --muted: #B4A4C1; --line: #33253E; --track: #2A1E34;
    --sky: #FF6FB0; --sky-soft: #3A1731; --violet: #B57BFF; --leaf: #4CC36F; --leaf-soft: #12301F; --gold: #F2B636; --gold-soft: #302612; --gold-ink: #F2C25A;
    --danger: #FF7A70; --danger-soft: #3A1715; --warn: #F5AE45; --warn-soft: #33240E; --on-hero: #FFFFFF;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 20px rgba(0, 0, 0, .28); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #110A17; --surface: #1C1324; --surface-2: #170F1E; --text: #F3EAF7; --muted: #B4A4C1; --line: #33253E; --track: #2A1E34;
  --sky: #FF6FB0; --sky-soft: #3A1731; --violet: #B57BFF; --leaf: #4CC36F; --leaf-soft: #12301F; --gold: #F2B636; --gold-soft: #302612; --gold-ink: #F2C25A;
  --danger: #FF7A70; --danger-soft: #3A1715; --warn: #F5AE45; --warn-soft: #33240E; --on-hero: #FFFFFF;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 20px rgba(0, 0, 0, .28); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
html.no-scroll { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--f-body); min-height: 100%; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--sky); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--sky) 60%, transparent); outline-offset: 2px; border-radius: 8px; }
.ic { flex-shrink: 0; display: block; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 700; line-height: 1.2; text-wrap: balance; }
p { margin: 0; }
small { font-size: 12.5px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num, .amt, .hero-amt, .stat b, td { font-variant-numeric: tabular-nums; }
.sel { user-select: all; -webkit-user-select: all; font-weight: 600; }

/* ═════ SPLASH ═════ */
.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(70% 50% at 50% 40%, rgba(255, 255, 255, .22), transparent 70%), var(--grad-screen); color: #fff; transition: opacity .55s ease, transform .55s ease; }
.splash.out { opacity: 0; transform: scale(1.04); pointer-events: none; }
.sp-inner { display: grid; justify-items: center; gap: 6px; padding: 24px; text-align: center; }
.sp-logo { position: relative; width: min(46vw, 200px); aspect-ratio: 1; max-width: 100%; margin-bottom: 18px; }
.sp-logo img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .45)); animation: sp-pop .9s cubic-bezier(.2, 1.4, .4, 1) both; }
.sp-halo { position: absolute; inset: -14%; border-radius: 50%; z-index: 1;
  background: conic-gradient(from 0deg, transparent 0 58%, rgba(255, 255, 255, .0) 58%, rgba(255, 236, 160, .95) 78%, transparent 92%);
  -webkit-mask: radial-gradient(closest-side, transparent 86%, #000 88%, #000 96%, transparent 98%); mask: radial-gradient(closest-side, transparent 86%, #000 88%, #000 96%, transparent 98%);
  animation: sp-spin 1.6s linear .3s infinite; opacity: .95; }
.sp-glow { position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 220, 128, .4), transparent 70%); animation: sp-breathe 2.4s ease-in-out infinite; }
.sp-shine { position: absolute; inset: 0; z-index: 3; border-radius: 50%; overflow: hidden; pointer-events: none; }
.sp-shine::after { content: ""; position: absolute; top: -20%; bottom: -20%; width: 32%; left: -50%; transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: sp-sweep 1.2s ease .75s both; }
.sp-coins { position: absolute; inset: -22%; z-index: 0; pointer-events: none; }
.sp-coin { position: absolute; z-index: 0; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFF2B8, #E9AE1E 55%, #A86D00);
  box-shadow: 0 0 10px rgba(255, 200, 60, .6); opacity: 0; animation: sp-rise 2.2s ease-out infinite; }
.sp-coin:nth-child(1) { left: 6%; bottom: 10%; animation-delay: .4s; }
.sp-coin:nth-child(2) { right: 4%; bottom: 22%; animation-delay: .9s; width: 12px; height: 12px; }
.sp-coin:nth-child(3) { left: 46%; bottom: -6%; animation-delay: 1.3s; width: 10px; height: 10px; }
.sp-coin:nth-child(4) { right: 22%; bottom: 0; animation-delay: .2s; width: 13px; height: 13px; }
.sp-title { font: 800 clamp(30px, 9vw, 40px)/1.1 var(--f-display); letter-spacing: .5px;
  color: #fff; text-shadow: 0 2px 14px rgba(60, 10, 70, .45); animation: sp-up .7s ease .45s both; }
.sp-tag { font-size: 14px; color: rgba(255, 255, 255, .82); animation: sp-up .7s ease .6s both; }
.sp-bar { width: 132px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .16); overflow: hidden; margin-top: 22px; animation: sp-up .5s ease .7s both; }
.sp-bar i { display: block; height: 100%; width: 40%; border-radius: 3px; background: linear-gradient(90deg, #FEDA75, #fff); animation: sp-load 1.1s ease-in-out infinite; }
.sp-foot { position: absolute; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .55); letter-spacing: .5px; }
@keyframes sp-pop { from { transform: scale(.55) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sp-spin { to { transform: rotate(360deg); } }
@keyframes sp-breathe { 50% { transform: scale(1.08); opacity: .7; } }
@keyframes sp-sweep { from { left: -50%; } to { left: 130%; } }
@keyframes sp-rise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-140px) scale(1); opacity: 0; } }
@keyframes sp-up { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sp-load { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }

/* ═════ FULL SCREENS (welcome, PIN, wizard) ═════ */
.screen { position: fixed; inset: 0; z-index: 40; overflow-y: auto; background: var(--bg); opacity: 0; transition: opacity .3s ease;
  padding: env(safe-area-inset-top, 0px) var(--gut-r) env(safe-area-inset-bottom, 0px) var(--gut); }
.screen.in { opacity: 1; }
.sc-lock, .sc-welcome { background: var(--grad-screen); color: #fff; }
.logo-img { display: block; width: 100%; height: auto; }

.welcome { max-width: 460px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding-block: 28px 20px; text-align: center; }
.wl-logo { width: 124px; margin: 0 auto 4px; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .4)); }
.wl-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r); }
.wl-track::-webkit-scrollbar { display: none; }
.wl-slide { flex: 0 0 100%; scroll-snap-align: center; padding: 22px 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r); display: grid; justify-items: center; gap: 10px; min-height: 210px; align-content: center; }
.wl-ic { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: #fff; color: #C13584; box-shadow: 0 8px 20px rgba(60, 10, 70, .25); }
.wl-slide h2 { font-size: 22px; color: #fff; }
.wl-slide p { color: rgba(255, 255, 255, .82); font-size: 15px; max-width: 34ch; }
.wl-slide b { color: #FFE9A8; }
.wl-dots { display: flex; justify-content: center; gap: 6px; }
.wl-dots i { width: 7px; height: 7px; border-radius: 6px; background: rgba(255, 255, 255, .3); transition: width .25s, background .25s; }
.wl-dots i.on { width: 22px; background: #fff; }
.wl-foot a { color: rgba(255, 255, 255, .8); }
.wl-foot { font-size: 12px; color: rgba(255, 255, 255, .5); margin-top: auto; }
.sc-welcome .btn-text { color: #fff; }

.lock { max-width: 360px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; align-items: center; padding-block: max(28px, 6vh) 24px; text-align: center; }
.lock-logo { width: 92px; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .4)); margin-bottom: 14px; }
.lock-title { font-size: 22px; color: #fff; }
.lock-sub { color: rgba(255, 255, 255, .78); margin-top: 4px; min-height: 1.5em; }
.pin-dots { display: flex; gap: 18px; margin: 26px 0 6px; }
.pin-dots i { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); transition: background .15s, transform .15s, border-color .15s; }
.pin-dots i.on { background: #fff; border-color: #fff; transform: scale(1.12); }
.pin-dots.shake { animation: shake .42s; }
@keyframes shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
.pin-err { min-height: 22px; color: #FFE0A3; font-size: 13.5px; font-weight: 600; }
.screen:not(.sc-lock) .pin-err { color: var(--danger); }
.keypad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px 24px; margin-top: 12px; }
.keypad.disabled, .keypad.busy { opacity: .45; pointer-events: none; }
.key { width: 76px; height: 76px; border-radius: 50%; font: 600 28px/1 var(--f-display); color: #fff; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .12); display: grid; place-items: center; transition: background .12s, transform .12s; }
.key:active { background: rgba(255, 255, 255, .32); transform: scale(.94); }
.key-fn { background: transparent; border-color: transparent; }
.lock-foot { margin-top: 18px; display: grid; gap: 4px; }
.sc-lock .btn-text { color: #FFE9A8; }

.rc { max-width: 440px; margin: 0 auto; padding-block: 34px 28px; display: flex; flex-direction: column; gap: 14px; text-align: center; position: relative; }
.rc-back { position: absolute; left: 0; top: 18px; }
.rc-ic { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); }
.rc h1 { font-size: 24px; }
.rc p { color: var(--muted); }
.rc-code { font: 700 32px/1 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: 4px; padding: 18px; border-radius: var(--r); background: var(--surface); border: 2px dashed var(--gold); color: var(--text); user-select: all; -webkit-user-select: all; }
.rc-tips { text-align: left; margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.rc .check { text-align: left; }
.danger-zone { margin-top: 18px; padding: 16px; border-radius: var(--r); background: var(--danger-soft); text-align: left; display: grid; gap: 10px; }
.danger-zone p { color: var(--text); font-size: 13.5px; }

.wiz { max-width: 520px; margin: 0 auto; padding-block: 16px 34px; display: flex; flex-direction: column; gap: 10px; }
.wiz-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 44px; }
.wiz-steps { display: flex; gap: 6px; justify-content: center; }
.wiz-steps i { width: 38px; height: 5px; border-radius: 4px; background: var(--track); }
.wiz-steps i.on { background: var(--grad-btn); }
.wiz-n { text-align: right; color: var(--muted); font-size: 13px; }
.wiz h1 { font-size: 28px; margin-top: 8px; }
.wiz-sub { color: var(--muted); margin-bottom: 8px; }
.wiz-demo { margin-top: 14px; padding: 14px; border-radius: var(--r); border: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }

/* ═════ APP SHELL ═════ */
#app { min-height: 100vh; }
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; gap: 8px;
  padding: 10px var(--gut-r) 10px var(--gut); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.hdr-gat { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; text-align: left; }
.hdr-gat img { width: 38px; height: 38px; flex-shrink: 0; }
.hdr-txt { min-width: 0; display: grid; }
#hdrName { font: 700 16.5px/1.25 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hdrSub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hdrSub .warn { color: var(--warn); font-weight: 600; }
.hdr-tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px; background: var(--gold-soft); color: var(--gold-ink); white-space: nowrap; }
.hdr-tag.off { background: var(--warn-soft); color: var(--warn); }

.view { max-width: 560px; margin: 0 auto; padding: 14px var(--gut-r) calc(var(--tabbar-h) + 30px + env(safe-area-inset-bottom, 0px)) var(--gut); display: flex; flex-direction: column; gap: 14px; }
.view-in { animation: view-in .28s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px var(--gut-r) calc(6px + env(safe-area-inset-bottom, 0px)) var(--gut); background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.tabbar-in { display: contents; }
.tab { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 14px; color: var(--muted); font-size: 11.5px; font-weight: 600; position: relative; }
.tab .ic { transition: transform .2s; }
.tab.active { color: var(--sky); }
.tab.active .ic { transform: translateY(-1px); }
.tab.active::before { content: ""; position: absolute; top: 2px; width: 40px; height: 30px; border-radius: 12px; background: var(--sky-soft); z-index: -1; }
.tab-c .tab-coin { width: 50px; height: 50px; margin-top: -24px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--grad); box-shadow: 0 6px 16px rgba(193, 53, 132, .45); border: 3px solid var(--surface); }
.tab-c.active::before { display: none; }
.tab-c.active { color: var(--sky); }

@media (min-width: 640px) { .tabbar { left: 50%; right: auto; width: 560px; transform: translateX(-50%); border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0; } }

/* ═════ INSTALL BANNER (English) ═════ */
.install-bar { position: fixed; z-index: 26; left: var(--gut); right: var(--gut-r); bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom, 0px));
  max-width: 528px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 18px; color: #fff;
  background: var(--grad); box-shadow: 0 14px 34px rgba(120, 20, 90, .35); animation: ib-in .45s cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes ib-in { from { transform: translateY(24px); opacity: 0; } }
.install-bar img { width: 44px; height: 44px; flex-shrink: 0; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .3)); }
.ib-txt { flex: 1; min-width: 0; display: grid; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; line-height: 1.3; }
.ib-txt b { font-size: 14.5px; }
.ib-txt small { font-size: 12px; opacity: .9; }
.ib-go { background: #fff; color: #C13584; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-weight: 700; }
.ib-x { width: 34px; height: 34px; color: #fff; }
.ib-x:hover, .ib-x:active { background: rgba(255, 255, 255, .18); }
@media (min-width: 640px) { .install-bar { left: 50%; right: auto; width: 528px; transform: translateX(-50%); } @keyframes ib-in { from { opacity: 0; } } }

/* ═════ COMMON ═════ */
.page-head { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.page-head h1 { font-size: 26px; flex: 1; min-width: 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; }
.sec-head h3 { font-size: 17px; }
.link { color: var(--sky); font-weight: 600; font-size: 14px; }
.eyebrow { text-transform: none; letter-spacing: .3px; color: var(--muted); font-weight: 600; }
.foot-note { text-align: center; color: var(--muted); font-size: 12.5px; display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: wrap; padding: 4px 0; }
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.card > .empty { padding: 26px 16px; }
.pad { padding: 10px 14px; }
.icon-btn { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--text); flex-shrink: 0; transition: background .15s; }
.icon-btn:hover, .icon-btn:active { background: var(--track); }
.icon-btn:disabled { opacity: .3; pointer-events: none; }
.icon-btn.wa { color: #fff; background: #1FA855; }
.chev { color: var(--muted); opacity: .7; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 14px; font-weight: 600; font-size: 15px; transition: transform .1s, background .15s, opacity .15s; text-decoration: none; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn.is-off { opacity: .55; box-shadow: none; }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 6px 16px rgba(193, 53, 132, .3); }
.sc-lock .btn-primary, .sc-welcome .btn-primary { background: #fff; color: #C13584; box-shadow: 0 8px 22px rgba(40, 0, 50, .3); }
.btn-ghost { background: var(--sky-soft); color: var(--sky); }
.btn-text { color: var(--sky); min-height: 40px; padding: 6px 10px; }
.btn-text.danger, .danger { color: var(--danger); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-ghost { background: var(--danger-soft); color: var(--danger); }
.btn-wa { background: #1FA855; color: #fff; }
.btn-lg { min-height: 54px; font-size: 16.5px; border-radius: 16px; }
.btn-sm { min-height: 38px; padding: 6px 12px; font-size: 14px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn.loading { pointer-events: none; opacity: .7; }
.btn.loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: sp-spin .7s linear infinite; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1 1 140px; }
.btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-grid .btn { white-space: normal; text-align: center; line-height: 1.25; }

.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 20px; background: var(--track); color: var(--muted); white-space: nowrap; }
.pill.blue { background: var(--sky-soft); color: var(--sky); }
.pill.gold { background: var(--gold-soft); color: var(--gold-ink); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.danger { background: var(--danger-soft); color: var(--danger); }
.pill.ok { background: var(--leaf-soft); color: var(--leaf); }
.pill.mute { opacity: .8; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gut-r)) 0 calc(-1 * var(--gut)); padding: 2px var(--gut-r) 2px var(--gut); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: 7px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--muted); }
.chip.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--text); text-decoration: none; }
.chip-btn.wa { background: #1FA855; color: #fff; border-color: transparent; }

.av { width: var(--s); height: var(--s); border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; object-fit: cover;
  font: 700 calc(var(--s) * .38)/1 var(--f-display); color: hsl(var(--h, 215) 55% 28%); background: hsl(var(--h, 215) 70% 90%); }
:root[data-theme="dark"] .av { color: hsl(var(--h, 215) 70% 85%); background: hsl(var(--h, 215) 35% 24%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .av { color: hsl(var(--h, 215) 70% 85%); background: hsl(var(--h, 215) 35% 24%); } }

.list { display: flex; flex-direction: column; overflow: hidden; }
.list > .row + .row, .list > .row + label.row, .list > label.row + .row, .list > .row + a.row, .list > a.row + .row, .list > a.row + a.row { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; width: 100%; text-align: left; text-decoration: none; color: inherit; min-height: 60px; transition: background .12s; }
button.row:active, a.row:active, .row-tap:active { background: var(--surface-2); }
.row.static { cursor: default; }
.row.col { flex-direction: column; align-items: stretch; gap: 8px; }
.row-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.row-main b { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-main small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; }
.row-ic.in { background: var(--leaf-soft); color: var(--leaf); }
.row-ic.out { background: var(--danger-soft); color: var(--danger); }
.row-ic.soft { background: var(--sky-soft); color: var(--sky); }
.amt { font: 700 15.5px/1 var(--f-display); white-space: nowrap; }
.in { color: var(--leaf); }
.out { color: var(--danger); }
.ok { color: var(--leaf); }
.warn { color: var(--warn); }
.gold { color: var(--gold-ink); }
.neg { color: #FFE0A3 !important; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }

.empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 34px 16px; }
.empty-ic { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; background: var(--sky-soft); color: var(--sky); margin-bottom: 4px; }
.empty h3 { font-size: 18px; }
.empty p { color: var(--muted); max-width: 32ch; font-size: 14px; }
.empty .btn { margin-top: 8px; }

/* ═════ FORMS ═════ */
.stack { display: flex; flex-direction: column; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 360px) { .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.field > span .link { margin-left: auto; }
.field > span i { color: var(--danger); font-style: normal; }
.field input, .field select, .field textarea, .mini-select { width: 100%; min-height: 48px; padding: 11px 13px; border-radius: 13px; border: 1.5px solid var(--line); background: var(--surface); font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sky) 16%, transparent); }
.field .hint { color: var(--muted); font-size: 12px; }
.field .err { color: var(--danger); font-weight: 600; font-size: 12.5px; }
.field.has-err input, .field.has-err select, .field.has-err textarea, .field.has-err .money-in { border-color: var(--danger); }
.money-in { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 13px; background: var(--surface); overflow: hidden; }
.money-in:focus-within { border-color: var(--sky); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sky) 16%, transparent); }
.money-in span { padding-left: 13px; font-weight: 700; color: var(--muted); }
.money-in input { border: 0 !important; box-shadow: none !important; padding-left: 6px; font-weight: 600; }
.mini-select { width: auto; min-height: 38px; padding: 6px 10px; font-size: 14px; }
.seg { display: flex; padding: 4px; gap: 4px; background: var(--track); border-radius: 14px; }
.seg-opt { flex: 1; position: relative; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span, .seg-btn { display: grid; place-items: center; min-height: 40px; padding: 4px 8px; border-radius: 11px; font-weight: 600; font-size: 14px; color: var(--muted); text-align: center; transition: background .15s, color .15s; }
.seg-btn { flex: 1; }
.seg-opt input:checked + span, .seg-btn.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.seg-opt input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--sky) 60%, transparent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--leaf); flex-shrink: 0; }
.photo-pick { display: grid; justify-items: center; gap: 6px; color: var(--muted); }
.photo-btn { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; }
.ph-empty { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-soft); color: var(--sky); border: 2px dashed color-mix(in srgb, var(--sky) 40%, transparent); }
.calc-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; border-radius: 14px; background: var(--gold-soft); }
.calc-box.single { grid-template-columns: 1fr; }
.calc-box div { display: grid; gap: 2px; }
.calc-box small { color: var(--gold-ink); }
.calc-box b { font: 700 17px/1.1 var(--f-display); }
.att-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.att { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; min-width: 0; }
.att span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att input { width: 18px; height: 18px; accent-color: var(--leaf); }
.search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line); color: var(--muted); }
.search:focus-within { border-color: var(--sky); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; min-height: 46px; font-size: 16px; outline: none; color: var(--text); }

/* ═════ OVERLAYS ═════ */
.ov { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.ov-dialog { align-items: center; padding: 20px var(--gut-r) 20px var(--gut); }
.ov-bg { position: absolute; inset: 0; background: rgba(5, 14, 32, .5); opacity: 0; transition: opacity .25s; backdrop-filter: blur(2px); }
.sheet { position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border-radius: 26px 26px 0 0;
  padding: 6px var(--gut-r) calc(20px + env(safe-area-inset-bottom, 0px)) var(--gut); transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .9, .3, 1); box-shadow: var(--shadow-lg); }
.ov-dialog .sheet { max-width: 400px; border-radius: 24px; padding: 22px 20px 18px; transform: scale(.94); opacity: 0; transition: transform .22s ease, opacity .22s ease; text-align: center; }
.ov.open .ov-bg { opacity: 1; }
.ov.open .sheet { transform: none; opacity: 1; }
.ov.closing .ov-bg { opacity: 0; }
.ov.closing .sheet { transform: translateY(100%); }
.ov-dialog.closing .sheet { transform: scale(.94); opacity: 0; }
.sheet-grip { width: 42px; height: 5px; border-radius: 4px; background: var(--line); margin: 6px auto 8px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; position: sticky; top: -6px; background: var(--surface); padding-top: 4px; z-index: 2; }
.sheet-head h2 { font-size: 21px; }
.dlg-ic { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; margin: 0 auto 10px; background: var(--sky-soft); color: var(--sky); }
.dlg-ic.danger { background: var(--danger-soft); color: var(--danger); }
.dlg-title { font-size: 20px; margin-bottom: 6px; }
.dlg-text { color: var(--muted); font-size: 14.5px; margin-bottom: 8px; }
.ov-dialog .field { text-align: left; margin: 10px 0 4px; }
.dlg-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.kv { display: grid; gap: 0; margin: 0 0 16px; }
.kv div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.txn-big { font: 800 34px/1.2 var(--f-display); text-align: center; margin: 4px 0 12px; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom, 0px)); z-index: 90; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 8px; max-width: min(92vw, 460px); padding: 11px 16px; border-radius: 14px; background: #241830; color: #fff; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); transition: transform .25s, opacity .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.t-ok .ic { color: #6EE08F; }
.toast.t-err { background: #8E2018; }
.toast.t-info .ic { color: #FFD66B; }

/* ═════ HOME ═════ */
.hero { position: relative; overflow: hidden; border-radius: 24px; padding: 18px 18px 16px; color: var(--on-hero);
  background: var(--grad); box-shadow: 0 14px 34px rgba(193, 53, 132, .3); }
.hero::after { content: ""; position: absolute; right: -36px; bottom: -40px; width: 170px; height: 170px; border-radius: 50%; border: 22px solid rgba(255, 255, 255, .06); }
.hero-top { display: flex; justify-content: space-between; align-items: center; color: rgba(255, 255, 255, .78); font-size: 12.5px; }
.hero-label { margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, .85); font-weight: 600; }
.hero-amt { font: 800 clamp(32px, 10vw, 40px)/1.05 var(--f-display); letter-spacing: -.5px; color: #fff; }
.hero-note { font-size: 12px; color: rgba(255, 255, 255, .65); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 14px; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, .14); }
.hero-grid div { display: grid; padding: 10px 12px; background: rgba(40, 8, 52, .32); }
.hero-grid small { color: rgba(255, 255, 255, .72); }
.hero-grid b { font: 700 17px/1.25 var(--f-display); color: #fff; }
.month-card { display: flex; align-items: center; gap: 14px; padding: 14px; text-align: left; width: 100%; }
.month-card .row-main b { white-space: normal; }
.ring { flex-shrink: 0; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.q { display: grid; justify-items: center; gap: 6px; padding: 14px 6px 12px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); font-size: 13.5px; font-weight: 600; border: 1px solid color-mix(in srgb, var(--line) 55%, transparent); transition: transform .1s; }
.q:active { transform: scale(.97); }
.q-ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--sky-soft); color: var(--sky); }
.q:nth-child(1) .q-ic { background: var(--gold-soft); color: var(--gold-ink); }
.q:nth-child(3) .q-ic, .q:nth-child(4) .q-ic { background: var(--leaf-soft); color: var(--leaf); }
.alerts { display: grid; gap: 8px; }
.alert-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; text-align: left; width: 100%; border: 1px solid transparent; }
.alert-row .al-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--surface); }
.alert-row .row-main b { white-space: normal; }
.k-warn { background: var(--warn-soft); } .k-warn .al-ic { color: var(--warn); }
.k-danger { background: var(--danger-soft); } .k-danger .al-ic { color: var(--danger); }
.k-info { background: var(--sky-soft); } .k-info .al-ic { color: var(--sky); }
.k-leaf { background: var(--leaf-soft); } .k-leaf .al-ic { color: var(--leaf); }
.meet-card { display: flex; align-items: center; gap: 14px; padding: 14px; }
.meet-date { width: 54px; flex-shrink: 0; border-radius: 14px; overflow: hidden; text-align: center; background: var(--surface-2); border: 1px solid var(--line); display: grid; }
.meet-date b { font: 800 22px/1.2 var(--f-display); padding-top: 4px; }
.meet-date span { font-size: 11.5px; font-weight: 700; background: var(--danger); color: #fff; padding: 1px 0; }
.meet-date.sm { width: 46px; }
.meet-date.sm b { font-size: 18px; }
.chart-card { padding: 14px 14px 8px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.card-head h3 { font-size: 16px; }
.legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-e { background: var(--track); } .lg-c { background: var(--leaf); margin-left: 6px; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.ch-val { font: 600 10.5px var(--f-body); fill: var(--muted); }
.ch-lbl { font: 600 11px var(--f-body); fill: var(--muted); }
.ch-lbl.cur { fill: var(--gold-ink); }
.cta-card { padding: 4px; }

/* ═════ MEMBERS / PROFILE ═════ */
.limit-bar { padding: 12px 14px; display: grid; gap: 8px; }
.lb-top { display: flex; justify-content: space-between; font-size: 13.5px; }
.lb-top span { color: var(--muted); }
.bar { height: 8px; border-radius: 6px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--leaf), color-mix(in srgb, var(--leaf) 60%, var(--gold))); transition: width .5s ease; }
.bar i.full { background: var(--warn); }
.bar.thin { height: 4px; margin-top: 6px; }
.mem-sav { display: grid; text-align: right; }
.mem-sav small { color: var(--muted); font-size: 11px; }
.mem-sav b { font: 700 15px/1.2 var(--f-display); }
.profile { display: grid; justify-items: center; text-align: center; gap: 4px; }
.profile h1 { font-size: 26px; margin-top: 8px; }
.profile p { color: var(--muted); font-size: 14px; }
.profile-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { display: grid; gap: 1px; padding: 12px 14px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.stat > small { color: var(--muted); }
.stat b { font: 700 20px/1.25 var(--f-display); }
.stat b.danger { color: var(--danger); }
.danger-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 6px; }

/* passbook — बँक पासबुकसारखी रेषा */
.passbook { overflow: hidden; }
.pb-scroll { overflow-x: auto; }
.passbook table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 480px; }
.passbook th { position: sticky; top: 0; background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: 12px; text-align: left; padding: 9px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.passbook td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.passbook td small { display: block; color: var(--muted); font-size: 11px; }
.passbook tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--sky-soft) 35%, transparent); }
.passbook tr[data-a] { cursor: pointer; }
.passbook .num { text-align: right; white-space: nowrap; }
.passbook tr.done td { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--leaf) 60%, transparent); }
.passbook tfoot td { font-weight: 700; background: var(--surface-2); border-top: 2px solid var(--line); }
.pb-open td { color: var(--muted); font-style: italic; }
.rep-table td:first-child { white-space: nowrap; font-weight: 600; }

/* ═════ COLLECT ═════ */
.month-nav { display: flex; align-items: center; justify-content: space-between; padding: 8px; text-align: center; }
.month-nav div { display: grid; }
.month-nav b { font: 700 18px/1.2 var(--f-display); }
.month-nav small { color: var(--muted); }
.collect-sum { display: flex; align-items: center; gap: 16px; padding: 14px 16px; }
.collect-sum .big { font: 800 28px/1.1 var(--f-display); }
.col-row { padding: 6px 10px 6px 4px; gap: 8px; }
.row-tap { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 6px 8px; border-radius: 12px; text-align: left; }
.col-row.paid .row-main small { color: var(--leaf); font-weight: 600; }
.pay-btn { min-width: 86px; min-height: 42px; padding: 0 12px; border-radius: 12px; font: 700 15px/1 var(--f-display); color: var(--gold-ink); background: var(--gold-soft); border: 1.5px dashed color-mix(in srgb, var(--gold) 70%, transparent); }
.pay-btn:active { transform: scale(.96); }
.tick { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--leaf); box-shadow: 0 4px 12px color-mix(in srgb, var(--leaf) 35%, transparent); animation: pop .3s ease; }
@keyframes pop { from { transform: scale(.6); } }

/* ═════ LOANS ═════ */
.loan-right { display: grid; justify-items: end; gap: 2px; text-align: right; }
.loan-right b { font: 700 15px/1.2 var(--f-display); }
.loan-right small { color: var(--muted); font-size: 11px; }
.loan-hero { padding: 6px 14px 14px; display: grid; gap: 10px; }
.loan-who { display: flex; align-items: center; gap: 12px; padding: 8px 0; text-align: left; border-bottom: 1px solid var(--line); }
.loan-out small { color: var(--muted); }
.loan-out b { display: block; font: 800 32px/1.1 var(--f-display); }
.loan-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; }
.loan-meta b { font-family: var(--f-display); }
.loan-meta.muted { font-size: 12.5px; }
.note { display: flex; gap: 6px; align-items: center; font-size: 13.5px; font-weight: 600; padding: 8px 10px; border-radius: 10px; }
.note.danger { background: var(--danger-soft); }
.next-due { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; background: var(--gold-soft); border-color: transparent; flex-wrap: wrap; }
.next-due > div { display: grid; }
.next-due b { font: 800 26px/1.15 var(--f-display); }
.next-due small { color: var(--gold-ink); }
.done-card { display: grid; justify-items: center; gap: 4px; padding: 18px; color: var(--leaf); background: var(--leaf-soft); border-color: transparent; }

/* ═════ LEDGER / REPORTS ═════ */
.filters { display: grid; }
.sum3 { display: grid; grid-template-columns: repeat(3, 1fr); padding: 12px 6px; text-align: center; }
.sum3 div { display: grid; }
.sum3 div + div { border-left: 1px solid var(--line); }
.sum3 small { color: var(--muted); }
.sum3 b { font: 700 16px/1.3 var(--f-display); }
.day-group { display: grid; gap: 6px; }
.day-group h4 { font: 600 12.5px var(--f-body); color: var(--muted); padding-left: 4px; }
.cash-card { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px; background: var(--sky-soft); border-color: transparent; }
.cash-card b { font: 800 20px/1.1 var(--f-display); color: var(--sky); white-space: nowrap; }
.info-line { display: flex; gap: 8px; align-items: center; padding: 12px 14px; font-size: 14px; color: var(--muted); }
.info-line b { color: var(--text); }
.seg-wide { margin-bottom: -2px; }
.statement { padding: 14px; display: grid; gap: 8px; }
.statement h3 { font-size: 16px; text-align: center; border-bottom: 2px solid var(--text); padding-bottom: 8px; letter-spacing: .3px; }
.st-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 420px) { .st-cols { grid-template-columns: 1fr; } }
.st-cols h4 { font: 700 13px var(--f-body); margin-bottom: 4px; }
.st-line { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; font-size: 13.5px; border-bottom: 1px dotted var(--line); }
.st-line b { font-family: var(--f-display); white-space: nowrap; }
.st-line.tot { border-bottom: 0; border-top: 1.5px solid var(--line); font-weight: 700; }
.st-line.open, .st-line.close { background: var(--surface-2); padding: 8px 10px; border-radius: 10px; border: 0; font-weight: 600; }
.st-line.close { background: var(--sky-soft); }
.st-line.close b { color: var(--sky); font-size: 17px; }
.st-foot { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 12.5px; color: var(--muted); padding-top: 4px; }
.st-foot b { color: var(--text); font-family: var(--f-display); text-align: right; }

/* ═════ MORE ═════ */
.gat-card { display: flex; align-items: center; gap: 12px; padding: 14px; }
.gat-card img { width: 56px; height: 56px; flex-shrink: 0; }
.gat-card .row-main b { white-space: normal; font-family: var(--f-display); font-size: 17px; }
.plan { padding: 14px; display: grid; gap: 4px; background: linear-gradient(135deg, var(--sky-soft), var(--gold-soft)); border-color: transparent; }
.plan-badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; color: #fff; background: var(--grad-btn); }
.plan small { color: var(--muted); }
.menu-h { font: 600 13px var(--f-body); color: var(--muted); padding: 8px 4px 0; letter-spacing: .3px; }
.menu-h.danger { color: var(--danger); }
.menu { min-height: 58px; }
.faq { display: grid; gap: 8px; margin-bottom: 16px; }
.faq details { border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); padding: 0 14px; }
.faq summary { padding: 13px 0; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--sky); }
.faq details[open] summary::after { content: "−"; }
.faq p { padding-bottom: 14px; color: var(--muted); font-size: 14.5px; }
.support { padding: 14px; display: grid; gap: 8px; }
.support p { color: var(--muted); font-size: 14px; }
.errlog { max-height: 260px; overflow: auto; font-size: 11.5px; background: var(--surface-2); padding: 10px; border-radius: 10px; white-space: pre-wrap; word-break: break-word; margin: 10px 0; }

.confetti { position: fixed; inset: 0; z-index: 95; pointer-events: none; }
.print-area { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ═════ PRINT (PDF अहवाल) ═════ */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  body { background: #fff !important; color: #000 !important; font-size: 11.5pt; }
  #app, #screen, #splash, .toast, .ov, .tabbar, .hdr { display: none !important; }
  .print-area { display: block !important; color: #000; }
  .pr-head { display: flex; gap: 14px; align-items: center; border-bottom: 2.5px double #000; padding-bottom: 8px; margin-bottom: 12px; }
  .pr-head img { width: 64px; height: 64px; }
  .pr-head h1 { font-size: 20pt; } .pr-head h2 { font-size: 13pt; margin-top: 4px; } .pr-head p { font-size: 10pt; }
  .print-area h3 { font-size: 12.5pt; margin: 14px 0 6px; }
  .print-area table { width: 100%; border-collapse: collapse; font-size: 10pt; }
  .print-area th, .print-area td { border: 1px solid #555; padding: 4px 6px; text-align: left; }
  .print-area th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-area .num { text-align: right; }
  .pr-st tr.tot td { font-weight: 700; border-top: 2px solid #000; }
  .pr-mem td:last-child { width: 22mm; }
  .pr-note { font-size: 10pt; margin-top: 6px; }
  .pr-meet { font-size: 10pt; margin-bottom: 4px; }
  .pr-sign { display: flex; justify-content: space-between; margin-top: 46px; text-align: center; font-size: 10.5pt; }
  .pr-sign div { width: 30%; border-top: 1px solid #000; padding-top: 4px; }
  .pr-foot { margin-top: 18px; font-size: 8.5pt; color: #444; text-align: center; }
}

/* ═════ जुना हिशोब (opening) ═════ */
.op-intro { padding: 14px; display: grid; gap: 10px; }
.op-intro p { font-size: 14.5px; }
.op-step { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.op-num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad-btn); font: 800 16px/1 var(--f-display); margin-top: 2px; }
.op-body { display: grid; gap: 10px; min-width: 0; }
.op-body h3 { font-size: 17px; margin-top: 4px; }
.pad-14 { padding: 14px; }
.op-table-card { padding: 6px 0 12px; overflow: hidden; }
.op-table { display: grid; }
.op-tr { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.op-th { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface-2); }
.op-name { font-weight: 600; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.op-new .op-name { display: grid; gap: 4px; }
.op-new input, .op-new select { width: 100%; min-height: 38px; border: 1.5px dashed var(--line); border-radius: 10px; padding: 6px 8px; background: var(--surface); font-size: 14px; }
.money-in.sm { border-radius: 10px; }
.money-in.sm span { padding-left: 8px; font-size: 13px; }
.money-in.sm input { min-height: 40px; padding: 6px 6px 6px 3px; font-size: 15px; width: 100%; min-width: 0; background: transparent; }
.money-in.bad, input.bad { border-color: var(--danger) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent); }
.op-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 12px 0; }
.op-foot small { color: var(--muted); flex: 1 1 180px; }
.note { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; padding: 10px 12px; border-radius: 12px; background: var(--sky-soft); }
.note.ok { background: var(--leaf-soft); color: var(--text); }
.note.ok .ic { color: var(--leaf); }
.note.warn { background: var(--warn-soft); }
.note.warn .ic { color: var(--warn); }
.note .ic { margin-top: 2px; }
.old-check { padding: 12px; border-radius: 14px; border: 1.5px dashed var(--line); background: var(--surface); }
.old-check small { color: var(--muted); }

/* ═════ PDF हिशोब ═════ */
.pdf-prev { display: grid; gap: 12px; margin-bottom: 14px; }
.pdf-prev img { width: 100%; border-radius: 8px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.sheet-wide { max-width: 640px; }
.pdf-list .row { min-height: 56px; padding: 8px 4px; gap: 8px; }
.pdf-list .icon-btn { width: 40px; height: 40px; }
.sent-tick { display: none; width: 26px; height: 26px; border-radius: 50%; place-items: center; background: var(--leaf); color: #fff; flex-shrink: 0; }
.pdf-list .row.sent .sent-tick { display: grid; }

/* ═════ गट नोंदणी ═════ */
.reg-box { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; }
.reg-box > b { display: flex; align-items: center; gap: 6px; font-size: 14px; margin-top: 4px; }
.reg-box > b .ic { color: var(--sky); }
.reg-box p { color: var(--muted); }

/* अटी — गट तयार करण्याच्या शेवटच्या पायरीवर */
.terms-box { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--sky-soft); font-size: 14px; }
.terms-box .ic { color: var(--sky); margin-top: 1px; }
.terms-box a { font-weight: 700; }
