/* ==========================================================================
   DHARMA SETHU — Design system
   Palette: deep maroon · warm gold · saffron accent · cream · charcoal
   Type:    Cormorant Garamond (display) · Manrope (UI) · Noto Sans Kannada
            · Tiro Devanagari Sanskrit (mantras)
   ========================================================================== */

:root {
  --maroon-950: #2A070C;
  --maroon-900: #3D0C11;
  --maroon-800: #561420;
  --maroon-700: #72202C;
  --maroon-600: #8C2D38;
  --maroon-100: #F6E7E4;
  --saffron: #D9731E;
  --saffron-soft: #F6DFC7;
  --gold: #B8893A;
  --gold-500: #C9A04F;
  --gold-300: #E3C47E;
  --gold-100: #F5EBD3;
  --cream: #FBF6EC;
  --ivory: #FFFDF8;
  --sand: #F3EADA;
  --sand-2: #EADDC6;
  --charcoal: #211C19;
  --ink: #3A322C;
  --muted: #7A6E63;
  --line: #E6D9C2;
  --line-soft: #EFE5D3;
  --sage: #5E6E4E;
  --success: #2E7A4C;
  --success-bg: #E5F2EA;
  --warning: #A8641A;
  --warning-bg: #FBEEDC;
  --danger: #A3313B;
  --danger-bg: #F8E3E3;
  --info: #3C5A7A;
  --info-bg: #E6EDF4;

  --font-display: 'Cormorant Garamond', 'Noto Serif Kannada', Georgia, serif;
  --font-ui: 'Manrope', 'Noto Sans Kannada', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-deva: 'Tiro Devanagari Sanskrit', 'Noto Serif Devanagari', serif;
  --font-kn: 'Noto Sans Kannada', 'Manrope', sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(61, 12, 17, .06), 0 2px 8px rgba(61, 12, 17, .05);
  --shadow: 0 8px 28px rgba(61, 12, 17, .09), 0 2px 6px rgba(61, 12, 17, .05);
  --shadow-lg: 0 24px 60px rgba(42, 7, 12, .18), 0 6px 16px rgba(42, 7, 12, .08);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --container: 1240px;
  --header-h: 128px;
}

/* --------------------------------- Base --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-ui); font-size: 15.5px; line-height: 1.6; color: var(--ink);
  background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html.lang-kn body { font-size: 15px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--charcoal); margin: 0; line-height: 1.12; font-weight: 600; letter-spacing: -.005em; }
html.lang-kn h1, html.lang-kn h2, html.lang-kn h3 { font-family: var(--font-kn); font-weight: 700; letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }
::selection { background: var(--gold-300); color: var(--maroon-900); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.lucide { width: 18px; height: 18px; stroke-width: 1.8; flex-shrink: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.kn { font-family: var(--font-kn); }
.deva { font-family: var(--font-deva); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 20px; }
.nowrap { white-space: nowrap; }
.show-sm { display: inline-grid; }
@media (max-width: 767px) { .hide-sm { display: none !important; } }
@media (min-width: 768px) { .show-sm { display: none !important; } }

/* --------------------------- Decorative motifs --------------------------- */
.temple-border {
  height: 12px; width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cpath d='M0 12 L12 2 L24 12' fill='none' stroke='%23C9A04F' stroke-width='1.2'/%3E%3Ccircle cx='12' cy='7.5' r='1.3' fill='%23C9A04F'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 24px 12px; opacity: .8;
}
.temple-border.dark { filter: brightness(1.15); opacity: .5; }
.divider-lotus { display: flex; align-items: center; gap: 14px; color: var(--gold); margin: 0 auto; justify-content: center; }
.divider-lotus::before, .divider-lotus::after { content: ''; height: 1px; width: 56px; background: linear-gradient(90deg, transparent, var(--gold-500)); }
.divider-lotus::after { transform: scaleX(-1); }
.mandala-bg { position: absolute; pointer-events: none; color: var(--gold-500); opacity: .14; }
.mandala-spin { animation: spin 160s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.rangoli-dots {
  background-image: radial-gradient(circle, rgba(184, 137, 58, .22) 1.2px, transparent 1.4px);
  background-size: 22px 22px;
}

/* -------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 999px; font-weight: 700; font-size: 14px; letter-spacing: .01em; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
  border: 1px solid transparent; user-select: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: linear-gradient(180deg, var(--maroon-700), var(--maroon-800)); color: var(--cream); box-shadow: 0 6px 18px rgba(86, 20, 32, .28), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(86, 20, 32, .34), inset 0 1px 0 rgba(255, 255, 255, .14); transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, #D7B062, var(--gold)); color: var(--maroon-950); box-shadow: 0 6px 18px rgba(184, 137, 58, .32), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(184, 137, 58, .4), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-outline { border-color: var(--line); background: var(--ivory); color: var(--maroon-800); }
.btn-outline:hover { border-color: var(--gold-500); background: #fff; }
.btn-ghost { color: var(--maroon-700); padding: 0 12px; }
.btn-ghost:hover { background: var(--gold-100); }
.btn-light { background: rgba(255, 253, 248, .12); color: var(--cream); border-color: rgba(255, 253, 248, .35); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255, 253, 248, .2); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-outline { border-color: #E8C3C3; color: var(--danger); background: #fff; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-xs { height: 30px; padding: 0 11px; font-size: 12px; gap: 6px; }
.btn-xs svg.lucide { width: 14px; height: 14px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; padding: 0; border-radius: 50%; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--maroon-800); transition: background .2s; position: relative; }
.icon-btn:hover { background: var(--gold-100); }
.badge-dot { position: absolute; top: 6px; right: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--saffron); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--ivory); }

/* ------------------------------- Chips/tags ------------------------------ */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--gold-100); color: var(--maroon-800); border: 1px solid transparent; }
.chip svg.lucide { width: 14px; height: 14px; }
.chip-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.chip-dark { background: rgba(42, 7, 12, .55); color: var(--cream); backdrop-filter: blur(6px); }
.chip-filter { cursor: pointer; background: var(--ivory); border: 1px solid var(--line); color: var(--ink); height: 36px; padding: 0 14px; font-size: 13px; transition: all .2s; }
.chip-filter:hover { border-color: var(--gold-500); }
.chip-filter.active { background: var(--maroon-800); color: var(--cream); border-color: var(--maroon-800); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-confirmed { background: var(--success-bg); color: var(--success); }
.status-pending { background: var(--warning-bg); color: var(--warning); }
.status-completed { background: var(--info-bg); color: var(--info); }
.status-cancelled, .status-refunded { background: var(--danger-bg); color: var(--danger); }
.status-progress { background: var(--saffron-soft); color: #9A4F12; }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--success); font-size: 12px; font-weight: 700; }
.verified svg.lucide { width: 15px; height: 15px; }
.demo-flag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--warning); background: var(--warning-bg); padding: 2px 8px; border-radius: 6px; }
.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.star { color: #D9CDB8; fill: transparent; }
.star.on { color: #D49A2A; fill: #E2AE45; }

/* --------------------------------- Header -------------------------------- */
.topbar { background: var(--maroon-900); color: rgba(251, 246, 236, .86); font-size: 12.5px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 36px; gap: 12px; }
.topbar a { opacity: .9; } .topbar a:hover { opacity: 1; color: var(--gold-300); }
.topbar .row svg.lucide { width: 14px; height: 14px; color: var(--gold-300); }
.topbar-links { display: none; gap: 18px; align-items: center; }
@media (min-width: 900px) { .topbar-links { display: flex; } }
.lang-toggle { display: inline-flex; border: 1px solid rgba(227, 196, 126, .5); border-radius: 999px; overflow: hidden; height: 26px; }
.lang-toggle button { padding: 0 11px; font-size: 12px; font-weight: 700; color: rgba(251, 246, 236, .8); }
.lang-toggle button.active { background: var(--gold-300); color: var(--maroon-900); }
.lang-toggle.light { border-color: var(--line); }
.lang-toggle.light button { color: var(--ink); }
.lang-toggle.light button.active { background: var(--maroon-800); color: var(--cream); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 248, .94); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line-soft); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(61, 12, 17, .08); }
.header-main { display: flex; align-items: center; gap: 16px; height: 70px; }
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark { width: 44px; height: 44px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-family: var(--font-display); font-size: 25px; font-weight: 700; color: var(--maroon-800); letter-spacing: .01em; }
.logo-text span { font-family: var(--font-kn); font-size: 11.5px; color: var(--gold); margin-top: 4px; letter-spacing: .06em; }
.header-search { flex: 1; max-width: 420px; display: none; position: relative; }
@media (min-width: 1100px) { .header-search { display: block; } }
.header-search input { width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--cream); padding: 0 16px 0 42px; font-size: 14px; transition: border-color .2s, box-shadow .2s, background .2s; }
.header-search input:focus { outline: none; border-color: var(--gold-500); background: #fff; box-shadow: 0 0 0 4px rgba(201, 160, 79, .15); }
.header-search > svg.lucide { position: absolute; left: 15px; top: 12px; color: var(--muted); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.header-actions .btn { display: none; }
@media (min-width: 640px) { .header-actions .btn-book { display: inline-flex; } }
@media (min-width: 1100px) { .header-actions .btn-consult { display: inline-flex; } }
.header-nav { display: none; border-top: 1px solid var(--line-soft); }
@media (min-width: 1100px) { .header-nav { display: block; } .menu-btn { display: none !important; } }
.header-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 4px; height: 48px; align-items: center; }
.header-nav a { display: block; padding: 8px 12px; font-size: 13.5px; font-weight: 600; color: var(--ink); position: relative; border-radius: 8px; transition: color .2s; white-space: nowrap; }
.header-nav a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--gold-500); transform: scaleX(0); transition: transform .25s var(--ease); border-radius: 2px; }
.header-nav a:hover { color: var(--maroon-700); }
.header-nav a:hover::after, .header-nav a.active::after { transform: scaleX(1); }
.header-nav a.active { color: var(--maroon-800); }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(33, 28, 25, .45); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: var(--ivory); z-index: 91; transform: translateX(100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); }
.drawer-body { overflow-y: auto; padding: 10px 10px 24px; flex: 1; }
.drawer-body a.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; font-weight: 600; }
.drawer-body a.nav-item:hover, .drawer-body a.nav-item.active { background: var(--gold-100); color: var(--maroon-800); }
.drawer-body a.nav-item svg.lucide { color: var(--gold); }
.drawer-body .drawer-sep { height: 1px; background: var(--line-soft); margin: 10px 14px; }

