/* ============================================================
   Swamiye Saranam Ayyappa Seva App — design system
   Palette: sacred navy / saffron / gold / cream (sassbharath.org)
   Type: Plus Jakarta Sans (UI) · Marcellus (display) — self-hosted
   Icons: Material Symbols Rounded (subset, self-hosted)
   ============================================================ */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/PlusJakartaSans.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Marcellus";
  src: url("assets/fonts/Marcellus.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Material Symbols Rounded";
  src: url("assets/fonts/MaterialSymbolsRounded.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: block;
}

:root {
  /* palette */
  --navy-950: #081831;
  --navy-900: #0b2140;
  --navy-800: #10294e;
  --navy-700: #17376a;
  --saffron-700: #c05a10;
  --saffron-600: #d96a15;
  --saffron-500: #ec7d1f;
  --saffron-400: #f79a3e;
  --gold: #d6a848;
  --gold-soft: #f0d9a6;
  --cream: #fdf8ef;
  --sand: #f4ecdd;
  --surface: #ffffff;
  --line: #eae2d3;
  --line-soft: #f1ebdf;
  --ink: #211b12;
  --ink-2: #5c5546;
  --muted: #8b8171;
  --green: #2e7d5b;
  --green-soft: #e2f2ea;
  --red: #cf3e36;
  --red-soft: #fbe7e4;
  --blue: #3b64a7;
  --blue-soft: #e7eef9;
  --violet: #6f5bb5;
  --violet-soft: #eeeafa;
  --teal: #23847f;
  --teal-soft: #e0f1f0;
  --rose: #c4485f;
  --rose-soft: #f9e6ea;
  --amber: #b06a10;
  --amber-soft: #faeeD6;
  --navy-soft: #e4eaf4;

  /* type */
  --font-ui: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Marcellus", Georgia, "Times New Roman", serif;

  /* radius */
  --r-xs: 9px;
  --r-sm: 13px;
  --r-md: 17px;
  --r-lg: 22px;
  --r-xl: 28px;

  /* elevation */
  --sh-1: 0 1px 2px rgba(33, 26, 12, 0.05), 0 3px 10px rgba(33, 26, 12, 0.05);
  --sh-2: 0 4px 10px rgba(33, 26, 12, 0.06), 0 12px 28px rgba(33, 26, 12, 0.09);
  --sh-3: 0 10px 24px rgba(14, 24, 44, 0.16), 0 24px 60px rgba(14, 24, 44, 0.18);
  --sh-saffron: 0 10px 24px rgba(217, 106, 21, 0.32);

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.3, 0.42, 1);
  --t-fast: 0.18s;
  --t-med: 0.32s;
  --t-slow: 0.5s;
}

/* ——— reset & base ——— */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { height: 100%; }
body {
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: #d8d3c8;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: var(--saffron-600); text-decoration: none; }
[hidden] { display: none !important; }
::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; }
button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(217, 106, 21, 0.45);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Material symbol */
.ic {
  font-family: "Material Symbols Rounded";
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  display: inline-block;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  user-select: none;
}
.ic.fill { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
.ic.sm { font-size: 20px; }
.ic.xs { font-size: 17px; }
.ic.lg { font-size: 30px; }
.ic.xl { font-size: 42px; }

/* ——— stage & phone shell ——— */
.stage {
  height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px 14px 40px;
  background:
    radial-gradient(60% 50% at 20% 0%, rgba(214, 168, 72, 0.16), transparent 60%),
    radial-gradient(70% 60% at 90% 100%, rgba(23, 55, 106, 0.18), transparent 55%),
    #d8d3c8;
}
.phone {
  position: relative;
  width: min(412px, 100%);
  height: min(892px, calc(100vh - 58px));
  min-height: 640px;
  background: var(--cream);
  border: 9px solid #0c1020;
  border-radius: 48px;
  box-shadow: var(--sh-3), 0 0 0 1.5px rgba(255, 255, 255, 0.35);
  overflow: hidden;
}
.phone::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 26px;
  background: #0c1020;
  border-radius: 16px;
  z-index: 400;
  pointer-events: none;
}
.stage-note {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #6d675b;
}
@media (max-width: 540px) {
  .stage { padding: 0; }
  .phone { width: 100%; height: 100vh; height: 100dvh; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
  .phone::before { display: none; }
  .stage-note { display: none; }
}

/* ——— view layers inside phone ——— */
.view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
}
.view.gone { opacity: 0; transform: translateY(12px); pointer-events: none; }

/* ——— splash ——— */
#splash {
  z-index: 300;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(236, 125, 31, 0.22), transparent 55%),
    linear-gradient(168deg, var(--navy-950), var(--navy-800) 65%, #123055);
  color: #fff;
}
#splash .splash-mark {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(214, 168, 72, 0.4), 0 18px 50px rgba(0, 0, 0, 0.4);
  animation: splash-pop 0.9s var(--ease-spring) both;
}
#splash h1 {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.2;
  animation: rise-in 0.7s 0.25s var(--ease-out) both;
}
#splash p {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-soft);
  animation: rise-in 0.7s 0.4s var(--ease-out) both;
}
#splash .splash-om {
  position: absolute;
  bottom: 34px;
  font-family: var(--font-display);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  animation: rise-in 0.7s 0.6s var(--ease-out) both;
}
@keyframes splash-pop { from { opacity: 0; transform: scale(0.6); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } }

/* ——— onboarding ——— */
#onboard { z-index: 280; background: var(--navy-950); color: #fff; }
.ob-slides { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; }
.ob-slide {
  min-width: 100%;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 60px 34px 30px;
  text-align: center;
}
.ob-art {
  width: 148px;
  height: 148px;
  border-radius: 46px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(236, 125, 31, 0.24), rgba(214, 168, 72, 0.1));
  box-shadow: inset 0 0 0 1.5px rgba(214, 168, 72, 0.4);
}
.ob-art .ic { font-size: 64px; color: var(--gold-soft); }
.ob-slide h2 { font-family: var(--font-display); font-size: 29px; line-height: 1.22; white-space: pre-line; }
.ob-slide p { font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, 0.72); max-width: 300px; }
.ob-foot { padding: 10px 26px 34px; display: grid; gap: 20px; }
.ob-dots { display: flex; justify-content: center; gap: 7px; }
.ob-dots i {
  width: 7px; height: 7px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  transition: all var(--t-med) var(--ease-out);
}
.ob-dots i.on { width: 24px; background: var(--saffron-400); }
.ob-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ob-skip { color: rgba(255, 255, 255, 0.62); font-weight: 700; font-size: 15px; padding: 12px; }

