/* ==================================================================
   ब्रजलीला — Design system (mobile-first)
   Cream · Gold · Saffron · Radha-Krishna purple
   ================================================================== */
:root {
  --cream: #FFF8EC; --cream-2: #FCEFD8; --paper: #FFFDF8;
  --gold: #C9962B; --gold-2: #E8C46A; --gold-3: #F6E6B4;
  --saffron: #E8742A; --saffron-2: #F59E42;
  --purple: #5B2A86; --purple-2: #7E4BB0; --purple-3: #F1E8F9; --purple-ink: #3A1660;
  --rose: #D9537B; --peacock: #136F63;
  --ink: #2B1B3D; --ink-2: #4A3A5C; --muted: #6F6077; --line: #EADBC0; --line-2: #F3E8D2;
  --ok: #2E7D4F; --ok-bg: #E6F4EA; --warn: #9A5B00; --warn-bg: #FFF1D6; --danger: #B3261E; --danger-bg: #FDE7E5;
  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 32px;
  --sh-sm: 0 1px 2px rgba(91,42,134,.06), 0 2px 10px rgba(91,42,134,.06);
  --sh: 0 8px 28px rgba(91,42,134,.12);
  --sh-lg: 0 20px 60px rgba(43,27,61,.22);
  --f-body: 'Mukta', 'Nirmala UI', 'Noto Sans Devanagari', system-ui, sans-serif;
  --f-head: 'Tiro Devanagari Hindi', 'Mukta', 'Nirmala UI', serif;
  --f-brand: 'Yatra One', 'Tiro Devanagari Hindi', serif;
  --top-h: 60px; --nav-h: 66px; --maxw: 1120px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --fs: 1;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 8px); scroll-padding-bottom: calc(var(--nav-h) + var(--safe-b) + 16px); }
body {
  margin: 0; color: var(--ink); font-family: var(--f-body); font-size: calc(16px * var(--fs)); line-height: 1.6;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 10% -10%, rgba(232,196,106,.28), transparent 40%),
    radial-gradient(circle at 110% 10%, rgba(126,75,176,.12), transparent 38%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23C9962B' stroke-opacity='.07'%3E%3Ccircle cx='32' cy='32' r='12'/%3E%3Cpath d='M32 14c4 6 4 12 0 18-4-6-4-12 0-18zM32 50c4-6 4-12 0-18-4 6-4 12 0 18zM14 32c6-4 12-4 18 0-6 4-12 4-18 0zM50 32c-6-4-12-4-18 0 6 4 12 4 18 0z'/%3E%3C/g%3E%3C/svg%3E");
  min-height: 100vh; padding-bottom: calc(var(--nav-h) + var(--safe-b) + 8px);
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: var(--purple-2); text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 400; line-height: 1.3; margin: 0 0 .4em; color: var(--ink); }
h1 { font-size: 1.7rem; } h2 { font-size: 1.35rem; } h3 { font-size: 1.12rem; }
p { margin: 0 0 .8em; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; border-radius: 6px; }
#main:focus, #main:focus-visible { outline: none; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--purple); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); } .small { font-size: .88rem; } .center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; } .row.wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.hidden, [hidden] { display: none !important; }