/* Notifications panel */
.notif-panel { position: fixed; top: 76px; right: 16px; width: min(400px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 100px)); background: var(--ivory); border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line-soft); z-index: 80; display: flex; flex-direction: column; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: all .25s var(--ease); }
.notif-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.notif-head { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; }
.notif-list { overflow-y: auto; }
.notif-item { display: flex; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); cursor: pointer; transition: background .2s; }
.notif-item:hover { background: var(--cream); }
.notif-item.unread { background: #FFF8EC; }
.notif-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-100); color: var(--maroon-700); flex-shrink: 0; }
.notif-item.success .notif-icon { background: var(--success-bg); color: var(--success); }
.notif-item.warning .notif-icon { background: var(--warning-bg); color: var(--warning); }
.notif-item.reminder .notif-icon { background: var(--saffron-soft); color: #9A4F12; }
.notif-item strong { font-size: 13.5px; display: block; color: var(--charcoal); }
.notif-item p { font-size: 13px; color: var(--muted); line-height: 1.45; }

/* --------------------------------- Hero ---------------------------------- */
.hero { position: relative; color: var(--cream); overflow: hidden; background: var(--maroon-950); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scale(1.05); animation: heroZoom 22s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(42, 7, 12, .95) 0%, rgba(42, 7, 12, .82) 38%, rgba(42, 7, 12, .35) 72%, rgba(42, 7, 12, .25) 100%), linear-gradient(0deg, rgba(42, 7, 12, .7), transparent 40%); }
.hero canvas.particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; padding: 72px 0 150px; max-width: 660px; }
@media (min-width: 900px) { .hero-inner { padding: 110px 0 170px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.hero .eyebrow { color: var(--gold-300); }
.eyebrow svg { width: 18px; height: 18px; }
.hero h1 { color: var(--cream); font-size: clamp(42px, 7vw, 76px); font-weight: 600; margin-top: 18px; line-height: 1.02; }
.hero h1 em { font-style: italic; color: var(--gold-300); font-weight: 500; }
html.lang-kn .hero h1 { font-size: clamp(32px, 5vw, 54px); }
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: rgba(251, 246, 236, .86); margin-top: 18px; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-mandala { right: -160px; top: -60px; width: 640px; height: 640px; opacity: .1; color: var(--gold-300); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 30px; font-size: 13px; color: rgba(251, 246, 236, .8); }
.hero-trust span { display: inline-flex; gap: 6px; align-items: center; }
.hero-trust svg.lucide { width: 15px; height: 15px; color: var(--gold-300); }

/* Search card overlapping hero */
.search-card { position: relative; z-index: 5; margin-top: -88px; background: var(--ivory); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px; border: 1px solid var(--line-soft); }
@media (min-width: 768px) { .search-card { padding: 28px 30px; } }
.search-card label.title { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--charcoal); display: block; margin-bottom: 14px; }
html.lang-kn .search-card label.title { font-family: var(--font-kn); font-size: 19px; }
.search-row { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 768px) { .search-row { flex-direction: row; } }
.search-input { position: relative; flex: 1; }
.search-input svg.lucide { position: absolute; left: 18px; top: 17px; color: var(--gold); width: 20px; height: 20px; }
.search-input input { width: 100%; height: 54px; border-radius: 14px; border: 1px solid var(--line); background: var(--cream); padding: 0 18px 0 50px; font-size: 16px; transition: all .2s; }
.search-input input:focus { outline: none; border-color: var(--gold-500); background: #fff; box-shadow: 0 0 0 4px rgba(201, 160, 79, .15); }
.search-select { height: 54px; border-radius: 14px; border: 1px solid var(--line); background: var(--cream); padding: 0 14px; min-width: 190px; }
.search-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; font-size: 13px; color: var(--muted); }
.search-suggest button { padding: 5px 12px; border-radius: 999px; background: var(--gold-100); color: var(--maroon-800); font-weight: 600; font-size: 12.5px; transition: background .2s; }
.search-suggest button:hover { background: var(--gold-300); }
.instant-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); z-index: 20; max-height: 360px; overflow-y: auto; }
.instant-results a { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.instant-results a:hover, .instant-results a.hl { background: var(--cream); }
.instant-results img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.instant-results .ir-type { margin-left: auto; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }

/* Trust strip */
.trust-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; }
@media (min-width: 768px) { .trust-strip { grid-template-columns: repeat(5, 1fr); } }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--ivory); border: 1px solid var(--line-soft); }
.trust-item .ti-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, var(--gold-100), #fff); color: var(--maroon-700); border: 1px solid var(--line); flex-shrink: 0; }
.trust-item strong { font-size: 13.5px; line-height: 1.3; color: var(--charcoal); }
.trust-item:last-child { grid-column: span 2; }
@media (min-width: 768px) { .trust-item:last-child { grid-column: auto; } }