/* ——— auth ——— */
#auth { z-index: 260; color: #fff; background: var(--navy-950); }
.auth-bg { position: absolute; inset: 0; background: url("assets/img/hero-temple-evening.png") 60% 30% / cover no-repeat; }
.auth-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 24, 49, 0.3), rgba(8, 24, 49, 0.55) 45%, rgba(6, 17, 36, 0.97) 78%);
}
.auth-body { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 24px 30px; }
.auth-brandrow { position: absolute; top: 54px; left: 24px; display: flex; align-items: center; gap: 11px; }
.auth-brandrow img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); }
.auth-brandrow span { font-size: 12.5px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; line-height: 1.45; color: rgba(255, 255, 255, 0.92); }
.auth-kicker { font-size: 12.5px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 12px; }
.auth-body h1 { font-family: var(--font-display); font-size: 38px; line-height: 1.12; margin-bottom: 12px; }
.auth-body h1 em { font-style: normal; color: var(--gold-soft); }
.auth-sub { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.78); max-width: 330px; margin-bottom: 24px; }
.auth-actions { display: grid; gap: 11px; }
.auth-fineprint { margin-top: 16px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.5); line-height: 1.5; }

/* ——— buttons ——— */
.btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: var(--r-md);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: 0.01em;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), background var(--t-fast);
}
.btn:active { transform: scale(0.965); }
.btn-primary {
  background: linear-gradient(140deg, var(--saffron-400), var(--saffron-600) 78%);
  color: #fff;
  box-shadow: var(--sh-saffron);
}
.btn-secondary { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3); }
.btn-tonal { background: var(--sand); color: var(--ink); }
.btn-outline { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-danger { background: var(--red); color: #fff; box-shadow: 0 10px 22px rgba(207, 62, 54, 0.3); }
.btn-block { width: 100%; }
.btn-sm { min-height: 42px; font-size: 14.5px; border-radius: var(--r-sm); padding: 0 16px; }
.btn-ghost { color: var(--saffron-600); font-weight: 750; min-height: 44px; }

.iconbtn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: transform var(--t-fast) var(--ease-out), background var(--t-fast);
}
.iconbtn:active { transform: scale(0.9); }
.iconbtn .dot {
  position: absolute; top: 8px; right: 9px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 2px var(--surface);
  animation: pulse-dot 2.4s infinite;
}
@keyframes pulse-dot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }

/* ——— app frame ——— */
#app { z-index: 100; }
.appbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 46px 16px 10px;
  background: color-mix(in srgb, var(--cream) 88%, #fff);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.appbar-title { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.appbar-title img { width: 38px; height: 38px; border-radius: 50%; }
.appbar-title .t { display: grid; line-height: 1.22; min-width: 0; }
.appbar-title .t b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.appbar-title .t span { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--saffron-600); }

.content {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  position: relative;
}
.screen { display: none; padding-bottom: 28px; min-height: 100%; }
.screen.on { display: block; animation: screen-in var(--t-med) var(--ease-out); }
@keyframes screen-in { from { opacity: 0; transform: translateY(10px); } }

/* bottom nav */
.bottomnav {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  padding: 8px 8px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 94%, var(--cream));
  border-top: 1px solid var(--line-soft);
  box-shadow: 0 -8px 24px rgba(33, 26, 12, 0.06);
}
.bn-item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 6px 0 2px;
  color: var(--muted);
  transition: color var(--t-fast);
}
.bn-item small { font-size: 11.5px; font-weight: 750; letter-spacing: 0.01em; }
.bn-item .bn-pill {
  display: grid;
  place-items: center;
  width: 56px;
  height: 32px;
  border-radius: 99px;
  transition: background var(--t-med) var(--ease-out);
}
.bn-item.on { color: var(--saffron-700); }
.bn-item.on .bn-pill { background: color-mix(in srgb, var(--saffron-500) 16%, transparent); }
.bn-item.on .ic { font-variation-settings: "FILL" 1, "wght" 400; }
.bn-item:active .bn-pill { transform: scale(0.9); }
.bn-sos { margin-top: -30px; }
.bn-sos .bn-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: radial-gradient(120% 120% at 30% 20%, #e9655c, var(--red) 70%);
  border: 5px solid var(--surface);
  box-shadow: 0 10px 24px rgba(207, 62, 54, 0.42);
  animation: sos-breathe 3.2s ease-in-out infinite;
}
.bn-sos small { color: var(--red); }
@keyframes sos-breathe {
  0%, 100% { box-shadow: 0 10px 24px rgba(207, 62, 54, 0.42), 0 0 0 0 rgba(207, 62, 54, 0.28); }
  50% { box-shadow: 0 10px 24px rgba(207, 62, 54, 0.42), 0 0 0 11px rgba(207, 62, 54, 0); }
}

/* ——— drawer ——— */
.drawer-scrim {
  position: absolute;
  inset: 0;
  z-index: 200;
  background: rgba(9, 15, 30, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease-out);
}
.drawer-scrim.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: absolute;
  z-index: 210;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(316px, 86%);
  background: var(--surface);
  border-radius: 0 var(--r-xl) var(--r-xl) 0;
  box-shadow: var(--sh-3);
  transform: translateX(-104%);
  transition: transform 0.38s var(--ease-out);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.drawer.on { transform: translateX(0); }
.drawer-head {
  padding: 52px 20px 18px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(236, 125, 31, 0.28), transparent 55%),
    linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: #fff;
}
.drawer-head .avatar { width: 58px; height: 58px; font-size: 19px; margin-bottom: 12px; box-shadow: 0 0 0 3px rgba(214, 168, 72, 0.5); }
.drawer-head b { display: block; font-size: 18px; font-weight: 800; }
.drawer-head span { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.66); margin-top: 2px; }
.drawer-id {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 99px;
  background: rgba(214, 168, 72, 0.16);
  box-shadow: inset 0 0 0 1px rgba(214, 168, 72, 0.45);
  color: var(--gold-soft);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 10px 12px 16px; }
.drawer-label {
  padding: 14px 12px 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.drawer-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11.5px 12px;
  border-radius: var(--r-sm);
  text-align: left;
  color: var(--ink);
  transition: background var(--t-fast);
}
.drawer-item:active { background: var(--sand); }
.drawer-item .ic { color: var(--ink-2); font-size: 22px; }
.drawer-item b { flex: 1; font-size: 15px; font-weight: 650; }
.drawer-item .tag {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--saffron-500);
  color: #fff;
}
.drawer-item .tag.soft { background: var(--green-soft); color: var(--green); }
.drawer-item.danger, .drawer-item.danger .ic { color: var(--red); }
.drawer-foot { padding: 12px 20px 20px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line-soft); line-height: 1.55; }

