/* © 2026 Praevanta (www.praevanta.in). All rights reserved. */
:root {
  --bg: #120906; --bg2: #1b0e08; --card: #21120b; --card2: #2a170d;
  --line: rgba(242, 184, 75, .2); --line2: rgba(242, 184, 75, .38);
  --gold: #f2b84b; --gold2: #ffdc8f; --saffron: #e8751a; --kumkum: #c0302a;
  --cream: #f6e7c8; --muted: #bba58a; --in: #7fd492; --out: #ff9a76;
  --r: 18px; --safe-b: env(safe-area-inset-bottom, 0px);
  --serif: 'Marcellus', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ml: 'Noto Sans Malayalam', 'Manrope', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font: 15px/1.45 var(--sans); color: var(--cream); min-height: 100vh;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(232, 117, 26, .22), transparent 60%),
    radial-gradient(80% 40% at 100% 100%, rgba(192, 48, 42, .12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
body.locked { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
svg { display: block; }
#app { max-width: 540px; margin: 0 auto; min-height: 100vh; }
.ml { font-family: var(--ml); color: var(--gold); letter-spacing: .01em; }

/* splash */
.splash { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; }
.splash-lamp { width: 18px; height: 30px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 50% 70%, #fff6c2, #ffb02e 50%, #e2461b); box-shadow: 0 0 40px 12px rgba(255, 170, 60, .35); animation: flick 1.4s ease-in-out infinite; }

/* artwork */
.hero-art { width: 100%; height: 100%; }
.flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flick 1.6s ease-in-out infinite; }
.glow { animation: glow 3.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.twinkle { animation: tw 3s ease-in-out infinite; }
@keyframes flick { 0%, 100% { transform: scale(1, 1) rotate(-1deg); } 40% { transform: scale(.94, 1.06) rotate(1.5deg); } 70% { transform: scale(1.04, .96) rotate(-1.5deg); } }
@keyframes glow { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes tw { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .flame, .glow, .twinkle, .splash-lamp { animation: none; } }
.mini-lamp { width: 22px; height: 44px; }

.kolam {
  height: 12px; margin: 18px auto; width: 70%; opacity: .9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12'%3E%3Cpath d='M0 6L6 0L12 6L6 12Z M12 6L18 0L24 6L18 12Z' fill='none' stroke='%23f2b84b' stroke-opacity='.6'/%3E%3Ccircle cx='12' cy='6' r='1.6' fill='%23e8751a'/%3E%3C/svg%3E") repeat-x center;
}

/* login */
.login { min-height: 100vh; display: flex; flex-direction: column; }
.login-art { height: 46vh; min-height: 260px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.login-art.short { height: 30vh; min-height: 180px; }
.login-card { padding: 4px 24px calc(30px + var(--safe-b)); text-align: center; margin-top: -40px; position: relative; }
.login-card .ml.big { font-size: 26px; font-weight: 700; margin: 0; text-shadow: 0 0 24px rgba(242, 184, 75, .35); }
.ml-tr { margin: 2px 0 14px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.login-card h1 { font: 400 32px/1.15 var(--serif); margin: 0 0 6px; color: var(--gold2); }
.login-card .sub { color: var(--muted); margin: 0 0 4px; }
.fine { font-size: 12.5px; color: var(--muted); margin: 16px auto 0; max-width: 34ch; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 14px; font-weight: 700; width: 100%; text-decoration: none; transition: transform .12s, filter .12s; }
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.big { min-height: 54px; font-size: 16px; margin-top: 8px; }
.btn.primary { color: #2a1203; background: linear-gradient(180deg, #ffd36b, #e8931f); box-shadow: 0 6px 20px rgba(232, 117, 26, .35), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn.primary:disabled { filter: grayscale(.5) brightness(.8); }
.btn.google { background: #fff; color: #222; min-height: 54px; font-size: 16px; max-width: 340px; box-shadow: 0 6px 24px rgba(0, 0, 0, .4); }
.btn.ghost { border: 1px solid var(--line2); color: var(--cream); background: rgba(255, 255, 255, .03); }
.btn.ghost.danger, .danger { color: #ff8f80; border-color: rgba(255, 120, 100, .35); }
.btn.danger-solid { background: #b3261e; color: #fff; }
.confirm p { color: var(--muted); margin: -4px 0 16px; }
.btn.wa { background: #1f9e57; color: #fff; margin-top: 12px; }
.btn.scan { color: #2a1203; background: linear-gradient(180deg, #ffd36b, #e8931f); }
.btn.ghost.wide { grid-column: 1 / -1; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 700; font-size: 14px; padding: 6px 0; }
.link svg { width: 16px; height: 16px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); font-size: 22px; flex: none; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:active { background: rgba(255, 255, 255, .06); }

/* shell */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; background: rgba(18, 9, 6, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand b { font: 400 19px/1 var(--serif); color: var(--gold2); display: block; }
.brand .ml { font-size: 11.5px; display: block; margin-top: 3px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--gold); overflow: hidden; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--gold2); background: var(--card2); }
.avatar img, .av img { width: 100%; height: 100%; object-fit: cover; }
.demo-bar { margin: 10px 16px 0; padding: 8px 12px; border-radius: 12px; font-size: 12.5px; background: rgba(232, 117, 26, .14); border: 1px dashed rgba(232, 117, 26, .55); color: #ffc58a; }
.view { padding: 14px 16px calc(110px + var(--safe-b)); }
.tabbar { position: fixed; z-index: 25; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 540px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + var(--safe-b)); background: rgba(22, 11, 7, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 5px; border-radius: 12px; color: var(--muted); font-size: 11px; font-weight: 600; }
.tabbar svg { width: 23px; height: 23px; }
.tabbar button.on { color: var(--gold2); background: rgba(242, 184, 75, .1); }
.fab { position: fixed; z-index: 24; right: max(16px, calc(50% - 254px)); bottom: calc(82px + var(--safe-b)); display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 20px 0 16px; border-radius: 27px; font-weight: 800; color: #2a1203; background: linear-gradient(180deg, #ffd36b, #e8931f); box-shadow: 0 10px 28px rgba(232, 117, 26, .45); }
.fab svg { width: 22px; height: 22px; stroke-width: 2.4; }

/* home */
.hero { position: relative; height: 270px; background: #160b26; border-radius: 22px; overflow: hidden; border: 1px solid var(--line2); box-shadow: 0 12px 40px rgba(0, 0, 0, .45); }
.hero .hero-art { position: absolute; left: 0; right: 0; bottom: 0; top: 78px; width: 100%; height: calc(100% - 78px); }
.hero-txt { position: absolute; left: 0; right: 0; top: 0; padding: 14px 18px 0; z-index: 1; }
.hero-txt h2 { font: 400 25px/1.1 var(--serif); margin: 8px 0 2px; color: #fff3d6; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.hero-txt p { margin: 0; font-size: 13.5px; color: #f3dcb8; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.hero-txt .small { font-size: 12.5px; margin-top: 4px; opacity: .9; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: rgba(255, 255, 255, .08); color: var(--cream); border: 1px solid var(--line); }
.pill.gold { background: rgba(242, 184, 75, .18); color: var(--gold2); border-color: rgba(242, 184, 75, .5); }

.balance-card { margin-top: 14px; padding: 18px; border-radius: 22px; text-align: center; background: linear-gradient(160deg, #3a1b0b, #22100a 60%); border: 1px solid var(--line2); position: relative; overflow: hidden; }
.balance-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 0%, rgba(255, 190, 90, .16), transparent 70%); pointer-events: none; }
.balance-card > span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.balance-card > b { display: block; font: 400 40px/1.15 var(--serif); color: var(--gold2); margin: 4px 0 12px; }
.balance-card > b.neg { color: var(--out); }
.bal-split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); padding-top: 12px; }
.bal-split div + div { border-left: 1px solid var(--line); }
.bal-split small { display: block; color: var(--muted); font-size: 12px; }
.bal-split strong { font-size: 18px; }
.inc { color: var(--in); } .outc { color: var(--out); } .neg b { color: var(--out); }
.target { margin-top: 14px; }
.target small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar.thin { height: 6px; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--saffron), var(--gold2)); transition: width .4s; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.stat { padding: 13px 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.stat span { font-size: 12px; color: var(--muted); }
.stat b { display: block; font-size: 20px; margin-top: 2px; color: var(--cream); }
.stat small { font-size: 11.5px; color: var(--muted); }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: var(--r); background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line2); font-size: 12.5px; font-weight: 700; color: var(--cream); text-align: center; }
.qa svg { width: 26px; height: 26px; color: var(--gold); }
.qa:active { transform: scale(.97); }

.card { margin-top: 14px; padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.card h3, .card-h h3 { font: 400 18px/1.2 var(--serif); margin: 0 0 12px; color: var(--gold2); }
.card-h { display: flex; align-items: center; justify-content: space-between; }
.card-h .link { margin-top: -10px; }
.hbar { margin-bottom: 11px; }
.hbar-l { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-bottom: 5px; }
.hbar-l span { color: var(--cream); }
.lb { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.lb:last-child { border: 0; }
.rank { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 800; background: rgba(242, 184, 75, .15); color: var(--gold); }
.lb-n { flex: 1; }
.lb-n small { display: block; color: var(--muted); font-size: 12px; }
.empty { color: var(--muted); font-size: 14px; margin: 4px 0; text-align: center; padding: 10px 0; }
.hint { color: var(--muted); font-size: 12.5px; margin: 8px 0 0; }
.blessing { text-align: center; margin: 26px 0 6px; font-size: 14px; opacity: .8; }

/* rows */
.list { margin-top: 6px; }
.row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 4px; text-align: left; border-bottom: 1px solid var(--line); }
.card .row:last-child { border-bottom: 0; }
.row:active { background: rgba(255, 255, 255, .03); }
.av { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #2a1203; background: linear-gradient(160deg, var(--gold2), var(--saffron)); overflow: hidden; }
.av.out { background: rgba(255, 154, 118, .14); color: var(--out); border: 1px solid rgba(255, 154, 118, .35); }
.av.out svg { width: 20px; height: 20px; }
.av.sm { width: 34px; height: 34px; font-size: 12px; }
.av.big { width: 58px; height: 58px; font-size: 20px; }
.row-main { flex: 1; min-width: 0; }
.row-main b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-amt { text-align: right; font-weight: 800; white-space: nowrap; }
.row-amt small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); }

.page-head { display: flex; align-items: baseline; justify-content: space-between; margin: 4px 2px 10px; }
.page-head h2 { font: 400 26px/1 var(--serif); margin: 0; color: var(--gold2); }
.page-head .ml { margin: 0; font-size: 14px; }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.strip div { padding: 11px 12px; }
.strip div + div { border-left: 1px solid var(--line); }
.strip small { display: block; font-size: 11.5px; color: var(--muted); }
.strip b { font-size: 16px; }
.search { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 0 14px; height: 48px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; height: 100%; font-size: 15px; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: right; font-weight: 600; color: var(--muted); font-size: 12px; padding: 4px 6px 8px; }
.tbl th:first-child, .tbl td:first-child { text-align: left; padding-left: 0; }
.tbl td { text-align: right; padding: 9px 6px; border-top: 1px solid var(--line); white-space: nowrap; }
.tbl td:first-child { white-space: normal; }
.tbl td small { display: block; color: var(--muted); font-size: 11.5px; }
.tbl tr.tot td { font-weight: 800; color: var(--gold2); border-top: 1px solid var(--line2); }
.tbl.two td:last-child { width: 1%; }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }

/* more */
.profile { display: flex; align-items: center; gap: 14px; }
.profile b { display: block; font-size: 17px; }
.profile small { display: block; color: var(--muted); margin-bottom: 6px; word-break: break-all; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.kv i { color: var(--muted); }
.mem { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.mem:last-of-type { border-bottom: 0; }
.view > .btn { margin-top: 18px; }

/* sheet */
#sheet-root { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
#sheet-root:empty { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .25s; }
.sheet { position: absolute; left: 50%; bottom: 0; width: 100%; max-width: 540px; max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 10px 18px calc(24px + var(--safe-b)); border-radius: 24px 24px 0 0; background: linear-gradient(180deg, #2a160c, #1a0d07 40%); border: 1px solid var(--line2); border-bottom: 0; transform: translate(-50%, 100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
#sheet-root.open { pointer-events: auto; }
#sheet-root.open .sheet-backdrop { opacity: 1; }
#sheet-root.open .sheet { transform: translate(-50%, 0); }
.sheet-handle { width: 42px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .2); margin: 0 auto 8px; }
.sheet-x { position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; border-radius: 50%; font-size: 26px; line-height: 1; color: var(--muted); }
.sheet h3 { font: 400 22px/1.2 var(--serif); color: var(--gold2); margin: 6px 0 14px; }

/* forms */
.fld { display: block; margin-bottom: 12px; }
.fld > span, .lbl { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.fld input, .fld select, .fld textarea, .in {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 13px; font-size: 16px;
  background: var(--bg2); border: 1px solid var(--line2); outline: 0; transition: border-color .15s, box-shadow .15s;
}
.fld textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.fld select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f2b84b' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .in:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 184, 75, .18); }
input[type=date], input[type=time] { color-scheme: dark; }
.fld.hide { display: none; }
#amt-in { font-size: 24px; font-weight: 800; color: var(--gold2); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two.btns { margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 14px; }
.chip { padding: 8px 13px; border-radius: 99px; border: 1px solid var(--line2); background: rgba(242, 184, 75, .07); font-weight: 700; font-size: 13.5px; color: var(--gold2); }
.chip:active { background: rgba(242, 184, 75, .25); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 5px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line2); margin-bottom: 12px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; text-align: center; padding: 10px 0; border-radius: 10px; font-weight: 700; color: var(--muted); transition: background .15s; }
.seg input:checked + span { background: linear-gradient(180deg, #ffd36b, #e8931f); color: #2a1203; }
.seg input:focus-visible + span { outline: 2px solid var(--gold); }
.note { margin: -4px 0 12px; padding: 9px 12px; border-radius: 12px; font-size: 13px; background: rgba(232, 117, 26, .12); border: 1px solid rgba(232, 117, 26, .4); color: #ffc58a; }

.scan-box { padding: 14px; border-radius: 16px; margin-bottom: 14px; background: rgba(242, 184, 75, .06); border: 1px dashed var(--line2); }
.scan-box .btn { min-height: 46px; }
.scan-prog span { font-size: 13px; color: var(--gold2); display: block; margin: 12px 0 6px; }
.ok, .warn { font-size: 13px; margin: 12px 0 0; padding: 9px 12px; border-radius: 12px; }
.ok { background: rgba(127, 212, 146, .1); border: 1px solid rgba(127, 212, 146, .35); color: #bfeec9; }
.warn { background: rgba(255, 140, 110, .1); border: 1px solid rgba(255, 140, 110, .35); color: #ffc2b0; }
.diff { margin-top: 8px; font-size: 13px; color: var(--muted); }
.diff span { display: block; }
.item-row { display: grid; grid-template-columns: 1fr 96px 38px; gap: 8px; margin-bottom: 8px; align-items: center; }
.item-row .in { min-height: 46px; padding: 10px 12px; font-size: 15px; }
.item-row .amt { text-align: right; font-weight: 700; }
.add-item { margin: 0 0 8px; }
.total-line { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 13px; margin-bottom: 14px; background: rgba(242, 184, 75, .1); border: 1px solid var(--line2); }
.total-line b { font-size: 20px; color: var(--gold2); }

/* receipt */
.saved { text-align: center; color: var(--in); font-weight: 700; margin: 4px 0 10px; }
.receipt { border-radius: 18px; overflow: hidden; background: #fbf1dc; color: #3a2210; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); position: relative; }
.receipt::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: radial-gradient(circle at 6px -2px, transparent 6px, #c8861e 6.5px) repeat-x; background-size: 12px 8px; opacity: .25; }
.rc-top { text-align: center; padding: 14px 14px 12px; background: linear-gradient(180deg, #6b1d12, #3c0f0a); color: #ffe7b8; }
.rc-top .mini-lamp { margin: 0 auto 2px; width: 20px; height: 40px; }
.rc-top .ml { margin: 0; font-size: 15px; font-weight: 700; color: #ffd36b; }
.rc-top h4 { font: 400 19px/1.2 var(--serif); margin: 4px 0 0; }
.rc-top small { opacity: .8; }
.rc-body { padding: 12px 16px 6px; }
.rc-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed rgba(58, 34, 16, .2); font-size: 14px; }
.rc-line span { color: #8a6a48; }
.rc-line b { text-align: right; }
.rc-amt { text-align: center; font: 400 34px/1.1 var(--serif); color: #8a2a12; padding: 12px 0 10px; border-bottom: 1px dashed rgba(58, 34, 16, .2); }
.rc-amt small { display: block; font: 600 12px/1.3 var(--sans); color: #8a6a48; margin-top: 4px; }
.rc-foot { text-align: center; font-size: 12.5px; color: #8a6a48; margin: 6px 0 18px; padding: 0 14px; }

.exp-detail h3 { margin-top: 10px; }
.big-amt { font: 400 34px/1 var(--serif); margin: 0 0 14px; }
.exp-detail .kv { margin-top: 14px; }

/* toast */
#toast { position: fixed; z-index: 60; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 11px 18px; border-radius: 99px; background: #fbf1dc; color: #3a2210; font-weight: 700; font-size: 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, .45); transition: .25s; max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 560px) { .view { padding-left: 4px; padding-right: 4px; } }

/* front page: poster in a temple arch */
.login.front { position: relative; overflow: hidden; padding-top: calc(22px + env(safe-area-inset-top, 0px)); }
.front-bg { position: absolute; left: -60px; right: -60px; top: -60px; height: 900px; z-index: -1; background: url(poster-blur.jpg) center top / cover; filter: blur(28px) saturate(1.3); opacity: .32; -webkit-mask-image: linear-gradient(#000 15%, transparent 55%); mask-image: linear-gradient(#000 15%, transparent 55%); }
.arch-wrap { position: relative; width: min(78vw, 330px); margin: 0 auto; }
.arch { position: relative; aspect-ratio: 3 / 4; border-radius: 50% 50% 22px 22px / 34% 34% 22px 22px; overflow: hidden; padding: 3px; background: linear-gradient(160deg, #ffe7a3, #b8771a 40%, #ffd36b 70%, #8a5310); box-shadow: 0 0 0 1px rgba(255, 220, 140, .25), 0 0 60px 6px rgba(255, 170, 60, .28), 0 24px 50px rgba(0, 0, 0, .6); }
.arch img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 38% 22%; border-radius: inherit; animation: darshan 22s ease-in-out infinite alternate; -webkit-mask-image: linear-gradient(#000 72%, rgba(0,0,0,.35)); mask-image: linear-gradient(#000 72%, rgba(0,0,0,.35)); }
.arch::after { content: ''; position: absolute; inset: 3px; border-radius: inherit; pointer-events: none; background: radial-gradient(70% 45% at 45% 30%, transparent 40%, rgba(18, 9, 6, .55)), linear-gradient(transparent 70%, rgba(18, 9, 6, .85)); }
@keyframes darshan { from { transform: scale(1.02); } to { transform: scale(1.1) translateY(1.5%); } }
.side-lamp { position: absolute; bottom: -6px; width: 34px; filter: drop-shadow(0 0 12px rgba(255, 170, 60, .6)); }
.side-lamp .mini-lamp { width: 34px; height: 68px; }
.side-lamp.l { left: -42px; } .side-lamp.r { right: -42px; }
.login.front .login-card { margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .arch img { animation: none; } }

.samarpanam { margin: 4px 18px 0; padding: 22px 20px 20px; text-align: center; border-radius: 22px; position: relative; background: linear-gradient(180deg, rgba(58, 27, 11, .75), rgba(26, 13, 7, .75)); border: 1px solid var(--line2); }
.samarpanam::before { content: ''; position: absolute; inset: 6px; border-radius: 17px; border: 1px dashed rgba(242, 184, 75, .25); pointer-events: none; }
.sm-orn { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 6px; }
.sm-orn i { height: 1px; width: 60px; background: linear-gradient(90deg, transparent, var(--gold)); }
.sm-orn i:last-child { transform: scaleX(-1); }
.sm-head { font-size: 22px; font-weight: 700; margin: 0; }
.sm-sub { margin: 0 0 14px; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.samarpanam p:not(.ml):not(.sm-sub) { font: 400 16.5px/1.65 var(--serif); color: #f0dcb6; margin: 0 0 12px; }
.samarpanam .sm-sign { margin-top: 16px !important; font-family: var(--sans) !important; font-size: 13px !important; color: var(--muted) !important; }
.sm-sign b { display: block; font: 400 26px/1.2 var(--serif); color: var(--gold2); margin-top: 2px; }
.sm-sign span { display: block; font-size: 12px; }
.sm-chant { margin: 10px 0 0; font-size: 14px; }

.credit { text-align: center; font-size: 11.5px; color: var(--muted); padding: 18px 16px calc(22px + var(--safe-b)); line-height: 1.6; opacity: .85; }
.credit a { color: var(--gold); text-decoration: none; font-weight: 700; }
.view .credit { padding-bottom: 0; }

/* Praevanta watermark on every screen */
#wm { position: fixed; z-index: 80; inset: -60%; pointer-events: none; opacity: .055; transform: rotate(-30deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='440' height='150'%3E%3Ctext x='0' y='45' font-family='Manrope,Arial,sans-serif' font-size='15' font-weight='700' fill='%23f2b84b'%3E%C2%A9 Praevanta %C2%B7 www.praevanta.in%3C/text%3E%3Ctext x='220' y='120' font-family='Manrope,Arial,sans-serif' font-size='15' font-weight='700' fill='%23f2b84b'%3E%C2%A9 Praevanta %C2%B7 www.praevanta.in%3C/text%3E%3Ctext x='-220' y='120' font-family='Manrope,Arial,sans-serif' font-size='15' font-weight='700' fill='%23f2b84b'%3E%C2%A9 Praevanta %C2%B7 www.praevanta.in%3C/text%3E%3C/svg%3E"); }
@media print { #wm { opacity: .12; } }