/* ------------------------------- Sections -------------------------------- */
.section { padding: 72px 0; position: relative; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-sm { padding: 48px 0; }
.section.alt { background: var(--sand); }
.section.ivory { background: var(--ivory); }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.section-head.center { align-items: center; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 48px); }
html.lang-kn .section-head h2 { font-size: clamp(24px, 3.4vw, 34px); }
.section-head p { color: var(--muted); max-width: 620px; font-size: 16px; }
.section-head .row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; width: 100%; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } * { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* --------------------------------- Grids --------------------------------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 979px) { .grid-4.keep-2 { grid-template-columns: repeat(2, 1fr); } }

/* ----------------------------- Category card ----------------------------- */
.cat-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--ivory); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); cursor: pointer; display: flex; flex-direction: column; }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-media { position: relative; }
.cat-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.cat-card:hover .cat-img img { transform: scale(1.07); }
.cat-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(42, 7, 12, .62), transparent 60%); }
.cat-icon { position: absolute; left: 20px; bottom: -22px; z-index: 2; width: 52px; height: 52px; border-radius: 50%; background: var(--maroon-800); color: var(--gold-300); display: grid; place-items: center; border: 3px solid var(--ivory); box-shadow: var(--shadow); }
.cat-icon svg.lucide { width: 22px; height: 22px; }
.cat-count { position: absolute; right: 14px; top: 14px; z-index: 2; }
.cat-body { padding: 32px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.cat-body h3 { font-size: 27px; }
html.lang-kn .cat-body h3 { font-size: 21px; }
.cat-body .kn-name { font-family: var(--font-kn); color: var(--gold); font-size: 14px; font-weight: 600; margin-top: 2px; }
.cat-body p { color: var(--muted); margin-top: 10px; font-size: 14.5px; flex: 1; }
.cat-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--maroon-700); font-size: 14px; }
.link-arrow svg.lucide { transition: transform .25s var(--ease); }
.cat-card:hover .link-arrow svg.lucide, .link-arrow:hover svg.lucide { transform: translateX(4px); }

/* ------------------------------- Seva card ------------------------------- */
.seva-card { background: var(--ivory); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.seva-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.seva-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; cursor: pointer; background: var(--sand); }
.seva-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.seva-card:hover .seva-media img { transform: scale(1.06); }
.seva-media .chips { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; justify-content: space-between; gap: 6px; }
.ribbon-popular { background: var(--saffron); color: #fff; }
.seva-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.seva-body h3 { font-size: 24px; cursor: pointer; }
.seva-body h3:hover { color: var(--maroon-700); }
.seva-body .kn-name { font-family: var(--font-kn); color: var(--gold); font-weight: 600; font-size: 14px; margin-top: 3px; }
.seva-body p.desc { color: var(--muted); font-size: 14px; margin-top: 10px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.seva-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: 13px; color: var(--ink); }
.seva-meta span { display: inline-flex; align-items: center; gap: 6px; }
.seva-meta svg.lucide { width: 15px; height: 15px; color: var(--gold); }
.seva-price { display: flex; align-items: baseline; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.seva-price small { color: var(--muted); font-size: 12px; display: block; }
.seva-price strong { font-family: var(--font-display); font-size: 28px; color: var(--maroon-800); font-weight: 700; line-height: 1; }
.seva-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.seva-actions .btn { height: 42px; padding: 0 10px; }

/* ---------------------------- Festival cards ---------------------------- */
.h-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 80%); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin: 0 -4px; scrollbar-width: thin; }
@media (min-width: 640px) { .h-scroll { grid-auto-columns: minmax(280px, 1fr); } }
@media (min-width: 1100px) { .h-scroll { grid-auto-columns: calc((100% - 54px) / 4); } }
.h-scroll > * { scroll-snap-align: start; }
.fest-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 330px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--cream); cursor: pointer; box-shadow: var(--shadow); }
.fest-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.fest-card:hover img { transform: scale(1.06); }
.fest-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(42, 7, 12, .94) 0%, rgba(42, 7, 12, .45) 55%, rgba(42, 7, 12, .05) 100%); }
.fest-body { position: relative; z-index: 2; padding: 22px; }
.fest-date { position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--ivory); color: var(--maroon-800); border-radius: 14px; padding: 8px 12px; text-align: center; line-height: 1; box-shadow: var(--shadow); }
.fest-date b { display: block; font-family: var(--font-display); font-size: 28px; }
.fest-date small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.fest-body h3 { color: var(--cream); font-size: 25px; }
.fest-body .kn-name { font-family: var(--font-kn); color: var(--gold-300); font-size: 13px; margin-top: 4px; }
.fest-body p { font-size: 13.5px; color: rgba(251, 246, 236, .82); margin-top: 8px; }
.fest-body .countdown { display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--gold-300); }