/* ——— generic components ——— */
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--navy-700), var(--navy-950));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  flex: 0 0 auto;
}
.avatar.gold { background: linear-gradient(140deg, var(--saffron-400), var(--saffron-700)); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 18px 10px;
}
.section-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 21px; letter-spacing: 0.005em; }
.section-head .kicker { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--saffron-600); margin-bottom: 2px; }
.section-head .link { font-size: 14px; font-weight: 750; color: var(--saffron-600); white-space: nowrap; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 18px 12px; }
.chip {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 15px;
  border-radius: 99px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
  transition: all var(--t-fast) var(--ease-out);
}
.chip:active { transform: scale(0.95); }
.chip.on { background: var(--navy-950); color: #fff; box-shadow: none; }

.card {
  margin: 0 16px 14px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  border: 1px solid rgba(33, 26, 12, 0.04);
  overflow: hidden;
}

.list-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  text-align: left;
  color: var(--ink);
  transition: background var(--t-fast);
}
.list-item:active { background: var(--sand); }
.list-item + .list-item { border-top: 1px solid var(--line-soft); }
.list-item .li-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.list-item .li-main b { font-size: 15.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .li-main span { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item > .ic.chev { color: var(--muted); font-size: 22px; }

.icotile {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
}
.icotile .ic { font-size: 24px; }
.tint-amber { background: var(--amber-soft); color: var(--amber); }
.tint-green { background: var(--green-soft); color: var(--green); }
.tint-blue { background: var(--blue-soft); color: var(--blue); }
.tint-rose { background: var(--rose-soft); color: var(--rose); }
.tint-violet { background: var(--violet-soft); color: var(--violet); }
.tint-teal { background: var(--teal-soft); color: var(--teal); }
.tint-navy { background: var(--navy-soft); color: var(--navy-700); }

.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  margin: 4px 16px 14px;
  padding: 4px;
  background: var(--sand);
  border-radius: var(--r-md);
}
.seg button {
  min-height: 40px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 750;
  color: var(--ink-2);
  transition: all var(--t-med) var(--ease-out);
}
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }

.switch {
  position: relative;
  width: 50px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: #d8d0c0;
  transition: background var(--t-med) var(--ease-out);
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform var(--t-med) var(--ease-spring);
}
.switch.on { background: var(--green); }
.switch.on::after { transform: translateX(20px); }

.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 750; color: var(--ink-2); }
.field input, .field select, .field textarea {
  min-height: 52px;
  padding: 12px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 16px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 96px; resize: none; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--saffron-500);
  box-shadow: 0 0 0 4px rgba(236, 125, 31, 0.14);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form { display: grid; gap: 15px; }
.checkline { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.checkline input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--saffron-600); }

.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 16px 12px;
  padding: 0 16px;
  min-height: 50px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.searchbar .ic { color: var(--muted); }
.searchbar input { flex: 1; border: 0; background: none; font-size: 16px; min-width: 0; }
.searchbar input:focus { outline: none; }

.empty { padding: 44px 30px; text-align: center; color: var(--muted); display: grid; justify-items: center; gap: 10px; }
.empty .ic { font-size: 46px; color: #cfc5b0; }
.empty b { color: var(--ink-2); font-size: 16px; }
.empty span { font-size: 14px; line-height: 1.5; }

.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 16px 14px; }
.stat-tile {
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  padding: 14px 8px;
  text-align: center;
  display: grid;
  gap: 2px;
}
.stat-tile b { font-size: 19px; font-weight: 800; }
.stat-tile span { font-size: 12px; font-weight: 650; color: var(--muted); }

/* skeleton */
.skeleton { position: relative; overflow: hidden; background: #ece5d6; border-radius: var(--r-sm); }
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.65) 50%, transparent 70%);
  animation: shimmer 1.4s infinite;
  transform: translateX(-100%);
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* staggered list entry */
.stagger > * { animation: rise-in 0.5s var(--ease-out) both; }
.stagger > *:nth-child(1) { animation-delay: 0.03s; }
.stagger > *:nth-child(2) { animation-delay: 0.07s; }
.stagger > *:nth-child(3) { animation-delay: 0.11s; }
.stagger > *:nth-child(4) { animation-delay: 0.15s; }
.stagger > *:nth-child(5) { animation-delay: 0.19s; }
.stagger > *:nth-child(6) { animation-delay: 0.23s; }
.stagger > *:nth-child(7) { animation-delay: 0.27s; }
.stagger > *:nth-child(8) { animation-delay: 0.31s; }

/* ——— HOME ——— */
.stories { display: flex; gap: 14px; overflow-x: auto; padding: 14px 18px 6px; }
.story { position: relative; display: grid; justify-items: center; gap: 6px; flex: 0 0 auto; width: 66px; }
.story .ring {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(140deg, var(--gold), var(--saffron-500), var(--saffron-700));
  transition: transform var(--t-fast) var(--ease-out);
}
.story:active .ring { transform: scale(0.92); }
.story .ring.live { background: linear-gradient(140deg, #ff8177, var(--red)); animation: ring-glow 2.2s infinite; }
@keyframes ring-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(207, 62, 54, 0.35); }
  55% { box-shadow: 0 0 0 7px rgba(207, 62, 54, 0); }
}
.story img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2.5px solid var(--cream); }
.story small { font-size: 11.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 66px; }
.story .live-tag {
  position: absolute;
  margin-top: 47px;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  border: 2px solid var(--cream);
}

.blessing {
  position: relative;
  margin: 12px 16px 6px;
  min-height: 158px;
  border-radius: var(--r-lg);
  padding: 22px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(8, 24, 49, 0.93), rgba(16, 41, 78, 0.72)),
    url("assets/img/prayer-still-life.png") center / cover;
  box-shadow: var(--sh-2);
}
.blessing::after {
  content: "ॐ";
  position: absolute;
  top: -16px;
  right: 14px;
  font-family: var(--font-display);
  font-size: 104px;
  color: rgba(255, 255, 255, 0.07);
}
.blessing .b-copy { position: relative; display: grid; gap: 5px; }
.blessing .b-copy span { font-size: 11.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); }
.blessing .b-copy h2 { font-family: var(--font-display); font-weight: 400; font-size: 23px; line-height: 1.2; max-width: 240px; }
.blessing .b-copy p { font-size: 13px; color: rgba(255, 255, 255, 0.72); max-width: 235px; line-height: 1.5; }
.vratham-ring {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(closest-side, rgba(10, 26, 52, 0.92) 76%, transparent 77% 100%),
    conic-gradient(var(--gold) calc(var(--pct, 44) * 1%), rgba(255, 255, 255, 0.18) 0);
  color: #fff;
  text-align: center;
  transition: transform var(--t-fast) var(--ease-out);
}
.vratham-ring:active { transform: scale(0.92); }
.vratham-ring b { font-size: 17px; line-height: 1; }
.vratham-ring small { display: block; font-size: 9.5px; color: rgba(255, 255, 255, 0.62); font-weight: 700; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 14px 14px 4px; }
.quick { display: grid; justify-items: center; gap: 7px; padding: 8px 2px; border-radius: var(--r-md); transition: transform var(--t-fast) var(--ease-out); }
.quick:active { transform: scale(0.93); }
.quick .icotile { width: 52px; height: 52px; border-radius: 18px; }
.quick small { font-size: 12px; font-weight: 750; color: var(--ink-2); }

