/* Shagun by Cele-Brat — bahi-khata inspired design */
:root {
  --sindoor: #B3122E;
  --sindoor-dark: #8E0D24;
  --bahi: #5E0B1C;
  --haldi: #F2B705;
  --haldi-soft: #FFF1C2;
  --ink: #1F1A2E;
  --ink-soft: #4B4560;
  --muted: #7B7590;
  --paper: #FEFDFB;
  --rule: #D6DDEE;
  --margin: #E6A0AC;
  --ok: #1E7A4C;
  --warn: #B35A00;
  --line: #ECE8F2;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 26px;
  --display: 'Rozha One', Georgia, serif;
  --body: 'Hind', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Kalam', 'Comic Sans MS', cursive;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: var(--sindoor); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--haldi); outline-offset: 2px; border-radius: 4px; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- shared bits ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; border-radius: 999px; padding: 12px 22px; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform .15s ease, background .2s ease; min-height: 46px; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--sindoor); color: #fff; }
.btn-primary:hover { background: var(--sindoor-dark); }
.btn-haldi { background: var(--haldi); color: var(--bahi); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn-light { background: #fff; color: var(--bahi); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; min-height: 36px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: inherit; }
.brand-mark { font-family: var(--display); font-size: 28px; color: var(--sindoor); line-height: 1; }
.brand-by { font-size: 13px; color: var(--muted); }

/* ---------- landing ---------- */
.thread { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--sindoor); z-index: 60; }
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 12px var(--gutter); background: rgba(254,253,251,.9); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-color: var(--line); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a:not(.btn) { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--sindoor); }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

.hero { position: relative; overflow: hidden; padding: clamp(40px, 8vw, 96px) var(--gutter) clamp(56px, 8vw, 110px); display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; max-width: 1240px; margin: 0 auto; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 7vw, 86px); line-height: 1.02; letter-spacing: -.01em; margin: 0 0 20px; color: var(--bahi); }
.hero p.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); max-width: 34ch; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.float-lifafa { position: absolute; width: 74px; height: 50px; border-radius: 6px; background: var(--sindoor); box-shadow: 0 10px 24px rgba(94,11,28,.18); pointer-events: none; will-change: transform; }
.float-lifafa::before { content: ''; position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 50% 58%); background: var(--sindoor-dark); border-radius: 6px 6px 0 0; }
.float-lifafa::after { content: ''; position: absolute; left: 50%; top: 52%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--haldi); }
.fl1 { top: 9%; left: 46%; transform: rotate(-12deg); }
.fl2 { bottom: 7%; left: 49%; transform: rotate(9deg); width: 58px; height: 40px; }
@media (max-width: 900px) { .fl1, .fl2 { display: none; } .fl3 { top: auto; bottom: 46%; right: 4%; } }
.fl3 { top: 18%; right: 3%; transform: rotate(14deg); width: 52px; height: 36px; opacity: .9; }