/* --------------------------- Calendar preview --------------------------- */
.cal-preview { display: grid; gap: 24px; }
@media (min-width: 980px) { .cal-preview { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.panel { background: var(--ivory); border-radius: var(--radius-lg); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); }
.panel-pad { padding: 22px; }
@media (min-width: 768px) { .panel-pad { padding: 28px; } }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--gold-100); color: var(--maroon-800); font-size: 13px; line-height: 1.5; border: 1px solid #EBD9AE; }
.notice svg.lucide { flex-shrink: 0; margin-top: 1px; color: var(--gold); width: 17px; height: 17px; }
.notice.info { background: var(--info-bg); border-color: #CAD7E5; color: var(--info); }
.notice.info svg.lucide { color: var(--info); }
.notice.warn { background: var(--warning-bg); border-color: #EDD3AE; color: #7E4A12; }
.notice.success { background: var(--success-bg); border-color: #C3DFCD; color: var(--success); }
.notice.success svg.lucide { color: var(--success); }

/* Month calendar */
.cal { user-select: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.cal-head h3 { font-size: 26px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.cal-day { position: relative; min-height: 56px; border-radius: 12px; border: 1px solid var(--line-soft); background: #fff; padding: 6px; text-align: left; transition: all .2s var(--ease); display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.cal-day:hover:not(.disabled) { border-color: var(--gold-500); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cal-day .dnum { font-weight: 800; font-size: 14px; color: var(--charcoal); line-height: 1; }
.cal-day .dtithi { font-size: 10.5px; color: var(--muted); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-day .dfest { font-size: 10.5px; color: var(--maroon-700); font-weight: 700; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cal-day .ddots { display: flex; gap: 3px; margin-top: auto; }
.cal-day .ddots i { width: 6px; height: 6px; border-radius: 50%; display: block; }
.dot-purnima { background: #E2AE45; } .dot-amavasya { background: #4B4038; } .dot-ekadashi { background: var(--sage); } .dot-festival { background: var(--maroon-600); } .dot-griha { background: var(--saffron); } .dot-chaturthi { background: #C46A2A; }
.cal-day.other { opacity: .35; }
.cal-day.today { border-color: var(--maroon-700); box-shadow: inset 0 0 0 1px var(--maroon-700); }
.cal-day.selected { background: var(--maroon-800); border-color: var(--maroon-800); }
.cal-day.selected .dnum, .cal-day.selected .dtithi, .cal-day.selected .dfest { color: var(--cream); }
.cal-day.disabled { opacity: .35; cursor: not-allowed; background: var(--sand); }
.cal-day.festival { background: linear-gradient(160deg, #FFF6E8, #fff); }
.cal-day.purnima .dnum::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #E2AE45; margin-left: 4px; vertical-align: middle; }
.cal-big .cal-day { min-height: 92px; padding: 8px; }
@media (min-width: 900px) { .cal-big .cal-day { min-height: 112px; } }
@media (max-width: 560px) {
  .cal-grid { gap: 4px; }
  .cal-day { min-height: 46px; padding: 5px 4px; border-radius: 9px; }
  .cal-big .cal-day { min-height: 64px; }
  .cal-day .dtithi, .cal-big .cal-day .dfest { display: none; }
}
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--muted); margin-top: 14px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.cal-trans { animation: calIn .35s var(--ease); }
@keyframes calIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.upcoming-list { display: flex; flex-direction: column; }
.upcoming-item { display: flex; gap: 14px; align-items: center; padding: 14px 4px; border-bottom: 1px dashed var(--line); cursor: pointer; transition: background .2s; border-radius: 10px; }
.upcoming-item:hover { background: var(--cream); }
.upcoming-item .ud { width: 54px; height: 58px; border-radius: 12px; background: var(--maroon-800); color: var(--cream); display: grid; place-items: center; text-align: center; line-height: 1.05; flex-shrink: 0; }
.upcoming-item .ud b { font-family: var(--font-display); font-size: 24px; display: block; }
.upcoming-item .ud small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-300); font-weight: 700; }

/* ----------------------------- How it works ------------------------------ */
.steps { display: grid; gap: 18px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(6, 1fr); } }
.step { position: relative; text-align: center; padding: 26px 16px 22px; background: var(--ivory); border-radius: var(--radius-lg); border: 1px solid var(--line-soft); transition: transform .3s var(--ease), box-shadow .3s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; position: relative; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, var(--maroon-600), var(--maroon-900)); color: var(--gold-300); box-shadow: 0 8px 20px rgba(86, 20, 32, .3); }
.step-num::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px dashed var(--gold-500); }
.step-num svg.lucide { width: 24px; height: 24px; }
.step-idx { position: absolute; top: 14px; left: 16px; font-family: var(--font-display); font-size: 36px; color: var(--gold-100); font-weight: 700; line-height: 1; }
.step h4 { font-size: 21px; margin-top: 18px; }
html.lang-kn .step h4 { font-size: 17px; }
.step p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

/* ------------------------------- Priests --------------------------------- */
.priest-card { background: var(--ivory); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; display: flex; flex-direction: column; cursor: pointer; }
.priest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.priest-top { display: flex; gap: 14px; align-items: center; }
.priest-top .avatar { flex-shrink: 0; filter: drop-shadow(0 4px 10px rgba(61, 12, 17, .2)); }
.priest-top h4 { font-size: 21px; }
.priest-top .ptitle { font-size: 12.5px; color: var(--muted); }
.priest-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; text-align: center; }
.priest-stats div { background: var(--cream); border-radius: 12px; padding: 10px 4px; }
.priest-stats b { display: block; font-family: var(--font-display); font-size: 22px; color: var(--maroon-800); line-height: 1.1; }
.priest-stats small { font-size: 11px; color: var(--muted); font-weight: 600; }
.priest-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.priest-tags .chip { height: 25px; font-size: 11.5px; }
.priest-areas { font-size: 12.5px; color: var(--muted); margin-top: 12px; display: flex; gap: 6px; }
.priest-areas svg.lucide { width: 14px; height: 14px; color: var(--gold); margin-top: 3px; }

/* ------------------------------ CTA bands -------------------------------- */
.consult-band { position: relative; overflow: hidden; border-radius: 28px; background: radial-gradient(circle at 85% 20%, var(--maroon-600), var(--maroon-900) 60%); color: var(--cream); display: grid; gap: 28px; padding: 36px 24px; }
@media (min-width: 900px) { .consult-band { grid-template-columns: 1.15fr .85fr; padding: 56px 56px; align-items: center; } }
.consult-band h2 { color: var(--cream); font-size: clamp(30px, 4vw, 46px); }
.consult-band .sub { font-family: var(--font-display); font-style: italic; font-size: clamp(22px, 2.6vw, 30px); color: var(--gold-300); margin-top: 6px; }
html.lang-kn .consult-band .sub { font-family: var(--font-kn); font-style: normal; font-size: 20px; }
.consult-band p { color: rgba(251, 246, 236, .82); margin-top: 14px; max-width: 520px; }
.consult-points { display: grid; gap: 10px; margin-top: 20px; }
.consult-points span { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.consult-points svg.lucide { color: var(--gold-300); }
.consult-collage { position: relative; height: 300px; }
.consult-collage img { position: absolute; border-radius: 20px; object-fit: cover; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); border: 4px solid rgba(255, 253, 248, .9); }
.consult-collage img:nth-child(1) { width: 62%; height: 78%; left: 0; top: 0; }
.consult-collage img:nth-child(2) { width: 52%; height: 62%; right: 0; bottom: 0; }
.consult-band .mandala-bg { right: -120px; bottom: -160px; width: 460px; height: 460px; opacity: .12; color: var(--gold-300); }

.final-cta { position: relative; overflow: hidden; color: var(--cream); text-align: center; padding: 110px 0; }
.final-cta img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.final-cta::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(42, 7, 12, .92), rgba(42, 7, 12, .7)); z-index: 1; }
.final-cta .container { position: relative; z-index: 2; }
.final-cta h2 { color: var(--cream); font-size: clamp(34px, 5vw, 58px); }
.final-cta p { color: rgba(251, 246, 236, .85); max-width: 560px; margin: 16px auto 0; font-size: 17px; }

/* -------------------------------- Mantras -------------------------------- */
.mantra-feature { display: grid; gap: 24px; }
@media (min-width: 980px) { .mantra-feature { grid-template-columns: .9fr 1.1fr; align-items: stretch; } }
.mantra-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 320px; }
.mantra-hero img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.mantra-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(42, 7, 12, .8), transparent 55%); }
.mantra-hero .cap { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; color: var(--cream); }
.mantra-card { background: var(--ivory); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.mantra-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mantra-card .mc-head { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); }
.mantra-card .mc-head img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-300); }
.mantra-card .mc-head h4 { font-size: 20px; }
.mantra-card .mc-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.sanskrit { font-family: var(--font-deva); font-size: 19px; line-height: 1.75; color: var(--maroon-800); white-space: pre-line; }
.sanskrit.lg { font-size: 24px; line-height: 1.8; }
.translit { font-style: italic; color: var(--ink); font-size: 14px; white-space: pre-line; line-height: 1.65; }
.mc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12.5px; }
.mc-meta div { background: var(--cream); border-radius: 10px; padding: 8px 10px; }
.mc-meta small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.mc-foot { display: flex; gap: 8px; padding: 0 18px 18px; }
.audio-ui { display: flex; align-items: center; gap: 10px; flex: 1; }
.audio-bar { flex: 1; height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; }
.audio-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--saffron)); transition: width .25s linear; }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: var(--saffron); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex-shrink: 0; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--ivory); font-weight: 700; font-size: 13.5px; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; transition: all .2s; }
.tab:hover { border-color: var(--gold-500); }
.tab.active { background: var(--maroon-800); color: var(--cream); border-color: var(--maroon-800); }
.tab .count { background: rgba(0, 0, 0, .08); border-radius: 999px; padding: 0 7px; font-size: 11.5px; }
.tab.active .count { background: rgba(255, 255, 255, .18); }