/* feed */
.post { margin: 0 14px 16px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-1); border: 1px solid rgba(33, 26, 12, 0.04); overflow: hidden; }
.post-head { display: flex; align-items: center; gap: 11px; padding: 14px 16px 6px; }
.post-head .p-meta { flex: 1; min-width: 0; display: grid; }
.post-head .p-meta b { font-size: 14.5px; font-weight: 750; display: flex; align-items: center; gap: 5px; }
.post-head .p-meta b .ic { font-size: 16px; color: var(--blue); font-variation-settings: "FILL" 1; }
.post-head .p-meta span { font-size: 12.5px; color: var(--muted); }
.post-head .iconbtn { width: 36px; height: 36px; box-shadow: none; background: transparent; color: var(--muted); }
.post-copy { padding: 4px 16px 12px; font-size: 15px; line-height: 1.58; color: #35301f; }
.post-media { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-alertbox {
  margin: 0 16px 12px;
  border-radius: var(--r-md);
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: #fff;
}
.post-alertbox .ic { color: #9fe2c3; }
.post-alertbox.info .ic { color: var(--gold-soft); }
.post-alertbox b { display: block; font-size: 15.5px; font-family: var(--font-display); font-weight: 400; }
.post-alertbox span { font-size: 12.5px; color: rgba(255, 255, 255, 0.66); }
.post-event {
  margin: 0 16px 12px;
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  background: linear-gradient(120deg, #fdf3e2, #fae8cc);
  border: 1px solid #f0dcb8;
}
.post-event .pe-date {
  display: grid;
  place-content: center;
  text-align: center;
  min-width: 76px;
  padding: 14px 10px;
  background: linear-gradient(160deg, var(--saffron-500), var(--saffron-700));
  color: #fff;
}
.post-event .pe-date b { font-size: 26px; line-height: 1; font-weight: 800; }
.post-event .pe-date span { font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em; }
.post-event .pe-info { flex: 1; padding: 12px 14px; display: grid; align-content: center; gap: 2px; }
.post-event .pe-info span { font-size: 11px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--amber); }
.post-event .pe-info b { font-family: var(--font-display); font-weight: 400; font-size: 18px; }
.post-event .pe-info small { font-size: 12.5px; color: var(--ink-2); }
.post-audio {
  margin: 0 16px 12px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px;
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
  color: #fff;
}
.post-audio img { width: 56px; height: 56px; border-radius: var(--r-xs); object-fit: cover; }
.post-audio .pa-info { flex: 1; min-width: 0; display: grid; gap: 1px; }
.post-audio .pa-info span { font-size: 11px; font-weight: 800; letter-spacing: 0.13em; color: var(--gold-soft); text-transform: uppercase; }
.post-audio .pa-info b { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-audio .pa-info small { font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.post-audio .pa-play {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--saffron-500);
  color: #fff;
  box-shadow: 0 6px 16px rgba(236, 125, 31, 0.45);
  transition: transform var(--t-fast) var(--ease-out);
}
.post-audio .pa-play:active { transform: scale(0.88); }
.post-video { position: relative; display: block; width: 100%; }
.post-video .pv-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 18, 36, 0.28);
  color: #fff;
  transition: background var(--t-fast);
}
.post-video .pv-play i {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5);
}
.post-video .pv-dur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(5, 10, 22, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
}
.post-stats {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}
.post-stats .saranam-count { display: flex; align-items: center; gap: 5px; }
.post-stats .saranam-count .ic { font-size: 15px; color: var(--saffron-500); font-variation-settings: "FILL" 1; }
.post-actions { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-soft); }
.post-actions button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 750;
  color: var(--ink-2);
  transition: background var(--t-fast), color var(--t-fast);
}
.post-actions button:active { background: var(--sand); }
.post-actions button.on { color: var(--saffron-600); }
.post-actions button.on .ic { font-variation-settings: "FILL" 1; animation: heart-pop 0.45s var(--ease-spring); }
@keyframes heart-pop { 0% { transform: scale(0.4); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* ——— BHAJANS ——— */
.media-hero {
  position: relative;
  margin: 12px 16px 4px;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 190px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(8, 24, 49, 0.1) 20%, rgba(8, 24, 49, 0.92)),
    url("assets/img/hero-temple-evening.png") center 35% / cover;
  box-shadow: var(--sh-2);
}
.media-hero .mh-copy { display: grid; gap: 4px; }
.media-hero .mh-copy span { font-size: 11.5px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-soft); }
.media-hero .mh-copy h2 { font-family: var(--font-display); font-weight: 400; font-size: 25px; }
.media-hero .mh-copy p { font-size: 13.5px; color: rgba(255, 255, 255, 0.75); }
.media-hero .mh-play {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--saffron-500);
  color: #fff;
  box-shadow: 0 10px 26px rgba(236, 125, 31, 0.5);
  transition: transform var(--t-fast) var(--ease-out);
}
.media-hero .mh-play:active { transform: scale(0.88); }