/* ---------------- top bar ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--top-h); display: flex; align-items: center; gap: 12px;
  padding: 0 14px; background: rgba(255,248,236,.88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); min-width: 0; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: var(--sh-sm); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-family: var(--f-brand); font-weight: 400; font-size: 1.3rem; color: var(--purple); letter-spacing: .3px; }
.brand-text small { font-size: .68rem; color: var(--gold); font-weight: 600; letter-spacing: .4px; }
.topnav { display: none; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.loc-chip {
  display: inline-flex; align-items: center; gap: 4px; max-width: 46vw; border: 1px solid var(--line); background: var(--paper);
  padding: 6px 12px; border-radius: 999px; font-size: .82rem; color: var(--ink-2); cursor: pointer; box-shadow: var(--sh-sm);
}
.loc-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); cursor: pointer; font-size: 1.1rem; box-shadow: var(--sh-sm); color: var(--ink); flex: none;
}
.icon-btn:active { transform: scale(.94); }
.net-banner { background: var(--warn-bg); color: var(--warn); text-align: center; font-size: .85rem; padding: 6px; }

/* ---------------- bottom nav ---------------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(255,253,248,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(91,42,134,.08);
}
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: var(--muted); font-size: .74rem; font-weight: 600; }
.bottomnav a i { font-style: normal; font-size: 1.3rem; line-height: 1; filter: grayscale(.6); transition: transform .2s; }
.bottomnav a.active { color: var(--purple); }
.bottomnav a.active i { filter: none; transform: translateY(-2px) scale(1.08); }
.bottomnav a.fab i {
  display: grid; place-items: center; width: 54px; height: 54px; margin-top: -26px; border-radius: 50%; font-size: 1.6rem; filter: none;
  background: radial-gradient(circle at 30% 30%, var(--saffron-2), var(--saffron) 60%, #C2531A);
  box-shadow: 0 8px 22px rgba(232,116,42,.45), 0 0 0 5px var(--paper);
}
.bottomnav a.fab.active i { transform: translateY(-2px) scale(1.06); }

/* ---------------- layout ---------------- */
main { display: block; max-width: var(--maxw); margin: 0 auto; padding: 14px 14px 24px; outline: none; }
.view { animation: viewIn .35s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.boot { min-height: 60vh; display: grid; place-content: center; text-align: center; color: var(--purple); font-family: var(--f-brand); font-size: 1.4rem; }
.boot-lotus { font-size: 3rem; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.12); opacity: .7; } }
.section { margin: 22px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.section-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
.section-head h2::before { content: '❁'; color: var(--gold); font-size: .9em; }
.section-head a { font-size: .88rem; font-weight: 600; white-space: nowrap; }
.page-head { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; }
.page-head h1 { margin: 0; font-size: 1.55rem; }
.page-head p { margin: 0; }
.back-btn { flex: none; }

/* ---------------- cards & buttons ---------------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); }
.card.pad { padding: 16px; }
.card-link { display: block; color: inherit; transition: transform .18s, box-shadow .18s; }
.card-link:active { transform: scale(.985); }
@media (hover: hover) { .card-link:hover { box-shadow: var(--sh); transform: translateY(-2px); } }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 8px 18px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 600; cursor: pointer;
  transition: transform .12s, box-shadow .2s, background .2s; text-align: center; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { border: 0; color: #fff; background: linear-gradient(135deg, var(--saffron-2), var(--saffron)); box-shadow: 0 6px 16px rgba(232,116,42,.3); }
.btn-purple { border: 0; color: #fff; background: linear-gradient(135deg, var(--purple-2), var(--purple)); box-shadow: 0 6px 16px rgba(91,42,134,.28); }
.btn-gold { border: 0; color: var(--ink); background: linear-gradient(135deg, var(--gold-3), var(--gold-2)); }
.btn-ghost { background: transparent; }
.btn-danger { border: 0; color: #fff; background: var(--danger); }
.btn-sm { min-height: 34px; padding: 4px 12px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-kind { background: var(--purple-3); color: var(--purple); }
.badge-gold { background: var(--gold-3); color: #7A5410; }
.badge-dist { background: #E8F1FB; color: #1F5A9E; }
.fav-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.92);
  color: #C9B7D6; font-size: 1.15rem; cursor: pointer; transition: transform .2s, color .2s; flex: none;
}
.fav-btn.on { color: var(--rose); border-color: #F5C6D5; }
.fav-btn.pop { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.3); } }

/* chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  font-size: .88rem; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.chip.active { background: var(--purple); border-color: var(--purple); color: #fff; box-shadow: 0 4px 12px rgba(91,42,134,.25); }
.seg { display: inline-flex; background: var(--cream-2); border-radius: 999px; padding: 3px; border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .88rem; cursor: pointer; color: var(--muted); }
.seg button.active { background: var(--paper); color: var(--purple); box-shadow: var(--sh-sm); }

/* inputs */
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field label { font-weight: 600; font-size: .88rem; color: var(--ink-2); }
.input, select.input, textarea.input {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font: inherit; color: var(--ink);
}
textarea.input { min-height: 90px; resize: vertical; line-height: 1.55; }
.input:focus { outline: none; border-color: var(--purple-2); box-shadow: 0 0 0 3px rgba(126,75,176,.18); }
.search { position: relative; }
.search .input { padding-left: 42px; border-radius: 999px; }
.search::before { content: '🔍'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: .95rem; opacity: .6; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #D9CDE3; border-radius: 99px; transition: .2s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--purple-2); }
.switch input:checked + span::after { transform: translateX(20px); }

/* ---------------- states ---------------- */
.state { text-align: center; padding: 34px 18px; color: var(--muted); }
.state-icon { font-size: 2.6rem; margin-bottom: 6px; }
.state h3 { color: var(--ink); }
.skel { background: linear-gradient(90deg, #F3E7D3 25%, #FBF3E5 50%, #F3E7D3 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.skel-card { padding: 10px; margin-bottom: 12px; }
.skel-img { height: 120px; margin-bottom: 10px; border-radius: 12px; }
.skel-line { height: 14px; margin: 8px 0; } .skel-line.short { width: 55%; }
.view-loading { padding-top: 6px; }

/* toast & modal */
#toasts { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 14px); transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 14px; box-shadow: var(--sh-lg); font-size: .92rem; opacity: 0; transform: translateY(10px); transition: .25s; text-align: center; }
.toast.show { opacity: 1; transform: none; }
.toast-error { background: var(--danger); } .toast-success { background: var(--ok); }
.modal-wrap { position: fixed; inset: 0; z-index: 80; background: rgba(43,27,61,.45); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .2s; }
.modal-wrap.show { opacity: 1; }
.modal { width: 100%; max-width: 520px; max-height: 88vh; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--sh-lg); transform: translateY(30px); transition: transform .25s; padding-bottom: var(--safe-b); }
.modal-wrap.show .modal { transform: none; }
.modal-wide { max-width: 760px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px; }
.modal-head h3 { margin: 0; }
.modal-head .icon-btn { width: 34px; height: 34px; font-size: .9rem; }
.modal-body { padding: 6px 16px 10px; overflow: auto; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; padding: 10px 16px 16px; flex-wrap: wrap; }
@media (min-width: 640px) { .modal-wrap { align-items: center; } .modal { border-radius: var(--r-lg); } }

/* ---------------- hero (home) ---------------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 22px 20px 20px; color: #fff;
  background: radial-gradient(circle at 85% 15%, rgba(232,196,106,.55), transparent 35%), linear-gradient(140deg, #6C33A0 0%, #5B2A86 45%, #3A1660 100%);
  box-shadow: var(--sh);
}
.hero::after {
  content: ''; position: absolute; right: -60px; bottom: -70px; width: 240px; height: 240px; opacity: .16;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23fff' stroke-width='2'%3E%3Ccircle cx='100' cy='100' r='30'/%3E%3Ccircle cx='100' cy='100' r='60'/%3E%3Ccircle cx='100' cy='100' r='90'/%3E%3Cpath d='M100 10c18 30 18 60 0 90-18-30-18-60 0-90zM100 190c18-30 18-60 0-90-18 30-18 60 0 90zM10 100c30-18 60-18 90 0-30 18-60 18-90 0zM190 100c-30-18-60-18-90 0 30 18 60 18 90 0z'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero > * { position: relative; z-index: 1; }
.hero-greet { font-family: var(--f-brand); font-size: 2.1rem; line-height: 1.15; margin: 0; color: #FFE7B0; text-shadow: 0 2px 12px rgba(0,0,0,.2); }
.hero-sub { opacity: .92; margin: 4px 0 2px; }
.hero-date { font-size: .85rem; opacity: .8; }
.hero-tag { display: inline-block; margin-top: 12px; padding: 6px 12px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-size: .86rem; }
.hero-loc { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px; background: rgba(255,255,255,.12); border-radius: 14px; font-size: .9rem; }
.hero-loc .btn { margin-left: auto; min-height: 32px; padding: 2px 12px; font-size: .82rem; }

/* now-seva card */
.now-seva { display: flex; gap: 14px; align-items: center; padding: 14px 16px; margin-top: -14px; position: relative; z-index: 2; margin-left: 10px; margin-right: 10px; }
.now-seva .ns-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: linear-gradient(135deg, var(--gold-3), var(--gold-2)); flex: none; }
.now-seva small { color: var(--muted); font-weight: 600; }
.now-seva b { display: block; font-family: var(--f-head); font-weight: 400; font-size: 1.12rem; }

/* quick actions */
.qa-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; text-align: center; color: var(--ink-2); font-size: .8rem; font-weight: 600; line-height: 1.25; }
.qa i { font-style: normal; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; background: var(--c, var(--purple-3)); box-shadow: inset 0 -3px 0 rgba(0,0,0,.05); }

/* horizontal list */
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 72%); gap: 12px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }

/* place card */
.pcard { overflow: hidden; position: relative; }
.pcard .pimg { aspect-ratio: 16/10; width: 100%; object-fit: cover; background: var(--cream-2); }
.pcard .pbody { padding: 10px 12px 12px; }
.pcard h3 { margin: 4px 0 2px; font-size: 1.05rem; }
.pcard p { font-size: .88rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .fav-btn { position: absolute; top: 8px; right: 8px; }
.pcard .pmeta { display: flex; gap: 6px; flex-wrap: wrap; }
.grid-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-cards { grid-template-columns: repeat(3, 1fr); } }

/* list item */
.litem { display: flex; gap: 12px; padding: 10px; align-items: center; }
.litem img, .litem .thumb { width: 74px; height: 74px; border-radius: 12px; object-fit: cover; flex: none; background: var(--cream-2); display: grid; place-items: center; font-size: 1.8rem; }
.litem h3 { margin: 0 0 2px; font-size: 1.02rem; }
.litem p { margin: 0; font-size: .86rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list > * + * { margin-top: 10px; }

/* feature card (daily leela / yatra) */
.feature { display: grid; grid-template-columns: 1fr; overflow: hidden; }
.feature img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.feature .fbody { padding: 14px 16px 16px; }
.feature .eyebrow { font-size: .78rem; font-weight: 700; color: var(--saffron); letter-spacing: .5px; }
@media (min-width: 720px) { .feature { grid-template-columns: 1.1fr 1fr; } .feature img { height: 100%; aspect-ratio: auto; } }
.yatra-card { display: flex; gap: 16px; align-items: center; padding: 16px; background: linear-gradient(135deg, #FFF3DC, #FBE3EF); }
.ring { --p: 0; width: 76px; height: 76px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--purple-2) calc(var(--p) * 1%), #EADFF2 0); }
.ring span { width: 60px; height: 60px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-weight: 700; color: var(--purple); font-size: .95rem; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { padding: 12px 8px; text-align: center; }
.stat b { display: block; font-size: 1.45rem; color: var(--purple); font-family: var(--f-head); font-weight: 400; line-height: 1.2; }
.stat small { color: var(--muted); font-size: .78rem; font-weight: 600; }

/* ---------------- explore / finder ---------------- */
.finder-bar { position: sticky; top: var(--top-h); z-index: 20; background: linear-gradient(var(--cream) 85%, transparent); padding: 6px 0 4px; margin: -6px 0 6px; }
.finder-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.finder-row .search { flex: 1; }
.locbox { display: flex; gap: 10px; align-items: center; padding: 10px 12px; margin-bottom: 10px; font-size: .9rem; }
.locbox.warn { background: var(--warn-bg); border-color: #F2D9A6; }
.locbox .grow small { display: block; color: var(--muted); }
.map-box { height: 62vh; min-height: 360px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); position: relative; background: #EDE6D8; }
.map-box .map-el { position: absolute; inset: 0; }
.map-sheet { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 500; padding: 10px; display: flex; gap: 10px; align-items: center; animation: viewIn .25s; }
.map-sheet img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.map-pin { --c: #E8742A; width: 34px; height: 42px; position: relative; }
.map-pin::before { content: ''; position: absolute; left: 3px; top: 0; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; background: var(--c); transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.3); }
.map-pin span { position: absolute; left: 0; right: 0; top: 4px; text-align: center; font-size: 14px; line-height: 20px; }
.pin-wrap { background: none; border: 0; }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }

/* place detail */
.pd-hero { position: relative; margin: -14px -14px 0; }
.pd-hero img { width: 100%; aspect-ratio: 16/10; object-fit: cover; max-height: 420px; }
.pd-hero .pd-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; }
.pd-gallery { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; }
.pd-gallery img { width: 72px; height: 52px; object-fit: cover; border-radius: 8px; cursor: pointer; flex: none; border: 2px solid transparent; }
.pd-gallery img.active { border-color: var(--saffron); }
.pd-card { position: relative; margin-top: -26px; padding: 16px; z-index: 2; }
.pd-card h1 { font-size: 1.5rem; margin-bottom: 4px; }
.pd-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.pd-actions .btn { flex-direction: column; gap: 2px; min-height: 64px; border-radius: 14px; font-size: .78rem; padding: 6px 4px; white-space: normal; line-height: 1.2; }
.pd-actions .btn i { font-style: normal; font-size: 1.25rem; }
.info-block { padding: 16px; margin-top: 12px; }
.info-block h2 { font-size: 1.12rem; display: flex; align-items: center; gap: 8px; }
.info-block h2 .ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--purple-3); font-size: 1rem; }
.info-block p:last-child { margin-bottom: 0; }
.timings { width: 100%; border-collapse: collapse; font-size: .92rem; }
.timings td, .timings th { padding: 7px 4px; border-bottom: 1px dashed var(--line); text-align: left; }
.sources { margin: 0; padding-left: 18px; font-size: .88rem; color: var(--muted); }
.verify-note { display: flex; gap: 10px; padding: 12px 14px; background: var(--warn-bg); border-radius: 14px; font-size: .86rem; color: #6B4300; margin-top: 12px; }
.mini-map { height: 220px; border-radius: 14px; overflow: hidden; margin-top: 10px; position: relative; background: #EDE6D8; }

/* ---------------- braj (84 kos) ---------------- */
.region { overflow: hidden; }
.region > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; font-weight: 600; }
.region > summary::-webkit-details-marker { display: none; }
.region > summary::after { content: '⌄'; margin-left: auto; transition: transform .2s; color: var(--muted); }
.region[open] > summary::after { transform: rotate(180deg); }
.region .rlist { padding: 0 10px 10px; }
.rstop { display: flex; gap: 10px; align-items: center; padding: 8px 6px; border-top: 1px dashed var(--line); font-size: .92rem; }
.rstop .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--purple-3); color: var(--purple); font-size: .75rem; font-weight: 700; flex: none; }
.rstop.visited .dot { background: var(--ok); color: #fff; }
.route-stops { counter-reset: s; }

/* ---------------- seva timeline ---------------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold-2), var(--purple-2)); border-radius: 2px; }
.tl-item { position: relative; margin-bottom: 12px; padding: 12px 14px; }
.tl-item::before { content: ''; position: absolute; left: -22px; top: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--gold); }
.tl-item.now { border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(232,116,42,.18), var(--sh); }
.tl-item.now::before { background: var(--saffron); border-color: #FFD6B5; animation: pulse 1.4s infinite; }
.tl-item.done::before { background: var(--ok); border-color: #BFE3CB; }
.tl-item.past { opacity: .78; }
.tl-head { display: flex; align-items: center; gap: 10px; }
.tl-head h3 { margin: 0; font-size: 1.06rem; }
.tl-time { font-size: .86rem; color: var(--purple-2); font-weight: 600; }
.tl-item p { margin: 6px 0 0; font-size: .9rem; color: var(--ink-2); }
.check-btn { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: #fff; cursor: pointer; font-size: 1.1rem; display: grid; place-items: center; flex: none; color: transparent; }
.check-btn.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.progress { height: 10px; background: #EFE3CF; border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--saffron)); border-radius: 99px; transition: width .4s; }

/* ---------------- leela / reader ---------------- */
.reader { padding: 18px 18px 22px; }
.reader .story { font-family: var(--f-head); font-size: 1.12em; line-height: 1.95; color: #2E2140; }
.reader .story p { margin-bottom: 1em; }
.reader .story .speaking { background: linear-gradient(transparent 55%, rgba(232,196,106,.55) 0); }
.reader-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0 14px; }
.tradition-note { border-left: 4px solid var(--gold); background: #FFF6E2; padding: 10px 14px; border-radius: 0 12px 12px 0; font-size: .92rem; margin: 12px 0; }
.ref-list { font-size: .88rem; color: var(--muted); padding-left: 18px; }

/* ---------------- bhajan / lyrics ---------------- */
.lyrics { font-family: var(--f-head); font-size: 1.18em; line-height: 2; text-align: center; white-space: pre-line; color: #2E2140; padding: 18px 10px; }
.lyrics .stanza { margin-bottom: 1.1em; }
.lyrics-card { background: linear-gradient(180deg, #FFFDF7, #FFF4E0); position: relative; overflow: hidden; }
.lyrics-card::before { content: '॥ श्री ॥'; display: block; text-align: center; color: var(--gold); font-family: var(--f-brand); padding-top: 14px; letter-spacing: 2px; }
.mini-player {
  position: fixed; left: 10px; right: 10px; bottom: calc(var(--nav-h) + var(--safe-b) + 8px); z-index: 44; display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 8px 14px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #4B1F73, #2B1240); box-shadow: var(--sh-lg);
  max-width: 560px; margin: 0 auto;
}
.mini-player .mp-title { flex: 1; min-width: 0; }
.mini-player b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.mini-player small { opacity: .75; font-size: .76rem; }
.mini-player button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; font-size: 1rem; flex: none; }
.mini-player .eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; margin-right: 4px; }
.mini-player .eq i { width: 3px; background: var(--gold-2); animation: eq .9s ease-in-out infinite; border-radius: 2px; }
.mini-player .eq i:nth-child(2) { animation-delay: .2s; } .mini-player .eq i:nth-child(3) { animation-delay: .4s; }
.mini-player.paused .eq i { animation-play-state: paused; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 14px; } }
body.has-player main { padding-bottom: 90px; }

/* ---------------- jap mala ---------------- */
.jap-wrap { display: flex; flex-direction: column; align-items: center; }
.mala { position: relative; width: min(84vw, 360px); aspect-ratio: 1; margin: 6px auto 0; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.mala svg { width: 100%; height: 100%; }
.mala .bead { fill: #B98A54; transition: fill .2s; }
.mala .bead.done { fill: var(--saffron); }
.mala .bead.cur { fill: var(--purple-2); }
.mala-btn {
  position: absolute; inset: 22%; border-radius: 50%; border: 0; cursor: pointer; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #9A63CC, var(--purple) 60%, #2B1240); box-shadow: 0 14px 40px rgba(91,42,134,.45), inset 0 -6px 0 rgba(0,0,0,.18);
  transition: transform .08s;
}
.mala-btn:active { transform: scale(.96); }
.mala-btn b { font-size: 2.6rem; font-family: var(--f-head); font-weight: 400; line-height: 1; }
.mala-btn span { font-size: .95rem; opacity: .9; margin-top: 4px; max-width: 80%; text-align: center; line-height: 1.3; }
.mala-btn .ripple { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--gold-2); animation: ripple .6s ease-out forwards; pointer-events: none; }
@keyframes ripple { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.25); } }

/* ---------------- sadhana ---------------- */
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 130px; padding-top: 8px; }
.bars .bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; font-size: .72rem; color: var(--muted); }
.bars .bar i { width: 100%; max-width: 30px; border-radius: 8px 8px 4px 4px; background: linear-gradient(var(--saffron-2), var(--gold)); min-height: 3px; }
.bars .bar.today i { background: linear-gradient(var(--purple-2), var(--purple)); }
.bars .bar b { color: var(--ink-2); font-size: .7rem; }
.rem-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }

/* ---------------- puja ---------------- */
.puja-disclaimer { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 14px; background: #FFF4E0; border: 1px solid #F2DDB0; color: #6B4300; font-size: .86rem; margin-bottom: 12px; }
.puja-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.altar {
  position: relative; width: 100%; max-width: 460px; margin: 0 auto; aspect-ratio: 360 / 440; border-radius: 26px; overflow: hidden; user-select: none; -webkit-user-select: none;
  background: radial-gradient(ellipse at 50% 30%, #4A1D70, #1E0A33 70%); box-shadow: var(--sh-lg), inset 0 0 0 3px rgba(232,196,106,.35);
  touch-action: manipulation; --glow: 0;
}
.altar.drag { touch-action: none;
}
.altar > svg.altar-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.altar .halo-rays { transform-origin: 180px 190px; animation: spin 40s linear infinite; }
.altar .glow-layer { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 46%, rgba(255,190,90,.45), transparent 60%); opacity: calc(var(--glow) * .9); transition: opacity 1s; mix-blend-mode: screen; }
.curtain {
  position: absolute; top: 0; bottom: 18%; width: 51%; z-index: 6; transition: transform 1.6s cubic-bezier(.7,0,.2,1);
  background: repeating-linear-gradient(90deg, #8E1B2E 0 14px, #A8243A 14px 26px, #7A1426 26px 34px);
  box-shadow: inset 0 -14px 0 #E8C46A, inset 0 -18px 0 #8A6416, 0 0 30px rgba(0,0,0,.5);
}
.curtain::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 10px; background: repeating-linear-gradient(90deg, #E8C46A 0 4px, transparent 4px 8px); }
.curtain.left { left: 0; transform-origin: left; border-radius: 0 0 40% 0; }
.curtain.right { right: 0; transform-origin: right; border-radius: 0 0 0 40%; }
.altar.open .curtain.left { transform: translateX(-88%) scaleX(.35); }
.altar.open .curtain.right { transform: translateX(88%) scaleX(.35); }
.altar .tool { position: absolute; z-index: 7; cursor: pointer; background: none; border: 0; padding: 0; }
.bell-wrap { right: 7%; top: 4%; width: 15%; transform-origin: 50% 0; }
.bell-wrap.ring { animation: bellSwing 1.1s ease-out; }
@keyframes bellSwing { 10% { transform: rotate(22deg); } 30% { transform: rotate(-17deg); } 50% { transform: rotate(11deg); } 70% { transform: rotate(-6deg); } 85% { transform: rotate(3deg); } 100% { transform: none; } }
.diya { bottom: 5%; width: 18%; }
.diya.l { left: 6%; } .diya.r { right: 6%; }
.flame {
  position: absolute; left: 50%; bottom: 62%; width: 30%; aspect-ratio: 1/1.9; transform: translateX(-50%) scale(0); transform-origin: 50% 100%;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: radial-gradient(ellipse at 50% 72%, #fff 0 14%, #FFE58A 28%, #FFB13B 55%, rgba(255,90,0,.65) 75%, transparent 78%);
  filter: drop-shadow(0 0 8px #FFB13B) drop-shadow(0 0 18px rgba(255,140,0,.75)); transition: transform .5s cubic-bezier(.3,1.6,.5,1);
}
.lit .flame { transform: translateX(-50%) scale(1); animation: flicker 1.6s ease-in-out infinite alternate; }
@keyframes flicker { 0% { transform: translateX(-50%) scale(1, 1) rotate(-1deg); } 30% { transform: translateX(-50%) scale(.94, 1.06) rotate(2deg); } 60% { transform: translateX(-52%) scale(1.04, .96) rotate(-2deg); } 100% { transform: translateX(-49%) scale(.98, 1.04) rotate(1deg); } }
.dhoop { left: 26%; bottom: 8%; width: 6%; height: 26%; }
.dhoop .stick { position: absolute; left: 50%; bottom: 0; width: 3px; height: 100%; background: #5A3A1A; transform: translateX(-50%) rotate(-8deg); transform-origin: bottom; }
.dhoop .tip { position: absolute; left: 30%; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: #444; }
.dhoop.lit .tip { background: #FF6A00; box-shadow: 0 0 8px #FF6A00; }
.smoke { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: rgba(230,225,240,.55); filter: blur(6px); pointer-events: none; z-index: 5; }
.shankh-btn { left: 7%; top: 5%; width: 16%; }
.bhog-plate { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); width: 34%; aspect-ratio: 3/1; z-index: 6; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #FFE9A8, #D6A43B 60%, #8A6416); box-shadow: 0 6px 14px rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; gap: 2px; font-size: clamp(14px, 4vw, 22px); }
.bhog-plate span { animation: drop .5s ease; }
@keyframes drop { from { transform: translateY(-40px); opacity: 0; } }
.petal { position: absolute; z-index: 8; pointer-events: none; font-size: 20px; will-change: transform, opacity; }
.petal-pile { position: absolute; left: 22%; right: 22%; bottom: 14%; height: 10%; z-index: 5; pointer-events: none; }
.petal-pile span { position: absolute; font-size: 16px; }
.aarti-thali { position: absolute; z-index: 9; width: 24%; aspect-ratio: 1; left: 38%; top: 60%; pointer-events: none; transform: translate(-50%, -50%); }
.aarti-thali .plate { position: absolute; inset: 10% 0 0; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FFF1B8, #E8C46A 45%, #A47A1C); box-shadow: 0 0 30px rgba(255,170,60,.85), 0 4px 10px rgba(0,0,0,.4); }
.aarti-thali .flame { width: 16%; bottom: 52%; transform: translateX(-50%) scale(1); animation: flicker 1.2s ease-in-out infinite alternate; }
.altar .ring-fx { position: absolute; border-radius: 50%; border: 3px solid rgba(255,231,176,.8); pointer-events: none; z-index: 9; }
.altar .hint { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 10; color: #FFE7B0; background: rgba(30,10,51,.65); padding: 8px 14px; border-radius: 999px; font-size: .88rem; pointer-events: none; white-space: nowrap; }
.puja-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px auto 0; max-width: 460px; }
.ptool { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: .78rem; font-weight: 600; color: var(--ink-2); box-shadow: var(--sh-sm); transition: transform .12s; }
.ptool i { font-style: normal; font-size: 1.5rem; line-height: 1.2; }
.ptool:active { transform: scale(.95); }
.ptool.need { border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(232,116,42,.22); animation: nudge 1.6s ease-in-out infinite; }
.ptool.done-tool { background: #F1FAF3; }
@keyframes nudge { 50% { transform: translateY(-3px); } }
.step-card { max-width: 460px; margin: 14px auto 0; padding: 14px 16px; }
.step-dots { display: flex; gap: 5px; justify-content: center; margin-bottom: 10px; }
.step-dots i { width: 8px; height: 8px; border-radius: 50%; background: #E3D3EE; }
.step-dots i.done { background: var(--ok); } .step-dots i.cur { background: var(--saffron); width: 22px; border-radius: 99px; }
.mantra { font-family: var(--f-head); white-space: pre-line; text-align: center; color: var(--purple-ink); background: var(--purple-3); padding: 10px 12px; border-radius: 12px; margin: 10px 0 0; line-height: 1.8; }
.aarti-guide { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.aarti-guide span { padding: 4px 10px; border-radius: 999px; background: var(--cream-2); font-size: .8rem; font-weight: 600; color: var(--muted); }
.aarti-guide span.on { background: var(--saffron); color: #fff; } .aarti-guide span.ok { background: var(--ok-bg); color: var(--ok); }
.aarti-lyric { min-height: 3.6em; text-align: center; font-family: var(--f-head); color: var(--purple-ink); margin-top: 8px; font-size: 1.05rem; transition: opacity .3s; }
.bhog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bhog-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: .82rem; font-weight: 600; }
.bhog-item i { font-style: normal; font-size: 1.7rem; }
.bhog-item.sel { border-color: var(--saffron); background: #FFF3E6; }
.celebrate { text-align: center; padding: 20px 16px; }
.celebrate .big { font-size: 3rem; }

/* auth / profile */
.auth-card { max-width: 440px; margin: 0 auto; padding: 18px; }
.mode-banner { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--purple-3); color: var(--purple-ink); font-size: .88rem; margin-bottom: 12px; }
.set-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.set-row:last-child { border-bottom: 0; }
.set-row .grow small { display: block; color: var(--muted); font-size: .82rem; }

/* footer note */
.foot-note { text-align: center; color: var(--muted); font-size: .8rem; margin: 30px 0 10px; }
.foot-note b { font-family: var(--f-brand); font-weight: 400; color: var(--purple); }

/* ---------------- desktop ---------------- */
@media (min-width: 900px) {
  body { padding-bottom: 20px; }
  .bottomnav { display: none; }
  .topnav { display: flex; gap: 2px; margin-left: 18px; }
  .topnav a { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
  .topnav a.active { background: var(--purple-3); color: var(--purple); }
  .topbar { padding: 0 24px; }
  main { padding: 20px 24px 40px; }
  .qa-grid { grid-template-columns: repeat(8, 1fr); }
  .hscroll { grid-auto-columns: minmax(260px, 30%); }
  .mini-player { bottom: 16px; }
  #toasts { bottom: 24px; }
  .pd-hero { margin: 0; border-radius: var(--r-lg); overflow: hidden; }
  .home-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
  .puja-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
  .puja-layout .step-card, .puja-layout .puja-tools { margin-top: 0; }
  .puja-side > * + * { margin-top: 14px; }
}
@media (max-width: 380px) { .qa-grid { gap: 6px; } .qa i { width: 44px; height: 44px; } .hero-greet { font-size: 1.8rem; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* mobile puja: tools stay docked above the bottom nav so the altar and every instrument are reachable together */
@media (max-width: 899px) {
  .puja-tools {
    position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 6px); z-index: 30;
    grid-template-columns: repeat(8, 1fr); gap: 3px; padding: 5px; margin-top: 10px;
    background: rgba(255,253,248,.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh);
  }
  body.has-player .puja-tools { bottom: calc(var(--nav-h) + var(--safe-b) + 72px); }
  .ptool { padding: 6px 0 4px; font-size: .66rem; border-radius: 12px; box-shadow: none; gap: 0; }
  .ptool i { font-size: 1.25rem; }
  .puja-disclaimer { font-size: .8rem; padding: 8px 12px; }
}