/* ------------------------------ Testimonials ------------------------------ */
.testi { background: var(--ivory); border-radius: var(--radius-lg); padding: 26px; border: 1px solid var(--line-soft); position: relative; height: 100%; display: flex; flex-direction: column; }
.testi .q { font-family: var(--font-display); font-size: 80px; line-height: .6; color: var(--gold-300); height: 36px; }
.testi p { font-size: 15px; color: var(--ink); flex: 1; }
.testi .who { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.testi .who .ini { width: 38px; height: 38px; border-radius: 50%; background: var(--gold-100); color: var(--maroon-800); display: grid; place-items: center; font-weight: 800; font-size: 13px; }

/* ---------------------------------- FAQ ---------------------------------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--ivory); border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 20px; font-weight: 700; text-align: left; font-size: 15.5px; color: var(--charcoal); }
.faq-q svg.lucide { transition: transform .3s var(--ease); color: var(--gold); }
.faq-item.open .faq-q svg.lucide { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* --------------------------------- Footer -------------------------------- */
.site-footer { background: var(--maroon-950); color: rgba(251, 246, 236, .76); padding: 0 0 26px; position: relative; overflow: hidden; }
.site-footer .temple-border { opacity: .45; }
.footer-grid { display: grid; gap: 34px; padding: 56px 0 36px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.1fr; } }
.footer-brand { grid-column: span 2; }
@media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.site-footer h5 { font-family: var(--font-ui); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.site-footer a:hover { color: var(--gold-300); }
.site-footer .logo-text strong { color: var(--cream); }
.footer-bottom { border-top: 1px solid rgba(227, 196, 126, .16); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 12.5px; }

/* ---------------------------------- Page --------------------------------- */
.page-hero { position: relative; overflow: hidden; background: var(--maroon-900); color: var(--cream); padding: 56px 0 64px; }
.page-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(42, 7, 12, .95), rgba(42, 7, 12, .55)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--cream); font-size: clamp(36px, 5vw, 58px); margin-top: 10px; }
.page-hero p { color: rgba(251, 246, 236, .82); max-width: 640px; margin-top: 12px; font-size: 16.5px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: rgba(251, 246, 236, .7); flex-wrap: wrap; }
.crumbs a:hover { color: var(--gold-300); }
.crumbs svg.lucide { width: 14px; height: 14px; }
.page-body { padding: 40px 0 80px; }

/* Catalog layout */
.catalog { display: grid; gap: 26px; }
@media (min-width: 1000px) { .catalog { grid-template-columns: 270px 1fr; align-items: start; } }
.filters { background: var(--ivory); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 20px; }
@media (min-width: 1000px) { .filters { position: sticky; top: calc(var(--header-h) + 16px); } }
.filters h4 { font-family: var(--font-ui); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; }
.filters h4:first-child { margin-top: 0; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--maroon-700); }
.filter-toggle { display: inline-flex; }
@media (min-width: 1000px) { .filter-toggle { display: none; } .filters.collapsed { display: block !important; } }
.filters.collapsed { display: none; }
.catalog-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.catalog-bar .search-input { max-width: 420px; flex: 1; min-width: 220px; }
.catalog-bar .search-input input { height: 46px; font-size: 15px; }
.catalog-bar .search-input svg.lucide { top: 13px; }
.empty { text-align: center; padding: 56px 20px; background: var(--ivory); border-radius: var(--radius-lg); border: 1px dashed var(--line); }
.empty .ei { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--gold-100); color: var(--gold); display: grid; place-items: center; }
.empty .ei svg.lucide { width: 28px; height: 28px; }
.empty h3 { font-size: 26px; }
.empty p { color: var(--muted); margin-top: 6px; }