.hscroll { display: flex; gap: 13px; overflow-x: auto; padding: 6px 18px 14px; }
.cover-card { flex: 0 0 auto; width: 138px; display: grid; gap: 7px; text-align: left; transition: transform var(--t-fast) var(--ease-out); }
.cover-card:active { transform: scale(0.95); }
.cover-card .cc-art { position: relative; width: 138px; height: 138px; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-1); }
.cover-card .cc-art img { width: 100%; height: 100%; object-fit: cover; }
.cover-card .cc-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8, 18, 36, 0.55)); }
.cover-card .cc-n { position: absolute; left: 10px; bottom: 8px; z-index: 1; color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em; }
.cover-card b { font-size: 14px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cover-card span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.track {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px;
  text-align: left;
  transition: background var(--t-fast);
}
.track:active { background: var(--sand); }
.track img { width: 52px; height: 52px; border-radius: var(--r-xs); object-fit: cover; flex: 0 0 auto; box-shadow: var(--sh-1); }
.track .tr-info { flex: 1; min-width: 0; display: grid; gap: 1px; }
.track .tr-info b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track .tr-info b .eqz { color: var(--saffron-600); }
.track .tr-info span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track .tr-fav { color: #c9beab; padding: 8px; transition: transform var(--t-fast) var(--ease-spring), color var(--t-fast); }
.track .tr-fav.on { color: var(--rose); }
.track .tr-fav.on .ic { font-variation-settings: "FILL" 1; animation: heart-pop 0.45s var(--ease-spring); }
.track .tr-time { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.track.playing b { color: var(--saffron-700); }

/* equalizer bars */
.eqz { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; margin-right: 3px; }
.eqz i { width: 3px; border-radius: 2px; background: currentColor; animation: eq 0.9s ease-in-out infinite; }
.eqz i:nth-child(1) { height: 40%; animation-delay: 0s; }
.eqz i:nth-child(2) { height: 100%; animation-delay: 0.2s; }
.eqz i:nth-child(3) { height: 60%; animation-delay: 0.4s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1); } }

/* mini player */
.miniplayer {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
  color: #fff;
  box-shadow: var(--sh-3);
  transform: translateY(calc(100% + 110px));
  transition: transform 0.42s var(--ease-spring);
  visibility: hidden;
}
.miniplayer.on { transform: translateY(0); visibility: visible; }
.miniplayer img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.miniplayer .mp-info { flex: 1; min-width: 0; display: grid; text-align: left; }
.miniplayer .mp-info b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.miniplayer .mp-info span { font-size: 11.5px; color: rgba(255, 255, 255, 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.miniplayer .iconbtn { background: rgba(255, 255, 255, 0.1); box-shadow: none; color: #fff; width: 38px; height: 38px; }
.miniplayer .mp-progress { position: absolute; left: 12px; right: 12px; bottom: 0; height: 2.5px; border-radius: 4px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.miniplayer .mp-progress i { display: block; height: 100%; width: 0%; background: var(--saffron-400); transition: width 0.4s linear; }

/* full player page */
.player {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px 26px 30px;
  color: #fff;
  background:
    radial-gradient(120% 60% at 50% -5%, rgba(236, 125, 31, 0.35), transparent 55%),
    linear-gradient(170deg, var(--navy-900), var(--navy-950) 70%);
  text-align: center;
}
.player .pl-art {
  width: min(78%, 280px);
  aspect-ratio: 1;
  margin: 18px auto 26px;
  border-radius: var(--r-xl);
  object-fit: cover;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
  animation: art-in 0.5s var(--ease-spring) both;
}
@keyframes art-in { from { opacity: 0; transform: scale(0.86); } }
.player .pl-kicker { font-size: 11.5px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); }
.player h2 { font-family: var(--font-display); font-weight: 400; font-size: 26px; margin: 6px 0 3px; }
.player .pl-artist { font-size: 14px; color: rgba(255, 255, 255, 0.62); }
.player .pl-scrub { margin: 26px 0 6px; }
.player input[type="range"] {
  width: 100%;
  height: 22px;
  appearance: none;
  background: transparent;
}
.player input[type="range"]::-webkit-slider-runnable-track {
  height: 4.5px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--saffron-400) var(--fill, 0%), rgba(255, 255, 255, 0.18) var(--fill, 0%));
}
.player input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 15px;
  height: 15px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.player .pl-times { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255, 255, 255, 0.55); font-weight: 650; }
.player .pl-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 20px 0 8px; }
.player .pl-controls .side { color: rgba(255, 255, 255, 0.82); padding: 10px; transition: transform var(--t-fast) var(--ease-out); }
.player .pl-controls .side:active { transform: scale(0.85); }
.player .pl-controls .side.dim { color: rgba(255, 255, 255, 0.4); }
.player .pl-controls .side.lit { color: var(--saffron-400); }
.player .pl-main {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--saffron-500);
  color: #fff;
  box-shadow: 0 14px 34px rgba(236, 125, 31, 0.5);
  transition: transform var(--t-fast) var(--ease-out);
}
.player .pl-main:active { transform: scale(0.9); }
.player .pl-foot { display: flex; justify-content: space-around; margin-top: auto; padding-top: 16px; }
.player .pl-foot button { display: grid; justify-items: center; gap: 4px; color: rgba(255, 255, 255, 0.72); font-size: 11.5px; font-weight: 700; }
.player .pl-foot button.on { color: var(--saffron-400); }
.player .pl-foot button.on .ic { font-variation-settings: "FILL" 1; }
.player .pl-about {
  margin-top: 20px;
  padding: 15px 17px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.07);
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
}