/* the ledger — the memorable element */
.bahi { position: relative; background: #fff; border-radius: var(--radius-m); border: 1px solid var(--line); box-shadow: 0 30px 60px -28px rgba(94,11,28,.35); overflow: hidden; }
.bahi-head { background: var(--bahi); color: #fff; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; }
.bahi-head strong { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .01em; }
.bahi-head span { color: var(--haldi); font-size: 14px; }
.bahi-page { position: relative; padding: 10px 18px 18px 58px; background-image: repeating-linear-gradient(to bottom, transparent 0 43px, var(--rule) 43px 44px); background-position: 0 6px; min-height: 330px; }
.bahi-page::before { content: ''; position: absolute; top: 0; bottom: 0; left: 44px; width: 2px; background: var(--margin); }
.bahi-row { display: grid; grid-template-columns: 1fr auto; align-items: end; height: 44px; font-family: var(--hand); font-size: 21px; color: var(--ink); opacity: 0; transform: translateX(-6px); }
.bahi-row small { font-family: var(--body); font-size: 13px; color: var(--muted); margin-left: 8px; }
.bahi-row b { font-weight: 700; color: var(--sindoor); }
.bahi-row.out b { color: var(--ink-soft); }
.bahi-row.write { animation: write .55s ease forwards; }
@keyframes write { to { opacity: 1; transform: none; } }
.bahi-total { display: flex; justify-content: space-between; padding: 12px 20px; border-top: 2px solid var(--bahi); font-weight: 600; background: var(--haldi-soft); color: var(--bahi); }

.marquee { background: var(--bahi); color: #fff; overflow: hidden; padding: 16px 0; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 40px; animation: slide 38s linear infinite; font-family: var(--display); font-size: 24px; }
.marquee-track span::after { content: '✦'; color: var(--haldi); margin-left: 40px; font-size: 14px; vertical-align: middle; }
@keyframes slide { to { transform: translateX(-50%); } }

.section { padding: clamp(64px, 9vw, 120px) var(--gutter); max-width: 1180px; margin: 0 auto; }
.section h2 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5vw, 56px); line-height: 1.06; margin: 0 0 16px; color: var(--bahi); max-width: 18ch; }
.section .sub { color: var(--ink-soft); max-width: 56ch; font-size: 18px; margin: 0 0 40px; }

/* sticky story */
.story { display: grid; grid-template-columns: 1fr 380px; gap: 60px; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } .story-phone-wrap { display: none; } }
.story-steps { display: flex; flex-direction: column; }
.story-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; border-left: 3px solid var(--line); padding-left: 28px; transition: border-color .35s; }
@media (max-width: 900px) { .story-step { min-height: auto; padding: 26px 0 26px 22px; } }
.story-step.active { border-color: var(--sindoor); }
.story-step h3 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 10px; color: var(--bahi); }
.story-step p { margin: 0 0 14px; color: var(--ink-soft); max-width: 46ch; }
.story-step ul { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.story-step li { margin: 4px 0; }
.story-phone-wrap { position: sticky; top: 90px; height: calc(100vh - 120px); display: flex; align-items: center; }
.phone { width: 330px; height: 640px; max-height: 100%; border-radius: 44px; background: var(--ink); padding: 12px; box-shadow: 0 40px 80px -30px rgba(31,26,46,.55); }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 34px; background: #fff; overflow: hidden; }
.phone-scene { position: absolute; inset: 0; padding: 26px 18px; opacity: 0; transform: translateY(16px); transition: opacity .45s ease, transform .45s ease; }
.phone-scene.on { opacity: 1; transform: none; }
.ps-title { font-family: var(--display); font-size: 24px; color: var(--bahi); margin: 0 0 12px; }
.ps-chip { display: inline-block; background: var(--haldi-soft); color: var(--bahi); border-radius: 999px; padding: 3px 12px; font-size: 13px; margin: 0 6px 6px 0; }
.ps-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ps-row b { color: var(--sindoor); }
.ps-field { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; font-size: 15px; color: var(--ink-soft); }
.ps-field.big { font-size: 28px; font-weight: 700; color: var(--ink); }
.ps-btn { background: var(--sindoor); color: #fff; border-radius: 999px; text-align: center; padding: 12px; font-weight: 600; margin-top: 8px; }
.ps-bal { background: var(--bahi); color: #fff; border-radius: 16px; padding: 14px; margin: 10px 0 14px; }
.ps-bal span { display: block; color: var(--haldi); font-size: 13px; }
.ps-check { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ps-check i { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--muted); flex: none; }
.ps-check.done i { background: var(--ok); border-color: var(--ok); }

/* feature ledger list */
.feat-ledger { border-top: 2px solid var(--bahi); }
.feat { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 700px) { .feat { grid-template-columns: 1fr; gap: 4px; } }
.feat h3 { margin: 0; font-size: 19px; color: var(--bahi); }
.feat p { margin: 0; color: var(--ink-soft); }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare > div { padding: 32px; }
.compare .old { background: #F6F3EE; }
.compare .new { background: var(--bahi); color: #fff; }
.compare h3 { font-family: var(--display); font-weight: 400; font-size: 28px; margin: 0 0 14px; }
.compare .new h3 { color: var(--haldi); }
.compare ul { margin: 0; padding-left: 20px; }
.compare li { margin: 8px 0; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--haldi); color: var(--bahi); font-family: var(--display); font-size: 26px; margin-bottom: 14px; }
.steps h3 { margin: 0 0 6px; font-size: 20px; color: var(--bahi); }
.steps p { margin: 0; color: var(--ink-soft); }

.privacy { background: var(--ink); color: #fff; border-radius: var(--radius-l); padding: clamp(32px, 6vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .privacy { grid-template-columns: 1fr; } }
.privacy h2 { color: #fff; }
.privacy p { color: #CFCBE0; }
.privacy ul { margin: 0; padding: 0; list-style: none; }
.privacy li { padding: 12px 0 12px 34px; border-bottom: 1px solid rgba(255,255,255,.12); position: relative; }
.privacy li::before { content: ''; position: absolute; left: 0; top: 16px; width: 18px; height: 18px; border-radius: 50%; background: var(--haldi); box-shadow: inset 0 0 0 5px var(--ink); }

.faq details { border-bottom: 1px solid var(--rule); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; color: var(--bahi); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--sindoor); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); max-width: 70ch; }

.final { background: var(--sindoor); color: #fff; text-align: left; border-radius: var(--radius-l); padding: clamp(40px, 7vw, 80px); position: relative; overflow: hidden; }
.final h2 { color: #fff; max-width: 16ch; }
.final p { color: #FFE3E8; max-width: 44ch; margin: 0 0 26px; }
.foot { padding: 34px var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 14px; max-width: 1180px; margin: 0 auto; }
.foot a { color: var(--muted); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .bahi-row { opacity: 1 !important; transform: none !important; animation: none !important; }
  .marquee-track { animation: none; }
  .float-lifafa { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- auth / setup ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }
.auth-side { background: var(--bahi); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h2 { font-family: var(--display); font-weight: 400; font-size: 46px; line-height: 1.05; margin: 0; max-width: 12ch; }
.auth-side p { color: #F3C9D1; }
.auth-main { padding: 32px var(--gutter); display: flex; flex-direction: column; justify-content: center; max-width: 520px; width: 100%; margin: 0 auto; }
.auth-main h1 { font-family: var(--display); font-weight: 400; font-size: 38px; margin: 18px 0 6px; color: var(--bahi); }
.auth-main .hint { color: var(--muted); margin: 0 0 24px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin: 22px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.g-btn-slot { min-height: 46px; display: flex; justify-content: center; }
.otp { letter-spacing: 12px; font-size: 28px !important; text-align: center; font-weight: 700; }

/* ---------- forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field .req { color: var(--sindoor); }
.input, select.input, textarea.input { width: 100%; border: 1.5px solid #DAD5E4; border-radius: 12px; padding: 12px 14px; background: #fff; min-height: 48px; font-size: 16px; transition: border-color .2s; }
.input:focus { border-color: var(--sindoor); outline: none; box-shadow: 0 0 0 3px rgba(179,18,46,.12); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .row2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.check input { width: 20px; height: 20px; accent-color: var(--sindoor); flex: none; margin-top: 2px; }
.seg { display: flex; background: #F1EEF5; border-radius: 999px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 9px 10px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink-soft); }
.seg button.on { background: #fff; color: var(--sindoor); box-shadow: 0 1px 3px rgba(31,26,46,.15); }
.error { color: var(--sindoor); font-size: 14px; margin: 8px 0 0; min-height: 1em; }

/* ---------- app shell ---------- */
.app { min-height: 100vh; padding-bottom: 90px; background: #F7F6FA; }
.topbar { position: sticky; top: 0; z-index: 30; background: var(--bahi); color: #fff; padding: 12px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar .brand-mark { color: #fff; font-size: 24px; }
.topbar .fam-switch { background: rgba(255,255,255,.12); border: 0; color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 14px; max-width: 54vw; }
.topbar .fam-switch option { color: var(--ink); }
.offline-pill { background: var(--haldi); color: var(--bahi); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.page { max-width: 760px; margin: 0 auto; padding: 18px var(--gutter); }
.page h1 { font-family: var(--display); font-weight: 400; font-size: 32px; margin: 6px 0 4px; color: var(--bahi); }
.page .pagesub { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.panel { background: #fff; border-radius: var(--radius-m); padding: 18px; margin-bottom: 14px; border: 1px solid var(--line); }
.panel h2 { font-size: 18px; margin: 0 0 12px; color: var(--bahi); }
.hero-card { background: var(--bahi); color: #fff; border-radius: var(--radius-l); padding: 22px; margin-bottom: 14px; position: relative; overflow: hidden; }
.hero-card .ev-type { color: var(--haldi); font-size: 14px; font-weight: 600; }
.hero-card h2 { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 4px 0; color: #fff; }
.hero-card p { margin: 0; color: #F3C9D1; font-size: 15px; }
.hero-card .count { position: absolute; right: 20px; top: 20px; text-align: right; }
.hero-card .count b { font-family: var(--display); font-size: 40px; font-weight: 400; display: block; line-height: 1; color: var(--haldi); }
.hero-card .count span { font-size: 12px; color: #F3C9D1; }
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.quick a { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px; text-decoration: none; color: var(--ink); }
.quick a strong { font-size: 16px; }
.quick a span { font-size: 13px; color: var(--muted); }
.quick a.primary { background: var(--sindoor); color: #fff; border-color: var(--sindoor); }
.quick a.primary span { color: #FFD5DC; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 14px; }
.stat span { font-size: 13px; color: var(--muted); display: block; }
.stat b { font-size: 24px; color: var(--bahi); }

.list { list-style: none; margin: 0; padding: 0; }
.item { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item .av { width: 40px; height: 40px; border-radius: 50%; background: var(--haldi-soft); color: var(--bahi); display: grid; place-items: center; font-weight: 700; flex: none; }
.item .av.out { background: #ECEAF3; color: var(--ink-soft); }
.item .meta { flex: 1; min-width: 0; }
.item .meta strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .meta span { font-size: 13px; color: var(--muted); }
.item .amt { font-weight: 700; color: var(--sindoor); white-space: nowrap; }
.item .amt.out { color: var(--ink-soft); }
.item a.meta { text-decoration: none; color: inherit; }
.tag { display: inline-block; font-size: 12px; border-radius: 999px; padding: 2px 9px; background: #F1EEF5; color: var(--ink-soft); margin-right: 4px; }
.tag.pending { background: var(--haldi-soft); color: var(--warn); }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.empty strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .input { flex: 1; min-width: 140px; min-height: 42px; padding: 8px 12px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 13px; font-size: 14px; cursor: pointer; }
.chip.on { background: var(--bahi); border-color: var(--bahi); color: #fff; }

.amount-input { font-size: 36px !important; font-weight: 700; text-align: left; min-height: 64px !important; }
.quick-amts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.quick-amts button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; cursor: pointer; font-weight: 600; }
.suggest { position: relative; }
.suggest-list { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-top: 4px; box-shadow: 0 14px 30px -12px rgba(31,26,46,.3); overflow: hidden; }
.suggest-list button { display: block; width: 100%; text-align: left; border: 0; background: #fff; padding: 11px 14px; cursor: pointer; border-bottom: 1px solid var(--line); }
.suggest-list button:hover { background: #F7F6FA; }
.photo-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.photo-prev { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 12px; padding: 4px 0; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.on { color: var(--sindoor); }
.tabbar a.add { color: #fff; }
.tabbar a.add .plus { width: 52px; height: 52px; margin-top: -24px; border-radius: 50%; background: var(--sindoor); display: grid; place-items: center; box-shadow: 0 8px 20px -6px rgba(179,18,46,.6); border: 4px solid #fff; }
.tabbar a.add span { color: var(--sindoor); }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; opacity: 0; transition: .3s; z-index: 90; max-width: 90vw; font-size: 15px; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.modal-bg { position: fixed; inset: 0; background: rgba(31,26,46,.5); z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.modal { background: #fff; width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; border-radius: 22px 22px 0 0; padding: 22px; }
@media (min-width: 600px) { .modal-bg { align-items: center; } .modal { border-radius: 22px; } }
.modal h2 { margin: 0 0 14px; color: var(--bahi); }
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.status-select { border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 10px; background: #fff; font-size: 13px; }
.status-given { color: var(--ok); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { color: var(--muted); font-weight: 600; font-size: 13px; }
.tbl-wrap { overflow-x: auto; }
.bar { height: 10px; border-radius: 999px; background: #F1EEF5; overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; background: var(--sindoor); border-radius: 999px; }
.bar.out i { background: var(--ink-soft); }
.small { font-size: 13px; color: var(--muted); }
.spacer { height: 12px; }
@media print {
  .topbar, .tabbar, .toolbar, .chips, .no-print { display: none !important; }
  .app { background: #fff; padding: 0; }
  .panel { border: 0; }
}

a.chip { text-decoration: none; color: var(--ink); }
a.chip.on { color: #fff; }
.page.wide { max-width: 1200px; }

.top-search { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.12); }

/* guided tour */
.tour { position: fixed; inset: 0; z-index: 100; }
.tour-hole { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(31,26,46,.62); transition: all .3s ease; pointer-events: none; outline: 3px solid var(--haldi); }
.tour:has(.tour-hole[style*="display: none"]) { background: rgba(31,26,46,.62); }
.tour-card { position: fixed; background: #fff; border-radius: 18px; padding: 18px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.5); transition: top .3s ease, left .3s ease; outline: none; }
.tour-card.center { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); }
.tour-card h3 { font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--bahi); margin: 4px 0 6px; }
.tour-card p { margin: 0 0 14px; color: var(--ink-soft); font-size: 16px; }
.tour-count { font-size: 13px; color: var(--muted); }
.tour-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tour-actions span { display: flex; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .tour-hole, .tour-card { transition: none; } }