/* ---------------------------------- Forms --------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 13px; font-weight: 700; color: var(--charcoal); display: flex; align-items: center; gap: 6px; }
.field .req { color: var(--danger); }
.input, .select, .textarea { width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 0 14px; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A6E63' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(201, 160, 79, .16); }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(163, 49, 59, .1); }
.field .err { font-size: 12px; color: var(--danger); display: none; }
.field.invalid .err { display: block; }
.field .hint { font-size: 12px; color: var(--muted); }
.input-group { display: flex; gap: 8px; }
.input-prefix { position: relative; flex: 1; }
.input-prefix span { position: absolute; left: 14px; top: 13px; font-weight: 700; color: var(--muted); font-size: 15px; }
.input-prefix .input { padding-left: 50px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: span 2; } }
.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 680px) { .choice-grid.c4 { grid-template-columns: repeat(4, 1fr); } .choice-grid.c3 { grid-template-columns: repeat(3, 1fr); } }
.choice { position: relative; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: all .2s var(--ease); text-align: left; }
.choice:hover { border-color: var(--gold-500); }
.choice.active { border-color: var(--maroon-700); background: #FFF8F2; box-shadow: 0 0 0 3px rgba(114, 32, 44, .08); }
.choice .ci { width: 36px; height: 36px; border-radius: 10px; background: var(--gold-100); color: var(--maroon-700); display: grid; place-items: center; }
.choice.active .ci { background: var(--maroon-800); color: var(--gold-300); }
.choice strong { font-size: 14px; color: var(--charcoal); }
.choice small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.choice .tick { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; }
.choice.active .tick { background: var(--maroon-700); border-color: var(--maroon-700); color: #fff; }
.choice .tick svg.lucide { width: 12px; height: 12px; opacity: 0; }
.choice.active .tick svg.lucide { opacity: 1; }
.seg { display: inline-flex; background: var(--sand); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { height: 34px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--muted); transition: all .2s; }
.seg button.active { background: #fff; color: var(--maroon-800); box-shadow: var(--shadow-sm); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 600; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 42px; height: 24px; border-radius: 12px; background: var(--line); position: relative; transition: background .2s; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch input:checked + .track { background: var(--maroon-700); }
.switch input:checked + .track::after { transform: translateX(18px); }
.otp-inputs { display: flex; gap: 8px; justify-content: center; }
.otp-inputs input { width: 46px; height: 54px; text-align: center; font-size: 22px; font-weight: 800; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; }
.otp-inputs input:focus { outline: none; border-color: var(--maroon-700); box-shadow: 0 0 0 4px rgba(114, 32, 44, .1); }
.verified-pill { display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 14px; border-radius: 12px; background: var(--success-bg); color: var(--success); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 560px) { .slots { grid-template-columns: repeat(3, 1fr); } }
.slot { height: auto; min-height: 50px; padding: 8px 10px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.25; transition: all .2s; }
.slot small { font-weight: 600; font-size: 11px; color: var(--muted); }
.slot:hover:not(.disabled) { border-color: var(--gold-500); }
.slot.active { background: var(--maroon-800); color: var(--cream); border-color: var(--maroon-800); }
.slot.active small { color: var(--gold-300); }
.slot.rahu small { color: var(--warning); }
.slot.disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }

/* ------------------------------- Booking -------------------------------- */
.booking-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1040px) { .booking-layout { grid-template-columns: 1fr 360px; } }
.stepper { display: flex; gap: 6px; margin-bottom: 26px; overflow-x: auto; scrollbar-width: none; }
.stepper::-webkit-scrollbar { display: none; }
.stepper .st { flex: 1; min-width: 74px; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; cursor: default; }
.stepper .st::before { content: ''; position: absolute; top: 17px; left: calc(-50% + 20px); right: calc(50% + 20px); height: 2px; background: var(--line); border-radius: 2px; }
.stepper .st:first-child::before { display: none; }
.stepper .st.done::before, .stepper .st.current::before { background: linear-gradient(90deg, var(--gold), var(--maroon-700)); }
.stepper .bub { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); color: var(--muted); font-weight: 800; font-size: 13px; transition: all .3s var(--ease); position: relative; z-index: 1; }
.stepper .bub svg.lucide { width: 16px; height: 16px; }
.stepper .st.current .bub { background: var(--maroon-800); border-color: var(--maroon-800); color: var(--gold-300); box-shadow: 0 0 0 5px rgba(114, 32, 44, .12); }
.stepper .st.done .bub { background: var(--gold-500); border-color: var(--gold-500); color: #fff; }
.stepper .st.done { cursor: pointer; }
.stepper .lbl { font-size: 11.5px; font-weight: 700; color: var(--muted); text-align: center; white-space: nowrap; }
.stepper .st.current .lbl { color: var(--maroon-800); }
.form-card { background: var(--ivory); border-radius: var(--radius-lg); border: 1px solid var(--line-soft); box-shadow: var(--shadow); padding: 22px; }
@media (min-width: 768px) { .form-card { padding: 34px; } }
.form-card .step-title { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.form-card .step-title .sti { width: 46px; height: 46px; border-radius: 14px; background: var(--gold-100); color: var(--maroon-700); display: grid; place-items: center; flex-shrink: 0; }
.form-card .step-title h2 { font-size: 30px; }
html.lang-kn .form-card .step-title h2 { font-size: 22px; }
.form-card .step-title p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.step-anim { animation: stepIn .45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.summary { background: var(--ivory); border-radius: var(--radius-lg); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); overflow: hidden; }
@media (min-width: 1040px) { .summary { position: sticky; top: calc(var(--header-h) + 16px); } }
.summary-media { position: relative; height: 150px; }
.summary-media img { width: 100%; height: 100%; object-fit: cover; }
.summary-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(42, 7, 12, .85), transparent 70%); }
.summary-media .cap { position: absolute; left: 18px; bottom: 14px; right: 18px; z-index: 2; color: var(--cream); }
.summary-media h3 { color: var(--cream); font-size: 24px; }
.summary-body { padding: 18px; }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; font-size: 13.5px; border-bottom: 1px dashed var(--line-soft); }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-weight: 700; text-align: right; color: var(--charcoal); }
.kv.total span { font-size: 15px; color: var(--maroon-800) !important; font-weight: 800; }
.price-box { background: var(--cream); border-radius: 14px; padding: 6px 14px; margin-top: 12px; }
.map-wrap { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, #F7F0E2, #EFE4CF); color: var(--maroon-800); }
.mini-map { width: 100%; height: auto; display: block; }
.mini-map .map-zone { fill: rgba(201, 160, 79, .1); stroke: rgba(184, 137, 58, .35); stroke-dasharray: 4 4; }
.mini-map .map-road { fill: none; stroke: rgba(122, 110, 99, .28); stroke-width: 2.5; stroke-linecap: round; }
.mini-map .map-center { fill: var(--maroon-700); }
.mini-map .map-dot { cursor: pointer; }
.mini-map .map-dot circle { fill: var(--gold); stroke: #fff; stroke-width: 1.2; transition: r .2s; }
.mini-map .map-dot.nearby circle { fill: var(--sage); }
.mini-map .map-dot:hover circle { fill: var(--maroon-600); }
.mini-map .map-dot.on circle { fill: var(--maroon-700); }
.mini-map .map-dot .pulse { fill: none; stroke: var(--maroon-700); stroke-width: 2; animation: pulse 1.6s ease-out infinite; }
.mini-map text { font-size: 11px; font-weight: 800; fill: var(--maroon-900); paint-order: stroke; stroke: #fff; stroke-width: 3px; }
@keyframes pulse { from { r: 6; opacity: 1; } to { r: 20; opacity: 0; } }
.map-caption { position: absolute; left: 10px; bottom: 10px; font-size: 11px; background: rgba(255, 253, 248, .9); padding: 4px 8px; border-radius: 8px; color: var(--muted); }
.review-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.review-section { padding: 16px 18px; border-bottom: 1px solid var(--line-soft); }
.review-section:last-child { border-bottom: 0; }
.review-section h5 { font-family: var(--font-ui); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; display: flex; justify-content: space-between; align-items: center; }
.review-section h5 button { color: var(--maroon-700); font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.review-section h5 button svg.lucide { width: 14px; height: 14px; }
.review-grid { display: grid; grid-template-columns: 1fr; gap: 4px 20px; }
@media (min-width: 600px) { .review-grid { grid-template-columns: 1fr 1fr; } }
.terms { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin-top: 16px; }
.terms input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--maroon-700); flex-shrink: 0; }

/* ---------------------------------- Modal --------------------------------- */
.modal-root { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.modal { position: fixed; inset: 0; display: flex; align-items: flex-end; justify-content: center; pointer-events: auto; }
@media (min-width: 640px) { .modal { align-items: center; padding: 24px; } }
.modal-backdrop { position: absolute; inset: 0; background: rgba(33, 22, 18, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.modal.open .modal-backdrop { opacity: 1; }
.modal-dialog { position: relative; width: 100%; max-width: 520px; max-height: 92vh; background: var(--ivory); border-radius: 24px 24px 0 0; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; transform: translateY(40px); opacity: 0; transition: transform .38s var(--ease), opacity .3s; }
@media (min-width: 640px) { .modal-dialog { border-radius: 24px; transform: translateY(20px) scale(.98); } }
.modal.open .modal-dialog { transform: none; opacity: 1; }
.modal-sm .modal-dialog { max-width: 420px; }
.modal-lg .modal-dialog { max-width: 760px; }
.modal-xl .modal-dialog { max-width: 1080px; }
.modal-full .modal-dialog { max-width: 1120px; height: 100%; max-height: 100%; }
@media (min-width: 640px) { .modal-full .modal-dialog { height: auto; max-height: 94vh; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line-soft); }
.modal-head h3 { font-size: 26px; }
html.lang-kn .modal-head h3 { font-size: 20px; }
.modal-body { padding: 22px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line-soft); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; background: var(--cream); }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 253, 248, .92); color: var(--maroon-900); box-shadow: var(--shadow-sm); transition: transform .2s; }
.modal-close:hover { transform: rotate(90deg); }
.modal-head .modal-close { position: static; box-shadow: none; background: var(--sand); }
.modal-center { text-align: center; padding: 34px 26px; }

/* Seva detail modal */
.sd-hero { position: relative; height: 280px; flex-shrink: 0; }
@media (min-width: 768px) { .sd-hero { height: 360px; } }
.sd-hero img { width: 100%; height: 100%; object-fit: cover; }
.sd-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(42, 7, 12, .95) 0%, rgba(42, 7, 12, .4) 55%, rgba(42, 7, 12, .1)); }
.sd-hero .cap { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2; color: var(--cream); }
@media (min-width: 768px) { .sd-hero .cap { left: 36px; right: 36px; bottom: 30px; } }
.sd-hero h2 { color: var(--cream); font-size: clamp(34px, 5vw, 52px); }
.sd-names { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; align-items: baseline; }
.sd-names .kn { color: var(--gold-300); font-size: 18px; font-weight: 600; }
.sd-names .deva { color: rgba(251, 246, 236, .85); font-size: 19px; }
.sd-scroll { overflow-y: auto; flex: 1; min-height: 0; -webkit-overflow-scrolling: touch; }
.sd-content { display: grid; gap: 28px; padding: 24px 22px 30px; }
@media (min-width: 900px) { .sd-content { grid-template-columns: 1fr 330px; padding: 32px 36px 40px; } }
.sd-section { margin-bottom: 26px; }
.sd-section h4 { font-size: 24px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.sd-section h4 svg.lucide { color: var(--gold); width: 20px; height: 20px; }
.sd-section p { color: var(--ink); font-size: 15px; }
.proc { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.proc li { position: relative; padding: 0 0 16px 46px; counter-increment: p; font-size: 14.5px; }
.proc li::before { content: counter(p); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-100); color: var(--maroon-800); font-weight: 800; font-size: 13px; display: grid; place-items: center; border: 1px solid var(--line); }
.proc li::after { content: ''; position: absolute; left: 15px; top: 30px; bottom: 2px; width: 1px; background: var(--line); }
.proc li:last-child::after { display: none; }
.occasions { display: flex; flex-wrap: wrap; gap: 8px; }
.logi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.logi div { background: var(--cream); border-radius: 12px; padding: 12px; border: 1px solid var(--line-soft); }
.logi small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.logi b { font-size: 14px; color: var(--charcoal); }
.samagri-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.samagri-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.samagri-table td { padding: 9px 10px; border-bottom: 1px dashed var(--line-soft); vertical-align: top; }
.samagri-table td.kn { color: var(--muted); font-size: 13px; }
.by { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.by-customer { background: var(--gold-100); color: var(--maroon-800); }
.by-priest { background: var(--success-bg); color: var(--success); }
.by-kit { background: var(--info-bg); color: var(--info); }
.dos { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .dos { grid-template-columns: 1fr 1fr; } }
.dos ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.dos li { display: flex; gap: 8px; }
.dos li svg.lucide { width: 16px; height: 16px; margin-top: 3px; }
.dos .do svg.lucide { color: var(--success); }
.dos .dont svg.lucide { color: var(--danger); }
.sd-aside { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) { .sd-aside .sticky { position: sticky; top: 0; } }
.price-card { background: linear-gradient(170deg, #fff, var(--cream)); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.price-card .range { font-family: var(--font-display); font-size: 34px; color: var(--maroon-800); font-weight: 700; line-height: 1.1; }
.variant { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.variant:last-child { border-bottom: 0; }
.variant b { color: var(--maroon-800); white-space: nowrap; }

/* ------------------------------ Matching UI ------------------------------ */
.matching { text-align: center; padding: 34px 24px 28px; }
.match-orb { width: 120px; height: 120px; margin: 0 auto 22px; position: relative; display: grid; place-items: center; }
.match-orb .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold-300); animation: ring 2.2s ease-out infinite; }
.match-orb .ring:nth-child(2) { animation-delay: .7s; } .match-orb .ring:nth-child(3) { animation-delay: 1.4s; }
@keyframes ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.match-orb .core { width: 76px; height: 76px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--maroon-600), var(--maroon-900)); display: grid; place-items: center; color: var(--gold-300); box-shadow: 0 10px 30px rgba(86, 20, 32, .35); }
.match-orb .core svg { width: 34px; height: 34px; }
.match-checks { list-style: none; margin: 18px auto 0; padding: 0; max-width: 340px; text-align: left; display: grid; gap: 10px; }
.match-checks li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--muted); opacity: .45; transition: all .4s; }
.match-checks li .mi { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; flex-shrink: 0; }
.match-checks li .mi svg.lucide { width: 14px; height: 14px; }
.match-checks li.active { opacity: 1; color: var(--charcoal); }
.match-checks li.active .mi { border-color: var(--gold); }
.match-checks li.active .mi .spin-sm { width: 12px; height: 12px; border: 2px solid var(--gold-300); border-top-color: var(--maroon-700); border-radius: 50%; animation: spin .8s linear infinite; }
.match-checks li.done { opacity: 1; color: var(--charcoal); }
.match-checks li.done .mi { background: var(--success); border-color: var(--success); color: #fff; }
.matched-priest { display: flex; gap: 16px; align-items: center; text-align: left; background: var(--cream); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-top: 18px; }
.success-mark { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; background: var(--success-bg); display: grid; place-items: center; color: var(--success); position: relative; }
.success-mark svg { width: 44px; height: 44px; }
.success-mark .check-path { stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw .6s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success-mark::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--success); opacity: 0; animation: ring 1.4s .3s ease-out 2; }
.loader { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--gold-100); border-top-color: var(--maroon-700); animation: spin .9s linear infinite; margin: 0 auto; }
.diya-loader { width: 64px; height: 64px; margin: 0 auto; }
.diya-loader .flame { transform-origin: 32px 30px; animation: flicker 1.2s ease-in-out infinite alternate; }
@keyframes flicker { 0% { transform: scale(1, 1) rotate(-2deg); } 100% { transform: scale(.92, 1.08) rotate(2deg); } }