/* ——— VIDEOS ——— */
.vcard { margin: 0 0 20px; width: 100%; text-align: left; }
.vcard .vc-thumb { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-900); }
.vcard .vc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.vcard:active .vc-thumb img { transform: scale(1.04); }
.vcard .vc-dur { position: absolute; right: 8px; bottom: 8px; padding: 3px 7px; border-radius: 6px; background: rgba(5, 10, 22, 0.85); color: #fff; font-size: 12px; font-weight: 750; }
.vcard .vc-meta { display: flex; gap: 11px; padding: 11px 16px 0; }
.vcard .vc-meta .avatar { width: 38px; height: 38px; font-size: 12px; }
.vcard .vc-meta .vm { flex: 1; min-width: 0; display: grid; gap: 2px; }
.vcard .vc-meta .vm b { font-size: 15px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard .vc-meta .vm span { font-size: 13px; color: var(--muted); }
.video-embed { width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.vrow { width: 100%; display: flex; gap: 12px; padding: 8px 16px; text-align: left; transition: background var(--t-fast); }
.vrow:active { background: var(--sand); }
.vrow .vr-thumb { position: relative; width: 148px; flex: 0 0 auto; aspect-ratio: 16 / 9; border-radius: var(--r-xs); overflow: hidden; }
.vrow .vr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vrow .vr-info { flex: 1; min-width: 0; display: grid; align-content: start; gap: 2px; }
.vrow .vr-info b { font-size: 13.5px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vrow .vr-info span { font-size: 12px; color: var(--muted); }

/* ——— LIVE ——— */
.live-hero {
  position: relative;
  margin: 12px 16px;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(180deg, rgba(8, 24, 49, 0.15), rgba(8, 24, 49, 0.75)),
    url("assets/img/hero-temple-evening.png") center / cover;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #fff;
  box-shadow: var(--sh-2);
}
.live-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(5, 10, 22, 0.7);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.live-badge i { width: 8px; height: 8px; border-radius: 50%; background: #ff5148; animation: pulse-dot 1.6s infinite; }
.live-hero .lh-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5);
  transition: transform var(--t-fast) var(--ease-out);
}
.live-hero .lh-play:active { transform: translate(-50%, -50%) scale(0.88); }
.live-hero .lh-meta b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 19px; }
.live-hero .lh-meta span { font-size: 12.5px; color: rgba(255, 255, 255, 0.72); }
.live-hero .lh-viewers { position: absolute; top: 14px; right: 14px; padding: 5px 10px; border-radius: 99px; background: rgba(5, 10, 22, 0.7); font-size: 11.5px; font-weight: 750; display: inline-flex; align-items: center; gap: 5px; }
.sched {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 18px;
}
.sched + .sched { border-top: 1px solid var(--line-soft); }
.sched .sc-time { min-width: 52px; font-size: 15px; font-weight: 800; color: var(--navy-700); font-variant-numeric: tabular-nums; }
.sched .sc-main { flex: 1; min-width: 0; display: grid; }
.sched .sc-main b { font-size: 15px; font-weight: 700; }
.sched .sc-main span { font-size: 12.5px; color: var(--muted); }
.sched .bellbtn { color: #c9beab; padding: 8px; transition: color var(--t-fast), transform var(--t-fast) var(--ease-spring); }
.sched .bellbtn.on { color: var(--saffron-600); }
.sched .bellbtn.on .ic { font-variation-settings: "FILL" 1; animation: bell-ring 0.5s var(--ease-spring); }
@keyframes bell-ring { 0% { transform: rotate(0); } 30% { transform: rotate(18deg); } 60% { transform: rotate(-14deg); } 100% { transform: rotate(0); } }
.sched.now { background: linear-gradient(90deg, rgba(236, 125, 31, 0.1), transparent); border-left: 3px solid var(--saffron-500); }

/* ——— SEVA (donate + mart) ——— */
.impact-banner {
  margin: 12px 16px 4px;
  border-radius: var(--r-lg);
  padding: 18px 20px;
  color: #fff;
  background:
    radial-gradient(130% 110% at 100% 0%, rgba(214, 168, 72, 0.35), transparent 50%),
    linear-gradient(130deg, var(--navy-950), var(--navy-800));
  box-shadow: var(--sh-2);
  display: grid;
  gap: 3px;
}
.impact-banner span { font-size: 11.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); }
.impact-banner h2 { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.25; }
.impact-banner p { font-size: 13px; color: rgba(255, 255, 255, 0.72); }

.cause {
  width: calc(100% - 32px);
  margin: 0 16px 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid rgba(33, 26, 12, 0.04);
  box-shadow: var(--sh-1);
  text-align: left;
  transition: transform var(--t-fast) var(--ease-out);
}
.cause:active { transform: scale(0.98); }
.cause .c-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cause .c-info b { font-size: 15.5px; font-weight: 750; }
.cause .c-info span { font-size: 13px; line-height: 1.45; color: var(--muted); }
.cause .c-amt { display: grid; justify-items: end; gap: 2px; }
.cause .c-amt b { font-size: 15px; font-weight: 800; color: var(--saffron-700); }
.cause .c-amt span { font-size: 11px; font-weight: 700; color: var(--muted); }

.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.amount-grid button {
  min-height: 48px;
  border-radius: var(--r-sm);
  background: var(--sand);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-2);
  transition: all var(--t-fast) var(--ease-out);
}
.amount-grid button.on { background: var(--navy-950); color: #fff; transform: scale(1.03); }

.paymethods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.paymethods button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 13.5px;
  font-weight: 750;
  color: var(--ink-2);
}
.paymethods button.on { box-shadow: inset 0 0 0 2px var(--saffron-500); color: var(--saffron-700); background: #fef4e8; }

.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px 16px 14px; }
.product {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid rgba(33, 26, 12, 0.04);
  box-shadow: var(--sh-1);
  overflow: hidden;
  text-align: left;
  display: grid;
  transition: transform var(--t-fast) var(--ease-out);
}
.product:active { transform: scale(0.97); }
.product .pr-art {
  position: relative;
  aspect-ratio: 5 / 4;
  display: grid;
  place-items: center;
}
.product .pr-art .ic { font-size: 52px; opacity: 0.9; }
.product .pr-art .pr-off {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.product .pr-body { padding: 11px 13px 13px; display: grid; gap: 4px; }
.product .pr-body small { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.product .pr-body b { font-size: 14px; font-weight: 750; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product .pr-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 750; color: var(--ink-2); }
.product .pr-rating .ic { font-size: 14px; color: var(--amber); font-variation-settings: "FILL" 1; }
.product .pr-price { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.product .pr-price .p { display: flex; align-items: baseline; gap: 6px; }
.product .pr-price .p b { font-size: 16.5px; font-weight: 800; min-height: 0; }
.product .pr-price .p s { font-size: 12px; color: var(--muted); }
.product .pr-add {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--navy-950);
  color: #fff;
  transition: transform var(--t-fast) var(--ease-spring);
}
.product .pr-add:active { transform: scale(0.85); }

.cartbar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 10px 8px 18px;
  border-radius: var(--r-md);
  background: var(--navy-950);
  color: #fff;
  box-shadow: var(--sh-3);
  transform: translateY(calc(100% + 116px));
  transition: transform 0.4s var(--ease-spring);
  visibility: hidden;
}
.cartbar.on { transform: translateY(0); visibility: visible; }
.cartbar b { flex: 1; font-size: 14.5px; }
.cartbar .cb-count { font-size: 12px; color: rgba(255, 255, 255, 0.65); display: block; }
.cartbar .btn { min-height: 42px; }

.qty { display: inline-flex; align-items: center; gap: 2px; background: var(--sand); border-radius: 99px; padding: 3px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--sh-1); }
.qty b { min-width: 30px; text-align: center; font-size: 14.5px; }

.receipt {
  margin: 0 16px 13px;
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid rgba(33, 26, 12, 0.04);
  box-shadow: var(--sh-1);
  padding: 16px;
  display: grid;
  gap: 9px;
}
.receipt .rc-top { display: flex; align-items: center; gap: 10px; }
.receipt .rc-top .badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11.5px;
  font-weight: 800;
}
.receipt .rc-top span { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.receipt b.rc-title { font-size: 16px; font-weight: 750; }
.receipt .rc-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-2); }
.receipt .rc-row b { font-weight: 750; color: var(--ink); }

