/* ==========================================================================
   TempleZone – PWA styles
   Palette: Bhagwa (saffron), Kumkum (red), Maroon, Haldi (turmeric gold),
            Chandan (sandalwood background), Tulsi (green for success)
   ========================================================================== */
:root {
  --saffron: #FF7A00;
  --saffron-d: #E65100;
  --saffron-l: #FFF1E0;
  --kumkum: #D32F2F;
  --kumkum-d: #B71C1C;
  --maroon: #7A1C1C;
  --maroon-d: #4A0E10;
  --haldi: #FFB300;
  --gold: #C9962B;
  --gold-l: #F8E7BF;
  --tulsi: #2E7D32;
  --tulsi-l: #E8F5E9;
  --bg: #F8F2EA;
  --card: #FFFFFF;
  --ink: #2A1A14;
  --ink2: #5E4B42;
  --ink3: #9A8A80;
  --line: #EFE4D6;
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --sh-1: 0 1px 2px rgba(74, 14, 16, .05), 0 6px 18px rgba(74, 14, 16, .06);
  --sh-2: 0 14px 40px rgba(74, 14, 16, .16);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  --font-d: 'Marcellus', 'Poppins', Georgia, serif;
  --deva: 'Nirmala UI', 'Noto Sans Devanagari', 'Kohinoor Devanagari', 'Mangal', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.45; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
@media (min-width: 500px) {
  body { background: radial-gradient(1200px 700px at 50% -10%, #9B2C1F 0%, #5A1013 45%, #2C0708 100%) fixed; }
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; flex: none; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
:focus-visible { outline: 2.5px solid var(--saffron); outline-offset: 2px; }
.deva { font-family: var(--deva); }
.muted { color: var(--ink2); font-size: 14px; }
.pad { padding: 16px; }

#app {
  max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  background: var(--bg); position: relative; overflow-x: clip;
}
@media (min-width: 500px) { #app { box-shadow: 0 30px 80px rgba(0, 0, 0, .45); } }

.page { animation: pageIn .32s cubic-bezier(.2, .7, .2, 1) both; padding-bottom: 32px; }
.page.has-tabbar { padding-bottom: calc(118px + var(--safe-b)); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Animated splash ---------- */
#splash {
  position: fixed; inset: 0; z-index: 500; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(120% 80% at 50% 30%, #C2410C 0%, #8E1B1B 48%, #3F0A0D 100%); color: #fff; overflow: hidden;
  transition: opacity .55s ease, visibility .55s, transform .55s ease;
}
#splash.gone { opacity: 0; visibility: hidden; transform: scale(1.08); }
.sp-mandala {
  position: absolute; width: 150vmax; height: 150vmax; max-width: 900px; max-height: 900px; left: 50%; top: 42%;
  color: #FFD27A; opacity: 0; transform: translate(-50%, -50%) scale(.6); animation: spIn 1.2s ease-out forwards, spin 40s linear infinite;
}
@keyframes spIn { to { opacity: .14; transform: translate(-50%, -50%) scale(1); } }
.sp-center { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.sp-rings i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 210, 122, .55); opacity: 0; animation: ripple 2.4s ease-out infinite; }
.sp-rings i:nth-child(2) { animation-delay: .8s; }
.sp-rings i:nth-child(3) { animation-delay: 1.6s; }
@keyframes ripple { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(2.4); opacity: 0; } }
.splash-mark {
  width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; font-family: var(--deva); font-size: 60px; position: relative;
  background: radial-gradient(circle at 30% 25%, #FFC46B, #FF7A00 55%, #B93A0B);
  box-shadow: 0 0 0 6px rgba(255, 210, 122, .22), 0 20px 40px rgba(0, 0, 0, .35);
  animation: markIn .9s cubic-bezier(.2, 1.4, .4, 1) both, glow 1.8s ease-in-out .9s infinite alternate;
}
@keyframes markIn { from { transform: scale(.3) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes glow { to { box-shadow: 0 0 0 14px rgba(255, 210, 122, .1), 0 0 60px rgba(255, 179, 0, .55), 0 20px 40px rgba(0, 0, 0, .35); } }
.splash-name { font-family: var(--font-d); font-size: 34px; margin-top: 26px; letter-spacing: .04em; animation: nameIn 1s cubic-bezier(.2, .7, .2, 1) .35s both; }
@keyframes nameIn { from { opacity: 0; letter-spacing: .5em; filter: blur(6px); } to { opacity: 1; letter-spacing: .04em; filter: none; } }
.splash-tag { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: #FFE0A3; margin-top: 8px; animation: fadeUp .8s ease .75s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.sp-diyas { position: absolute; bottom: calc(70px + var(--safe-b)); display: flex; align-items: flex-end; gap: 18px; animation: fadeUp .8s ease .9s both; }
.sp-diyas .fl { transform-origin: 24px 26px; animation: flicker 1.1s ease-in-out infinite alternate; }
.sp-diyas svg:nth-child(2) .fl { animation-delay: .3s; }
.sp-diyas svg:nth-child(3) .fl { animation-delay: .6s; }
@keyframes flicker { 0% { transform: scale(1, 1); opacity: 1; } 50% { transform: scale(.92, 1.08) skewX(2deg); opacity: .9; } 100% { transform: scale(1.04, .94) skewX(-2deg); opacity: 1; } }
.sp-bar { position: absolute; bottom: calc(40px + var(--safe-b)); width: 120px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.sp-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #FFB300, #FFE0A3); border-radius: inherit; animation: load 1.8s ease-in-out .2s forwards; }
@keyframes load { to { width: 100%; } }

/* ---------- Onboarding overview ---------- */
.page.bare { padding-bottom: 0; }
.onb {
  position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; color: #fff; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 70% at 50% 0%, #C2410C 0%, #8E1B1B 45%, #3F0A0D 100%);
}
.onb-top { display: flex; justify-content: space-between; align-items: center; padding: calc(14px + var(--safe-t)) 18px 0; }
.onb-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-d); font-size: 19px; letter-spacing: .02em; }
.onb-brand i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--deva); font-size: 18px; background: radial-gradient(circle at 30% 25%, #FFC46B, #FF7A00 55%, #B93A0B); box-shadow: 0 0 0 3px rgba(255, 210, 122, .25); }
.onb-skip { font-size: 14px; font-weight: 500; color: #FFE0A3; padding: 8px 6px; transition: opacity .3s; }
.onb-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.onb-track::-webkit-scrollbar { display: none; }
.onb-slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 26px 0; text-align: center; }
.onb-stage { position: relative; width: 272px; height: 272px; display: grid; place-items: center; margin-bottom: 22px; }
.onb-stage .mandala { position: absolute; inset: 0; width: 100%; height: 100%; color: #FFD27A; opacity: .22; animation: spin 60s linear infinite; }
.onb-glow { position: absolute; width: 210px; height: 210px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 100, .55), rgba(255, 140, 0, .14) 55%, transparent 70%); animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .75; } }
.onb-disc { position: absolute; width: 156px; height: 156px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFF8EC, #FFE4B5 60%, #FFC870); box-shadow: 0 0 0 8px rgba(255, 255, 255, .08), 0 0 0 20px rgba(255, 255, 255, .04), 0 24px 50px rgba(0, 0, 0, .35); }
.onb-hero { position: relative; animation: float 4s ease-in-out infinite; filter: drop-shadow(0 14px 16px rgba(122, 28, 28, .3)); }
@keyframes float { 50% { transform: translateY(-10px); } }
.onb-orbit { position: absolute; inset: 0; animation: spin 22s linear infinite; }
.onb-orbit > span { position: absolute; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .97); display: grid; place-items: center; box-shadow: 0 8px 18px rgba(0, 0, 0, .28); animation: spin 22s linear infinite reverse; }
.onb-orbit > span:nth-child(1) { left: 108px; top: -6px; }
.onb-orbit > span:nth-child(2) { left: 8px; top: 166px; }
.onb-orbit > span:nth-child(3) { left: 208px; top: 166px; }
.onb-spark { position: absolute; bottom: 70px; width: 6px; height: 6px; border-radius: 50%; background: #FFD27A; box-shadow: 0 0 8px #FFB300; opacity: 0; animation: rise 3.4s ease-in infinite; }
@keyframes rise { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-170px) scale(1.1); } }
.onb-step { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #FFE0A3; font-weight: 600; }
.onb-slide h2 { font-family: var(--font-d); font-weight: 400; font-size: 30px; line-height: 1.15; margin-top: 8px; }
.onb-slide p { font-size: 14.5px; opacity: .86; margin-top: 10px; max-width: 330px; }
.onb-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 16px; max-width: 340px; }
.onb-pills span { font-size: 12px; padding: 5px 11px; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.onb-slide .onb-stage, .onb-slide .onb-step, .onb-slide h2, .onb-slide p, .onb-slide .onb-pills { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.onb-slide .onb-stage { transform: scale(.85); }
.onb-slide.active .onb-stage, .onb-slide.active .onb-step, .onb-slide.active h2, .onb-slide.active p, .onb-slide.active .onb-pills { opacity: 1; transform: none; }
.onb-slide.active .onb-step { transition-delay: .1s; }
.onb-slide.active h2 { transition-delay: .18s; }
.onb-slide.active p { transition-delay: .26s; }
.onb-slide.active .onb-pills { transition-delay: .34s; }
.onb-foot { padding: 14px 22px calc(20px + var(--safe-b)); }
.onb-dots { display: flex; justify-content: center; gap: 7px; margin-bottom: 18px; }
.onb-dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .3); transition: all .35s; }
.onb-dots i.on { width: 26px; background: #FFD27A; }
.onb-foot .link-btn { transition: opacity .3s; }
@media (max-height: 700px) {
  .onb-stage { width: 220px; height: 220px; margin-bottom: 12px; }
  .onb-stage .onb-disc { width: 128px; height: 128px; }
  .onb-orbit > span { width: 46px; height: 46px; }
  .onb-orbit > span:nth-child(1) { left: 87px; top: -6px; }
  .onb-orbit > span:nth-child(2) { left: 4px; top: 134px; }
  .onb-orbit > span:nth-child(3) { left: 170px; top: 134px; }
  .onb-slide h2 { font-size: 26px; }
  .onb-pills { display: none; }
}

/* small additions */
button.row { width: 100%; text-align: left; }
.h { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.link { color: var(--saffron-d); font-weight: 600; }
.link-btn.dark { color: var(--saffron-d); }
.install-card .btn.sm { background: #FFB300; color: #3F0A0D; }

/* ---------- Home header ---------- */
.home-head {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(10px + var(--safe-t)) 14px 10px 16px; background: rgba(248, 242, 234, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.temple-switch { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo-dot {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-family: var(--deva); font-size: 23px; line-height: 1;
  background: radial-gradient(circle at 30% 25%, #FFC46B, #FF7A00 55%, #C2410C);
  box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--gold-l), 0 4px 12px rgba(230, 81, 0, .3);
}
.ts-text { display: flex; flex-direction: column; min-width: 0; }
.ts-text b { display: flex; align-items: center; gap: 2px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.ts-text b span { overflow: hidden; text-overflow: ellipsis; }
.ts-text small { font-size: 12px; color: var(--ink3); display: flex; align-items: center; gap: 3px; }
.head-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--ink2); position: relative; transition: background .2s; }
.icon-btn:active { background: rgba(122, 28, 28, .08); }
.badge-dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--kumkum); box-shadow: 0 0 0 2px var(--bg); }
.avatar {
  width: 44px; height: 44px; margin-left: 4px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 19px; color: #fff;
  background: linear-gradient(150deg, #FFA000, #FF6D00); border: 3px solid #FFCF5C; box-shadow: 0 3px 10px rgba(255, 109, 0, .3);
}

/* ---------- Hero carousel ---------- */
.hero { padding: 4px 16px 0; }
.slides { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-xl); }
.slides::-webkit-scrollbar, .hrow::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; position: relative; border-radius: var(--r-xl); overflow: hidden;
  min-height: 196px; padding: 20px 20px 18px; color: #fff; display: flex; flex-direction: column; justify-content: center; isolation: isolate;
}
.slide .mandala { position: absolute; right: -60px; top: -60px; width: 250px; height: 250px; opacity: .17; z-index: -1; color: #FFE0A3; }
.slide .glow { position: absolute; right: 6px; bottom: 4px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 120, .55), transparent 65%); z-index: -1; }
.slide .art { position: absolute; right: 12px; bottom: 10px; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .3)); }
.eyebrow {
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: #FFE0A3;
  display: inline-flex; align-items: center; gap: 6px;
}
.eyebrow::before { content: ""; width: 14px; height: 1.5px; background: currentColor; border-radius: 2px; }
.slide h2 { font-family: var(--font-d); font-weight: 400; font-size: 25px; line-height: 1.12; margin: 6px 0; max-width: 64%; }
.slide p { font-size: 12.5px; opacity: .92; max-width: 58%; margin-bottom: 14px; }
.slide .cta {
  align-self: flex-start; background: #1C0A0A; color: #fff; font-size: 13px; font-weight: 600; padding: 8px 18px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.g-maroon { background: linear-gradient(120deg, #5A0F14 0%, #9E1B1B 48%, #E2541B 100%); }
.g-saffron { background: linear-gradient(120deg, #A33300 0%, #E86A00 50%, #FFB300 100%); }
.g-gold { background: linear-gradient(120deg, #6B3E05 0%, #B7791F 50%, #F2C14E 100%); }
.g-temple { background: linear-gradient(120deg, #3B0A0E 0%, #7A1C1C 50%, #C2410C 100%); }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots i { width: 6px; height: 6px; border-radius: 99px; background: #E5D3BF; transition: all .3s; }
.dots i.on { width: 20px; background: var(--saffron); }

/* ---------- Quick tabs (Darshan / Sevas / Donate / Prasadam) ---------- */
.quick { margin: 16px 16px 0; position: relative; }
.qtabs { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; z-index: 2; }
.qtab {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 2px 12px; border-radius: 24px 24px 0 0;
  font-size: 14.5px; color: var(--ink2); position: relative; text-align: center; transition: color .2s;
}
.qtab svg { transition: transform .25s; }
.qtab.on { background: #fff; color: var(--ink); font-weight: 600; }
.qtab.on svg { transform: translateY(-2px) scale(1.06); }
.qtab.on::before, .qtab.on::after { content: ""; position: absolute; bottom: 0; width: 24px; height: 24px; pointer-events: none; }
.qtab.on::before { left: -24px; background: radial-gradient(circle at 0 0, transparent 23.5px, #fff 24px); }
.qtab.on::after { right: -24px; background: radial-gradient(circle at 100% 0, transparent 23.5px, #fff 24px); }
.qtab:first-child.on::before, .qtab:last-child.on::after { display: none; }
.qpanel {
  background: #fff; border-radius: 26px; position: relative; z-index: 1; padding: 20px 6px 20px;
  display: grid; grid-template-columns: repeat(4, 1fr); box-shadow: 0 10px 22px rgba(74, 14, 16, .07);
}
.quick[data-pos="first"] .qpanel { border-top-left-radius: 0; }
.quick[data-pos="last"] .qpanel { border-top-right-radius: 0; }
.qitem { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); text-align: center; position: relative; padding: 0 2px; animation: pop .3s both; }
.qitem:nth-child(2) { animation-delay: .03s; } .qitem:nth-child(3) { animation-delay: .06s; } .qitem:nth-child(4) { animation-delay: .09s; }
@keyframes pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.qi-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--saffron-l); color: var(--saffron-d); position: relative; }
.qi-ic.art { background: linear-gradient(160deg, #FFF6EA, #FFE7C7); box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--line); }
.qi-ic .plus { position: absolute; right: 0; bottom: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--tulsi); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 2.5px #fff; }
.qi-ic .st-dot { position: absolute; right: 3px; top: 3px; width: 11px; height: 11px; border-radius: 50%; background: #E0D6CC; box-shadow: 0 0 0 2.5px #fff; }
.qi-ic .live-dot { position: absolute; right: 3px; top: 3px; width: 11px; height: 11px; border-radius: 50%; background: #E53935; box-shadow: 0 0 0 2.5px #fff; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.qitem.first .lbl, .qitem.all .lbl { font-weight: 600; }
.qitem.all::before { content: ""; position: absolute; left: 0; bottom: 2px; height: 18px; border-left: 1.5px solid var(--line); }
.qi-ic.all { background: var(--saffron-l); color: var(--maroon); }
.qstrip {
  margin-top: -30px; padding: 42px 16px 14px 14px; border-radius: 0 0 26px 26px; display: flex; align-items: center; gap: 12px;
  background: linear-gradient(90deg, #FFE3B8 0%, #FFF4DC 60%, #FFE9C7 100%); color: var(--maroon);
}
.qstrip > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.qstrip small { font-size: 11.5px; color: #A0522D; font-weight: 500; }
.qstrip b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Sections & cards ---------- */
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.sec { margin: 22px 16px 0; }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 12px; }
.sec-h h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.sec-h .more { font-size: 14px; font-weight: 600; color: var(--saffron-d); white-space: nowrap; }
.edit-btn { width: 30px; height: 30px; border-radius: 50%; background: var(--saffron-l); color: var(--saffron-d); display: grid; place-items: center; }
.hrow { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px 16px 8px; scroll-padding: 0 16px; scroll-snap-type: x proximity; }
.hrow > * { scroll-snap-align: start; }

.actions-card { padding: 16px 0 10px; }
.actions-card .sec-h { margin: 0 16px 14px 18px; }
.actions-card .hrow { gap: 14px; padding: 0 16px 6px 16px; }
.act { flex: 0 0 76px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); text-align: center; line-height: 1.25; }
.tile { width: 74px; height: 74px; border-radius: 20px; border: 1.5px solid var(--line); display: grid; place-items: center; background: #fff; transition: transform .15s; }
.act:active .tile { transform: scale(.94); }
.tile.t-maroon { background: linear-gradient(150deg, #8E1B1B, #4A0E10); border-color: transparent; }
.tile.t-gold { background: linear-gradient(150deg, #FFD166, #FF9800); border-color: transparent; }
.tile.t-dark { background: #1C0A0A; border: 2px solid #C9962B; }

.promo-row { margin-top: 20px; }
.promo {
  flex: 0 0 78%; max-width: 330px; min-height: 150px; border-radius: 24px; padding: 16px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; isolation: isolate;
}
.promo .mandala { position: absolute; width: 190px; height: 190px; right: -50px; bottom: -60px; opacity: .14; z-index: -1; }
.promo .p-art { position: absolute; right: 12px; bottom: 10px; }
.promo h4 { font-family: var(--font-d); font-weight: 400; font-size: 20px; line-height: 1.15; max-width: 66%; }
.promo small { font-size: 12.5px; opacity: .85; max-width: 62%; display: block; margin-top: 6px; }
.promo .go { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 13px; margin-top: 12px; }
.p-gold { background: linear-gradient(140deg, #FFF4D6, #FFE1A1); color: #6B3E05; }
.p-gold .mandala { color: #B7791F; }
.p-green { background: linear-gradient(140deg, #EEF7E9, #CFE8C2); color: #1B5E20; }
.p-green .mandala { color: #2E7D32; }
.p-maroon { background: linear-gradient(140deg, #7A1C1C, #3B0A0E); color: #fff; }
.p-maroon .mandala { color: #FFD27A; }

.install-card { margin: 18px 16px 0; padding: 14px 14px 14px 16px; display: flex; align-items: center; gap: 12px; background: linear-gradient(120deg, #2A0A0C, #7A1C1C); color: #fff; border-radius: 22px; }
.install-card .ic { width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; color: #FFD27A; flex: none; }
.install-card div { flex: 1; min-width: 0; }
.install-card b { display: block; font-size: 14.5px; }
.install-card small { opacity: .75; font-size: 12px; }
.install-card .x { color: rgba(255, 255, 255, .6); padding: 4px; }

/* status card */
.status-card { padding: 16px; }
.st-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--tulsi-l); color: var(--tulsi); }
.status-pill.closed { background: #FDECEA; color: var(--kumkum-d); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
.st-text { font-size: 14px; font-weight: 500; color: var(--ink2); }
.st-sessions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.st-sessions div { background: var(--bg); border-radius: 14px; padding: 10px 12px; }
.st-sessions small { display: block; font-size: 11.5px; color: var(--ink3); }
.st-sessions b { font-size: 13.5px; font-weight: 600; }
.st-next { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink2); padding-top: 12px; border-top: 1px dashed var(--line); }
.st-next svg { color: var(--saffron-d); }
.st-next b { color: var(--ink); font-weight: 600; }

/* lists */
.list { overflow: hidden; }
.row { display: flex; gap: 12px; padding: 12px 14px; align-items: center; position: relative; }
.row + .row { border-top: 1px solid var(--line); }
.thumb { width: 64px; height: 64px; border-radius: 16px; flex: none; display: grid; place-items: center; overflow: hidden; position: relative; }
.thumb svg { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .2)); }
.row-body { flex: 1; min-width: 0; }
.row-body h4 { font-size: 14.5px; font-weight: 600; line-height: 1.3; margin: 2px 0 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-body p { font-size: 12.5px; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.meta { font-size: 11.5px; color: var(--ink3); display: flex; gap: 6px; align-items: center; }
.cat { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--saffron-d); }
.row .chev { color: var(--ink3); }

/* festivals */
.fest { flex: 0 0 150px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.fest h4 { font-size: 14px; font-weight: 600; line-height: 1.25; }
.fest small { font-size: 12px; color: var(--ink3); }
.dbadge { width: 50px; border-radius: 14px; overflow: hidden; text-align: center; box-shadow: 0 0 0 1px var(--line); flex: none; }
.dbadge .m { display: block; background: var(--kumkum); color: #fff; font-size: 10.5px; font-weight: 600; padding: 2px 0; text-transform: uppercase; letter-spacing: .06em; }
.dbadge .d { display: block; font-size: 21px; font-weight: 700; padding: 2px 0 3px; background: #FFF6EC; color: var(--maroon); }

/* campaigns */
.camp { display: block; padding: 16px; }
.camp + .camp { margin-top: 12px; }
.camp-top { display: flex; align-items: center; gap: 12px; }
.camp-top > div { flex: 1; min-width: 0; }
.camp-top h4 { font-size: 15.5px; font-weight: 600; }
.camp-art { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(160deg, #FFF6EA, #FFE7C7); flex: none; }
.camp p { font-size: 13px; color: var(--ink2); margin-top: 10px; }
.bar { height: 8px; border-radius: 99px; background: #F3E6D6; overflow: hidden; margin-top: 14px; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #FFB300, #FF7A00, #D32F2F); }
.camp-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink3); margin-top: 8px; }
.camp-meta b { color: var(--ink); font-weight: 600; }

.blessing { text-align: center; padding: 34px 20px 8px; color: var(--maroon); }
.blessing svg { margin: 0 auto 6px; }
.blessing p { font-size: 20px; }
.blessing small { display: block; font-size: 12px; color: var(--ink3); margin-top: 2px; }
.blessing .ver { display: block; font-size: 11px; color: #C4B5A8; margin-top: 14px; letter-spacing: .08em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; width: 100%;
  border-radius: 16px; font-weight: 600; font-size: 15px; color: #fff; text-align: center;
  background: linear-gradient(135deg, #FF8A00, #E65100); box-shadow: 0 8px 18px rgba(230, 81, 0, .28); transition: transform .12s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; pointer-events: none; }
.btn.secondary { background: #fff; color: var(--maroon); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.dark { background: linear-gradient(135deg, #8E1B1B, #4A0E10); box-shadow: 0 8px 18px rgba(122, 28, 28, .3); }
.btn.light { background: #fff; color: var(--maroon); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.btn.sm { min-height: 34px; width: auto; padding: 0 14px; border-radius: 12px; font-size: 13px; box-shadow: none; }
.btn-row { display: flex; gap: 10px; margin-top: 16px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Tab bar & FAB ---------- */
.tabbar {
  position: fixed; z-index: 40; left: 50%; bottom: calc(10px + var(--safe-b)); transform: translateX(-50%);
  width: min(456px, calc(100% - 20px)); display: flex; align-items: center; gap: 2px; padding: 7px;
  border-radius: 30px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 10px 30px rgba(74, 14, 16, .16), 0 0 0 1px rgba(122, 28, 28, .05); transition: transform .3s;
}
.tabbar.hidden { transform: translate(-50%, 160%); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 7px; border-radius: 24px; font-size: 12px; color: var(--ink2); transition: all .25s; }
.tabbar a.on { color: var(--kumkum); font-weight: 600; background: #fff; box-shadow: 0 4px 16px rgba(122, 28, 28, .16); flex: 1.2; }
.om-ic { font-family: var(--deva); font-size: 23px; line-height: 24px; height: 24px; }
.fab {
  position: fixed; z-index: 41; right: max(18px, calc(50% - 240px + 18px)); bottom: calc(96px + var(--safe-b));
  width: 60px; height: 60px; border-radius: 50%; color: #fff; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, #EF5350, #D32F2F 60%, #B71C1C);
  box-shadow: 0 10px 24px rgba(211, 47, 47, .45), 0 0 0 4px rgba(255, 255, 255, .7); transition: transform .25s;
}
.fab.hidden { transform: scale(0); }
.fab:active { transform: scale(.92); }

/* ---------- Page headers ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: calc(18px + var(--safe-t)) 18px 8px; }
.page-head h1 { font-family: var(--font-d); font-weight: 400; font-size: 29px; color: var(--maroon); line-height: 1.1; }
.page-head p { color: var(--ink3); font-size: 13px; margin-top: 4px; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: calc(10px + var(--safe-t)) 14px 10px;
  background: rgba(248, 242, 234, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.topbar h1 { font-size: 18px; font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar.on-dark { position: absolute; left: 0; right: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: #fff; }
.back, .top-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--sh-1); color: var(--ink); flex: none; }
.on-dark .back, .on-dark .top-btn { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px 4px; scrollbar-width: none; }
.chip { flex: none; padding: 8px 15px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink2); transition: all .2s; }
.chip.on { background: var(--maroon); color: #fff; border-color: var(--maroon); }

/* ---------- Updates ---------- */
.feature { display: block; margin: 14px 16px 0; overflow: hidden; }
.feature .f-img { height: 170px; position: relative; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.feature .f-img .mandala { position: absolute; width: 260px; height: 260px; opacity: .18; color: #FFE0A3; z-index: -1; }
.feature .f-img svg.art { filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .3)); }
.feature .f-body { padding: 14px 16px 16px; }
.feature h3 { font-size: 18px; font-weight: 600; line-height: 1.3; margin: 4px 0 6px; }
.feature p { font-size: 13.5px; color: var(--ink2); }
.badge-new { position: absolute; left: 14px; top: 14px; background: #fff; color: var(--kumkum); font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 4px 10px; border-radius: 99px; }

.detail-hero { height: 250px; position: relative; display: grid; place-items: center; overflow: hidden; isolation: isolate; border-radius: 0 0 32px 32px; }
.detail-hero .mandala { position: absolute; width: 340px; height: 340px; opacity: .17; color: #FFE0A3; z-index: -1; }
.detail-hero > svg:last-child { margin-top: 30px; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .3)); }
.detail { margin: -34px 16px 0; padding: 20px 18px; position: relative; }
.detail h1 { font-size: 21px; font-weight: 600; line-height: 1.3; margin: 6px 0 8px; }
.detail p { font-size: 14.5px; color: var(--ink2); margin-top: 12px; line-height: 1.65; }
.detail .btn { margin-top: 20px; }
.event-box { display: flex; align-items: center; gap: 12px; padding: 12px; margin-top: 14px; border-radius: 16px; background: var(--saffron-l); }
.event-box div { flex: 1; }
.event-box b { display: block; font-size: 14px; }
.event-box small { font-size: 12.5px; color: var(--ink2); }

/* ---------- Calendar ---------- */
.cal-card { margin: 10px 16px 0; padding: 16px 12px 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 12px; text-align: center; }
.cal-head h3 { font-size: 17px; font-weight: 600; }
.cal-head small { display: block; font-size: 12px; color: var(--saffron-d); font-weight: 500; }
.cal-nav { width: 38px; height: 38px; border-radius: 12px; background: var(--saffron-l); color: var(--saffron-d); display: grid; place-items: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { font-size: 11px; font-weight: 600; color: var(--ink3); text-align: center; padding: 2px 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.cal-wd:first-child { color: var(--kumkum); }
.day { aspect-ratio: 1 / 1.1; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; position: relative; transition: background .15s; }
.day .dn { font-size: 15px; font-weight: 500; line-height: 1; }
.day .tt { font-size: 9px; font-weight: 500; line-height: 1; letter-spacing: .02em; }
.tt.sk { color: #D97706; }
.tt.kr { color: #8D7B6F; }
.day.sun .dn { color: var(--kumkum); }
.day.fest { background: #FFF1E0; }
.day.fest::after { content: ""; position: absolute; top: 5px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--kumkum); }
.day.today { box-shadow: inset 0 0 0 1.8px var(--saffron); }
.day.sel { background: linear-gradient(150deg, #9E1B1B, #5A0F14); color: #fff; box-shadow: 0 6px 14px rgba(122, 28, 28, .3); }
.day.sel .dn, .day.sel .tt { color: #fff; }
.day.sel::after { background: #FFD27A; }
.moon { position: absolute; top: 5px; left: 6px; width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.moon.full { background: #FFC107; box-shadow: 0 0 5px #FFC107; }
.moon.new { background: #3E2723; }
.cal-legend { display: flex; align-items: center; gap: 14px; font-size: 11.5px; color: var(--ink3); padding: 12px 4px 0; flex-wrap: wrap; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .moon { position: static; }
.lg-fest { width: 7px; height: 7px; border-radius: 50%; background: var(--kumkum); display: inline-block; }
.today-btn { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--saffron-d); padding: 5px 12px; border-radius: 99px; background: var(--saffron-l); }

.pj-card { padding: 16px; margin-bottom: 12px; }
.pj-top { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.pj-top small { display: block; font-size: 11.5px; color: var(--ink3); }
.pj-top b { display: block; font-size: 15.5px; font-weight: 600; color: var(--maroon); }
.pj-top span { font-size: 13px; color: var(--ink2); }
.pj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.pj-grid > div { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; background: var(--bg); padding: 10px; border-radius: 14px; }
.pj-grid svg { grid-row: span 2; color: var(--saffron-d); }
.pj-grid small { font-size: 11px; color: var(--ink3); }
.pj-grid b { font-size: 13px; font-weight: 600; }
.pj-grid .warn svg { color: var(--kumkum); }
.ev { display: flex; gap: 12px; align-items: center; padding: 14px; margin-bottom: 10px; }
.ev-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--saffron-l); }
.ev div { flex: 1; min-width: 0; }
.ev b { display: block; font-size: 14.5px; font-weight: 600; }
.ev small { font-size: 12.5px; color: var(--ink2); }
.ev .remind { flex: none; color: var(--saffron-d); width: 38px; height: 38px; border-radius: 12px; background: var(--saffron-l); display: grid; place-items: center; }
.empty-sm { padding: 16px; font-size: 13.5px; color: var(--ink3); text-align: center; }
.disclaimer { font-size: 11.5px; color: var(--ink3); text-align: center; margin: 16px 24px 0; }

/* ---------- Donate ---------- */
.hundi { position: relative; overflow: hidden; padding: 20px; color: #fff; background: linear-gradient(135deg, #5A0F14 0%, #9E1B1B 50%, #E2541B 100%); border-radius: var(--r-xl); isolation: isolate; }
.hundi .mandala { position: absolute; width: 260px; height: 260px; right: -70px; top: -70px; opacity: .16; color: #FFE0A3; z-index: -1; }
.hundi .h-art { position: absolute; right: 14px; top: 16px; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .3)); }
.hundi h2 { font-family: var(--font-d); font-weight: 400; font-size: 26px; margin-top: 6px; }
.hundi p { font-size: 13px; opacity: .85; max-width: 62%; }
.amt-row { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.amt-pill { padding: 9px 14px; border-radius: 99px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-weight: 600; font-size: 13.5px; }
.amt-pill.solid { background: #fff; color: var(--maroon); }
.my-don { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.my-don div { flex: 1; }
.my-don b { display: block; font-size: 15px; }
.my-don small { color: var(--ink3); font-size: 12.5px; }
.trust { display: flex; gap: 12px; padding: 14px 16px; font-size: 12.5px; color: var(--ink2); align-items: center; }
.trust svg { color: var(--tulsi); }

.form-card { padding: 18px 16px; margin-bottom: 12px; }
.fc-title { font-size: 15.5px; font-weight: 600; margin-bottom: 14px; }
.amts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.amt { height: 48px; border-radius: 14px; border: 1.5px solid var(--line); font-weight: 600; font-size: 15px; background: #fff; color: var(--ink); text-align: center; transition: all .15s; }
.amt.on { border-color: var(--saffron); background: var(--saffron-l); color: var(--saffron-d); box-shadow: 0 0 0 3px rgba(255, 122, 0, .12); }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.field > label, .lbl { font-size: 12.5px; font-weight: 500; color: var(--ink2); }
.lbl { display: block; margin: 16px 0 8px; }
.input, select.input {
  height: 50px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; padding: 0 14px; outline: none; width: 100%;
  transition: border-color .2s, box-shadow .2s; font-size: 15px; -webkit-appearance: none; appearance: none;
}
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--ink3) 50%), linear-gradient(135deg, var(--ink3) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.input:focus { border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(255, 122, 0, .12); }
.input.err { border-color: var(--kumkum); }
.prefix-wrap { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.prefix-wrap:focus-within { border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(255, 122, 0, .12); }
.prefix-wrap span { padding: 0 12px; font-weight: 600; color: var(--ink2); border-right: 1px solid var(--line); }
.prefix-wrap input { border: 0; flex: 1; min-width: 0; height: 47px; padding: 0 12px; outline: none; font-size: 16px; background: transparent; }
.check { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--ink2); margin-top: 16px; }
.check input { width: 20px; height: 20px; accent-color: var(--saffron); }
.sticky-cta { position: sticky; bottom: 0; padding: 12px 0 calc(12px + var(--safe-b)); background: linear-gradient(transparent, var(--bg) 30%); text-align: center; }
.sticky-cta small, .demo-note { display: flex; justify-content: center; gap: 6px; align-items: center; font-size: 11.5px; color: var(--ink3); margin-top: 8px; }

/* ---------- Sevas & booking ---------- */
.seva { padding: 14px; margin-bottom: 12px; }
.seva-top { display: flex; gap: 12px; }
.seva-top > div { flex: 1; min-width: 0; }
.seva h4 { font-size: 15.5px; font-weight: 600; margin: 1px 0 4px; }
.seva p { font-size: 13px; color: var(--ink2); }
.seva-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.seva-bottom .meta { font-size: 12.5px; }
.seva-bottom b { font-size: 16px; color: var(--maroon); margin-left: auto; }
.date-chips, .slot-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.slot-chips { flex-wrap: wrap; }
.dchip input, .schip input, .opt input, .pm input { position: absolute; opacity: 0; pointer-events: none; }
.dchip span { display: flex; flex-direction: column; align-items: center; width: 58px; padding: 8px 0; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.dchip small { font-size: 11px; color: var(--ink3); }
.dchip b { font-size: 18px; font-weight: 600; line-height: 1.2; }
.dchip input:checked + span { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.dchip input:checked + span small { color: #FFD9A8; }
.schip span { display: block; padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--line); font-size: 13px; font-weight: 500; cursor: pointer; background: #fff; }
.schip input:checked + span { border-color: var(--saffron); background: var(--saffron-l); color: var(--saffron-d); }
.dchip input:focus-visible + span, .schip input:focus-visible + span, .opt input:focus-visible + span, .pm input:focus-visible ~ .radio { outline: 2.5px solid var(--saffron); outline-offset: 2px; }
.opt { display: block; position: relative; margin-bottom: 8px; cursor: pointer; }
.opt > span { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line); }
.opt > span > span { flex: 1; }
.opt b { display: block; font-size: 14.5px; font-weight: 600; }
.opt small { font-size: 12px; color: var(--ink3); }
.opt em { font-style: normal; font-weight: 700; color: var(--maroon); }
.opt input:checked + span { border-color: var(--saffron); background: var(--saffron-l); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; align-self: flex-start; background: #fff; }
.stepper button { width: 44px; height: 44px; display: grid; place-items: center; color: var(--maroon); }
.stepper input { width: 40px; text-align: center; border: 0; font-weight: 600; font-size: 16px; outline: none; background: transparent; }
.stepper.sm button { width: 34px; height: 34px; }
.stepper.sm input { width: 28px; font-size: 14px; }
.total-line { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 12px; font-size: 14px; color: var(--ink2); }
.total-line b { font-size: 20px; color: var(--maroon); }

.prasad { display: flex; align-items: center; gap: 12px; }
.prasad .row-body h4 { -webkit-line-clamp: 1; }
.prasad .row-body b { font-size: 14px; color: var(--maroon); }

/* ---------- Temple info ---------- */
.t-hero { position: relative; padding: calc(28px + var(--safe-t)) 20px 22px; color: #fff; background: linear-gradient(160deg, #3F0A0D 0%, #7A1C1C 55%, #C2410C 100%); border-radius: 0 0 32px 32px; overflow: hidden; isolation: isolate; }
.t-hero .mandala { position: absolute; width: 340px; height: 340px; right: -110px; top: -90px; opacity: .15; color: #FFD27A; z-index: -1; }
.t-hero .t-art { position: absolute; right: 8px; top: calc(26px + var(--safe-t)); opacity: .95; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .35)); }
.t-hero h1 { font-family: var(--font-d); font-weight: 400; font-size: 27px; line-height: 1.15; margin: 8px 0 6px; max-width: 64%; }
.t-hero .deva { font-size: 16px; color: #FFD27A; }
.t-hero .loc { display: flex; align-items: center; gap: 6px; font-size: 13px; opacity: .85; margin-top: 8px; }
.t-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 22px; }
.t-actions a, .t-actions button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; border-radius: 16px; background: rgba(255, 255, 255, .12); font-size: 12px; color: #fff; text-align: center; }
.deity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.deity { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.deity b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.deity small { font-size: 12px; color: var(--ink3); display: block; }
.timeline { padding: 6px 16px; }
.tl { display: flex; gap: 14px; padding: 10px 0; position: relative; }
.tl time { width: 70px; flex: none; font-size: 13px; font-weight: 600; color: var(--maroon); }
.tl .dot { width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--saffron); background: #fff; flex: none; margin-top: 4px; position: relative; z-index: 1; }
.tl:not(:last-child)::before { content: ""; position: absolute; left: 89px; top: 22px; bottom: -6px; width: 2px; background: #F3E2CC; }
.tl.now .dot { background: var(--saffron); box-shadow: 0 0 0 4px rgba(255, 122, 0, .2); }
.tl.past { opacity: .55; }
.tl b { font-size: 14px; font-weight: 600; display: block; }
.tl small { font-size: 12px; color: var(--ink3); }
.note { font-size: 12.5px; color: var(--ink2); background: #FFF6E5; border: 1px dashed #F3CF8E; padding: 10px 12px; border-radius: 14px; margin-top: 12px; display: flex; gap: 8px; }
.note svg { color: var(--saffron-d); margin-top: 1px; }
.fac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 12px 8px; }
.fac { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 4px; font-size: 12px; color: var(--ink2); text-align: center; }
.fac span { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--saffron-l); color: var(--saffron-d); }
.dress { padding: 14px 16px; display: flex; gap: 12px; }
.dress svg { color: var(--saffron-d); }
.dress ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink2); }
.dress li + li { margin-top: 4px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gal { aspect-ratio: 1; border-radius: 18px; position: relative; display: grid; place-items: center; overflow: hidden; color: #fff; }
.gal span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 11px; font-weight: 500; padding: 14px 8px 7px; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); }
.gallery .gal:first-child { grid-column: span 2; grid-row: span 2; }
.contact-row { display: flex; gap: 12px; align-items: center; padding: 14px 16px; font-size: 13.5px; }
.contact-row + .contact-row { border-top: 1px solid var(--line); }
.contact-row > svg { color: var(--saffron-d); }
.contact-row div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.contact-row small { display: block; font-size: 11.5px; color: var(--ink3); }

/* ---------- Live ---------- */
.player { margin: 0 16px; aspect-ratio: 16 / 9; border-radius: 24px; position: relative; overflow: hidden; display: grid; place-items: center; color: #fff; isolation: isolate; }
.player .mandala { position: absolute; width: 300px; height: 300px; opacity: .15; color: #FFE0A3; z-index: -1; }
.player .live-tag { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; background: #E53935; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; padding: 4px 10px; border-radius: 8px; }
.player .live-tag i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
.player .p-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); font-size: 13px; }
.player .p-info b { display: block; font-size: 15px; }

/* ---------- Profile ---------- */
.p-hero { position: relative; padding: calc(64px + var(--safe-t)) 20px 60px; text-align: center; color: #fff; background: linear-gradient(160deg, #3F0A0D, #7A1C1C 55%, #C2410C); border-radius: 0 0 32px 32px; overflow: hidden; isolation: isolate; }
.p-hero .mandala { position: absolute; width: 360px; height: 360px; left: 50%; top: -120px; transform: translateX(-50%); opacity: .14; color: #FFD27A; z-index: -1; }
.p-avatar { width: 88px; height: 88px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 36px; font-weight: 700; background: linear-gradient(150deg, #FFA000, #FF6D00); border: 4px solid #FFCF5C; box-shadow: 0 12px 26px rgba(0, 0, 0, .3); }
.p-hero h2 { font-size: 21px; font-weight: 600; }
.p-hero small { opacity: .8; font-size: 13px; }
.p-stats { margin: -36px 16px 0; display: grid; grid-template-columns: repeat(3, 1fr); padding: 16px 6px; position: relative; text-align: center; }
.p-stats div + div { border-left: 1px solid var(--line); }
.p-stats b { display: block; font-size: 17px; font-weight: 700; color: var(--maroon); }
.p-stats small { font-size: 12px; color: var(--ink3); }
.menu .m-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; width: 100%; font-size: 14.5px; }
.menu .m-row + .m-row { border-top: 1px solid var(--line); }
.m-row .m-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--saffron-l); color: var(--saffron-d); display: grid; place-items: center; flex: none; }
.m-row > span:nth-child(2) { flex: 1; }
.m-row em { font-style: normal; font-size: 13px; color: var(--ink3); }
.m-row .chev { color: var(--ink3); }
.switch { width: 46px; height: 28px; border-radius: 99px; background: #E3D7C9; position: relative; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch.on { background: var(--tulsi); }
.switch.on::after { transform: translateX(18px); }

.seg { display: grid; grid-template-columns: 1fr 1fr; background: #EFE4D6; border-radius: 14px; padding: 4px; margin: 10px 16px 0; }
.seg button { padding: 9px; border-radius: 11px; font-size: 13.5px; font-weight: 500; color: var(--ink2); text-align: center; }
.seg button.on { background: #fff; color: var(--maroon); font-weight: 600; box-shadow: var(--sh-1); }
.empty { text-align: center; padding: 40px 24px; color: var(--ink3); }
.empty svg { margin: 0 auto 12px; opacity: .9; }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.empty .btn { margin-top: 18px; width: auto; }

/* notifications */
.notif { display: flex; gap: 12px; padding: 14px; align-items: flex-start; width: 100%; }
.notif + .notif { border-top: 1px solid var(--line); }
.notif .n-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--saffron-l); color: var(--saffron-d); flex: none; }
.notif div { flex: 1; min-width: 0; }
.notif b { display: block; font-size: 14px; font-weight: 600; }
.notif p { font-size: 13px; color: var(--ink2); }
.notif small { font-size: 11.5px; color: var(--ink3); }
.notif.unread { background: #FFFAF3; }
.notif.unread b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--kumkum); margin-left: 6px; vertical-align: middle; }

/* ---------- Welcome & login ---------- */
.welcome {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: calc(36px + var(--safe-t)) 22px calc(26px + var(--safe-b)); color: #fff; position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 70% at 50% 0%, #C2410C 0%, #8E1B1B 45%, #3F0A0D 100%);
}
.welcome .mandala-big { position: absolute; width: 560px; height: 560px; left: 50%; top: -150px; margin-left: -280px; opacity: .13; color: #FFD27A; z-index: -1; animation: spin 140s linear infinite; }
.brand-mark {
  width: 116px; height: 116px; border-radius: 50%; margin: 26px auto 0; display: grid; place-items: center; font-family: var(--deva); font-size: 62px;
  background: radial-gradient(circle at 30% 25%, #FFC46B, #FF7A00 55%, #B93A0B);
  box-shadow: 0 0 0 6px rgba(255, 210, 122, .25), 0 0 0 16px rgba(255, 210, 122, .07), 0 20px 40px rgba(0, 0, 0, .35);
}
.welcome h1 { font-family: var(--font-d); font-weight: 400; font-size: 40px; text-align: center; margin-top: 22px; letter-spacing: .02em; }
.welcome .tag { text-align: center; opacity: .85; margin-top: 4px; font-size: 14.5px; }
.feats { display: flex; flex-direction: column; gap: 10px; }
.feat { display: flex; gap: 14px; align-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: 12px 14px; }
.feat span { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .95); flex: none; }
.feat b { display: block; font-size: 15px; }
.feat small { opacity: .75; font-size: 12.5px; }
.link-btn { display: block; margin: 14px auto 0; color: #FFE0A3; font-weight: 500; font-size: 14px; text-align: center; padding: 6px; }

.login-top { position: relative; overflow: hidden; isolation: isolate; text-align: center; color: #fff; padding: calc(34px + var(--safe-t)) 24px 78px; background: radial-gradient(120% 90% at 50% 0%, #C2410C 0%, #8E1B1B 50%, #3F0A0D 100%); }
.login-top .mandala { position: absolute; width: 380px; height: 380px; left: 50%; top: -120px; margin-left: -190px; opacity: .13; color: #FFD27A; z-index: -1; }
.login-top .brand-mark { width: 76px; height: 76px; font-size: 40px; margin-top: 8px; }
.login-top h2 { font-family: var(--font-d); font-weight: 400; font-size: 26px; margin-top: 14px; }
.login-top p { opacity: .8; font-size: 13.5px; }
.login-top .back { position: absolute; left: 14px; top: calc(12px + var(--safe-t)); background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }
.login-card { margin: -46px 16px 0; padding: 24px 20px; position: relative; border-radius: 28px; box-shadow: var(--sh-2); }
.login-card h3 { font-size: 20px; font-weight: 600; }
.login-card > p { font-size: 13.5px; color: var(--ink2); margin-top: 4px; }
.login-card .btn { margin-top: 20px; }
.otp { display: flex; gap: 12px; justify-content: center; margin-top: 22px; }
.otp input { width: 58px; height: 62px; text-align: center; font-size: 24px; font-weight: 600; border-radius: 16px; border: 1.5px solid var(--line); outline: none; background: #fff; }
.otp input:focus { border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(255, 122, 0, .12); }
.hint { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12.5px; color: var(--saffron-d); background: var(--saffron-l); padding: 8px 12px; border-radius: 12px; margin-top: 16px; }
.terms { font-size: 11.5px; color: var(--ink3); text-align: center; margin: 18px 24px 0; }
.err-msg { color: var(--kumkum); font-size: 12.5px; margin-top: 6px; min-height: 1em; }

/* ---------- Bottom sheet ---------- */
#sheet-root { position: fixed; inset: 0; z-index: 100; display: none; }
#sheet-root.open { display: block; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(30, 6, 8, .5); opacity: 0; transition: opacity .25s; }
.sheet {
  position: absolute; left: 50%; bottom: 0; width: 100%; max-width: 480px; transform: translate(-50%, 100%); background: #fff;
  border-radius: 28px 28px 0 0; padding: 10px 18px calc(22px + var(--safe-b)); max-height: 90vh; max-height: 90dvh; overflow-y: auto;
  transition: transform .32s cubic-bezier(.2, .8, .2, 1); overscroll-behavior: contain;
}
#sheet-root.show .sheet-backdrop { opacity: 1; }
#sheet-root.show .sheet { transform: translate(-50%, 0); }
.sheet-handle { width: 42px; height: 5px; border-radius: 9px; background: #E6D9C8; margin: 0 auto 16px; }
.sheet h3 { font-size: 19px; font-weight: 600; }
.sheet-sub { font-size: 13px; color: var(--ink3); margin-top: 2px; }
.sheet .btn { margin-top: 18px; }
.sheet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; margin-top: 18px; }
.sheet-grid .act { flex: none; width: auto; }
.sheet-grid .tile { width: 64px; height: 64px; border-radius: 18px; }
.fab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.fab-grid button { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 20px; background: var(--bg); text-align: left; }
.fab-grid b { font-size: 14.5px; font-weight: 600; }
.fab-grid small { font-size: 12px; color: var(--ink3); margin-top: -8px; }
.pick-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 16px; border: 1.5px solid var(--line); margin-top: 10px; text-align: left; }
.pick-row.on { border-color: var(--saffron); background: var(--saffron-l); }
.pick-row div { flex: 1; min-width: 0; }
.pick-row b { display: block; font-size: 14.5px; font-weight: 600; }
.pick-row small { font-size: 12px; color: var(--ink3); }
.pick-row .tick { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); color: transparent; flex: none; }
.pick-row.on .tick { background: var(--saffron); border-color: var(--saffron); color: #fff; }
.search-box { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 16px; padding: 0 14px; background: var(--bg); }
.search-box svg { color: var(--ink3); }
.search-box input { flex: 1; height: 50px; border: 0; outline: none; background: transparent; font-size: 15px; }
.s-group { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); margin: 18px 2px 4px; }
.s-item { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px 2px; text-align: left; }
.s-item + .s-item { border-top: 1px solid var(--line); }
.s-item div { flex: 1; min-width: 0; }
.s-item b { display: block; font-size: 14px; font-weight: 600; }
.s-item small { font-size: 12px; color: var(--ink3); }
.s-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pm { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line); margin-top: 10px; cursor: pointer; position: relative; }
.pm-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--saffron-l); color: var(--saffron-d); display: grid; place-items: center; }
.pm > span:nth-of-type(2) { flex: 1; }
.pm b { display: block; font-size: 14.5px; font-weight: 600; }
.pm small { font-size: 12px; color: var(--ink3); }
.pm .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.pm:has(input:checked) { border-color: var(--saffron); background: #FFFAF3; }
.pm input:checked ~ .radio { border: 7px solid var(--saffron); }
.pay-amt { text-align: center; font-size: 34px; font-weight: 700; color: var(--maroon); margin: 14px 0 6px; letter-spacing: -.01em; }

.success { text-align: center; padding: 6px 0 4px; }
.tick-big { width: 76px; height: 76px; border-radius: 50%; margin: 6px auto 14px; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 30% 30%, #66BB6A, #2E7D32); box-shadow: 0 0 0 8px var(--tulsi-l); animation: popIn .5s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes popIn { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.receipt { margin-top: 18px; border-radius: 20px; border: 1.5px dashed #E8C99A; background: #FFFCF7; padding: 16px; }
.rc-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed #E8C99A; }
.rc-om { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--deva); font-size: 22px; color: #fff; background: radial-gradient(circle at 30% 25%, #FFC46B, #FF7A00 55%, #C2410C); flex: none; }
.rc-head b { display: block; font-size: 14px; }
.rc-head small { font-size: 12px; color: var(--ink3); }
.receipt dl { margin-top: 10px; }
.receipt dl div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13px; }
.receipt dt { color: var(--ink3); }
.receipt dd { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.rc-total { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; margin-top: 8px; border-top: 1px dashed #E8C99A; }
.rc-total b { font-size: 20px; color: var(--maroon); }
.rc-note { display: block; font-size: 11px; color: var(--ink3); margin-top: 8px; }

details.faq { border-top: 1px solid var(--line); padding: 12px 2px; }
details.faq summary { font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--saffron-d); font-weight: 600; }
details.faq[open] summary::after { content: "−"; }
details.faq p { font-size: 13px; color: var(--ink2); margin-top: 8px; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(110px + var(--safe-b)); transform: translate(-50%, 20px); background: #2A1A14; color: #fff;
  padding: 11px 18px; border-radius: 14px; font-size: 13.5px; opacity: 0; pointer-events: none; transition: all .3s; z-index: 300;
  max-width: calc(100% - 40px); width: max-content; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Print (receipts) ---------- */
@media print {
  body.printing * { visibility: hidden !important; }
  body.printing .receipt, body.printing .receipt * { visibility: visible !important; }
  body.printing .receipt { position: fixed; left: 0; top: 0; width: 100%; border: 1px dashed #999; }
}

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