/* Payment modal */
.pay-head { background: linear-gradient(120deg, var(--maroon-900), var(--maroon-700)); color: var(--cream); padding: 20px 22px; }
.pay-head .amt { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: #fff; line-height: 1; }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pay-method { padding: 12px 8px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; transition: all .2s; }
.pay-method.active { border-color: var(--maroon-700); background: #FFF8F2; color: var(--maroon-800); }
.upi-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.upi-app { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 4px; text-align: center; font-size: 11.5px; font-weight: 700; background: #fff; transition: all .2s; }
.upi-app.active { border-color: var(--maroon-700); background: #FFF8F2; }
.upi-app .ua { width: 30px; height: 30px; border-radius: 8px; margin: 0 auto 6px; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800; }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); margin-top: 12px; }
.secure-note svg.lucide { width: 14px; height: 14px; color: var(--success); }

/* ----------------------------- Confirmation ------------------------------ */
.confirm-hero { position: relative; text-align: center; padding: 48px 0 36px; overflow: hidden; }
.confirm-hero h1 { font-size: clamp(36px, 5vw, 56px); margin-top: 18px; }
.confirm-hero .bid { display: inline-flex; gap: 10px; align-items: center; margin-top: 12px; padding: 8px 16px; background: var(--ivory); border: 1px dashed var(--gold-500); border-radius: 999px; font-weight: 800; color: var(--maroon-800); letter-spacing: .04em; }
.confirm-grid { display: grid; gap: 22px; }
@media (min-width: 980px) { .confirm-grid { grid-template-columns: 1.25fr .75fr; align-items: start; } }
.ticket { background: var(--ivory); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.ticket-head { display: flex; gap: 16px; align-items: center; padding: 20px 22px; background: linear-gradient(120deg, var(--maroon-900), var(--maroon-700)); color: var(--cream); }
.ticket-head img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; border: 2px solid var(--gold-300); }
.ticket-head h3 { color: var(--cream); font-size: 26px; }
.ticket-perf { position: relative; height: 0; border-top: 2px dashed var(--line); margin: 0 18px; }
.ticket-perf::before, .ticket-perf::after { content: ''; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--cream); }
.ticket-perf::before { left: -30px; } .ticket-perf::after { right: -30px; }
.ticket-body { padding: 20px 22px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.info-grid .ig small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.info-grid .ig small svg.lucide { width: 14px; height: 14px; color: var(--gold); }
.info-grid .ig b { display: block; font-size: 15px; color: var(--charcoal); margin-top: 3px; line-height: 1.35; }
.info-grid .span-2 { grid-column: span 2; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.action-grid .btn { height: 48px; }
@media (min-width: 640px) { .action-grid.c3 { grid-template-columns: repeat(3, 1fr); } }

/* Journey tracker (12 stages from the PDF) */
.journey { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.journey li { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.journey li::before { content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line); }
.journey li:last-child::before { display: none; }
.journey li.done::before { background: var(--gold-500); }
.journey .jd { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; flex-shrink: 0; color: var(--muted); z-index: 1; }
.journey .jd svg.lucide { width: 15px; height: 15px; }
.journey li.done .jd { background: var(--gold-500); border-color: var(--gold-500); color: #fff; }
.journey li.current .jd { background: var(--maroon-800); border-color: var(--maroon-800); color: var(--gold-300); box-shadow: 0 0 0 5px rgba(114, 32, 44, .12); }
.journey strong { font-size: 14px; display: block; color: var(--charcoal); }
.journey li:not(.done):not(.current) strong { color: var(--muted); font-weight: 600; }
.journey small { font-size: 12.5px; color: var(--muted); }

/* Booking cards (My bookings) */
.booking-card { background: var(--ivory); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: 1fr; box-shadow: var(--shadow-sm); transition: box-shadow .3s; }
.booking-card:hover { box-shadow: var(--shadow); }
@media (min-width: 760px) { .booking-card { grid-template-columns: 200px 1fr; } }
.booking-card .bc-media { position: relative; min-height: 150px; }
.booking-card .bc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.booking-card .bc-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.bc-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.bc-top h3 { font-size: 25px; }
.bc-id { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .05em; }
.bc-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; font-size: 13.5px; }
@media (min-width: 900px) { .bc-meta { grid-template-columns: repeat(4, 1fr); } }
.bc-meta span { display: flex; gap: 7px; align-items: flex-start; }
.bc-meta svg.lucide { width: 15px; height: 15px; color: var(--gold); margin-top: 3px; }
.bc-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--line); }

/* Checklist */
.progress { height: 10px; background: var(--sand-2); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--saffron)); border-radius: 999px; transition: width .5s var(--ease); }
.progress.done i { background: linear-gradient(90deg, #4C9A6A, var(--success)); }
.check-list { display: grid; gap: 8px; }
.check-item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line-soft); cursor: pointer; transition: all .2s; }
.check-item:hover { border-color: var(--gold-300); }
.check-item .cb { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; flex-shrink: 0; transition: all .2s var(--ease); color: #fff; }
.check-item .cb svg.lucide { width: 14px; height: 14px; opacity: 0; transform: scale(.4); transition: all .2s var(--ease); }
.check-item.checked { background: var(--success-bg); border-color: #C3DFCD; }
.check-item.checked .cb { background: var(--success); border-color: var(--success); }
.check-item.checked .cb svg.lucide { opacity: 1; transform: none; }
.check-item.checked .ci-name { text-decoration: line-through; color: var(--muted); }
.check-item .ci-name { font-weight: 600; font-size: 14.5px; }
.check-item .ci-qty { margin-left: auto; font-size: 12.5px; color: var(--muted); text-align: right; }
.progress-ring { --p: 0; width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(var(--success) calc(var(--p) * 1%), var(--sand-2) 0); display: grid; place-items: center; }
.progress-ring::before { content: attr(data-label); width: 72px; height: 72px; border-radius: 50%; background: var(--ivory); display: grid; place-items: center; font-weight: 800; font-size: 18px; color: var(--maroon-800); }

/* Rating input */
.rate-input { display: flex; gap: 6px; justify-content: center; }
.rate-input button { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; transition: transform .15s; }
.rate-input button:hover { transform: scale(1.12); }
.rate-input svg.lucide { width: 34px; height: 34px; color: #D9CDB8; }
.rate-input button.on svg.lucide { color: #D49A2A; fill: #E2AE45; }

/* Toasts */
.toast-root { position: fixed; z-index: 200; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 440px; }
.toast { pointer-events: none; background: var(--charcoal); color: var(--cream); padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; font-size: 14px; animation: toastIn .35s var(--ease); width: 100%; }
.toast svg.lucide { color: var(--gold-300); }
.toast.success svg.lucide { color: #7FD3A0; }
.toast.error svg.lucide { color: #F29A9A; }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(14px); } }

/* Floating action (mobile) */
.fab-consult { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 18px; border-radius: 999px; background: var(--maroon-800); color: var(--cream); font-weight: 700; font-size: 14px; box-shadow: 0 12px 30px rgba(86, 20, 32, .4); transition: transform .3s var(--ease); }
.fab-consult svg.lucide { color: var(--gold-300); }
.fab-consult:hover { transform: translateY(-2px); }
@media (min-width: 1100px) { .fab-consult { display: none; } }
.demo-banner { background: var(--gold-100); color: var(--maroon-800); font-size: 12.5px; text-align: center; padding: 7px 16px; border-bottom: 1px solid #EBD9AE; }
.demo-banner a { text-decoration: underline; font-weight: 700; }

/* About */
.about-grid { display: grid; gap: 30px; align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.pillars { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pillars { grid-template-columns: repeat(5, 1fr); } }
.pillar { background: var(--ivory); border: 1px solid var(--line-soft); border-radius: 20px; padding: 22px; }
.pillar .pi { width: 46px; height: 46px; border-radius: 14px; background: var(--maroon-800); color: var(--gold-300); display: grid; place-items: center; }
.pillar h4 { font-size: 23px; margin-top: 14px; }
.pillar p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.prose { max-width: 760px; }
.prose h3 { font-size: 28px; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--ink); font-size: 15.5px; margin-bottom: 10px; }
.prose ul { padding-left: 20px; }
.credits-list { font-size: 12.5px; color: var(--muted); columns: 1; }
@media (min-width: 900px) { .credits-list { columns: 2; } }
.credits-list li { break-inside: avoid; margin-bottom: 6px; }

/* Utility tables (admin also uses) */
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line-soft); background: var(--ivory); }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
.table th { text-align: left; padding: 12px 14px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--cream); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:hover td { background: #FFFBF3; }
.table tr:last-child td { border-bottom: 0; }

/* Search page */
.result-group h3 { font-size: 26px; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; }
.result-row { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; background: var(--ivory); border: 1px solid var(--line-soft); cursor: pointer; transition: all .2s; }
.result-row:hover { border-color: var(--gold-300); box-shadow: var(--shadow-sm); }
.result-row img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }

/* Print */
@media print { .site-header, .topbar, .site-footer, .fab-consult { display: none !important; } }

/* ---- refinements ---- */
.site-footer h5.mt-3 { margin-top: 24px; }
.seva-price strong, .price-card .range, .priest-stats b, .fest-date b, .upcoming-item .ud b, .pay-head .amt, .variant b, .kv span, .step-idx, .confirm-hero .bid { font-variant-numeric: lining-nums tabular-nums; }
.priest-top h4 { font-size: 20px; line-height: 1.15; }
.demo-flag { white-space: nowrap; }
.priest-card .priest-top .row { flex-wrap: wrap; }
.testi .who { flex-wrap: wrap; }

/* ---- mobile overflow guards ---- */
.catalog > *, .booking-layout > *, .confirm-grid > *, .cal-preview > *, .about-grid > *, .mantra-feature > *, .sd-content > * { min-width: 0; }
.tabs { min-width: 0; max-width: 100%; }
.drawer:not(.open) { visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; }
.notif-panel:not(.open) { visibility: hidden; }
@media (max-width: 480px) {
  .header-main { gap: 8px; }
  .logo-mark { width: 38px; height: 38px; }
  .logo-text strong { font-size: 21px; }
  .logo-text span { font-size: 10px; }
  .header-actions { gap: 0; }
  .header-actions .hide-xs { display: none; }
  .icon-btn { width: 38px; height: 38px; }
  .search-card { margin-top: -70px; padding: 18px; }
  .hero-inner { padding: 54px 0 120px; }
  .hero-cta .btn { width: 100%; }
  .section { padding: 60px 0; }
  .form-card { padding: 18px; }
  .fab-consult span { display: none; }
  .fab-consult { width: 54px; padding: 0; justify-content: center; }
}
.action-grid .btn { white-space: normal; height: auto; min-height: 48px; padding: 8px 14px; text-align: center; line-height: 1.25; }
.action-grid > * { min-width: 0; }