/* ——— sheets & pages ——— */
.sheet-layer { position: absolute; inset: 0; z-index: 330; display: flex; align-items: flex-end; pointer-events: none; }
.sheet-layer .scrim { position: absolute; inset: 0; background: rgba(9, 15, 30, 0.52); opacity: 0; transition: opacity var(--t-med); }
.sheet-layer.on { pointer-events: auto; }
.sheet-layer.on .scrim { opacity: 1; }
.sheet {
  position: relative;
  width: 100%;
  max-height: 88%;
  background: var(--cream);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: 0 -18px 60px rgba(9, 15, 30, 0.3);
  transform: translateY(105%);
  transition: transform 0.42s var(--ease-spring);
  display: flex;
  flex-direction: column;
}
.sheet-layer.on .sheet { transform: translateY(0); }
.sheet .grab { flex: 0 0 auto; padding: 10px 0 2px; display: grid; place-items: center; }
.sheet .grab i { width: 42px; height: 5px; border-radius: 99px; background: #d9d0bd; }
.sheet-body { overflow-y: auto; padding: 10px 22px calc(26px + env(safe-area-inset-bottom)); }
.sheet-body h2 { font-family: var(--font-display); font-weight: 400; font-size: 23px; margin-bottom: 4px; }
.sheet-body .sheet-sub { font-size: 14px; color: var(--muted); line-height: 1.55; margin-bottom: 16px; }

.page {
  position: absolute;
  inset: 0;
  z-index: 160;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  transform: translateX(100%);
  transition: transform 0.36s var(--ease-out);
}
.page.on { transform: translateX(0); }
.page.dark { background: var(--navy-950); }
.page-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 46px 12px 10px;
  background: color-mix(in srgb, var(--cream) 88%, #fff);
  border-bottom: 1px solid var(--line-soft);
}
.page.dark .page-head { background: transparent; border-bottom-color: rgba(255, 255, 255, 0.08); color: #fff; }
.page.dark .page-head .iconbtn { background: rgba(255, 255, 255, 0.1); box-shadow: none; color: #fff; }
.page-head b { flex: 1; font-size: 17.5px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-body { flex: 1; overflow-y: auto; padding-bottom: 30px; }

/* toast */
.toast {
  position: absolute;
  z-index: 360;
  left: 50%;
  bottom: 106px;
  transform: translate(-50%, 16px);
  max-width: calc(100% - 48px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #16130c;
  color: #fff;
  padding: 13px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 650;
  box-shadow: var(--sh-3);
  opacity: 0;
  pointer-events: none;
  transition: all var(--t-med) var(--ease-out);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast .ic { color: var(--gold); font-size: 20px; }

/* ——— SOS ——— */
.sos-sheet { text-align: center; }
.sos-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 16px 0 20px; }
.sos-types button {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 13px 4px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 12px;
  font-weight: 750;
  color: var(--ink-2);
  transition: all var(--t-fast) var(--ease-out);
}
.sos-types button .ic { font-size: 26px; }
.sos-types button.on { box-shadow: inset 0 0 0 2px var(--red); color: var(--red); background: var(--red-soft); }
.sos-hold {
  position: relative;
  width: 172px;
  height: 172px;
  margin: 6px auto 14px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  gap: 2px;
  color: #fff;
  background: radial-gradient(120% 120% at 30% 20%, #ea6a61, var(--red) 75%);
  box-shadow: 0 18px 44px rgba(207, 62, 54, 0.45);
  transition: transform var(--t-fast) var(--ease-out);
}
.sos-hold:active { transform: scale(0.96); }
.sos-hold b { font-size: 19px; font-weight: 800; letter-spacing: 0.06em; }
.sos-hold small { font-size: 12px; color: rgba(255, 255, 255, 0.8); font-weight: 650; }
.sos-hold .hold-ring { position: absolute; inset: -9px; border-radius: 50%; }
.sos-hold .hold-ring circle {
  fill: none;
  stroke: var(--red);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 597;
  stroke-dashoffset: 597;
  transform: rotate(-90deg);
  transform-origin: center;
  opacity: 0.35;
}
.sos-hold.holding .hold-ring circle { opacity: 1; transition: stroke-dashoffset 2s linear; stroke-dashoffset: 0; }
.sos-note { font-size: 12.5px; color: var(--muted); line-height: 1.55; }

/* success view */
.success { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 8px 0; }
.success .ok-ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  animation: splash-pop 0.6s var(--ease-spring) both;
}
.success .ok-ring .ic { font-size: 44px; }
.success h2 { font-family: var(--font-display); font-weight: 400; font-size: 24px; }
.success p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; max-width: 300px; }
.kv {
  width: 100%;
  background: var(--surface);
  border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
  padding: 6px 16px;
  display: grid;
}
.kv > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; font-size: 14px; }
.kv > div + div { border-top: 1px solid var(--line-soft); }
.kv span { color: var(--muted); }
.kv b { font-weight: 750; text-align: right; }

/* ——— yatra ——— */
.journey-hero {
  margin: 12px 16px 6px;
  border-radius: var(--r-lg);
  padding: 20px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(8, 24, 49, 0.94), rgba(16, 41, 78, 0.78)),
    url("assets/img/hero-temple-evening.png") center 60% / cover;
  box-shadow: var(--sh-2);
  display: grid;
  gap: 12px;
}
.journey-hero .jh-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #9fe2c3; }
.journey-hero .jh-status i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; animation: pulse-dot 2s infinite; }
.journey-hero h2 { font-family: var(--font-display); font-weight: 400; font-size: 23px; }
.journey-hero p { font-size: 13px; color: rgba(255, 255, 255, 0.72); margin-top: -8px; }
.journey-hero .jh-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.journey-hero .jh-meta div { background: rgba(255, 255, 255, 0.09); border-radius: var(--r-sm); padding: 10px 6px; text-align: center; }
.journey-hero .jh-meta b { display: block; font-size: 16px; }
.journey-hero .jh-meta span { font-size: 10.5px; font-weight: 700; color: rgba(255, 255, 255, 0.62); letter-spacing: 0.04em; }

.timeline { padding: 4px 18px 8px; display: grid; }
.tl-row { position: relative; display: flex; gap: 15px; padding: 0 0 22px 2px; }
.tl-row::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 42px;
  bottom: 2px;
  width: 2.5px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--gold), var(--line));
}
.tl-row:last-child::before { display: none; }
.tl-dot {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--saffron-400), var(--saffron-700));
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(217, 106, 21, 0.3);
}
.tl-main { display: grid; gap: 2px; padding-top: 2px; }
.tl-main b { font-size: 15.5px; font-weight: 750; }
.tl-main span { font-size: 13.5px; line-height: 1.5; color: var(--muted); }

.practice { margin: 0 16px 14px; background: var(--surface); border-radius: var(--r-lg); border: 1px solid rgba(33, 26, 12, 0.04); box-shadow: var(--sh-1); padding: 16px; }
.practice .pr-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.practice .pr-head span { font-size: 11.5px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--saffron-600); }
.practice .pr-head b { font-size: 13.5px; color: var(--muted); font-weight: 700; }
.practice .bar { height: 7px; border-radius: 99px; background: var(--sand); overflow: hidden; margin-bottom: 8px; }
.practice .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--saffron-500)); transition: width 0.6s var(--ease-out); }
.check-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 2px;
  text-align: left;
}
.check-item + .check-item { border-top: 1px solid var(--line-soft); }
.check-item .ck {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid #d8cfba;
  color: transparent;
  transition: all var(--t-med) var(--ease-spring);
}
.check-item.done .ck { background: var(--green); border-color: var(--green); color: #fff; }
.check-item .ck .ic { font-size: 18px; }
.check-item .ci-main { flex: 1; display: grid; }
.check-item .ci-main b { font-size: 15px; font-weight: 700; transition: color var(--t-fast); }
.check-item .ci-main span { font-size: 12.5px; color: var(--muted); }
.check-item.done .ci-main b { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, 0.3); }

/* ——— nearby ——— */
.mapmock {
  position: relative;
  margin: 12px 16px;
  height: 168px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 75% 20%, rgba(214, 168, 72, 0.25), transparent 60%),
    linear-gradient(150deg, #dfe9dc, #cfdfd2 55%, #c5d6ce);
  box-shadow: var(--sh-1);
}
.mapmock .river {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 58%;
  height: 26px;
  background: rgba(88, 140, 190, 0.5);
  border-radius: 99px;
  transform: rotate(-7deg);
}
.mapmock .trail {
  position: absolute;
  left: 12%;
  top: 18%;
  width: 70%;
  height: 55%;
  border: 2.5px dashed rgba(120, 100, 60, 0.5);
  border-radius: 60% 30% 50% 40%;
  border-bottom: 0;
  border-left: 0;
}
.mapmock .pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  background: var(--saffron-600);
  color: #fff;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.28);
}
.mapmock .pin .ic { transform: rotate(45deg); font-size: 16px; }
.mapmock .pin.you { background: var(--blue); animation: pin-bounce 2.4s infinite; }
@keyframes pin-bounce { 0%, 100% { margin-top: 0; } 50% { margin-top: -5px; } }
.mapmock .loc-chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 13px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  font-size: 12.5px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--sh-1);
}
.place { align-items: flex-start; }
.place .pl-dist { text-align: right; display: grid; gap: 1px; }
.place .pl-dist b { font-size: 14px; font-weight: 800; color: var(--navy-700); }
.place .pl-dist span { font-size: 11.5px; color: var(--muted); font-weight: 650; }

/* ——— profile & settings ——— */
.profile-hero {
  margin: 12px 16px;
  border-radius: var(--r-lg);
  padding: 22px 20px;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(236, 125, 31, 0.3), transparent 55%),
    linear-gradient(150deg, var(--navy-950), var(--navy-800));
  box-shadow: var(--sh-2);
}
.profile-hero .avatar { width: 76px; height: 76px; font-size: 24px; box-shadow: 0 0 0 4px rgba(214, 168, 72, 0.45); }
.profile-hero b { font-size: 20px; font-weight: 800; }
.profile-hero span { font-size: 13.5px; color: rgba(255, 255, 255, 0.68); }

.dharma-card {
  margin: 0 16px 14px;
  border-radius: var(--r-lg);
  padding: 20px;
  color: #2b1f07;
  background:
    radial-gradient(140% 100% at 0% 0%, rgba(255, 255, 255, 0.5), transparent 45%),
    linear-gradient(120deg, #f3d9a4, var(--gold) 65%, #c19137);
  box-shadow: var(--sh-2);
  display: grid;
  gap: 10px;
}
.dharma-card .dh-top { display: flex; align-items: center; justify-content: space-between; }
.dharma-card .dh-top img { width: 38px; height: 38px; border-radius: 50%; }
.dharma-card .dh-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 99px; background: rgba(43, 31, 7, 0.14); font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; }
.dharma-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.dharma-card .dh-id { font-size: 14px; font-weight: 800; letter-spacing: 0.14em; }
.dharma-card .dh-meta { display: flex; gap: 20px; font-size: 12px; }
.dharma-card .dh-meta b { display: block; font-size: 13.5px; }
.dharma-card .dh-meta span { color: rgba(43, 31, 7, 0.65); font-weight: 700; }
.qr-box {
  width: 148px;
  height: 148px;
  margin: 14px auto;
  border-radius: var(--r-md);
  background:
    repeating-linear-gradient(0deg, var(--navy-950) 0 6px, transparent 6px 12px),
    repeating-linear-gradient(90deg, var(--navy-950) 0 6px, #fff 6px 12px);
  border: 10px solid #fff;
  box-shadow: var(--sh-1);
}

.notif { align-items: flex-start; position: relative; }
.notif.unread { background: #fdf6e9; }
.notif.unread::after { content: ""; position: absolute; right: 16px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--saffron-500); }
.notif .li-main b { white-space: normal; }
.notif .li-main span { white-space: normal; }
.notif time { font-size: 11.5px; color: var(--muted); font-weight: 700; margin-top: 3px; }

/* about page */
.mission-row { display: flex; gap: 12px; padding: 12px 18px; align-items: flex-start; }
.mission-row .ms { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber); font-family: var(--font-display); font-size: 18px; }
.mission-row b { display: block; font-size: 15px; }
.mission-row span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* calendar table */
.cal-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; }
.cal-row + .cal-row { border-top: 1px solid var(--line-soft); }
.cal-row .cr-main { flex: 1; min-width: 0; }
.cal-row .cr-main b { font-size: 14.5px; font-weight: 700; display: block; }
.cal-row .cr-main span { font-size: 12.5px; color: var(--muted); }
.cal-row .season-tag { font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; padding: 4px 9px; border-radius: 99px; background: var(--amber-soft); color: var(--amber); }

/* language grid */
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lang-grid button {
  min-height: 56px;
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-2);
  transition: all var(--t-fast) var(--ease-out);
}
.lang-grid button.on { box-shadow: inset 0 0 0 2px var(--saffron-500); background: #fef4e8; color: var(--saffron-700); }

/* ——— product detail page ——— */
.gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  background: var(--sand);
}
.gallery .g-slide {
  min-width: 100%;
  scroll-snap-align: center;
  aspect-ratio: 5 / 4;
}
.gallery .g-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g-icon { width: 100%; height: 100%; display: grid; place-items: center; }
.gallery .g-icon .ic { font-size: 96px; }
.gdots { display: flex; justify-content: center; gap: 6px; padding: 12px 0 2px; }
.gdots i {
  width: 7px; height: 7px; border-radius: 99px;
  background: #d8cfba;
  transition: all var(--t-med) var(--ease-out);
}
.gdots i.on { width: 22px; background: var(--saffron-500); }

.stars { display: inline-flex; align-items: center; }
.review { padding: 13px 16px; display: grid; gap: 8px; }
.review + .review { border-top: 1px solid var(--line-soft); }
.review .rv-head { display: flex; align-items: center; gap: 11px; }
.review .rv-head b { font-size: 14.5px; }
.review .rv-verified {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  color: var(--green);
  background: var(--green-soft);
  padding: 4px 9px;
  border-radius: 99px;
}
.review p { font-size: 14px; line-height: 1.55; color: var(--ink-2); }

.buybar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--cream) 92%, #fff);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-soft);
  box-shadow: 0 -10px 24px rgba(33, 26, 12, 0.07);
}
.buybar .qty { padding: 5px; }

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after {
  animation-duration: 0.001s !important;
  transition-duration: 0.001s !important;
}
.large-text { font-size: 17.5px; }
.large-text .post-copy { font-size: 16.5px; }
