@charset "UTF-8";
/* Naadi Astro — modern spiritual/astrology theme */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  gap: 22px;
  align-content: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 208, 91, .42) 0 8%, transparent 25%),
    radial-gradient(circle at 16% 18%, rgba(236, 72, 153, .28), transparent 30%),
    radial-gradient(circle at 82% 72%, rgba(34, 211, 238, .18), transparent 32%),
    radial-gradient(circle at 22% 84%, rgba(249, 115, 22, .16), transparent 28%),
    linear-gradient(135deg, #100018 0%, #3a0a62 42%, #101737 100%);
  transition: opacity .15s ease, visibility .15s ease;
}
.site-loader::before {
  content: "";
  position: absolute;
  inset: -18%;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 74px 74px;
  transform: rotate(14deg);
  opacity: .22;
  animation: loaderGridDrift 14s linear infinite;
}
.site-loader::after {
  content: "";
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(circle at 14% 22%, rgba(255,255,255,.9) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 16%, rgba(255,255,255,.8) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 64%, rgba(255,255,255,.72) 0 1px, transparent 2px),
    radial-gradient(circle at 26% 72%, rgba(255,255,255,.7) 0 1px, transparent 2px),
    radial-gradient(circle at 58% 86%, rgba(255,255,255,.8) 0 1px, transparent 2px);
  opacity: .48;
  animation: loaderStarPulse 2.2s ease-in-out infinite;
}
.site-loader.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.site-action-loader {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, .28);
  backdrop-filter: blur(4px);
}
.site-action-loader[hidden] {
  display: none !important;
}
.site-action-loader-panel {
  min-width: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(139, 92, 246, .12);
  box-shadow: 0 24px 60px rgba(76, 29, 149, .18);
  text-align: center;
}
.site-action-loader-panel strong {
  color: #5b2ca0;
  font-size: 15px;
  font-weight: 700;
}
.site-action-loader-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(245, 158, 11, .18);
  border-top-color: #f59e0b;
  /* border-right-color: #7c3aed; */
  box-shadow: 0 0 0 6px rgba(124, 58, 237, .06);
  animation: loaderSpin .8s linear infinite;
}
.site-loader-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.site-loader-sky span {
  position: absolute;
  left: var(--x, 18%);
  top: var(--y, 22%);
  width: 190px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 232, 160, .95), transparent);
  box-shadow: 0 0 18px rgba(255, 214, 128, .72);
  opacity: 0;
  transform: rotate(-18deg) translateX(-140px);
  animation: loaderShootingStar 3.9s ease-in-out infinite;
}
.site-loader-sky span:nth-child(1) { --x: 10%; --y: 21%; animation-delay: .15s; }
.site-loader-sky span:nth-child(2) { --x: 72%; --y: 14%; animation-delay: 1.1s; animation-duration: 4.4s; }
.site-loader-sky span:nth-child(3) { --x: 24%; --y: 72%; animation-delay: 2.2s; animation-duration: 4.8s; }
.site-loader-sky span:nth-child(4) { --x: 82%; --y: 62%; animation-delay: 3.2s; animation-duration: 5.2s; }
.site-loader-sky span:nth-child(5) { --x: 48%; --y: 30%; animation-delay: 4.1s; animation-duration: 5.8s; }
.site-loader-wheel {
  position: relative;
  z-index: 1;
  --loader-orbit-y: clamp(-176px, -15.6vw, -117px);
  width: clamp(292px, 34vw, 410px);
  height: clamp(292px, 34vw, 410px);
  border-radius: 50%;
  filter: drop-shadow(0 34px 68px rgba(0,0,0,.28));
  animation: loaderFloat 3.1s ease-in-out infinite;
}
.site-loader-wheel::before,
.site-loader-wheel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, transparent 0 10%, rgba(255, 208, 91, .92) 13%, transparent 18% 32%, rgba(244, 114, 182, .74) 36%, transparent 43% 58%, rgba(45, 212, 191, .72) 63%, transparent 70% 86%, rgba(255, 255, 255, .72) 90%, transparent 96%),
    radial-gradient(circle, transparent 55%, rgba(255,255,255,.08) 56%, transparent 58%);
  mask: radial-gradient(circle, transparent 58%, #000 59%, #000 63%, transparent 64%);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 59%, #000 63%, transparent 64%);
  animation: loaderSpin 7s linear infinite;
}
.site-loader-wheel::after {
  inset: 26px;
  opacity: .58;
  animation-duration: 5.2s;
  animation-direction: reverse;
}
.site-loader-ring {
  position: absolute;
  inset: 42px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  box-shadow:
    0 0 0 18px rgba(255,255,255,.035),
    0 0 0 46px rgba(251, 191, 36, .05),
    0 0 90px rgba(251, 146, 60, .42),
    inset 0 0 38px rgba(255,255,255,.06);
  animation: loaderSpin 8.5s linear infinite;
}
.site-loader-ring::before,
.site-loader-ring::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(255,255,255,.32);
  border-radius: 50%;
}
.site-loader-ring::after {
  inset: 48px;
  border-style: solid;
  border-color: rgba(251, 191, 36, .46);
  box-shadow: 0 0 28px rgba(251, 191, 36, .2);
  animation: loaderSpin 3.2s linear infinite reverse;
}
.site-loader-sign {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(45px, 5.1vw, 62px);
  height: clamp(45px, 5.1vw, 62px);
  padding: 6px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, #fff 0 35%, #fff3d4 64%, #f6b84f 100%);
  border: 1px solid rgba(255, 228, 165, .86);
  box-shadow:
    0 14px 30px rgba(0,0,0,.28),
    0 0 0 4px rgba(255,255,255,.1),
    0 0 24px rgba(251, 191, 36, .28);
  transform:
    translate(-50%, -50%)
    rotate(calc(var(--i) * 30deg))
    translateY(var(--loader-orbit-y))
    rotate(calc(var(--i) * -30deg));
  animation: loaderSignGlow 1.9s ease-in-out infinite, loaderSignOrbit 11s linear infinite;
  animation-delay: calc(var(--i) * -0.11s), 0s;
}
.site-loader-sign img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.site-loader-center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(104px, 10vw, 130px);
  height: clamp(104px, 10vw, 130px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 28%, #fff9db 0 24%, #ffd675 48%, #f59e0b 72%, #7c2d12 100%);
  box-shadow:
    inset 0 0 20px rgba(255,255,255,.62),
    0 0 0 10px rgba(255,255,255,.08),
    0 0 48px rgba(251, 191, 36, .58),
    0 18px 34px rgba(0,0,0,.3);
  transform: translate(-50%, -50%);
  animation: loaderCenterPulse 1.35s ease-in-out infinite;
}
.site-loader-center img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  opacity: .36;
  animation: loaderSpin 18s linear infinite reverse;
}
.site-loader-center strong {
  position: absolute;
  color: #4c1d95;
  font-size: clamp(36px, 4.2vw, 48px);
  line-height: 1;
  text-shadow: 0 2px 8px rgba(255,255,255,.5);
}
.site-loader-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0,0,0,.4);
  animation: loaderCopyRise .7s ease both;
}
.site-loader-copy strong {
  display: block;
  font-size: clamp(1.38rem, 2.3vw, 2rem);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.site-loader-copy span {
  display: block;
  margin-top: 7px;
  color: rgba(255,255,255,.78);
  font-size: .92rem;
}
.site-loader-copy::after {
  content: "";
  display: block;
  width: min(230px, 58vw);
  height: 4px;
  margin: 18px auto 0;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, #fbbf24, #fff7ad, #f97316, transparent);
  background-size: 220% 100%;
  box-shadow: 0 0 22px rgba(251, 191, 36, .48);
  animation: loaderProgress 1.35s ease-in-out infinite;
}
body.site-loading {
  overflow: hidden;
}
@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}
@keyframes loaderFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes loaderGridDrift {
  to { transform: rotate(14deg) translate3d(74px, 74px, 0); }
}
@keyframes loaderStarPulse {
  0%, 100% { opacity: .34; filter: brightness(.92); }
  50% { opacity: .72; filter: brightness(1.25); }
}
@keyframes loaderShootingStar {
  0%, 18% { opacity: 0; transform: rotate(-18deg) translateX(-160px); }
  30%, 44% { opacity: 1; }
  68%, 100% { opacity: 0; transform: rotate(-18deg) translateX(48vw); }
}
@keyframes loaderCenterPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(.96); }
  50% { transform: translate(-50%, -50%) scale(1.04); }
}
@keyframes loaderSignGlow {
  0%, 100% { filter: saturate(1); opacity: .82; }
  50% { filter: saturate(1.45) drop-shadow(0 0 16px rgba(251, 191, 36, .62)); opacity: 1; }
}
@keyframes loaderSignOrbit {
  0% {
    transform:
      translate(-50%, -50%)
      rotate(calc(var(--i) * 30deg))
      translateY(var(--loader-orbit-y))
      rotate(calc(var(--i) * -30deg))
      scale(1);
  }
  50% {
    transform:
      translate(-50%, -50%)
      rotate(calc((var(--i) * 30deg) + 180deg))
      translateY(calc(var(--loader-orbit-y) - 7px))
      rotate(calc((var(--i) * -30deg) - 180deg))
      scale(1.06);
  }
  100% {
    transform:
      translate(-50%, -50%)
      rotate(calc((var(--i) * 30deg) + 360deg))
      translateY(var(--loader-orbit-y))
      rotate(calc((var(--i) * -30deg) - 360deg))
      scale(1);
  }
}
@keyframes loaderProgress {
  0% { background-position: 120% 0; opacity: .52; }
  50% { opacity: 1; }
  100% { background-position: -120% 0; opacity: .52; }
}
@keyframes loaderCopyRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .site-loader-wheel,
  .site-loader-wheel::before,
  .site-loader-wheel::after,
  .site-loader-ring,
  .site-loader-ring::after,
  .site-loader-center,
  .site-loader-center img,
  .site-loader-sign,
  .site-loader-sky span,
  .site-loader-copy,
  .site-loader-copy::after,
  .site-loader::before,
  .site-loader::after {
    animation: none;
  }
}
@media (max-width: 575.98px) {
  .site-loader {
    gap: 18px;
  }
  .site-loader-ring {
    inset: 36px;
  }
  .site-loader-copy strong {
    letter-spacing: .14em;
  }
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-Bold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-ExtraBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit/Outfit-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit/Outfit-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit/Outfit-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit/Outfit-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit/Outfit-Bold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit/Outfit-ExtraBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary: #6b21a8;
  --color-primary-dark: #4c1d75;
  --color-accent: #f59e0b;
  --color-accent-dark: #d97706;
  --color-bg: #fdf9f3;
  --color-surface: #ffffff;
  --color-text: #241b30;
  --color-muted: #6b6478;
  --color-border: #ece3f5;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(76, 29, 117, 0.08);
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  /* --font-heading: 'Poppins', 'Outfit', sans-serif; */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  /* --font-body: 'Outfit', sans-serif; */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; max-width: 100%; overflow-x: clip; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
a { color: var(--color-primary); text-decoration: none; font-weight: 600; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-body); font-weight: 600; letter-spacing: 1px; margin: 0 0 .5em; color: var(--color-primary-dark); line-height: 1.18; }
h1 { font-size: 2.55rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.32rem; }
h4 { font-size: 1.08rem; }
p { margin-top: 0; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0px; }
.section { padding: 25px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head p { color: var(--color-muted);  margin: 8px auto 0; }
.home-section-divider {
  position: relative;
  height: 1px;
  overflow: hidden;
  background: rgba(255,255,255,.72);
}
.home-section-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1120px, calc(100% - 34px));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,.28), rgba(245,158,11,.3), rgba(167,139,250,.28), transparent);
  transform: translate(-50%, -50%);
}
.home-section-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1120px, calc(100% - 34px));
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(245,158,11,0) 42%, rgb(34 10 195 / 95%) 50%, rgba(245,158,11,0) 58%, transparent 100%);
  transform: translate(-50%, -50%);
  animation: homeDividerShine 3.2s linear infinite;
}
.home-section-divider span {
  display: none;
  position: absolute;
  top: 50%;
  left: 61%;
  z-index: 1;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #a78bfa;
  box-shadow: 0 0 0 5px rgba(167,139,250,.14), 0 0 18px rgba(245,158,11,.45);
  transform: translate(-50%, -50%);
  animation: homeDividerDot 2.6s ease-in-out infinite;
}

@keyframes homeDividerShine {
  0% { transform: translate(-105%, -50%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(5%, -50%); opacity: 0; }
}

@keyframes homeDividerDot {
  0%, 100% { transform: translate(-50%, -50%) scale(.72); opacity: .55; }
  50% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.inner-bg-navagraha,
.inner-bg-amman,
.inner-bg-murugan {
  position: relative;
  flex: 1 0 auto;
  overflow: hidden;
  background-color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.inner-bg-navagraha {
  background-image: url('../images/optimized/back-navagragam-light.webp');
}
.inner-bg-amman {
  background-image: url('../images/optimized/back-amman.webp');
}
.inner-bg-murugan {
  background-image: url('../images/optimized/murgan.webp');
}
.payment-status-section.inner-bg-murugan {
  min-height: clamp(420px, 72vh, 640px);
  padding-top: 34px;
  background-size: auto 92%;
  background-position: center top 10px;
}
.inner-bg-navagraha::before,
.inner-bg-amman::before,
.inner-bg-murugan::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 96%);
  pointer-events: none;
}
.inner-bg-amman::before {
  /* background: rgba(255, 250, 245, 0.93); */
}
.inner-bg-navagraha > .container,
.inner-bg-amman > .container,
.inner-bg-murugan > .container {
  position: relative;
  z-index: 1;
}

.navagraha-bg {
  position: relative;
  overflow: hidden;
  background-color: #fff;
  background-image: url('../images/optimized/back-navagragam-light.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.navagraha-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 96%);
  /* box-shadow: inset 0 0 90px rgba(255, 255, 255, 0.95); */
  pointer-events: none;
}
.navagraha-bg > .container {
  position: relative;
  z-index: 1;
}
.amman-bg {
  background-image: url('../images/optimized/back-amman.webp');
}

@media (min-width: 900px) {
  .navagraha-bg,
  .astrology-list-section.inner-bg-navagraha {
    background-attachment: fixed;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .94rem;
  font-weight: 500;
  line-height: 1.1;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark)); color: #fff; box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35); }
.btn-outline { background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); }
.btn-glass { background: rgba(255, 255, 255, 0.14); border: 1.5px solid rgba(255, 255, 255, 0.5); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.24); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(245, 158, 11, 0.45); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn[data-booking-submit] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.booking-submit-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  animation: loaderSpin .8s linear infinite;
}
.booking-submit-spinner[hidden] {
  display: none !important;
}
.btn-sm { padding: 8px 16px; font-size: .84rem; }
.btn-lg { padding: 15px 34px; font-size: 1rem; }

/* Top announcement bar */
.topbar { background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary)); color: rgba(255,255,255,.92); font-size: .82rem; }
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-tag { font-weight: 600; letter-spacing: .02em; }
.topbar-contact { display: flex; gap: 18px; }
.topbar-contact a { color: rgba(255,255,255,.9); }
.topbar-contact a:hover { color: #fde68a; }

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(107, 33, 168, 0.08);
  box-shadow: 0 4px 30px rgba(76, 29, 117, 0.06);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { min-height: 78px; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 10px clamp(20px, 3vw, 54px); gap: 18px; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { width: clamp(150px, 12vw, 172px); height: auto; max-height: 100px; object-fit: contain; }
.main-nav { min-width: 0; flex: 1 1 auto; display: flex; gap: 4px; align-items: center; justify-content: center; flex-wrap: nowrap; }
.main-nav a { position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--color-text); font-weight: 600; font-size: .86rem; line-height: 1; padding: 10px 9px; border-radius: 999px; white-space: nowrap; transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.main-nav a i { font-size: .95rem; color: var(--color-primary); opacity: .78; }
.main-nav a:hover { color: var(--color-primary); background: rgba(107, 33, 168, 0.08); }
.main-nav a.active {
  color: var(--color-primary);
  background: linear-gradient(135deg, #fff7ed, #f3e8ff);
  box-shadow: 0 8px 20px rgba(107, 33, 168, 0.12), inset 0 0 0 1px rgba(245, 158, 11, 0.28);
}
.main-nav a.active i { color: var(--color-accent); opacity: 1; }
.main-nav a.active:hover { color: var(--color-primary); background: linear-gradient(135deg, #fff7ed, #f3e8ff); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: 0 0 auto; }
.lang-switch { display: flex; gap: 2px; background: var(--color-bg); border-radius: 999px; padding: 3px; border: 1px solid var(--color-border); }
.lang-switch a { padding: 5px 11px; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .04em; color: var(--color-muted); }
.lang-switch a.active { background: var(--color-primary); color: #fff; box-shadow: 0 2px 8px rgba(107, 33, 168, 0.35); }
.lang-toggle {
  position: relative;
  width: 68px;
  min-width: 68px;
  height: 32px;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(107, 33, 168, .18);
  border-radius: 999px;
  color: var(--color-primary);
  background: linear-gradient(135deg, #faf5ff, #fff7ed);
  box-shadow: inset 0 1px 3px rgba(76, 29, 117, .08), 0 8px 22px rgba(76, 29, 117, .08);
  font-weight: 800;
  isolation: isolate;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.lang-toggle-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  z-index: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  box-shadow: 0 0 0 2px rgba(245, 158, 11, .35), inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 14px rgba(107, 33, 168, .35);
  transition: transform .28s cubic-bezier(.4, 1.4, .6, 1);
}
.lang-toggle.is-ta .lang-toggle-thumb { transform: translateX(100%); }
.lang-toggle-option {
  position: relative;
  z-index: 1;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  opacity: .6;
  font-size: .66rem;
  line-height: 1;
  letter-spacing: .08em;
  transition: color .2s ease, opacity .2s ease;
}
.lang-toggle-option.active {
  color: #fff;
  opacity: 1;
}
.lang-toggle:hover {
  color: var(--color-primary);
  border-color: rgba(245, 158, 11, .55);
  box-shadow: inset 0 1px 3px rgba(76, 29, 117, .08), 0 10px 26px rgba(107, 33, 168, .16);
  transform: translateY(-1px);
}
.lang-toggle:hover .lang-toggle-option:not(.active) { opacity: 1; }
.lang-toggle.is-en:hover .lang-toggle-thumb { transform: translateX(3px); }
.lang-toggle.is-ta:hover .lang-toggle-thumb { transform: translateX(calc(100% - 3px)); }
.lang-toggle:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .lang-toggle,
  .lang-toggle-thumb,
  .lang-toggle-option { transition: none; }
}
.lang-toggle::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 9px);
  z-index: 180;
  padding: 7px 10px;
  border-radius: 9px;
  color: #fff;
  background: #2f1248;
  box-shadow: 0 12px 26px rgba(47, 18, 72, .22);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -4px);
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}
.lang-toggle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 4px);
  z-index: 181;
  width: 9px;
  height: 9px;
  background: #2f1248;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -2px) rotate(45deg);
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}
.lang-toggle:hover::after,
.lang-toggle:focus-visible::after,
.lang-toggle:hover::before,
.lang-toggle:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.lang-toggle:hover::before,
.lang-toggle:focus-visible::before { transform: translate(-50%, 0) rotate(45deg); }
.account-menu { position: relative; flex: 0 0 auto; }
.account-trigger {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.account-trigger:hover,
.account-menu.open .account-trigger {
  background: #fff;
  border-color: rgba(107, 33, 168, .12);
  box-shadow: 0 12px 30px rgba(76, 29, 117, .1);
}
.account-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  font-size: 23px;
  background: linear-gradient(135deg, var(--color-primary), #8b2be2);
  box-shadow: 0 10px 24px rgba(107, 33, 168, .24);
}
.account-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.account-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 104px;
  line-height: 1.12;
}
.account-copy strong { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; color: var(--color-text); }
.account-copy small { margin-top: 3px; font-size: .73rem; font-weight: 700; color: var(--color-muted); }
.account-trigger .bi-chevron-down { color: var(--color-muted); font-size: .78rem; transition: transform .16s ease; }
.account-menu.open .bi-chevron-down { transform: rotate(180deg); }
.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 150;
  width: 238px;
  padding: 8px;
  border: 1px solid rgba(107, 33, 168, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 22px 55px rgba(76, 29, 117, .16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.account-menu.open .account-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.account-dropdown a,
.account-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 0;
  color: var(--color-text);
  background: transparent;
  font-weight: 700;
  font-size: .88rem;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.account-dropdown a:hover,
.account-dropdown button:hover {
  color: var(--color-primary);
  background: linear-gradient(135deg, #fff7ed, #f3e8ff);
}
.account-dropdown i:not(.bi-chevron-down) {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--color-primary);
  background: rgba(107, 33, 168, .08);
}
.account-dropdown em {
  margin-left: auto;
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff;
  font-size: .7rem;
  font-style: normal;
  text-align: center;
  background: var(--color-accent);
}
.header-actions .btn-sm { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--color-primary); }
.nav-mobile-extra { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-content { /* max-width: 620px; */ position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px; background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.55); color: #fde68a; font-size: .75rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero-content h1 { color: #fff; font-size: 30px; line-height: 1.12; margin-bottom: 18px; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.hero-content p { color: rgba(255,255,255,.9); font-size: 15px; margin-bottom: 32px; /* max-width: 520px; */ text-shadow: 0 1px 12px rgba(0,0,0,.3); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Static hero (no banners) */
.hero--static { background: radial-gradient(120% 120% at 80% 10%, var(--color-primary) 0%, var(--color-primary-dark) 55%, #2a0f4a 100%); padding: 100px 0; }
.hero-glow { position: absolute; right: -120px; top: -120px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(245,158,11,.35), transparent 68%); pointer-events: none; }
.hero--static::before { content: ""; position: absolute; left: -80px; bottom: -140px; width: 380px; height: 380px; background: radial-gradient(circle, rgba(168,85,247,.35), transparent 70%); pointer-events: none; }

/* Carousel hero */
.hero--carousel {
  height: clamp(180px, 23.45vw, 450px);
  padding: 0;
  background: #fff;
}
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  isolation: isolate;
}
.hero-carousel::before {
  content: "";
  position: absolute;
  inset: -28%;
  z-index: 2;
  background:
    radial-gradient(circle at 18% 35%, rgba(255,255,255,.42), transparent 21%),
    linear-gradient(115deg, transparent 30%, rgba(255,255,255,.58) 45%, transparent 59%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-32%);
}
.hero-carousel.is-glowing::before {
  animation: heroCarouselGlow 1.15s ease-out;
}
.hero-slide {
  position: absolute; top: 0; left: 0; width: 100%;
  height: 100%;
  opacity: 0; visibility: hidden; transition: opacity .8s ease;
}
.hero-slide.active { position: relative; opacity: 1; visibility: visible; }
.hero-slide > a { position: relative; display: block; height: 100%; overflow: hidden; border-radius: 0; }
.hero-slide picture { display: block; width: 100%; height: 100%; }
.hero-slide > a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 0;
  box-shadow: inset 0 -22px 46px rgba(183, 123, 31, .08);
  pointer-events: none;
}
.hero-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.04) contrast(1.01);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-carousel.has-changed .hero-slide.active .hero-img { animation: heroImageBloom .95s ease both; }
}
.hero-inner { position: absolute; inset: 0; display: flex; align-items: center; }
/* Text on the right → darken the right side for readability */
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, rgba(20,8,40,.15) 38%, rgba(20,8,40,.62) 66%, rgba(20,8,40,.9) 100%); }
.hero--carousel .hero-content { margin-left: auto; text-align: right; }
.hero--carousel .hero-content p { margin-left: auto; }
.hero--carousel .hero-actions { justify-content: flex-end; }
.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  padding: 0;
  line-height: 1;
  display: grid;
  opacity: 1;
  place-items: center;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 8, 40, .62);
  transform: translateY(-50%);
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.hero-arrow:hover,
.hero-arrow:focus-visible {
  color: #fff;
  background: rgba(20, 8, 40, .82);
  border-color: rgba(255,255,255,.86);
  transform: translateY(-50%) scale(1.04);
}
.hero-arrow i { font-size: 1.55rem; line-height: 1; }
.hero-arrow svg,
.home-consultation-arrow svg { display: block; width: 22px; height: 22px; flex: none; }
.hero-arrow-prev { left: clamp(12px, 1.7vw, 22px); }
.hero-arrow-next { right: clamp(12px, 1.7vw, 22px); }
.hero-dots { position: absolute; bottom: clamp(14px, 1.8vw, 24px); left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.hero-dots button { width: 6px; height: 6px; border-radius: 999px; border: none; background: rgba(255,255,255,.72); cursor: pointer; padding: 0; transition: width .2s ease, transform .15s ease, background .15s ease; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.hero-dots button.active { width: 18px; background: var(--color-accent); transform: none; }

@keyframes heroImageBloom {
  0% { filter: saturate(1.08) contrast(1.02) brightness(1.08); transform: scale(1.012); }
  58% { filter: saturate(1.12) contrast(1.03) brightness(1.05); }
  100% { filter: saturate(1.04) contrast(1.01) brightness(1); transform: scale(1); }
}

@keyframes heroCarouselGlow {
  0% { opacity: 0; transform: translateX(-36%); }
  28% { opacity: .72; }
  100% { opacity: 0; transform: translateX(34%); }
}

@media (max-width: 1024px) {
  .hero--carousel .hero-content {
    max-width: 58%;
    padding-right: 18px;
  }
  .hero--carousel .hero-badge {
    margin-bottom: 10px;
    padding: 5px 12px;
    font-size: .58rem;
  }
  .hero--carousel .hero-content h1 {
    margin-bottom: 8px;
    font-size: clamp(1.2rem, 3.4vw, 2rem);
    line-height: 1.08;
  }
  .hero--carousel .hero-content p {
    margin-bottom: 0;
    font-size: clamp(.68rem, 1.55vw, .95rem);
    line-height: 1.35;
  }
}

@media (max-width: 900px) {
  .hero--carousel .hero-content {
    max-width: 62%;
    padding-right: 10px;
  }
  .hero--carousel .hero-badge {
    margin-bottom: 8px;
    padding: 4px 10px;
    font-size: .5rem;
  }
  .hero--carousel .hero-content h1 {
    margin-bottom: 6px;
    font-size: clamp(1rem, 3.9vw, 1.55rem);
  }
  .hero--carousel .hero-content p {
    font-size: clamp(.6rem, 1.65vw, .78rem);
    line-height: 1.3;
  }
  .hero-arrow {
    width: 38px;
    height: 38px;
  }
}

.advt-banner-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
  background:
    radial-gradient(circle at 22% 18%, rgba(245, 158, 11, .2), transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(168, 85, 247, .2), transparent 34%),
    rgba(13, 8, 24, .78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.advt-banner-modal[hidden] {
  display: none;
}
.advt-banner-dialog {
  position: relative;
  width: min(94vw, 860px);
  padding: clamp(8px, 1.4vw, 14px);
  border: 1px solid rgba(253, 230, 138, .55);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,248,236,.92)),
    radial-gradient(circle at 50% 0%, rgba(245, 158, 11, .18), transparent 40%);
  box-shadow:
    0 34px 90px rgba(7, 3, 16, .48),
    0 0 0 1px rgba(255,255,255,.42) inset;
  overflow: visible;
}
.advt-banner-dialog::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(120, 53, 15, .12);
  border-radius: 16px;
  pointer-events: none;
  z-index: 2;
}
/* .advt-banner-dialog::after {
  content: "Advertisement";
  position: absolute;
  left: 50%;
  top: 12px;
  z-index: 3;
  padding: 5px 14px;
  border: 1px solid rgba(253, 230, 138, .58);
  border-radius: 999px;
  color: #fff7d6;
  background: linear-gradient(135deg, rgba(62, 23, 86, .92), rgba(126, 54, 14, .88));
  box-shadow: 0 10px 26px rgba(48, 16, 74, .22);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: translateX(-50%);
} */
.advt-banner-track {
  position: relative;
  border-radius: 16px;
  background:
    linear-gradient(135deg, #1c0d2d, #3a1450 48%, #160a25),
    #140923;
  overflow: hidden;
}
.advt-banner-slide {
  display: none;
  width: 100%;
  color: inherit;
  text-decoration: none;
}
.advt-banner-slide.active {
  display: block;
}
.advt-banner-slide img {
  display: block;
  width: auto;
  height: auto;
  margin-inline: auto;
  max-height: min(76vh, 640px);
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
}
.advt-banner-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  color: #fff;
  background: #2d2d2d;
  box-shadow: 0 3px 10px rgba(0,0,0,.28);
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}
.advt-banner-close:hover {
  color: #fff;
  background: #111;
  transform: scale(1.04);
}
.advt-banner-close:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.advt-banner-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(253, 230, 138, .42);
  border-radius: 50%;
  color: #fff;
  background: rgba(30, 12, 48, .58);
  box-shadow: 0 14px 34px rgba(7, 3, 16, .28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform: translateY(-50%);
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.advt-banner-arrow:hover {
  border-color: rgba(253, 230, 138, .86);
  background: rgba(107, 33, 168, .74);
  transform: translateY(-50%) scale(1.05);
}
.advt-banner-prev { left: 18px; }
.advt-banner-next { right: 18px; }
.advt-banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.advt-banner-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.66);
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  cursor: pointer;
}
.advt-banner-dots button.active {
  background: var(--color-accent);
  border-color: #fff;
  transform: scale(1.45);
}

/* Horoscopes */
.horo-hero { position: relative; overflow: hidden; text-align: center; padding: 25px 0 25px; color: #fff;
  background:
    linear-gradient(135deg, rgb(76 29 117 / 84%), rgb(47 0 88)),
      url(../images/optimized/back-wht-velan-vel.webp) center / cover;
  }
    
.horo-hero::after { content: "✦"; position: absolute; color: rgba(253,230,138,.35); font-size: 2rem; }
.horo-hero::before { top: 26px; left: 12%; }
.horo-hero::after { bottom: 24px; right: 14%; font-size: 1.4rem; }
.horo-hero h1 { color: #fff; font-size: 2.6rem; margin: 14px 0 10px; }
.horo-hero p { color: rgba(255,255,255,.85); margin: 0 auto; font-size: 1.08rem; }

.zodiac-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.zodiac-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 24px 12px; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); box-shadow: var(--shadow); color: var(--color-text);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.zodiac-card:hover, .zodiac-card.active { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 14px 30px rgba(76,29,117,.16); }
.zodiac-sym {
  width: 62px; height: 62px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.zodiac-sym img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.zodiac-name { font-family: var(--font-heading); font-weight: 600; color: var(--color-primary-dark); font-size: 1.05rem; }
.zodiac-dates { color: var(--color-muted); font-size: .76rem; }

.horo-reading {
  display: flex; gap: 26px; align-items: flex-start; margin-bottom: 46px; padding: 30px 32px;
  background: linear-gradient(135deg, #fff, #faf5ff); border: 1px solid var(--color-border);
  border-radius: 20px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.horo-reading::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent, var(--color-accent)); }
.horo-reading-sym {
  flex-shrink: 0; width: 92px; height: 92px; display: flex; align-items: center; justify-content: center;
}
.horo-reading-sym img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.horo-reading-label { display: inline-block; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 600; color: var(--color-accent-dark); margin-bottom: 6px; }
.horo-reading-body h2 { margin-bottom: 12px; }
.horo-reading-body h2 small { font-family: var(--font-body); font-weight: 500; font-size: .8rem; color: var(--color-muted); margin-left: 8px; }
.horo-reading-body p { font-size: 1.08rem; line-height: 1.75; color: var(--color-text); margin: 0; }
.horo-reading-date { display: inline-block; margin-top: 14px; font-size: .8rem; color: var(--color-muted); }
.horo-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.horo-detail-grid div { padding: 13px 14px; border: 1px solid var(--color-border); border-radius: 12px; background: #fffaf5; min-height: 82px; }
.horo-detail-grid span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--color-accent-dark); font-weight: 600; margin-bottom: 5px; }
.horo-detail-grid strong { display: block; color: var(--color-primary-dark); font-size: .95rem; line-height: 1.45; }

/* Panchang & Nakshatra */
.panchang-box { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.panchang-controls { display: flex; flex-wrap: wrap; gap: 18px; padding: 22px 26px; background: linear-gradient(135deg, #f7f0ff, #fff); border-bottom: 1px solid var(--color-border); }
.pc-field { display: flex; flex-direction: column; gap: 6px; min-width: 200px; flex: 1; }
.pc-field-wide { flex: 2; min-width: 300px; }
.pc-field label { font-weight: 600; font-size: .82rem; color: var(--color-primary-dark); }
.panchang-tabs { display: flex; gap: 4px; padding: 14px 26px 0; border-bottom: 1px solid var(--color-border); background: var(--color-surface); flex-wrap: wrap; }
.pan-tab { border: none; background: none; padding: 12px 20px; font-weight: 500; font-size: .95rem; color: var(--color-muted); cursor: pointer; border-bottom: 3px solid transparent; border-radius: 8px 8px 0 0; transition: color .15s ease, border-color .15s ease, background .15s ease; }
.pan-tab:hover { color: var(--color-primary); background: rgba(107,33,168,.06); }
.pan-tab.active { color: var(--color-primary); border-bottom-color: var(--color-accent); }
.pan-status { margin: 18px 26px 0; padding: 12px 16px; border-radius: 10px; font-size: .9rem; background: #fef3c7; color: #92400e; }
.pan-status--error { background: #fef2f2; color: #b91c1c; }
.pan-retry { margin-left: 12px; border: 0; border-radius: 999px; padding: 6px 13px; background: var(--color-primary); color: #fff; font-weight: 600; font-size: .82rem; cursor: pointer; }
.pan-retry:hover { background: var(--color-primary-dark); }

.pan-panel { padding: 26px; }
.pan-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; color: var(--color-muted); font-size: .9rem; }
.pan-meta span { padding: 8px 12px; border-radius: 999px; background: #fff7ed; border: 1px solid #fed7aa; }
.pan-meta strong { color: var(--color-primary-dark); }
.pan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pan-item { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(135deg, #faf5ff, #fff); border: 1px solid var(--color-border); transition: transform .15s ease, box-shadow .15s ease; }
.pan-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pan-label { font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--color-accent-dark); }
.pan-value { font-size: 1.05rem; font-weight: 500; color: var(--color-primary-dark); word-break: break-word; }
/* "To Do" / "To Avoid" span full width and read as prose */
.pan-item--to_do, .pan-item--to_avoid { grid-column: 1 / -1; }
.pan-item--to_do .pan-value, .pan-item--to_avoid .pan-value { font-weight: 500; font-size: .98rem; color: var(--color-text); line-height: 1.6; }
.pan-item--to_do { border-left: 4px solid #16a34a; }
.pan-item--to_avoid { border-left: 4px solid #dc2626; }
.panchang-box.is-loading .pan-value { opacity: .4; }
.panchang-box.is-loading, .horo-reading.is-loading { position: relative; }
.panchang-box.is-loading::after, .horo-reading.is-loading::after {
  content: ""; position: absolute; top: 18px; right: 22px; width: 22px; height: 22px;
  border: 3px solid rgba(107,33,168,.2); border-top-color: var(--color-primary); border-radius: 50%;
  animation: av-spin .8s linear infinite;
}
@keyframes av-spin { to { transform: rotate(360deg); } }

/* Star of the day */
.pan-star { display: flex; gap: 24px; align-items: center; }
.pan-star-glyph { flex-shrink: 0; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #fff; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--color-accent), var(--color-accent-dark)); box-shadow: 0 8px 22px rgba(245,158,11,.4); }
.pan-star-name { font-family: var(--font-heading); font-size: 2rem; color: var(--color-primary-dark); margin: 4px 0 10px; }
.pan-star-sub { margin: 2px 0; color: var(--color-muted); }

/* Chart placeholder */
.pan-chart { display: grid; grid-template-columns: minmax(220px, 280px) 1fr; gap: 24px; align-items: start; }
.pan-chart-head h3 { margin: 6px 0 8px; color: var(--color-primary-dark); font-size: 1.35rem; }
.pan-chart-head p { color: var(--color-muted); line-height: 1.7; margin: 0; }
.pan-chart-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(82px, 1fr));
  gap: 2px; padding: 2px; border-radius: 14px; background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  box-shadow: 0 14px 34px rgba(76,29,117,.14);
}
.pan-chart-cell {
  position: relative; min-height: 82px; padding: 20px 10px 10px; background: #fffaf5; border: 1px solid rgba(255,255,255,.55);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.pan-chart-cell strong { color: var(--color-primary-dark); font-size: .86rem; line-height: 1.2; }
.pan-chart-house {
  position: absolute; top: 7px; left: 8px; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(107,33,168,.1); color: var(--color-primary); font-weight: 600; font-size: .68rem;
}
.pan-chart-planets { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 8px; min-height: 22px; }
.pan-chart-planets span { border-radius: 999px; background: var(--color-primary); color: #fff; padding: 3px 7px; font-size: .72rem; font-weight: 600; }
.pan-chart-planets em { color: var(--color-muted); font-style: normal; }
.pan-chart-cell-1 { grid-column: 2; grid-row: 1; }
.pan-chart-cell-2 { grid-column: 3; grid-row: 1; }
.pan-chart-cell-3 { grid-column: 4; grid-row: 1; }
.pan-chart-cell-4 { grid-column: 4; grid-row: 2; }
.pan-chart-cell-5 { grid-column: 4; grid-row: 3; }
.pan-chart-cell-6 { grid-column: 4; grid-row: 4; }
.pan-chart-cell-7 { grid-column: 3; grid-row: 4; }
.pan-chart-cell-8 { grid-column: 2; grid-row: 4; }
.pan-chart-cell-9 { grid-column: 1; grid-row: 4; }
.pan-chart-cell-10 { grid-column: 1; grid-row: 3; }
.pan-chart-cell-11 { grid-column: 1; grid-row: 2; }
.pan-chart-cell-12 { grid-column: 1; grid-row: 1; }
.pan-chart-legend { display: grid; grid-template-columns: auto 1fr; gap: 6px 8px; margin-top: 18px; align-items: center; }
.pan-chart-legend span { border-radius: 999px; background: var(--color-primary); color: #fff; font-size: .7rem; font-weight: 600; padding: 3px 7px; justify-self: start; }
.pan-chart-legend small { color: var(--color-muted); }

@media (max-width: 760px) {
  .pan-grid { grid-template-columns: repeat(2, 1fr); }
  .pan-chart { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .pan-grid { grid-template-columns: 1fr; }
  .pan-star { flex-direction: column; text-align: center; }
  .horo-detail-grid { grid-template-columns: 1fr; text-align: left; }
}

/* Panchang premium module */
.panchang-section {
  position: relative;
  padding-top: 70px;
  background-color: #fff;
}
.panchang-section .container { max-width: 1180px; }
.panchang-box {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(126, 34, 206, .16);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 24px 70px rgba(76, 29, 117, .15);
}
.panchang-box::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, #f59e0b, #7e22ce, #0f766e);
}
.panchang-controls {
  position: relative;
  align-items: end;
  gap: 16px;
  padding: 28px 30px 24px;
  background:
    linear-gradient(135deg, rgba(250,245,255,.95), rgba(255,255,255,.95) 56%, rgba(255,247,237,.96));
}
.panchang-controls-title {
  flex: 1 1 100%;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 4px;
}
.panchang-controls-title strong {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  font-size: 1.28rem;
}
.pc-field {
  min-width: 220px;
}
.pc-field label {
  color: #4c1d95;
  font-size: .78rem;
  letter-spacing: .02em;
}
.pc-field .form-control {
  min-height: 50px;
  border-radius: 12px;
  border-color: rgba(126, 34, 206, .18);
  background: rgba(255,255,255,.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.pc-field .form-control:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .16);
}
.panchang-tabs {
  gap: 10px;
  padding: 16px 26px;
  background: #fff;
}
.pan-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-bottom: 1px solid transparent;
}
.pan-tab.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  box-shadow: 0 10px 22px rgba(107, 33, 168, .2);
}
.pan-tab:hover {
  border-color: rgba(245, 158, 11, .35);
  background: #fff7ed;
}
.pan-tab.active:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}
.pan-panel {
  padding: 28px 30px 30px;
  background: linear-gradient(180deg, #fff, #fffaf5);
}
.pan-meta {
  margin-bottom: 22px;
}
.pan-meta span {
  border: 1px solid rgba(245, 158, 11, .35);
  background: linear-gradient(135deg, #fff7ed, #fff);
  box-shadow: 0 8px 20px rgba(245, 158, 11, .08);
}
.pan-grid {
  gap: 16px;
}
.pan-item {
  position: relative;
  /* min-height: 100px; */
  overflow: hidden;
  padding: 15px 10px 15px 68px;
  border-radius: 16px;
  border: 1px solid rgba(126, 34, 206, .14);
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(250,245,255,.82)),
    #fff;
  box-shadow: 0 12px 30px rgba(76, 29, 117, .07);
}
.pan-item::before {
  content: attr(data-icon);
  position: absolute;
  left: 18px;
  top: 19px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #c2410c);
  box-shadow: 0 10px 18px rgba(194, 65, 12, .22);
  font-weight: 600;
}
.pan-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(76, 29, 117, .12);
  border-color: rgba(245, 158, 11, .42);
}
.pan-label {
  color: #c2410c;
  font-size: .7rem;
  letter-spacing: .08em;
}
.pan-value {
  /* margin-top: 8px; */
  font-size: 1.12rem;
  color: #3b0764;
}
.pan-item--sunrise::before { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.pan-item--sunset::before { background: linear-gradient(135deg, #7c3aed, #312e81); }
.pan-item--nakshatra::before,
.pan-item--hora::before,
.pan-item--yogam::before { background: linear-gradient(135deg, #7e22ce, #4c1d95); }
.pan-item--rahu_kalam::before,
.pan-item--yamagandam::before { background: linear-gradient(135deg, #dc2626, #7f1d1d); }
.pan-item--kuligai::before,
.pan-item--karanam::before { background: linear-gradient(135deg, #0f766e, #134e4a); }
.pan-item--to_do,
.pan-item--to_avoid {
  min-height: 86px;
  padding-left: 70px;
  background: #fff;
}
.pan-item--to_do {
  border-left: 0;
  border-color: rgba(22, 163, 74, .22);
}
.pan-item--to_avoid {
  border-left: 0;
  border-color: rgba(220, 38, 38, .22);
}
.pan-item--to_do::before { background: linear-gradient(135deg, #16a34a, #166534); }
.pan-item--to_avoid::before { background: linear-gradient(135deg, #ef4444, #991b1b); }
.pan-item--to_do .pan-value,
.pan-item--to_avoid .pan-value {
  font-size: 1rem;
}
.pan-star {
  min-height: 210px;
  padding: 30px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255,247,237,.95), rgba(250,245,255,.96)),
    #fff;
  border: 1px solid rgba(126, 34, 206, .12);
}
.pan-star-glyph {
  width: 112px;
  height: 112px;
  background: radial-gradient(circle at 35% 30%, #fbbf24, #f59e0b 45%, #b45309 100%);
}
.pan-star-name {
  font-size: clamp(2rem, 4vw, 3rem);
}
.pan-chart {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid rgba(126, 34, 206, .12);
  background: linear-gradient(135deg, #fff, #fff7ed);
}
.pan-chart-grid {
  background: linear-gradient(135deg, #7e22ce, #f59e0b, #0f766e);
  box-shadow: 0 20px 46px rgba(76,29,117,.18);
}
.pan-chart-cell {
  background: rgba(255, 252, 247, .96);
}

@media (max-width: 900px) {
  .panchang-controls-title { align-items: flex-start; flex-direction: column; }
  .pc-field, .pc-field-wide { min-width: 100%; }
  .pan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .panchang-section { padding-top: 36px; }
  .panchang-controls, .pan-panel { padding-left: 18px; padding-right: 18px; }
  .panchang-tabs { padding-left: 18px; padding-right: 18px; }
  .pan-tab { flex: 1 1 100%; }
  .pan-grid { grid-template-columns: 1fr; }
  .pan-item { padding-left: 62px; }
  .pan-chart { padding: 16px; }
  .pan-chart-grid { grid-template-rows: repeat(4, minmax(70px, 1fr)); }
}

/* Feature highlights strip (light celestial background) */
.feature-strip {
  position: relative; overflow: hidden; padding: 44px 0;
  background-color: #fffdf9;
  background-image: url('../images/optimized/back-wht-astro.webp');
  background-size: cover; background-position: center;
  border-top: 1px solid #efe9fb; border-bottom: 1px solid #efe9fb;
}
/* faint white veil keeps the labels crisp over the artwork */
.feature-strip::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.58); pointer-events: none; }
.feature-inner {
  position: relative;
  padding-inline: 16px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 40px;
}
.feature-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 12px;
  gap: 16px;
  min-width: 0;
  color: var(--color-primary-dark);
}
.feature-item-link {
  border-radius: 18px;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.feature-item-link:hover,
.feature-item-link:focus-visible {
  color: var(--color-primary-dark);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 16px 32px rgba(76, 29, 117, .10);
  transform: translateY(-1px);
}
.feature-ico {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: rgba(248, 244, 255, .84);
  border: 1px solid #eadfff;
  box-shadow: 0 10px 26px rgba(76,29,117,.11);
}
.feature-ico svg { width: 22px; height: 22px; color: #f17400; }
.feature-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.22;
  color: var(--color-primary-dark);
}

@media (max-width: 860px) {
  .feature-strip { padding: 32px 0; }
  .feature-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 480px) {
  .feature-inner { grid-template-columns: 1fr; gap: 18px; }
  .feature-item { justify-content: flex-start; }
}

/* Membership banner */
.membership {
  height: 200px; padding: 22px 0; display: flex; align-items: center;
  background:
    radial-gradient(circle at 12% 20%, rgba(245,158,11,.2), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(107,33,168,.18), transparent 30%),
    linear-gradient(120deg, #fff7ed 0%, #f5ecff 48%, #fff 100%);
}
.membership-inner {
  position: relative; min-height: 136px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  overflow: hidden; color: #fff;
  background:
    linear-gradient(100deg, rgba(76,29,117,.98) 0%, rgba(107,33,168,.92) 58%, rgba(217,119,6,.92) 100%),
    url('../images/optimized/back-wht-astro.webp');
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(76,29,117,.18);
  padding: 24px 36px;
}
.membership-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20,8,40,.22), transparent 58%),
    radial-gradient(circle at 92% 50%, rgba(255,255,255,.18), transparent 25%);
  pointer-events: none;
}
.membership-inner::after {
  content: "★";
  position: absolute;
  right: clamp(170px, 18vw, 260px);
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.14);
  font-size: 5.5rem;
  line-height: 1;
  pointer-events: none;
}
.membership-copy { flex: 1; min-width: 0; }
.membership-copy, .membership-action { position: relative; z-index: 1; }
.membership-badge { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.45); color: #fde68a; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; margin-bottom: 10px; box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.membership-copy h2 { color: #fff; font-size: 1.7rem; line-height: 1.15; margin-bottom: 6px; text-shadow: 0 2px 16px rgba(0,0,0,.25); }
.membership-copy p { color: rgba(255,255,255,.86); margin-bottom: 0; line-height: 1.5; max-width: 720px; }
.membership-action { flex-shrink: 0; }
.membership-action .btn-primary {
  background: #fff;
  color: var(--color-primary-dark);
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
}
.membership-action .btn-primary:hover {
  background: #fde68a;
  color: #3b0764;
}

/* Why choose — compact stat band */
.why-choose {
  position: relative;
  overflow: hidden;
  padding: 10px 0 18px;
  background-color: #fffdf9;
  background-image: url('../images/optimized/back-wht-astro.webp');
  background-size: cover;
  background-position: center;
  border-top: 1px solid #efe9fb;
  border-bottom: 0;
}
.why-choose::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.58);
  pointer-events: none;
}
.why-choose > .container {
  position: relative;
  z-index: 1;
}
.why-stats { text-align: center; }
.why-stats h2 {
  color: #6069ff;
  margin: 5px 0 20px;
  font-family: var(--font-body);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
}
.why-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  column-gap: 22px;
  justify-content: center;
  max-width: 920px;
  margin: 0 auto;
}
.why-stat {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--color-text);
}
.why-stat-head {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 28px;
}
.why-stat-ico {
  width: 26px;
  height: 26px;
  color: #8b92ff;
  line-height: 1;
}
.why-stat-ico svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.why-stat strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
  color: #6670ff;
}
.why-stat > span:last-child {
  display: block;
  max-width: 155px;
  font-size: .74rem;
  font-weight:400;
  line-height: 1.2;
  color: #221b30;
}

@media (max-width: 900px) {
  .why-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
}
@media (max-width: 560px) {
  .why-choose { padding: 14px 0 18px; }
  .why-stats h2 { font-size: 1.28rem; margin-bottom: 12px; }
  .why-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  .why-stat > span:last-child { max-width: 145px; }
}

/* YouTube videos — light devotional band with CSS marquee carousel */
.youtube-videos-section {
  position: relative;
  overflow: hidden;
  padding: 58px 25px 52px;
  background-color: #fff7ed;
  background-image:
    radial-gradient(circle at 18% 18%, rgba(245, 158, 11, .12), transparent 30%),
    radial-gradient(circle at 82% 78%, rgba(107, 33, 168, .1), transparent 32%),
    linear-gradient(180deg, rgba(255, 253, 249, .9) 0%, rgba(255, 244, 228, .86) 100%),
    url('../images/optimized/murgan.webp');
  background-size: auto, auto, auto, cover;
  background-position: left top, right bottom, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: scroll, scroll, scroll, scroll;
}
@media (min-width: 900px) {
  .youtube-videos-section {
    background-attachment: scroll, scroll, scroll, fixed;
  }
}
/* Hairline rules top and bottom tie the band into the page rhythm */
.youtube-videos-section::before,
.youtube-videos-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, .42), rgba(167, 139, 250, .34), transparent);
}
.youtube-videos-section::before { top: 0; }
.youtube-videos-section::after { bottom: 0; }
.youtube-videos-section > .container {
  position: relative;
  z-index: 1;
}
/* Soft amber/violet bloom behind the title */
.youtube-section-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  width: min(880px, 120vw);
  height: 520px;
  pointer-events: none;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(245, 158, 11, .16), transparent 70%),
    radial-gradient(closest-side, rgba(107, 33, 168, .1), transparent 72%);
  background-position: 30% 50%, 72% 40%;
  background-size: 70% 100%, 76% 100%;
  background-repeat: no-repeat;
}

/* Title block */
.youtube-videos-head {
  margin-bottom: 26px;
}
.youtube-channel-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 7px 16px;
  border: 1px solid rgba(220, 38, 38, .22);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff, rgba(255, 241, 241, .9));
  color: var(--color-primary-dark);
  box-shadow: 0 2px 4px rgba(76, 29, 117, .05), 0 10px 24px rgba(220, 38, 38, .1);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: lowercase;
}
.youtube-channel-tag .bi-youtube {
  color: #dc2626;
  font-size: 1.05rem;
}
.youtube-videos-section .section-head h2 {
  color: var(--color-primary-dark);
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  margin-bottom: 0;
}
.youtube-videos-section .section-head h2::after {
  mix-blend-mode: multiply;
  filter: saturate(1.05);
  margin-bottom: 10px;
}
.youtube-videos-section .section-head p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--color-muted);
  line-height: 1.6;
}

/* Carousel shell — flanking gutters hold the arrows clear of the artwork,
   and the edge fades sit just inside them so cards dissolve at the rails. */
.youtube-video-carousel {
  position: relative;
  isolation: isolate;
  padding: 0 62px;
}
.youtube-video-carousel::before,
.youtube-video-carousel::after {
  /* content: ""; */
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: clamp(56px, 9vw, 120px);
  pointer-events: none;
}
.youtube-video-carousel::before {
  left: 62px;
  background: linear-gradient(90deg, #fff9f0 0%, rgba(255, 249, 240, .92) 30%, rgba(255, 249, 240, .5) 62%, rgba(255, 249, 240, 0) 100%);
}
.youtube-video-carousel::after {
  right: 62px;
  background: linear-gradient(270deg, #fff9f0 0%, rgba(255, 249, 240, .92) 30%, rgba(255, 249, 240, .5) 62%, rgba(255, 249, 240, 0) 100%);
}
.youtube-video-viewport {
  overflow: hidden;
  padding: 8px 2px 12px;
}
/* The drift is driven by JS on rAF (see main.js) so the arrows can nudge the
   same transform — hover/focus pausing lives there too. Only the eased arrow
   step is a CSS transition, applied via .is-gliding. */
.youtube-video-track {
  display: flex;
  gap: 24px;
  width: max-content;
  will-change: transform;
}
.youtube-video-track.is-gliding {
  transition: transform .5s cubic-bezier(.33, 1, .68, 1);
}
@media (prefers-reduced-motion: reduce) {
  .youtube-video-track.is-gliding {
    transition: none;
  }
}

/* Cards */
.youtube-video-card {
  flex: 0 0 clamp(320px, 34vw, 430px);
}
.youtube-video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(107, 33, 168, .08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(76, 29, 117, .06), 0 16px 34px rgba(76, 29, 117, .12);
  cursor: pointer;
  transition: transform .34s cubic-bezier(.33, 1, .68, 1), box-shadow .34s ease, border-color .3s ease;
}
.youtube-video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(245, 158, 11, .9), rgba(167, 139, 250, .75) 55%, rgba(245, 158, 11, .4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.youtube-video-thumb:hover,
.youtube-video-thumb:focus-visible {
  transform: translateY(-10px) scale(1.015);
  border-color: rgba(245, 158, 11, .55);
  box-shadow:
    0 4px 10px rgba(76, 29, 117, .1),
    0 30px 60px rgba(76, 29, 117, .22),
    0 0 0 1px rgba(245, 158, 11, .4),
    0 0 34px rgba(245, 158, 11, .18);
}
.youtube-video-thumb:hover::after,
.youtube-video-thumb:focus-visible::after {
  opacity: 1;
}
.youtube-video-thumb img,
.youtube-video-player iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;
}
.youtube-video-thumb img {
  transition: transform .4s ease, filter .3s ease;
}
.youtube-video-thumb:hover img {
  transform: scale(1.06);
  filter: saturate(1.1) brightness(1.04);
}
/* Bottom-up veil keeps the badge readable without dulling the whole frame —
   it fades out well before the middle, so the thumbnail stays bright. */
.youtube-thumb-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(10, 4, 18, .62) 0%, rgba(10, 4, 18, .18) 22%, rgba(10, 4, 18, 0) 40%);
  transition: opacity .3s ease;
}
.youtube-video-thumb:hover .youtube-thumb-veil {
  opacity: .8;
}
.youtube-play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 72px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: rgba(220, 38, 38, .94);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .4);
  transform: translate(-50%, -50%);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1), background .22s ease, box-shadow .3s ease;
}
.youtube-video-thumb:hover .youtube-play-icon {
  background: #dc2626;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45), 0 0 0 10px rgba(220, 38, 38, .18);
}
.youtube-play-icon i {
  font-size: 2rem;
  line-height: 1;
}
.youtube-card-badge {
  position: absolute;
  left: 12px;
  bottom: 11px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, .9);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.youtube-card-badge .bi-youtube {
  color: #f87171;
  font-size: .95rem;
}
.youtube-video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #160c1f;
  border: 1px solid rgba(245, 158, 11, .55);
  box-shadow:
    0 4px 10px rgba(76, 29, 117, .12),
    0 30px 60px rgba(76, 29, 117, .24),
    0 0 0 1px rgba(245, 158, 11, .35),
    0 0 36px rgba(245, 158, 11, .22);
}
/* Close returns the card to a thumbnail, so the row keeps looping. */
.youtube-player-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  color: #fff;
  background: rgba(12, 6, 20, .66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.youtube-player-close:hover {
  background: #dc2626;
  border-color: #dc2626;
  transform: scale(1.08);
}
.youtube-player-close i {
  font-size: .82rem;
  line-height: 1;
}

/* Arrows */
.youtube-video-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(107, 33, 168, .1);
  border-radius: 50%;
  color: var(--color-primary-dark);
  background: #fff;
  box-shadow: 0 2px 6px rgba(76, 29, 117, .08), 0 14px 30px rgba(76, 29, 117, .16);
  transform: translateY(-50%);
  cursor: pointer;
  transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.youtube-video-arrow:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  border-color: transparent;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 10px rgba(217, 119, 6, .24), 0 16px 34px rgba(217, 119, 6, .3);
}
.youtube-video-arrow:active {
  transform: translateY(-50%) scale(.96);
}
.youtube-video-arrow i {
  font-size: 1.2rem;
  line-height: 1;
}
/* The carousel is padded on both flanks (see .youtube-video-carousel) so the
   arrows live in their own gutter instead of covering card artwork. */
.youtube-video-arrow-prev {
  left: 0;
}
.youtube-video-arrow-next {
  right: 0;
}

/* Channel CTA */
.youtube-section-cta {
  margin-top: 26px;
  text-align: center;
}
.youtube-channel-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  border-color: rgba(107, 33, 168, .18);
  background: rgba(255, 255, 255, .78);
  color: var(--color-primary-dark);
  box-shadow: 0 10px 24px rgba(76, 29, 117, .1);
}
.youtube-channel-link:hover {
  background: rgba(255, 255, 255, .96);
  border-color: rgba(245, 158, 11, .45);
  color: var(--color-primary-dark);
}
.youtube-channel-link .bi-youtube {
  color: #dc2626;
  font-size: 1.15rem;
}
.youtube-channel-link .bi-arrow-right {
  font-size: .95rem;
  transition: transform .2s ease;
}
.youtube-channel-link:hover .bi-arrow-right {
  transform: translateX(4px);
}

@media (max-width: 760px) {
  .youtube-videos-section {
    padding: 40px 16px 34px;
  }
  .youtube-video-arrow {
    display: none;
  }
  /* No arrows on touch, so the gutters they lived in collapse too. */
  .youtube-video-carousel {
    padding: 0;
  }
  .youtube-video-carousel::before { left: 0; }
  .youtube-video-carousel::after { right: 0; }
  .youtube-video-card {
    flex-basis: min(88vw, 360px);
  }
  /* Touch: let the viewport pan manually as well as run the marquee */
  .youtube-video-viewport {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .youtube-video-viewport::-webkit-scrollbar {
    display: none;
  }
}

/* Testimonials */
.testimonial-stars { color: var(--color-accent); letter-spacing: 2px; font-size: 1.15rem; }
.testimonial-avatar { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); box-shadow: 0 10px 24px rgba(76,29,117,.14); flex-shrink: 0; }
.testimonial-avatar-link { width: 100%; height: 100%; display: block; cursor: zoom-in; }
.testimonial-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.testimonial-avatar i { font-size: 1.65rem; line-height: 1; }

/* About Astrology (Read more) — clean editorial layout, no card box */
.about-astro { background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%); }
.about-astro-box { max-width: 900px; margin: 0 auto; }
.about-astro-box h2 { text-align: center; font-size: 2rem; margin-bottom: 0; }
/* Title divider — Murugan vel ornament (vel-divider.png).
   multiply drops the image's soft background on the light sections. */
.about-astro-box h2::after,
.section-head h2::after {
  content: ""; display: block; width: 150px; max-width: 72vw; height:23px; margin: 0px auto 0;
  background: url('../images/optimized/vel-divider.webp') center/cover no-repeat;
  mix-blend-mode: multiply;
  filter: saturate(1.35) contrast(1.12) drop-shadow(0 1px 1px rgba(76, 29, 117, .16));
}
.about-astro-box h2::after { margin-bottom: 12px; }
.about-astro-box > p { color: var(--color-text); line-height: 1.9; font-size: 1.02rem; margin: 0 0 14px; }
/* Subheading marker — a small upright gold vel */
.about-astro-box h3 { position: relative; padding-left: 24px; font-size: 1.18rem; color: var(--color-primary-dark); margin: 30px 0 10px; }
.about-astro-box h3::before {
  content: ""; position: absolute; left: -10px; top: 20%; transform: translateY(-50%);
  width: 40px; height: 35px; mix-blend-mode: multiply;
  background: url('../images/icons/vel-crop.png') center/contain no-repeat;
}
.about-astro-more p { color: var(--color-muted); line-height: 1.9; margin: 0 0 14px; }
.about-astro-more[hidden] { display: none; }
.about-astro-toggle-wrap { text-align: center; margin-top: 22px; }
.about-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer;
  min-height: 48px;
  background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary);
  font-weight: 600; font-size: .92rem; padding: 9px 18px 9px 28px; border-radius: 999px; transition: all .18s ease;
  line-height: 1;
}
.about-toggle-icon {
  width: 28px; height: 28px; display: inline-grid; place-items: center;
  border-radius: 50%; background: rgba(107, 33, 168, .08);
  font-size: .82rem; line-height: 1; transition: transform .18s ease, background .18s ease;
}
.about-toggle[aria-expanded="true"] .about-toggle-icon { transform: rotate(180deg); }
.about-toggle:hover .about-toggle-icon { background: rgba(255,255,255,.18); }
.about-toggle:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }

/* Testimonials section background (banners/back-wht-velan-vel.png) */
.testimonials { position: relative; background-color: #fdf9f3; background-image: url('../images/optimized/back-wht-velan-vel.webp'); background-size: cover; background-position: center; }
.testimonials > .container { position: relative; z-index: 1; }

/* Testimonials slider — one testimonial at a time, auto-scroll */
.tslider { position: relative; overflow: hidden; }
.tslider-track { display: flex; transition: transform .55s cubic-bezier(.4,0,.2,1); align-items: stretch; }
.tslide { min-width: 100%; box-sizing: border-box; padding: 6px; display: flex; }
.tslide-inner { position: relative; max-width: 780px; margin: 0 auto; width: 100%;  border-radius: 22px; padding: 46px 48px 40px; box-shadow: 0 14px 40px rgba(76,29,117,.1); text-align: center; }
.tslide-quotemark { position: absolute; top: 4px; left: 26px; font-family: var(--font-heading); font-size: 5rem; line-height: 1; color: rgba(107,33,168,.14); }
.tslide-quote { position: relative; z-index: 1; color: var(--color-text); font-style: italic; font-size: 1.25rem; line-height: 1.75; margin: 14px 0 26px; }
.tslide-author { display: flex; align-items: center; justify-content: center; gap: 12px; }
.tslide-person { text-align: left; }
.tslide-person strong { font-weight: 500; display: block; color: var(--color-primary-dark); }
.tslide-person small { color: var(--color-muted); }
strong {
  font-weight: 500;
}
.tslider-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 26px; }
.tslider-dots { display: flex; gap: 8px; }
.tslider-dots button { width: 10px; height: 10px; padding: 0; border: none; border-radius: 50%; background: var(--color-border); cursor: pointer; transition: transform .15s ease, background .15s ease; }
.tslider-dots button.active { background: var(--color-primary); transform: scale(1.25); }
.tslider-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-primary); font-size: 1.3rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s ease, color .15s ease, transform .15s ease; }
.tslider-arrow:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }

@media (max-width: 600px) {
  .tslide-inner { padding: 34px 24px 30px; }
  .tslide-quote { font-size: 1.08rem; }
}

/* FAQ accordion */
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; background: var(--color-surface); }
.faq-q { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 34px; align-items: center; gap: 18px; text-align: left; padding: 18px 22px; background: none; border: none; cursor: pointer; font-family: var(--font-heading); font-weight: 500; font-size: 1.02rem; color: var(--color-primary-dark); }
.faq-caret {
  width: 34px; height: 34px; display: inline-grid; place-items: center; justify-self: end;
  border-radius: 50%; color: var(--color-muted); background: rgba(107, 33, 168, .06);
  font-size: .86rem; line-height: 1; transition: transform .2s ease, background .2s ease, color .2s ease;
}
.faq-item.open .faq-q { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: #fff; }
.faq-item.open .faq-caret { transform: rotate(180deg); color: #fff; background: rgba(255,255,255,.14); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; padding: 0 22px; }
.faq-item.open .faq-a { max-height: none; padding: 18px 22px; }
.faq-a p { margin: 0; color: var(--color-muted); line-height: 1.7; }
.faq-answer-content { color: var(--color-muted); line-height: 1.7; }
.faq-answer-content p { margin: 0 0 12px; }
.faq-answer-content p:last-child { margin-bottom: 0; }
.faq-answer-content ul,
.faq-answer-content ol { margin: 0 0 12px 20px; padding: 0; }
.faq-answer-content li { margin: 4px 0; }
.faq-answer-content strong { font-weight: 700; color: var(--color-text); }
.faq-answer-content em { font-style: italic; }
.faq-answer-content u { text-decoration: underline; text-underline-offset: 3px; }
.faq-answer-content mark { padding: 0 .18em; border-radius: 3px; background: #fff1a8; color: inherit; }
.faq-answer-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}
.faq-answer-content th,
.faq-answer-content td {
  border: 1px solid var(--color-border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.faq-answer-content th {
  background: var(--color-bg);
  font-weight: 700;
  color: var(--color-text);
}

@media (max-width: 860px) {
  .membership { height: auto; padding: 24px 0; }
  .membership-inner { min-height: 0; flex-direction: column; text-align: center; padding: 24px 28px; gap: 16px; }
  .membership-inner::after { right: 18px; top: 18px; transform: none; font-size: 3.2rem; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .why-grid { grid-template-columns: 1fr; }
  .membership-copy h2 { font-size: 1.5rem; }
}

/* Homepage horoscope teaser band */
.horo-band {
  position: relative;
  overflow: hidden;
  padding: 24px 0 28px;
  background-color: #fffdf9;
  background-image: url('../images/optimized/back-wht-astro.webp');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid #efe9fb;
}
.horo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.58);
  pointer-events: none;
}
.horo-band > .container {
  position: relative;
  z-index: 1;
}
.horo-band .section-head { margin-bottom: 20px; }
.horo-band .section-head h2 { margin-bottom: 8px; }
.horo-band .section-head p { max-width: none; margin-top: 0; line-height: 1.45; white-space: nowrap; }
.horo-band-signs { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 6px; }
.horo-band-sign { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 5px; border-radius: var(--radius); color: var(--color-text); transition: background .15s ease, transform .15s ease; flex: 1 1 0; min-width: 0; }
.horo-band-sign:hover { background: #fff; transform: translateY(-3px); box-shadow: var(--shadow); }
.horo-band-sign span:last-child { font-size: .82rem; font-weight: 500; white-space: nowrap; }
.horo-band-icon { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; }
.horo-band-icon img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 960px) { .zodiac-grid { grid-template-columns: repeat(4, 1fr); } .horo-band-signs { flex-wrap: wrap; justify-content: center; } .horo-band-sign { flex: 0 1 calc(25% - 8px); } }
@media (max-width: 680px) { .horo-band-sign { flex: 0 1 calc(33.333% - 8px); } .horo-band-icon { width: 56px; height: 56px; } }
@media (max-width: 680px) {
  .zodiac-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .horo-hero h1 { font-size: 1.9rem; }
  .horo-reading { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 480px) {
  .zodiac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Category offerings */
.offerings-section {
  padding: 25px;
  /* background: #fff; */
  font-family: 'Poppins', sans-serif;
}
.offerings-section .container {
  max-width: 1140px;
}
.offerings-section .section-head {
  text-align: left;
  margin-bottom: 18px;
}
.offerings-section .section-head h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  line-height: 1.25;
  color: #24242a;
  font-weight: 500;
  margin-bottom: 0;
}
.offerings-section .section-head h2::after {
  display: none;
}
.offerings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 20px;
}
.offering-card {
  position: relative;
  min-height: 198px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 17px 15px 0;
  border-radius: 7px;
  color: #000;
  font-family: 'Poppins', sans-serif;
  background: #efffd6;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .16);
  transition: transform .18s ease, box-shadow .18s ease;
}
.offering-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
}
.offering-card-2 { background: #fff3d9; }
.offering-card-3 { background: #ffd9dd; }
.offering-card-4 { background: #fbd6e7; }
.offering-card-5 { background: #d7fbff; }
.offering-card-6 { background: #e8d7f4; }
.offering-card-7 { background: #d4f5ff; }
.offering-card-8 { background: #ffeed7; }
.offering-copy {
  position: relative;
  z-index: 2;
  max-width: 86%;
}
.offering-copy strong {
  display: block;
  color: #000;
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 8px;
  font-weight: 500;
}
.offering-copy small {
  display: block;
  color: #000;
  font-size: 11px;
  font-weight: 400;
  /* line-height: 1.35; */
  /* max-width: 178px; */
}
.offering-image {
  position: absolute;
  right: 0;
  bottom: 20px;
  width: 55%;
  height: 64%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
}
.offering-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
}
.offering-cta {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  min-width: 96px;
  max-width: 235px;
  padding: 8px 10px 7px;
  border-radius: 7px 0 7px 0;
  background: #ffe5de;
  color: #000;
  text-align: center;
  text-transform: uppercase;
  font-family:  sans-serif;
  font-size: 9px;
}

/* Homepage store categories */
.store-categories-section {
  position: relative;
  overflow: hidden;
  padding: 25px;
  background-color: #ffffff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.store-categories-section::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background:
      linear-gradient(90deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .88) 48%, rgba(255, 255, 255, .95) 100%),
      radial-gradient(circle at 18% 20%, rgba(107, 33, 168, .14), transparent 30%),
      radial-gradient(circle at 84% 74%, rgba(245, 158, 11, .16), transparent 28%); */
  pointer-events: none;
}
.store-categories-section > .container {
  position: relative;
  z-index: 1;
  max-width: 1140px;
}
.store-categories-section .section-head {
  text-align: left;
  margin-bottom: 15px;
}
.store-categories-section .section-head h2 {
  font-size: 20px;
  color: var(--color-primary-dark);
}
.store-categories-section .section-head h2::after
{
  content:unset !important;
}
.store-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.store-category-card {
  position: relative;
  min-height: 230px;
  display: flex;
  overflow: hidden;
  border-radius: 12px;
  padding: 20px 18px;
  color: #241b30;
  isolation: isolate;
  border: 1px solid rgba(107, 33, 168, .12);
  box-shadow: 0 14px 34px rgba(76, 29, 117, .12);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.store-category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, #fff7dd 0%, #fff 54%, #f6e9ff 100%);
}
.store-category-card::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -52px;
  z-index: -1;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(245, 158, 11, .16);
  transition: transform .18s ease;
}
.store-category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, .5);
  box-shadow: 0 20px 44px rgba(76, 29, 117, .18);
}
.store-category-card:hover::after {
  transform: scale(1.08);
}
.store-category-card-2::before { background: linear-gradient(135deg, #edfaff 0%, #fff 55%, #fff0d4 100%); }
.store-category-card-3::before { background: linear-gradient(135deg, #fff0f3 0%, #fff 55%, #e9fbff 100%); }
.store-category-card-4::before { background: linear-gradient(135deg, #f1ffe3 0%, #fff 55%, #fff0d6 100%); }
.store-category-card-5::before { background: linear-gradient(135deg, #f4edff 0%, #fff 55%, #e7fff6 100%); }
.store-category-card-6::before { background: linear-gradient(135deg, #fff5e6 0%, #fff 55%, #edf3ff 100%); }
.store-category-card-7::before { background: linear-gradient(135deg, #eafcff 0%, #fff 55%, #fff1f4 100%); }
.store-category-card-8::before { background: linear-gradient(135deg, #fff8dc 0%, #fff 55%, #f2ecff 100%); }
.store-category-copy {
  position: relative;
  z-index: 2;
  max-width: 74%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.store-category-copy small {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(107, 33, 168, .1);
  color: var(--color-primary);
  font-size: .67rem;
  line-height: 1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.store-category-copy strong {
  display: block;
  color: var(--color-primary-dark);
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 500;
}
.store-category-copy span {
  display: -webkit-box;
  margin-top: 8px;
  color: #5f536e;
  font-size: .8rem;
  line-height: 1.45;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.store-category-image {
  position: absolute;
  right: -8px;
  bottom: 36px;
  width: 58%;
  height: 58%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
}
.store-category-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 12px 16px rgba(76, 29, 117, .18));
  transition: transform .2s ease;
}
.store-category-card:hover .store-category-image img {
  transform: scale(1.05) translateY(-4px);
}
.store-category-meta {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--color-primary-dark);
}
.store-category-meta b {
  font-size: 1.35rem;
  line-height: 1;
}
.store-category-meta em {
  font-style: normal;
  font-size: .76rem;
  color: var(--color-muted);
}
.store-category-cta {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  min-width: 112px;
  padding: 4px;
  border-radius: 12px 0 12px 0;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: #fff;
  text-align: center;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .04em;
  box-shadow: 0 8px 18px rgba(245, 158, 11, .28);
}

/* Category detail page */
.category-hero {
  position: relative;
  overflow: hidden;
  height: 200px;
  display: flex;
  align-items: center;
  padding: 0;
  background:
    url('../images/optimized/back-wht-astro.webp') center/cover no-repeat;
  border-bottom: 1px solid var(--color-border);
}
.category-hero > .container { width: 100%; }
.category-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), #8b5cf6, var(--color-accent));
}
.category-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: center;
}
.category-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 5px 13px;
  border: 1px solid rgba(245,158,11,.45);
  border-radius: 999px;
  background: rgba(245,158,11,.12);
  color: #9a5d00;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.category-kicker::before { content: "\2726"; color: var(--color-primary); }
.category-hero h1 {
  color: var(--color-primary-dark);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.06;
  margin-bottom: 8px;
}
.category-hero p {
  max-width: 760px;
  color: var(--color-muted);
  font-size: .96rem;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.category-hero-panel {
  padding: 16px 22px;
  border: 1px solid rgba(107,33,168,.16);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(255,250,245,.88));
  box-shadow: 0 14px 34px rgba(76,29,117,.12);
}
.category-hero-panel span {
  display: block;
  color: var(--color-accent-dark);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
}
.category-hero-panel strong {
  display: block;
  margin: 6px 0 2px;
  color: var(--color-primary-dark);
  font-size: .92rem;
  line-height: 1.25;
}
.category-hero-panel small {
  color: var(--color-muted);
  font-weight: 500;
}
.category-tabs-wrap {
  position: sticky;
  top: 78px;
  z-index: 40;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px rgba(76,29,117,.08);
}
.category-tabs-shell {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1180px) 42px;
  justify-content: center;
  align-items: stretch;
  gap: 10px;
  padding: 0 16px;
}
.category-tabs-shell.is-centered {
  grid-template-columns: minmax(0, 1180px);
}
.category-tabs-container {
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
}
.category-tabs-shell.is-centered .category-tabs-container {
  display: flex;
  justify-content: center;
}
.category-tabs {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  align-items: stretch;
  padding-top: 16px;
  padding-bottom: 0;
  border-bottom: 2px solid rgba(107,33,168,.16);
  scroll-behavior: smooth;
  scrollbar-width: none;             /* Firefox — hide native bar */
  -ms-overflow-style: none;          /* IE/Edge legacy */
}
.category-tabs-shell.is-centered .category-tabs {
  flex: 0 1 auto;
  max-width: 100%;
  justify-content: center;
}
.category-tabs::-webkit-scrollbar {   /* Chrome/Safari — hide native bar */
  display: none;
}
.category-tab-scroll {
  flex: 0 0 42px;
  align-self: center;
  width: 42px;
  height: 42px;
  margin-top: 8px;
  border: 1px solid rgba(107,33,168,.16);
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(76,29,117,.12);
  cursor: pointer;
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease, background .15s ease;
}
.category-tab-scroll:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #fff8ee;
  box-shadow: 0 12px 26px rgba(76,29,117,.18);
}
.category-tab-scroll:disabled {
  opacity: .35;
  cursor: default;
  box-shadow: none;
}
.category-tab-scroll.is-hidden {
  display: none;
}
.category-tab {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 178px;
  max-width: 232px;
  margin-bottom: -2px;              /* sit on the bottom rule */
  padding: 8px 12px;
  border: 1px solid rgba(107,33,168,.12);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  color: var(--color-text);
  background: #fff;
  box-shadow: 0 -2px 14px rgba(76,29,117,.05);
  transition: color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.category-tab-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff4e6;
  border: 1px solid rgba(245,158,11,.35);
}
.category-tab-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-tab-label {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: .84rem;
  /* line-height: 1.22; */
}
.category-tab:hover {
  transform: translateY(-2px);
  color: var(--color-primary);
  box-shadow: 0 8px 22px rgba(76,29,117,.12);
}
.category-tab.active {
  background: linear-gradient(135deg, var(--color-primary), #7c3aed);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(107,33,168,.28);
}
.category-tab.active:hover { color: #fff; }
.category-tab.active .category-tab-icon {
  background: #fff;
  border-color: #fff;
}
/* purple indicator bar under the active tab, overlapping the row rule */
.category-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--color-accent);
}
.category-list-section {
  position: relative;
  background-color: #fff;
  padding-top: 34px;
}
.category-hero.is-ajax-loading,
.category-tabs-wrap.is-ajax-loading,
.category-list-section.is-ajax-loading {
  pointer-events: none;
}
.category-hero.is-ajax-loading > *,
.category-tabs-wrap.is-ajax-loading > *,
.category-list-section.is-ajax-loading > * {
  opacity: .42;
  transition: opacity .16s ease;
}
.category-list-section.is-ajax-loading::after {
  content: "";
  position: absolute;
  top: 52px;
  left: 50%;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  border: 4px solid rgba(107,33,168,.18);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: av-spin .75s linear infinite;
  z-index: 2;
}
.category-list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.booking-section-head {
  margin-bottom: 22px;
}
.category-view-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(107,33,168,.14);
  box-shadow: 0 6px 14px rgba(76,29,117,.07);
}
.category-view-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}
.category-view-toggle button:hover { color: var(--color-primary); }
.category-view-toggle button svg {
  width: 13px;
  height: 13px;
}
.category-view-toggle button[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--color-primary), #7c3aed);
  color: #fff;
  box-shadow: 0 6px 16px rgba(107,33,168,.24);
}
.category-list-head span {
  display: block;
  color: var(--color-accent-dark);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.category-list-head h2 {
  color: var(--color-primary-dark);
  font-size: 20px;
  margin-bottom: 0;
}
.category-list {
  display: grid;
  gap: 24px;
}
/* Grid view — even multi-column cards (image on top) */
.category-list.view-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
/* List view — one card per row (image on the left), full width */
.category-list.view-list {
  grid-template-columns: 1fr;
}
.category-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(107,33,168,.1);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(76,29,117,.09);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.category-item.is-unavailable {
  border-color: rgba(220,38,38,.18);
  background: linear-gradient(135deg, #fff, #fff8f8);
}
.category-item:hover {
  transform: translateY(-4px);
  border-color: rgba(245,158,11,.55);
  box-shadow: 0 18px 38px rgba(76,29,117,.15);
}
.category-item.is-unavailable:hover {
  border-color: rgba(220,38,38,.32);
  box-shadow: 0 16px 34px rgba(127,29,29,.1);
}
.category-item-link {
  cursor: pointer;
}
.category-item-link:focus-visible {
  outline: 3px solid rgba(124,58,237,.28);
  outline-offset: 3px;
}
/* List view — turn each card horizontal and compact */
.view-list .category-item {
  flex-direction: row;
}
.view-list .category-item-image {
  flex: 0 0 clamp(210px, 26%, 300px);
  align-self: stretch;      /* match the full card height */
  aspect-ratio: auto;
}
/* pin the image so it fills the card height without inflating it */
.view-list .category-item-image img {
  position: absolute;
  inset: 0;
}
.view-list .category-item-body {
  padding: 20px 26px;
}
/* keep the row compact — don't push the CTA to the bottom */
.view-list .category-item-actions {
  margin-top: 14px;
}
.category-item-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ffffff;
}
.category-item-image.js-image-popup {
  cursor: zoom-in;
}
.category-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .28s ease;
}
.category-item-image img.is-png {
  object-fit: contain;
}
.category-item:hover .category-item-image img {
  transform: scale(1.04);
}
.category-item.is-unavailable .category-item-image img {
  opacity: .78;
  filter: saturate(.75);
}
.category-item-video {
  background: #000;
  cursor: default;
}
.category-item-video iframe,
.category-item-video video {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.category-item-video::after {
  display: none;
}
.category-item-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(42,15,74,.42));
  opacity: .78;
}
.category-item-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}
.category-item-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.category-item-meta {
  margin: 0;
  color: var(--color-primary);
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.45;
}
.category-price {
  flex: 0 0 auto;
  padding: 5px 11px;
  border-radius: 999px;
  background: #fff4db;
  color: #a15c00;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.35;
  font-family: system-ui;
}
.category-price .strike {
  color: var(--color-muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-right: 6px;
  font-size: .8em;
}
.category-item-body h3 {
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.32;
  margin-bottom: 10px;
}
.category-item-sub {
  margin: 0 0 10px;
  color: var(--color-primary-dark);
  font-weight: 500;
  font-size: .92rem;
}
.category-item-body p:not(.category-item-meta):not(.category-item-sub) {
  color: var(--color-muted);
  font-size: .9rem;
  line-height: 1.7;
  margin: 0 0 20px;
}
.prasatham-info {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(245, 158, 11, .24);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 251, 235, .94), rgba(255, 255, 255, .86));
  color: #4a334f;
}
.category-item-body .prasatham-info {
  margin: -6px 0 16px;
}
.prasatham-info-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary-dark);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.3;
}
.prasatham-info-title i {
  color: var(--color-accent-dark);
}
.prasatham-info p {
  margin: 0;
  color: var(--color-muted);
  font-size: .86rem;
  line-height: 1.55;
}
.prasatham-info-list {
  padding: 10px 12px;
}
.prasatham-info-detail {
  margin: 12px 0 16px;
  padding: 14px 16px;
}
.category-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  flex-wrap: wrap;
}
.whatsapp-share-btn {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: #25d366;
  box-shadow: 0 6px 14px rgba(37, 211, 102, .24);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.whatsapp-share-btn:hover,
.whatsapp-share-btn:focus-visible {
  color: #fff;
  background: #1fbd5a;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(37, 211, 102, .34);
}
.whatsapp-share-btn:focus-visible {
  outline: 3px solid rgba(37, 211, 102, .24);
  outline-offset: 3px;
}
.whatsapp-share-btn-lg {
  width: 44px;
  height: 44px;
  font-size: 1.22rem;
}
.category-item-actions .inline-form {
  display: inline-flex;
  margin: 0;
}
.category-item-actions span {
  color: var(--color-surface);
  font-size: .78rem;
  font-weight: 600;
}
.category-seat-summary,
.category-stock-summary {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
}
.category-seat-summary small {
  color: #6b7280;
  font-size: .72rem;
  font-weight: 500;
}
.category-stock-summary {
  color: #6b7280 !important;
}
.category-item-actions .category-unavailable-pill,
.category-item-actions .category-booking-full {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid rgba(220,38,38,.18);
  border-radius: 999px;
  background: #fff1f2;
  color: #b91c1c !important;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.category-item-actions .category-unavailable-pill::before,
.category-item-actions .category-booking-full::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 0 4px rgba(220,38,38,.1);
}
.category-empty {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px dashed rgba(107,33,168,.22);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-muted);
  text-align: center;
}

/* Trust strip */
.trust-strip { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 22px 20px; }
.trust-item { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.trust-item + .trust-item { border-left: 1px solid var(--color-border); }
.trust-ico { font-size: 1.7rem; line-height: 1; }
.trust-item strong { display: block; font-size: .92rem; color: var(--color-primary-dark); overflow-wrap: anywhere; }
.trust-item small { color: var(--color-muted); font-size: .78rem; overflow-wrap: anywhere; }

@media (max-width: 960px) {
  .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .trust-item:nth-child(odd) { border-left: none; }
}
@media (max-width: 760px) {
  .hero--carousel { height: clamp(180px, 42vw, 260px); padding: 0; }
  .hero-carousel { border-radius: 0; }
  .hero-inner { position: absolute; align-items: center; padding: 0; }
  .hero-inner .container { width: 100%; padding-inline: 12px; }
  .hero-overlay { display: block; background: linear-gradient(90deg, rgba(20,8,40,.05) 0%, rgba(20,8,40,.18) 32%, rgba(20,8,40,.72) 100%); }
  .hero--carousel .hero-content {
    max-width: 62%;
    margin-left: auto;
    padding: 0 8px 0 0;
    text-align: right;
  }
  .hero--carousel .hero-badge { margin-bottom: 6px; padding: 4px 10px; font-size: .5rem; }
  .hero--carousel .hero-content h1 {
    display: -webkit-box;
    margin-bottom: 5px;
    overflow: hidden;
    font-size: clamp(.9rem, 3.8vw, 1.35rem);
    line-height: 1.08;
    text-shadow: 0 2px 12px rgba(0,0,0,.5);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .hero--carousel .hero-content p {
    display: -webkit-box;
    margin: 0 0 0 auto;
    overflow: hidden;
    font-size: clamp(.58rem, 1.9vw, .78rem);
    line-height: 1.32;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .hero--carousel .hero-actions { justify-content: flex-end; }
  .hero-arrow { display: grid; }
  .hero-dots { bottom: 10px; }
}
@media (max-width: 680px) {
  .hero--carousel { height: clamp(180px, 46vw, 240px); }
  .hero-carousel { border-radius: 0; }
  .hero--carousel .hero-content { max-width: 66%; padding-right: 6px; }
  .hero--carousel .hero-badge { display: none; }
  .hero--carousel .hero-content h1 { font-size: clamp(.78rem, 3.75vw, 1.08rem); line-height: 1.06; }
  .hero--carousel .hero-content p { font-size: clamp(.52rem, 2.15vw, .68rem); line-height: 1.25; }
  .hero--static { padding: 70px 0; }
  .advt-banner-modal {
    padding: 28px;
    overflow-y: auto;
  }
  .advt-banner-dialog {
    width: min(100%, 520px);
    max-width: calc(100vw - 56px);
    padding: 7px;
    border-radius: 18px;
  }
  .advt-banner-dialog::before { inset: 6px; border-radius: 13px; }
  .advt-banner-dialog::after { top: 10px; font-size: .62rem; padding: 4px 10px; }
  .advt-banner-track { border-radius: 13px; }
  .advt-banner-slide img { max-height: 74vh; border-radius: 12px; }
  .advt-banner-close {
    top: 8px;
    right: 8px;
  }
  .advt-banner-arrow { width: 34px; height: 34px; }
  .advt-banner-prev { left: 8px; }
  .advt-banner-next { right: 8px; }
  .advt-banner-dots { bottom: 12px; }
  .topbar-contact { display: none; }
  .topbar-inner { justify-content: center; }
}
@media (max-width: 480px) {
  .topbar { font-size: .72rem; }
  .topbar-inner { padding: 7px 14px; line-height: 1.45; }
  .header-inner { gap: 8px; padding: 8px 12px; }
  .logo img { width: 116px; }
  .account-avatar { width: 34px; height: 34px; }
  .trust-inner { grid-template-columns: 1fr; gap: 14px; padding: 18px 18px; }
  .trust-item { padding: 0; border-left: 0 !important; }
  .trust-ico { width: 38px; flex: 0 0 38px; text-align: center; }
  .section { padding-left: 16px; padding-right: 16px; }
  .hero-inner .container { padding-inline: 8px; }
  .hero--carousel .hero-content { max-width: 68%; padding-right: 4px; }
  .hero--carousel .hero-content h1 { margin-bottom: 4px; font-size: clamp(.66rem, 3.65vw, .9rem); }
  .hero--carousel .hero-content p { font-size: clamp(.46rem, 2vw, .58rem); line-height: 1.22; }
  .hero-dots { bottom: 7px; gap: 7px; }
  .hero-dots button { width: 5px; height: 5px; }
  .hero-dots button.active { width: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel.is-glowing::before,
  .hero-slide.active .hero-img,
  .home-section-divider::after,
  .home-section-divider span {
    animation: none;
  }
}

/* Keep mobile banners in a compact frame, anchored to the artwork's start. */
@media (max-width: 760px) {
  .hero--carousel { height: clamp(180px, 42vw, 260px); min-height: 0; }
  .hero-carousel { height: 100%; padding-bottom: 0; }
  .hero-slide,
  .hero-slide > a,
  .hero-slide picture { height: 100%; }
  .hero-img { height: 100%; object-fit: cover; object-position: left top; }
  .hero-carousel.has-changed .hero-slide.active .hero-img { animation: none; }
  .hero--carousel .hero-overlay {
    display: block;
    background: linear-gradient(90deg, rgba(20,8,40,.05), rgba(20,8,40,.28) 35%, rgba(20,8,40,.78));
  }
  .hero--carousel .hero-inner { position: absolute; display: flex; align-items: center; padding: 16px 46px 42px 16px; }
  .hero-inner .container { width: 100%; padding: 0; }
  .hero--carousel .hero-content { max-width: 78%; margin-left: auto; padding: 0; text-align: right; }
  .hero--carousel .hero-badge { display: none; }
  .hero--carousel .hero-content h1 { font-size: clamp(.8rem, 3.5vw, 1.15rem); line-height: 1.18; margin-bottom: 6px; }
  .hero--carousel .hero-content p { font-size: clamp(.58rem, 2.15vw, .78rem); line-height: 1.35; margin: 0; -webkit-line-clamp: 3; }
  .hero-arrow { top: 50%; bottom: auto; width: 28px; height: 28px; opacity: 1; transform: translateY(-50%); }
  .hero-arrow svg { width: 16px; height: 16px; }
  .hero-arrow-prev { left: 12px; }
  .hero-arrow-next { right: 12px; }
  .hero-arrow:hover,
  .hero-arrow:focus-visible { transform: translateY(-50%) scale(1.04); }
  .hero-dots { bottom: 4px; gap: 4px; }
}

/* Cards */
.grid { display: grid; gap: 26px; align-items: stretch; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
/* Cards: flex column so every footer pins to the bottom → footers line up across a row */
.card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--color-surface); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; border: 1px solid var(--color-border); }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 42px rgba(76, 29, 117, 0.18); }
.card-img { position: relative; height: 190px; background-size: cover; background-position: center; background-color: #f1e9fb; overflow: hidden; flex-shrink: 0; }
.card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(42,15,74,.4)); opacity: 0; transition: opacity .25s ease; }
.card:hover .card-img::after { opacity: 1; }
.video-badge { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(220, 38, 38, 0.92); color: #fff; font-size: .85rem; padding-left: 2px; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.card:hover .video-badge { transform: scale(1.08); }
.card-body { padding: 18px 18px 12px; flex: 1 0 auto; }
/* Responsive video block (detail pages) */
.video-embed { position: relative; width: 100%; max-width: 920px; margin: 10px auto 0; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.section-video-title { text-align: center; margin-top: 10px; }
/* Clamp title to 2 lines and description to 2 lines so every card body is the same height */
.card-body h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 8px; line-height: 1.35; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body p { color: var(--color-muted); font-size: .93rem; line-height: 1.58; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body p + p { margin-top: 4px; }
.card-body .card-meta { font-size: .85rem; -webkit-line-clamp: 1; }
/* Event description — clamped to 3 lines, with a Read more link below */
.card-body .card-desc { line-height: 1.6; margin-top: 8px; -webkit-line-clamp: 3; }
.card-readmore { display: inline-block; margin-top: 8px; font-weight: 600; font-size: .84rem; color: var(--color-primary); }
.card-readmore:hover { color: var(--color-accent-dark); }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 18px; margin-top: auto; border-top: 1px solid var(--color-border); }
.price { font-weight: 600; color: var(--color-primary-dark); font-size: 1.06rem; white-space: nowrap; }
.price .strike { color: var(--color-muted); text-decoration: line-through; font-weight: 400; margin-right: 6px; font-size: .8em; }
.card-footer .btn-sm { white-space: nowrap; }

/* Forms */
.form-card { max-width: 480px; margin: 40px auto; background: var(--color-surface); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 7px; font-size: .88rem; color: var(--color-primary-dark); }
.form-control { width: 100%; padding: 11px 14px; border: 1px solid var(--color-border); border-radius: 8px; font-family: var(--font-body); font-size: .96rem; font-weight: 500; line-height: 1.35; background: #fff; }
.form-control:focus { outline: none; border-color: var(--color-primary); }
textarea.form-control { resize: vertical; }
.premium-card .form-section { margin: 22px 0; padding: 18px; border: 1px solid rgba(107, 33, 168, .1); border-radius: 14px; background: rgba(255, 250, 245, .62); }
.premium-card .form-section-title { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--color-primary-dark); font-weight: 700; }
.checkout-selected-items { display: grid; gap: 14px; margin: 0 0 22px; }
.checkout-selected-items h3 { margin: 0; color: var(--color-primary-dark); font-size: 1.1rem; }
.checkout-selected-item { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 14px; border: 1px solid rgba(107, 33, 168, .12); border-radius: 14px; background: #fffaf5; }
.checkout-selected-item.is-invalid { border-color: rgba(220, 38, 38, .45); background: #fff5f5; }
.checkout-selected-image { display: block; align-self: start; width: 160px; max-width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: #fff; cursor: zoom-in; }
.checkout-selected-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.checkout-selected-body { display: grid; align-content: start; min-width: 0; gap: 8px; }
.checkout-selected-meta { color: var(--color-accent-dark); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.checkout-selected-body strong { color: var(--color-primary-dark); font-size: 1.04rem; line-height: 1.35; }
.checkout-selected-body small { color: var(--color-muted); font-weight: 600; }
.checkout-selected-controls { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; }
.checkout-selected-controls label { min-width: 148px; margin: 0; }
.checkout-selected-controls label span,
.checkout-line-total span,
.checkout-pooja-schedule label span { display: block; margin-bottom: 6px; color: var(--color-primary-dark); font-size: .82rem; font-weight: 700; }
.checkout-qty-input { max-width: 148px; text-align: center; }
.checkout-line-total strong { display: block; min-width: 110px; padding: 11px 14px; border-radius: 10px; background: rgba(107, 33, 168, .08); color: var(--color-primary-dark); font-size: .95rem; }
.checkout-pooja-schedule { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 12px; border: 1px solid rgba(107, 33, 168, .12); border-radius: 12px; background: rgba(255, 255, 255, .72); }
.checkout-pooja-schedule label { min-width: 0; margin: 0; }
.checkout-availability { grid-column: 1 / -1; margin-top: 0; }
.checkout-event-details { grid-column: 1 / -1; min-width: 0; }
.checkout-event-details .event-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin-bottom: 0; padding: 10px 0; border-top: 1px solid rgba(107, 33, 168, .1); border-bottom: 1px solid rgba(107, 33, 168, .1); }
.checkout-event-details .event-info-item { grid-column: auto; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; overflow-wrap: anywhere; }
.checkout-event-details .event-info-item strong { margin-top: 3px; font-size: .9rem; }
.checkout-event-details .admin-list-datetime,
.checkout-event-details .admin-list-datetime > span { display: block; color: inherit; font-size: inherit; font-weight: inherit; }
.checkout-event-details .admin-list-datetime > small { display: block; color: var(--color-muted); font-size: .82rem; }
.checkout-event-gallery { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.checkout-event-gallery a { width: 56px; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #fff; }
.checkout-event-gallery img { width: 100%; height: 100%; object-fit: cover; }
.checkout-event-details .prasatham-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; }
.checkout-event-details .prasatham-info-title { margin: 0; font-size: .8rem; }
.checkout-event-details .prasatham-info p { margin: 0; font-size: .85rem; line-height: 1.45; overflow-wrap: anywhere; }
.checkout-event-description { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 10px; overflow-wrap: anywhere; }
.checkout-event-description .checkout-selected-meta { font-size: .7rem; }
.checkout-event-description p { margin: 0; font-size: .88rem; line-height: 1.5; white-space: normal; }
.checkout-selected-item.is-invalid .checkout-availability { color: #b91c1c; }
.checkout-profile-card {
  display: grid;
  gap: 14px;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid rgba(107, 33, 168, .12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(47, 25, 76, .05);
}
.checkout-profile-card.is-missing {
  border-color: rgba(245, 158, 11, .36);
  background: #fffbeb;
}
.checkout-profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.checkout-profile-head strong {
  display: block;
  margin-top: 4px;
  color: var(--color-primary-dark);
  font-size: 1.08rem;
}
.checkout-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
}
.checkout-profile-grid div,
.checkout-address-preview {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon value";
  gap: 4px 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(107, 33, 168, .1);
  border-radius: 12px;
  background: rgba(255, 250, 245, .62);
}
.checkout-profile-card .btn {
  justify-content: center;
}
.checkout-profile-grid i,
.checkout-address-preview > i {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(107, 33, 168, .08);
  color: var(--color-primary);
}
.checkout-profile-grid span,
.checkout-address-preview span {
  grid-area: label;
  display: block;
  color: var(--color-muted);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.checkout-profile-grid strong,
.checkout-address-preview strong {
  grid-area: value;
  display: block;
  color: var(--color-primary-dark);
  line-height: 1.45;
  min-width: 0;
}
.checkout-profile-grid strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.checkout-address-preview strong {
  overflow-wrap: anywhere;
}
.alert { position: relative; padding: 12px 44px 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: .91rem; font-weight: 600; line-height: 1.45; }
.alert-success { background: #ecfdf5; color: #047857; }
.alert-error { background: #fef2f2; color: #b91c1c; }
.alert-close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.alert-close:hover {
  background: rgba(0, 0, 0, .08);
}
.required-marker {
  color: #dc2626;
  font-weight: 800;
}
.form-group.has-error .form-control,
.form-control.is-invalid {
  border-color: #dc2626;
  background: #fffafa;
}
.form-group.has-error .select2-container .select2-selection,
.select2-container.is-invalid .select2-selection {
  border-color: #dc2626;
  background: #fffafa;
}
.field-error {
  display: block;
  margin-top: 5px;
  color: #b91c1c;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.35;
}

/* Table (used in dashboards) */
.table { width: 100%; border-collapse: collapse; background: var(--color-surface); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--color-border); font-size: .94rem; line-height: 1.45; }
.table th { background: var(--color-bg); font-weight: 600; }
.badge { padding: 4px 11px; border-radius: 999px; font-size: .76rem; font-weight: 600; }
.badge-pending, .badge-not-paid { background: #fef3c7; color: #92400e; }
.badge-partial { background: #fde68a; color: #9a3412; }
.badge-success, .badge-paid, .badge-completed, .badge-confirmed, .badge-approved, .badge-active { background: #dcfce7; color: #166534; }
.badge-failed, .badge-cancelled, .badge-inactive { background: #fee2e2; color: #991b1b; }

/* Event detail */
.event-detail-page {
  padding: 34px 0 54px;
}
.event-detail-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.event-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid rgba(107, 33, 168, .16);
  border-radius: 999px;
  color: var(--color-primary-dark);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 28px rgba(76, 29, 117, .1);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.event-back-btn span {
  font-size: 1.05rem;
  line-height: 1;
}
.event-back-btn:hover {
  color: var(--color-primary);
  background: #fff;
  box-shadow: 0 14px 34px rgba(76, 29, 117, .16);
  transform: translateY(-1px);
}
.event-detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(340px, 1fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
  padding: clamp(12px, 2vw, 18px);
  border: 1px solid rgba(107, 33, 168, .12);
  border-radius: 20px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 54px rgba(76, 29, 117, .12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.event-detail-media {
  min-width: 0;
}
.event-detail-main-image {
  position: relative;
  display: block;
  min-height: clamp(300px, 34vw, 420px);
  border-radius: 16px;
  overflow: hidden;
  background-color: #f1e9fb;
  background-size: cover;
  background-position: center;
  box-shadow: 0 16px 38px rgba(36, 27, 48, .14);
  cursor: zoom-in;
}
.event-detail-main-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36, 27, 48, .08), rgba(36, 27, 48, .46));
  pointer-events: none;
}
.event-date-card,
.event-status-pill {
  position: absolute;
  z-index: 1;
}
.event-date-card {
  top: 14px;
  left: 14px;
  width: 74px;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--color-primary-dark);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 34px rgba(36, 27, 48, .16);
}
.event-date-card span,
.event-date-card small {
  font-size: .78rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}
.event-date-card strong {
  margin: 6px 0 4px;
  color: var(--color-accent-dark);
  font-size: 1.72rem;
  line-height: 1;
}
.event-status-pill {
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fff;
  font-size: .84rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(36, 27, 48, .24);
}
.event-status-available { background: #15803d; }
.event-status-limited { background: #d97706; }
.event-status-full { background: #b91c1c; }
.event-detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.event-detail-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  border: 2px solid rgba(255, 255, 255, .95);
  border-radius: 12px;
  background-color: #f1e9fb;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 22px rgba(76, 29, 117, .1);
  cursor: zoom-in;
}
.event-detail-content {
  min-width: 0;
  padding: clamp(4px, 1vw, 12px);
}
.event-kicker,
.event-section-label,
.event-price-label {
  display: inline-flex;
  color: var(--color-accent-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.event-detail-content h1 {
  margin: 8px 0 16px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
}
.event-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.event-info-item {
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid rgba(107, 33, 168, .1);
  border-radius: 14px;
  background: #fffaf5;
}
.event-info-wide {
  grid-column: 1 / -1;
}
.event-info-item span,
.event-seat-summary small {
  display: block;
  color: var(--color-muted);
  font-size: .78rem;
  font-weight: 600;
}
.event-info-item strong {
  display: block;
  margin-top: 4px;
  color: var(--color-primary-dark);
  font-size: .98rem;
  line-height: 1.42;
}
.event-booking-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(76, 29, 117, .96), rgba(107, 33, 168, .88));
  color: #fff;
  box-shadow: 0 18px 40px rgba(76, 29, 117, .22);
}
.event-price-label {
  color: #fde68a;
}
.event-price {
  margin: 3px 0 0;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
}
.event-price .strike {
  display: inline-block;
  margin-right: 8px;
  color: rgba(255, 255, 255, .62);
  font-size: .78em;
  font-weight: 500;
  text-decoration: line-through;
}
.event-seat-summary {
  text-align: right;
}
.event-seat-summary span {
  display: block;
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
}
.event-seat-summary small {
  color: rgba(255, 255, 255, .72);
}
.event-book-form {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}
.event-book-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.event-seat-control {
  flex: 0 0 160px;
}
.event-seat-control label {
  display: block;
  margin-bottom: 7px;
  color: var(--color-primary-dark);
  font-size: .88rem;
  font-weight: 600;
}
.event-seat-control .form-control {
  min-height: 44px;
  border-radius: 999px;
  text-align: center;
}
.event-book-form .btn {
  min-height: 44px;
}
.event-full-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(220,38,38,.16);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7f7, #fff);
  color: #991b1b;
  box-shadow: 0 12px 28px rgba(127,29,29,.08);
}
.event-full-card strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.event-full-card strong::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 0 4px rgba(220,38,38,.1);
}
.event-full-card span {
  color: #7f1d1d;
  font-size: .9rem;
}
.event-detail-body {
  margin-top: 18px;
}
.event-description-panel {
  padding: clamp(18px, 2.5vw, 26px);
  border: 1px solid rgba(107, 33, 168, .1);
  border-radius: 16px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 12px 34px rgba(76, 29, 117, .07);
}
.event-description-panel p {
  margin: 10px 0 0;
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.82;
}
.event-detail-content .prasatham-info-title {
  font-size: .9rem;
}
.event-detail-content .prasatham-info p {
  font-size: .92rem;
  line-height: 1.65;
}
.event-video-section {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin-top: 34px;
  padding: clamp(22px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, .26);
  border-radius: 24px;
  /* background:
    radial-gradient(circle at 12% 0%, rgba(245, 158, 11, .18), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(107, 33, 168, .16), transparent 35%),
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(255, 248, 235, .9)); */
  box-shadow: 0 24px 70px rgba(76, 29, 117, .14);
  text-align: center;
}
.event-video-section::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  border: 1px solid rgba(107, 33, 168, .08);
  border-radius: 18px;
  pointer-events: none;
}
.event-video-section .event-video-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 14px;
  border: 1px solid rgba(245, 158, 11, .36);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: var(--color-accent-dark);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.event-video-section .section-video-title {
  max-width: 760px;
  margin: 12px auto 22px;
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 600;
  line-height: 1.16;
}
.event-video-section .video-embed {
  max-width: 920px;
  margin-top: 0;
  border: 8px solid rgba(255, 255, 255, .9);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(42, 15, 74, .24);
}

@media (max-width: 680px) {
  .event-video-section {
    margin-top: 24px;
    padding: 18px;
    border-radius: 18px;
  }
  .event-video-section::before {
    inset: 8px;
    border-radius: 14px;
  }
  .event-video-section .video-embed {
    border-width: 4px;
    border-radius: 16px;
  }
}

/* Premium account / checkout surfaces */
.premium-shell {
  padding: 46px 0 70px;
}
.astrology-chat-shell {
  padding-top: 24px;
  padding-bottom: 24px;
}
.premium-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr);
  gap: 22px;
  align-items: end;
  padding: clamp(24px, 4vw, 42px);
  margin-bottom: 26px;
  border-radius: 22px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(76, 29, 117, .94), rgba(126, 34, 206, .84)),
    url('../images/optimized/back-wht-velan-vel.webp') center/cover;
  box-shadow: 0 24px 60px rgba(76, 29, 117, .22);
}
/* .premium-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -45% 36%;
  height: 220px;
  background: radial-gradient(circle, rgba(245, 158, 11, .34), transparent 68%);
  pointer-events: none;
} */
.premium-hero > * {
  position: relative;
  z-index: 1;
}
.premium-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 7px 13px;
  border: 1px solid #ffcc00;
  border-radius: 999px;
  color: #ffcc00;
  background: rgba(255, 255, 255, .1);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  /* text-transform: uppercase; */
}
.premium-hero h1 {
  /* max-width: 780px; */
  margin-bottom: 0px;
  color: #fff;
  font-size: 2.50rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}
.premium-hero p {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 1.04rem;
  font-weight: 400;
  line-height: 1.62;
}
.premium-hero-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.premium-card,
.table-panel,
.summary-card {
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(107, 33, 168, .12);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(76, 29, 117, .12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.premium-card {
  padding: 34px;
}
.payment-policy-page {
  position: relative;
  padding-top: 32px;
  padding-bottom: 44px;
}
.payment-policy-page .container {
  max-width: 1200px;
}

/* ---- Payment policy hero: layered cosmic gradient + starfield + shimmer ---- */
.payment-policy-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: 22px;
  align-items: stretch;
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: 24px;
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, .28), transparent 28%),
    radial-gradient(circle at left bottom, rgba(244, 114, 182, .2), transparent 34%),
    linear-gradient(135deg, #3b0764 0%, #6b21a8 48%, #1d4ed8 100%);
  box-shadow: 0 26px 64px rgba(59, 7, 100, .22);
}
/* Starfield — scattered radial dots, slow collective twinkle. */
.payment-policy-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 18%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(1.4px 1.4px at 27% 62%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.8px 1.8px at 41% 24%, rgba(253,230,138,.9), transparent 60%),
    radial-gradient(1.3px 1.3px at 55% 78%, rgba(255,255,255,.65), transparent 60%),
    radial-gradient(1.7px 1.7px at 68% 34%, rgba(255,255,255,.85), transparent 60%),
    radial-gradient(1.4px 1.4px at 79% 66%, rgba(253,230,138,.75), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 22%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1.2px 1.2px at 94% 52%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 6% 82%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.3px 1.3px at 34% 92%, rgba(253,230,138,.6), transparent 60%);
  animation: policyStarTwinkle 5.5s ease-in-out infinite;
}
/* Corner glow — kept from the original, now slowly drifting. */
.payment-policy-hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -110px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 68%);
  animation: policyGlowDrift 18s ease-in-out infinite;
}
/* Shimmer sweep — skewed light band crossing the hero with a long idle gap. */
.payment-policy-hero-shine {
  position: absolute;
  top: -40%;
  left: -60%;
  width: 45%;
  height: 180%;
  pointer-events: none;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
  animation: policyShimmer 9s ease-in-out 1.2s infinite;
}
.payment-policy-hero-copy,
.payment-policy-hero-note {
  position: relative;
  z-index: 1;
}
.payment-policy-hero-copy h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  text-shadow: 0 2px 18px rgba(29, 7, 60, .35);
}
.payment-policy-hero-copy p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: 1.02rem;
  line-height: 1.72;
}
/* Kicker reads as a glass badge with a pulsing dot on the dark hero. */
.payment-policy-hero .premium-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.payment-policy-hero .premium-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 0 0 rgba(251, 191, 36, .6);
  animation: policyDotPulse 2.4s ease-out infinite;
}
.payment-policy-hero-note {
  position: relative;
  overflow: hidden;
  align-self: center;
  padding: 22px 22px 20px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
/* Amber top hairline on the note card. */
.payment-policy-hero-note::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #f59e0b, #db2777, transparent);
}
.payment-policy-note-label,
.payment-policy-footer-label {
  display: inline-flex;
  margin-bottom: 8px;
  color: #fde68a;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.payment-policy-hero-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.18rem;
  line-height: 1.35;
}
.payment-policy-hero-note p {
  margin: 0;
  color: rgba(255,255,255,.85);
  line-height: 1.68;
}

/* ---- Highlight cards (3-up) ---- */
.payment-policy-highlights {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
  padding-top: 46px;
}
/* Murugan vel ornament — same asset/blend as .section-head h2::after, so the
   policy page carries the site's signature divider. Sits on the light page
   background (mix-blend-mode: multiply needs it), never on the dark hero. */
.payment-policy-highlights::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  max-width: 72vw;
  height: 23px;
  background: url('../images/optimized/vel-divider.webp') center/cover no-repeat;
  mix-blend-mode: multiply;
  filter: saturate(1.35) contrast(1.12) drop-shadow(0 1px 1px rgba(76, 29, 117, .16));
}
.payment-policy-highlight-card {
  position: relative;
  min-height: 100%;
  padding: 22px 20px;
  border: 1px solid rgba(107, 33, 168, .12);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,249,240,.94));
  box-shadow: 0 16px 42px rgba(76, 29, 117, .1);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
/* Gradient ring fades in on hover. */
.payment-policy-highlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  box-shadow: inset 0 0 0 1.5px rgba(219, 39, 119, .35);
  transition: opacity .35s ease;
}
.payment-policy-highlight-card:hover {
  transform: translateY(-6px);
  border-color: rgba(219, 39, 119, .22);
  box-shadow: 0 26px 58px rgba(76, 29, 117, .18);
}
.payment-policy-highlight-card:hover::after {
  opacity: 1;
}
.payment-policy-highlight-card h2 {
  margin: 16px 0 10px;
  font-size: 1.12rem;
  line-height: 1.4;
}
.payment-policy-highlight-card p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.7;
}
.payment-policy-icon,
.payment-policy-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #db2777);
  box-shadow: 0 14px 30px rgba(219, 39, 119, .2);
  font-size: 1.3rem;
  transition: transform .35s ease, box-shadow .35s ease;
  animation: policyIconFloat 4.2s ease-in-out infinite;
}
.payment-policy-card-icon {
  animation-duration: 5s;
}
.payment-policy-highlight-card:hover .payment-policy-icon,
.payment-policy-card:hover .payment-policy-card-icon {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 18px 38px rgba(219, 39, 119, .34);
}

/* ---- Numbered policy cards (2-up) ---- */
.payment-policy-grid {
  counter-reset: policyCard;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.payment-policy-card {
  position: relative;
  overflow: hidden;
  counter-increment: policyCard;
  min-height: 100%;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
/* Step number, top-right — CSS counter, so no markup change is needed. */
.payment-policy-card::before {
  content: counter(policyCard, decimal-leading-zero);
  position: absolute;
  top: 18px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(107, 33, 168, .16);
  border-radius: 999px;
  background: rgba(107, 33, 168, .07);
  color: var(--color-accent-dark);
  font-family: var(--font-heading);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .04em;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}
/* Left accent bar grows from the top on hover. */
.payment-policy-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #f59e0b, #db2777);
  transition: height .4s ease;
}
.payment-policy-card:hover {
  transform: translateY(-6px);
  border-color: rgba(219, 39, 119, .2);
  box-shadow: 0 28px 62px rgba(76, 29, 117, .18);
}
.payment-policy-card:hover::after {
  height: 100%;
}
.payment-policy-card:hover::before {
  border-color: rgba(219, 39, 119, .3);
  background: linear-gradient(135deg, rgba(245, 158, 11, .16), rgba(219, 39, 119, .14));
  color: #be185d;
}
.payment-policy-card h3 {
  margin: 18px 0 12px;
  padding-right: 56px;
  font-size: 1.22rem;
  line-height: 1.45;
}
.payment-policy-card p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.78;
}

/* ---- Footer CTA card ---- */
.payment-policy-footer-card {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
  margin-top: 24px;
  border: 1px solid rgba(107, 33, 168, .12);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, .12), transparent 24%),
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(247, 242, 255, .96));
  box-shadow: 0 18px 50px rgba(76, 29, 117, .1);
}
/* Aurora blob drifting behind the CTA copy. */
.payment-policy-footer-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(219, 39, 119, .12), rgba(107, 33, 168, .06) 45%, transparent 70%);
  animation: policyAuroraDrift 16s ease-in-out infinite;
}
.payment-policy-footer-card > * {
  position: relative;
  z-index: 1;
}
.payment-policy-footer-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}
.payment-policy-footer-card p {
  max-width: 700px;
  margin: 0;
  color: var(--color-muted);
  line-height: 1.72;
}
.payment-policy-footer-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.payment-policy-footer-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.payment-policy-footer-actions .btn i {
  transition: transform .3s ease;
}
.payment-policy-footer-actions .btn:hover i {
  transform: translateX(2px) scale(1.08);
}

.seo-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4.2vw, 54px) 0 clamp(32px, 4vw, 52px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(31, 11, 58, .96), rgba(91, 25, 87, .9) 50%, rgba(13, 73, 88, .94)),
    url("../images/optimized/back-wht-velan-vel.webp") center/cover;
}
.seo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 58px 58px;
  opacity: .16;
  pointer-events: none;
}
.seo-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(240px, 300px);
  gap: clamp(22px, 4.2vw, 58px);
  align-items: center;
  justify-content: center;
}
.seo-hero-copy h1 {
  max-width: 600px;
  margin: 12px 0 10px;
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.12;
  color: #fff;
  text-wrap: balance;
}
.seo-hero-copy p {
  max-width: 570px;
  margin: 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.58;
}
.seo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}
.seo-hero-actions .btn {
  min-height: 42px;
  padding: 9px 17px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}
.seo-hero-actions .btn-outline {
  color: #fff;
  border: 1px solid rgba(34, 197, 94, .75);
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: 0 14px 30px rgba(22, 163, 74, .28);
}
.seo-hero-actions .btn-outline:hover {
  color: #fff;
  border-color: rgba(255,255,255,.8);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(22, 163, 74, .38);
}
.seo-hero-panel {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.07)),
    radial-gradient(circle at 40% 25%, rgba(255, 211, 111, .4), transparent 48%);
  box-shadow: 0 28px 80px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
}
.seo-hero-panel span {
  color: #ffd36f;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.seo-hero-panel strong {
  margin-top: 8px;
  color: #fff;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1;
}
.seo-hero-panel p {
  margin: 9px 0 0;
  color: rgba(255,255,255,.82);
}
.seo-page-section {
  background:
    linear-gradient(180deg, #fffaf2 0%, #ffffff 38%, #f7fbff 100%);
  padding-top: 34px;
}
.seo-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  justify-content: center;
}
.seo-chip-row span,
.seo-country-links a,
.seo-location-list span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(124, 58, 237, .14);
  border-radius: 8px;
  background: rgba(255,255,255,.86);
  color: #4b236f;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.seo-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.seo-service-card,
.seo-faq-card {
  height: 100%;
  padding: 24px 24px 26px;
  border: 1px solid rgba(124, 58, 237, .12);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 44px rgba(59, 33, 88, .07);
}
.seo-service-card {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.seo-service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, .28);
  box-shadow: 0 24px 58px rgba(59, 33, 88, .12);
}
.seo-service-card > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #8b2a9d, #f59e0b);
}
.seo-service-card h2,
.seo-faq-card h3 {
  margin: 0 0 10px;
  color: #351551;
  font-size: 19px;
  line-height: 1.3;
}
.seo-service-card p,
.seo-faq-card p {
  margin: 0;
  color: #62516f;
  line-height: 1.7;
}
.seo-content-band,
.seo-location-panel {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
  margin-top: 24px;
  padding: clamp(26px, 4vw, 42px);
  border-radius: 8px;
  background: linear-gradient(135deg, #2c113f, #5c1d63 58%, #0f5462);
  color: #fff;
  box-shadow: 0 22px 58px rgba(59, 33, 88, .16);
}
.seo-content-band h2,
.seo-location-panel h2 {
  margin: 10px 0 0;
  color: #fff;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.18;
  text-wrap: balance;
}
.seo-step-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: seo-step;
}
.seo-step-list li {
  position: relative;
  min-height: 52px;
  padding: 14px 18px 14px 62px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.9);
  line-height: 1.55;
}
.seo-step-list li::before {
  counter-increment: seo-step;
  content: counter(seo-step);
  position: absolute;
  left: 14px;
  top: 12px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #40164f;
  background: #ffd36f;
  font-weight: 800;
}
.seo-location-panel {
  background: linear-gradient(135deg, #fff7e6, #eefbff);
  color: #351551;
}
.seo-location-panel h2 {
  color: #351551;
}
.seo-location-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}
.seo-location-list span {
  background: #fff;
}
.seo-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.seo-country-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}
.seo-country-links > span {
  color: #351551;
  font-weight: 800;
  margin-right: 4px;
}

/* ---- Payment policy keyframes ---- */
@keyframes policyStarTwinkle {
  0%, 100% { opacity: .45; }
  50%      { opacity: 1; }
}
@keyframes policyGlowDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-26px, -18px) scale(1.14); }
}
@keyframes policyShimmer {
  0%      { left: -60%; opacity: 0; }
  8%      { opacity: 1; }
  38%     { left: 130%; opacity: 0; }
  100%    { left: 130%; opacity: 0; }
}
@keyframes policyDotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(251, 191, 36, .6); }
  70%  { box-shadow: 0 0 0 9px rgba(251, 191, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}
@keyframes policyIconFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
@keyframes policyAuroraDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-40px, 30px) scale(1.12); }
}

/* ---- Generic scroll reveal ----
   The hidden state is scoped to .has-reveal, which main.js adds only when the
   IntersectionObserver is actually wired up — so content stays visible if JS
   is disabled or fails. */
.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}
.has-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .68, .32, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  .payment-policy-hero::before,
  .payment-policy-hero::after,
  .payment-policy-hero-shine,
  .payment-policy-hero .premium-kicker::before,
  .payment-policy-icon,
  .payment-policy-card-icon,
  .payment-policy-footer-card::before {
    animation: none;
  }
  .payment-policy-hero-shine {
    display: none;
  }
  .payment-policy-highlight-card,
  .payment-policy-card,
  .payment-policy-highlight-card:hover,
  .payment-policy-card:hover {
    transform: none;
  }
  .payment-policy-highlight-card:hover .payment-policy-icon,
  .payment-policy-card:hover .payment-policy-card-icon,
  .payment-policy-footer-actions .btn:hover i {
    transform: none;
  }
  .has-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
  min-height: 620px;
}
/* Wider right column for the multi-field register form (two-column grid). */
.auth-layout.auth-layout-wide {
  grid-template-columns: minmax(0, 1fr) minmax(440px, 620px);
  align-items: start;
}
/* Centered single-column register (no left hero). */
.auth-single {
  display: flex;
  justify-content: center;
  padding: clamp(18px, 3vw, 36px) 0;
}
.register-auth-shell {
  display: flex;
  align-items: center;
  min-height: 0;
  padding-top: clamp(74px, 12vh, 130px);
  padding-bottom: clamp(74px, 12vh, 130px);
}
.register-auth-shell > .container {
  width: 100%;
}
.register-auth-shell .auth-single {
  padding-top: 0;
  padding-bottom: 0;
}
.auth-single .auth-panel {
  width: 100%;
  max-width: 960px;
  padding: 28px 34px;
}
.auth-panel {
  padding: 38px;
}
.auth-copy h1 {
  margin-bottom: 14px;
  font-size: 3.15rem;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
}
.auth-copy p {
  max-width: 560px;
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.72;
}
.auth-chips,
.account-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.auth-chips {
  margin-top: 22px;
}
.auth-chips span,
.account-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 5px 15px;
  border: 1px solid rgba(107, 33, 168, .12);
  border-radius: 999px;
  color: var(--color-primary-dark);
  background: rgba(255, 255, 255, .72);
  font-size: .84rem;
  font-weight: 600;
}
.account-nav {
  margin: -6px 0 24px;
}
.account-nav a.active,
.account-nav a:hover {
  color: #fff;
  background: var(--color-primary);
}
.dashboard-panel[hidden] {
  display: none;
}
.dashboard-panel.active {
  animation: dashboardPanelIn .16s ease-out;
}
.dashboard-profile-card {
  max-width: 960px;
  margin: 0 auto;
}
/* Header: eyebrow + gold-underlined title */
.dashboard-profile-head {
  text-align: center;
  margin-bottom: 26px;
}
.dashboard-profile-head .profile-kicker {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(107, 33, 168, .08);
  color: var(--color-primary);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.dashboard-profile-card h2 {
  position: relative;
  display: inline-block;
  margin: 0;
  padding-bottom: 12px;
}
.dashboard-profile-card h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 68px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark));
}
.dashboard-profile-form {
  display: grid;
  gap: 18px;
}
/* Grouped section cards */
.profile-form-section {
  padding: 22px;
  border: 1px solid rgba(107, 33, 168, .12);
  border-radius: 16px;
  background: rgba(255, 250, 245, .7);
  box-shadow: 0 8px 26px rgba(76, 29, 117, .05);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.profile-form-section:hover {
  border-color: rgba(107, 33, 168, .22);
  box-shadow: 0 12px 34px rgba(76, 29, 117, .1);
}
/* Section title with accent icon badge */
.dashboard-profile-form .reg-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
}
.dashboard-profile-form .reg-section-title i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  font-size: 1rem;
  color: var(--color-primary);
  background: linear-gradient(135deg, rgba(107, 33, 168, .12), rgba(245, 158, 11, .12));
  box-shadow: inset 0 0 0 1px rgba(107, 33, 168, .12);
}
.profile-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.dashboard-profile-form .form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}
/* Muted disabled fields */
.dashboard-profile-form .form-control:disabled {
  background: rgba(107, 33, 168, .04);
  color: var(--color-muted);
  cursor: not-allowed;
  border-style: dashed;
}
.dashboard-profile-form .form-control[readonly] {
  background: rgba(107, 33, 168, .04);
  color: #273244;
  cursor: default;
}
.profile-email-control {
  display: grid;
  gap: 8px;
}
.profile-email-display,
.profile-email-status {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-email-display .form-control {
  min-width: 0;
}
.profile-email-display .form-control {
  flex: 1 1 auto;
}
.profile-field-edit-btn {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(124, 58, 237, .28);
  border-radius: 8px;
  color: var(--color-primary);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 42px;
  height: 42px;
  justify-content: center;
  padding: 0;
}
.profile-field-edit-btn:hover {
  background: #f7f0ff;
  border-color: rgba(124, 58, 237, .5);
}
.profile-email-edit-toggle {
  width: 42px;
  min-width: 42px;
  padding-left: 0;
  padding-right: 0;
}
.profile-email-verify-toggle {
  white-space: nowrap;
}
.profile-form-grid .form-group,
.dashboard-profile-form .form-group {
  margin-bottom: 0;
}
.dashboard-profile-form .phone-field {
  display: flex;
  gap: 8px;
  width: 100%;
}
.profile-email-modal-form .phone-field {
  align-items: center;
  display: flex;
  gap: 8px;
  width: 100%;
}
.dashboard-profile-form .phone-field .dial-prefix {
  flex: 0 0 58px;
  width: 58px;
  min-width: 58px;
  max-width: 58px;
  padding-left: 6px;
  padding-right: 6px;
  box-sizing: border-box;
}
.profile-email-modal-form .phone-field .dial-prefix {
  flex: 0 0 78px;
  min-width: 78px;
  text-align: center;
}
.dashboard-profile-form .phone-field .form-control {
  flex: 1 1 0;
  min-width: 0;
}
.profile-email-modal-form .phone-field .phone-number-input {
  flex: 1 1 auto;
  min-width: 0;
}
@media (max-width: 640px) {
  .profile-form-grid {
    grid-template-columns: 1fr;
  }
}
@keyframes dashboardPanelIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.form-card,
.auth-panel {
  border: 1px solid rgba(107, 33, 168, .12);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(76, 29, 117, .12);
}
.form-card h2,
.auth-panel h2 {
  letter-spacing: 0;
  font-size: 1.72rem;
  font-weight: 600;
}
.form-control {
  min-height: 46px;
  border-color: rgba(107, 33, 168, .16);
  border-radius: 12px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(107, 33, 168, .1);
}
.dial-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #334155;
  font-weight: 600;
  cursor: default;
}
.camera-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---- Register form: two-column grid + grouped sections ---- */
.register-form .reg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
}
.register-form .reg-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.register-form .reg-grid-compact {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 620px;
  margin: 0 auto;
}
.register-form .reg-grid-compact.reg-grid-with-name .form-group:first-child {
  grid-column: 1 / -1;
}
.register-form .reg-span-2 {
  grid-column: 1 / -1;
}
.register-form .form-group {
  margin-bottom: 0;
}
.register-form .form-group label {
  margin-bottom: 4px;
}
.register-form .form-control {
  min-height: 42px;
}
.register-form .form-help {
  margin-top: 4px !important;
  font-size: .78rem;
}
.register-form .reg-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(107, 33, 168, .16);
}
.register-form .reg-section:first-of-type {
  margin-top: 4px;
  padding-top: 0;
  border-top: 0;
}
.register-form .reg-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
}
.register-form label {
  font-size: .86rem;
  font-weight: 600;
}
.auth-panel .required-label::after {
  content: " *";
  color: #dc2626;
  font-weight: 800;
}
/* Phone with dial-code prefix */
.register-form .phone-field {
  display: flex;
  gap: 8px;
  align-items: stretch;
  width: 100%;
}
.register-form .phone-field .dial-prefix {
  flex: 0 0 58px;
  width: 58px;
  min-width: 58px;
  max-width: 58px;
  padding-left: 6px;
  padding-right: 6px;
  min-height: 42px;
  border-radius: 12px;
  font-size: .9rem;
  box-sizing: border-box;
}
.register-form .phone-field .form-control {
  flex: 1 1 0;
  min-width: 0;
}
.register-form .phone-field .phone-number-input {
  width: 100%;
}
.register-form .register-submit-row {
  display: flex;
  justify-content: center;
}
.register-form .register-send-otp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 150px;
  min-height: 42px;
  padding: 0 28px;
}

/* Circular avatar dropzone */
.register-form .avatar-uploader {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.register-form .avatar-drop {
  position: relative;
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  border-radius: 50%;
  border: 2px dashed rgba(107, 33, 168, .35);
  background: rgba(255, 250, 245, .7);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s ease, background .15s ease;
}
.register-form .avatar-drop:hover {
  border-color: var(--color-primary);
  background: rgba(107, 33, 168, .06);
}
.register-form .avatar-drop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.register-form .avatar-drop.has-image img {
  display: block;
}
.register-form .avatar-drop.has-image .avatar-placeholder {
  display: none;
}
.register-form .avatar-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--color-primary);
  font-size: .72rem;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}
.register-form .avatar-placeholder svg {
  width: 26px;
  height: 26px;
}
.register-form .avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.register-form .avatar-actions .camera-controls {
  gap: 8px;
}
/* Space between the icon and label inside the camera/photo buttons. */
.register-form .camera-controls .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.register-form .avatar-hint {
  font-size: .78rem;
  color: var(--color-muted);
}
.register-form input[type="file"].visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.dashboard-profile-form input[type="file"].visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.dashboard-avatar-uploader {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.dashboard-avatar-drop {
  position: relative;
  width: 116px;
  height: 116px;
  flex: 0 0 116px;
  border-radius: 50%;
  border: 2px dashed rgba(107, 33, 168, .35);
  background: rgba(255, 250, 245, .8);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .9), 0 10px 28px rgba(76, 29, 117, .18);
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.dashboard-avatar-drop:hover {
  border-color: var(--color-primary);
  background: rgba(107, 33, 168, .06);
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .95), 0 14px 34px rgba(76, 29, 117, .26);
}
.dashboard-avatar-drop.has-image {
  border-style: solid;
  border-color: rgba(107, 33, 168, .3);
}
.dashboard-avatar-drop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.dashboard-avatar-drop.has-image img {
  display: block;
}
.dashboard-avatar-drop.has-image .avatar-placeholder {
  display: none;
}
.dashboard-avatar-drop .avatar-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--color-primary);
  font-size: .76rem;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
}
.dashboard-avatar-drop .avatar-placeholder i {
  font-size: 1.55rem;
}
.dashboard-avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 260px;
}
.dashboard-profile-form .camera-controls .btn,
.dashboard-profile-form .camera-controls label.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.dashboard-profile-form .avatar-hint {
  color: var(--color-muted);
  font-size: .82rem;
}
/* Prominent full-width Save CTA */
.dashboard-profile-form .btn-block {
  margin-top: 6px;
  min-height: 52px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(245, 158, 11, .34);
}
.dashboard-profile-form .btn-block:hover {
  box-shadow: 0 16px 34px rgba(245, 158, 11, .42);
}
.dashboard-profile-form .form-help.is-error {
  color: #b91c1c;
}
@media (max-width: 560px) {
  .dashboard-avatar-uploader {
    align-items: flex-start;
    flex-direction: column;
  }
  .dashboard-avatar-actions {
    width: 100%;
    min-width: 0;
  }
  .register-form .reg-grid,
  .register-form .reg-grid-3 {
    grid-template-columns: 1fr;
  }
}

.password-field {
  position: relative;
}
.password-field .form-control {
  padding-right: 48px;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--color-primary);
  background: rgba(107, 33, 168, .08);
  cursor: pointer;
}
.password-toggle:hover {
  background: rgba(107, 33, 168, .15);
}
.password-toggle svg {
  width: 26px;
  height: 18px;
  pointer-events: none;
}
.form-help,
.auth-link-row {
  color: var(--color-muted);
  font-size: .9rem;
  line-height: 1.45;
}
.auth-link-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 13px 0 18px;
}
.auth-social {
  margin-bottom: 18px;
}
.auth-google-only-shell {
  max-width: 820px;
  margin: 0 auto;
}
.auth-google-only-panel {
  padding: 42px 34px 28px;
}
.auth-combined-shell {
  max-width: 820px;
  margin: 0 auto;
}
.auth-combined-panel {
  padding: 36px 34px;
}
.auth-social-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-social-card {
  padding: 14px 16px;
  border: 1px solid rgba(107, 33, 168, .14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(250, 245, 255, .9));
  box-shadow: 0 12px 30px rgba(88, 28, 135, .08);
}
.auth-social-card-minimal {
  padding: 12px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.google-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.google-auth-btn-clean {
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, .35);
  box-shadow: none;
  font-size: 1rem;
}
.google-auth-btn:hover {
  color: #111827;
  border-color: rgba(66, 133, 244, .28);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, .12);
}
.google-auth-logo {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.google-auth-logo svg {
  width: 20px;
  height: 20px;
}
.auth-social-card .form-help {
  margin-top: 10px;
  text-align: center;
}
.auth-divider {
  position: relative;
  text-align: center;
}
.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(148, 163, 184, .35);
}
.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 12px;
  background: #fff;
  color: var(--color-muted);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}
.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0 22px;
  padding: 5px;
  border: 1px solid rgba(107, 33, 168, .12);
  border-radius: 14px;
  background: rgba(107, 33, 168, .05);
}
.auth-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 10px;
  color: var(--color-primary-dark);
  font-weight: 700;
  text-decoration: none;
}
.auth-tabs a.active,
.auth-tabs a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  box-shadow: 0 10px 20px rgba(107, 33, 168, .18);
}
.auth-manual-form[hidden] {
  display: none;
}
.auth-manual-form .auth-submit,
.auth-manual-form .btn-block {
  margin-top: 18px;
}
.otp-action-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.otp-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(107, 33, 168, .18);
  background: #fff;
  color: var(--color-primary-dark);
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
}
.otp-action-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  box-shadow: 0 10px 20px rgba(107, 33, 168, .16);
}
.otp-action-btn-primary {
  border-color: rgba(234, 88, 12, .24);
  color: #b45309;
}
.otp-action-btn-primary:hover {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  box-shadow: 0 10px 20px rgba(245, 158, 11, .22);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.stat-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-height: 154px;
  padding: 22px;
  border-radius: 16px;
  color: var(--color-text);
  text-decoration: none;
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,247,232,.76)),
    #fff;
  border: 1px solid rgba(107, 33, 168, .12);
  box-shadow: 0 16px 38px rgba(76, 29, 117, .1);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  width: 5px;
  background: var(--stat-accent, #f59e0b);
}
.stat-card::after {
  content: "";
  position: absolute;
  right: -44px;
  top: -58px;
  z-index: 0;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--stat-accent, #f59e0b) 16%, transparent);
}
.stat-card.tone-gold { --stat-accent: #f59e0b; }
.stat-card.tone-blue { --stat-accent: #6366f1; background: linear-gradient(145deg, #fff, #eefaff); }
.stat-card.tone-teal { --stat-accent: #14b8a6; background: linear-gradient(145deg, #fff, #effdfa); }
.stat-card.tone-green { --stat-accent: #10b981; background: linear-gradient(145deg, #fff, #f0fdf4); }
.stat-card.tone-red { --stat-accent: #ef4444; }
.stat-card.stat-card-alert {
  border-color: rgba(239, 68, 68, .28);
  box-shadow: 0 18px 42px rgba(153, 27, 27, .13);
  animation: statAlertGlow 2.4s ease-in-out infinite;
}
.stat-card.stat-card-alert::before {
  width: 7px;
  background: linear-gradient(180deg, #ef4444, #f59e0b);
}
.stat-card:hover,
.stat-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(107, 33, 168, .26);
  box-shadow: 0 18px 42px rgba(76, 29, 117, .16);
}
.stat-card:focus-visible {
  outline: 3px solid rgba(107, 33, 168, .18);
  outline-offset: 3px;
}
.stat-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  cursor: pointer;
  text-indent: -9999px;
}
.stat-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--stat-accent, #f59e0b), color-mix(in srgb, var(--stat-accent, #f59e0b) 72%, #111827));
  box-shadow: 0 14px 26px color-mix(in srgb, var(--stat-accent, #f59e0b) 28%, transparent);
  font-size: 1.35rem;
}
.stat-meta {
  position: relative;
  min-width: 0;
}
.stat-value {
  display: block;
  margin-bottom: 4px;
  color: var(--color-primary-dark);
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 800;
}
.stat-label {
  display: block;
  color: var(--color-muted);
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.3;
}
.stat-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.stat-chip {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}
.stat-chip-completed {
  color: #5b21b6;
  background: rgba(124, 58, 237, .1);
}
.stat-chip-incomplete {
  color: #991b1b;
  background: linear-gradient(135deg, rgba(254, 226, 226, .98), rgba(255, 247, 237, .98));
  border: 1px solid rgba(239, 68, 68, .24);
  box-shadow: 0 8px 18px rgba(153, 27, 27, .09);
  animation: statChipPulse 1.8s ease-in-out infinite;
}
.stat-chip-incomplete i {
  animation: statAlertIconPop 1.8s ease-in-out infinite;
}
@keyframes statAlertGlow {
  0%, 100% {
    box-shadow: 0 18px 42px rgba(153, 27, 27, .13);
  }
  50% {
    box-shadow:
      0 18px 42px rgba(153, 27, 27, .18),
      0 0 0 4px rgba(239, 68, 68, .08);
  }
}
@keyframes statChipPulse {
  0%, 100% {
    /* transform: translateY(0); */
    box-shadow: 0 8px 18px rgba(153, 27, 27, .09);
  }
  50% {
    /* transform: translateY(-1px); */
    box-shadow:
      0 10px 22px rgba(153, 27, 27, .15),
      0 0 0 3px rgba(239, 68, 68, .1);
  }
}
@keyframes statAlertIconPop {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}
.stat-card a:not(.stat-card-overlay):not(.stat-chip) {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 600;
  font-size: .92rem;
}
.stat-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--color-primary);
  font-size: .88rem;
  font-weight: 600;
}
.astrologer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.astrologer-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(107, 33, 168, .12);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(76, 29, 117, .12);
}
.astrologer-photo {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff7e8;
}
.astrologer-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.astrologer-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}
.astrologer-card-top,
.astrologer-price-row,
.astrologer-facts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.astrologer-card-top span,
.astrologer-price-row span,
.astrologer-facts span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(107, 33, 168, .08);
  color: var(--color-primary-dark);
  font-size: .78rem;
  font-weight: 600;
}
.astrologer-card h2 {
  margin: 0;
  font-size: 1.28rem;
  letter-spacing: 0;
}
.astrologer-skill,
.astrologer-meta {
  margin: 0;
  color: var(--color-muted);
  font-size: .92rem;
  line-height: 1.5;
}
.astrologer-card .btn {
  width: fit-content;
  margin-top: auto;
}
.astrology-booking-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.astrology-booking-form {
  display: grid;
  gap: 14px;
}
.astrology-booking-form .grid {
  gap: 14px 24px;
}
.astrology-booking-form .form-group {
  margin-bottom: 0;
}
.astrology-booking-form .form-help {
  margin-top: 5px;
}
.astrology-booking-form .thumb-upload-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  margin-bottom: 7px;
}
.astrology-booking-form .thumb-upload-label label {
  margin-bottom: 0;
}
.astrology-booking-form .thumb-upload-label small {
  color: var(--color-muted);
  font-size: .6875rem;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
}
.astrology-booking-form [data-common-reading-fields] {
  margin-top: 0;
}
.astrologer-profile-panel img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 14px;
  margin-bottom: 18px;
}
.astrologer-profile-panel h2 {
  letter-spacing: 0;
}
.astrologer-profile-panel p {
  color: var(--color-muted);
}
.astrology-amount-card {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(245, 158, 11, .28);
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #fff7e8);
}
.astrology-amount-card span,
.astrology-amount-card small {
  display: block;
  color: var(--color-muted);
  font-weight: 600;
}
.astrology-total-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 6px 0 4px;
}
.astrology-amount-card strong {
  color: var(--color-primary-dark);
  font-size: 2rem;
  line-height: 1;
}
.astrology-total-value {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.astrology-total-symbol {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(107, 33, 168, .08);
  color: var(--color-primary-dark) !important;
  font-size: 1.45rem;
  font-weight: 800 !important;
  line-height: 1;
}
.astrology-tax-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(107, 33, 168, .18);
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
  color: var(--color-primary-dark);
  box-shadow: 0 10px 22px rgba(107, 33, 168, .08);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.astrology-tax-toggle:hover,
.astrology-tax-toggle[aria-expanded="true"] {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 14px 28px rgba(107, 33, 168, .2);
  transform: translateY(-1px);
}
.astrology-tax-toggle i {
  font-size: 1rem;
}
.astrology-tax-lines {
  margin-top: 12px;
  border-top: 1px solid rgba(107, 33, 168, .1);
}
.astrology-tax-lines[hidden] {
  display: none;
}
.astrology-tax-lines .summary-line {
  padding: 10px 0;
  font-size: .95rem;
}
.astrology-tax-lines .summary-line span:last-child {
  font-weight: 700;
  color: var(--color-primary-dark);
}
.astrology-tax-lines .summary-line small {
  display: inline;
  margin-left: 4px;
  font-weight: 700;
}
@media (max-width: 575px) {
  .astrology-total-head {
    gap: 10px;
  }
  .astrology-amount-card strong {
    font-size: 1.7rem;
  }
  .astrology-total-symbol,
  .astrology-tax-toggle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
}
.meeting-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 15, 38, .58);
}
.meeting-modal[hidden] {
  display: none;
}
.meeting-modal-dialog {
  position: relative;
  width: min(100%, 460px);
  padding: 28px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(20, 15, 38, .28);
}
.meeting-modal-dialog h2 {
  margin: 4px 0 8px;
  letter-spacing: 0;
}
.meeting-modal-dialog p {
  margin: 0 0 16px;
  color: var(--color-muted);
}
.meeting-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(107, 76, 43, .1);
  color: var(--color-primary-dark);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.payment-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 1810;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(18, 12, 30, .66);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.payment-detail-modal[hidden] {
  display: none;
}
.payment-detail-dialog {
  position: relative;
  width: min(820px, 94vw);
  max-height: 86vh;
  overflow: auto;
  padding: 26px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(18, 12, 30, .32);
}
.payment-detail-dialog h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 42px 18px 0;
  color: var(--color-primary-dark);
  font-size: 1.45rem;
  letter-spacing: 0;
}
.payment-detail-dialog h2::before {
  content: "\f38a";
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(107, 33, 168, .14);
  color: var(--color-primary);
  background: #f7efff;
  box-shadow: none;
  font-family: "bootstrap-icons";
  font-size: 1.12rem;
  font-weight: 400;
}
.payment-detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(107, 76, 43, .1);
  color: var(--color-primary-dark);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.payment-detail-summary,
.payment-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.payment-detail-grid {
  margin-top: 14px;
}
.payment-detail-summary > div,
.payment-detail-grid > div {
  position: relative;
  min-width: 0;
  padding: 14px 14px 14px 58px;
  border: 1px solid rgba(107, 33, 168, .12);
  border-radius: 10px;
  background: linear-gradient(145deg, #fff, #fbf7ff);
  box-shadow: 0 10px 24px rgba(76, 29, 117, .06);
}
.payment-detail-summary > div > i,
.payment-detail-grid > div > i {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--color-primary);
  background: #f3e8ff;
  transform: translateY(-50%);
}
.payment-detail-summary > div:nth-child(2) > i,
.payment-detail-grid > div:nth-child(5) > i {
  color: #b45309;
  background: #fff7ed;
}
.payment-detail-summary > div:nth-child(3) > i,
.payment-detail-summary > div:nth-child(4) > i {
  color: #166534;
  background: #dcfce7;
}
.payment-detail-summary span,
.payment-detail-grid span {
  display: block;
  color: var(--color-muted);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
}
.payment-detail-summary strong,
.payment-detail-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--color-heading);
  font-size: .95rem;
  overflow-wrap: anywhere;
}
.payment-detail-items {
  margin-top: 18px;
}
.payment-detail-items h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--color-primary-dark);
  font-size: 1.05rem;
  letter-spacing: 0;
}
.payment-detail-items h3 i {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  color: #b45309;
  background: #fff7ed;
}
.payment-detail-items table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 10px;
}
.payment-detail-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border-radius: 10px;
}
.payment-detail-items .payment-detail-order-table {
  min-width: 420px;
  table-layout: auto;
}
.payment-detail-items .payment-detail-order-table--amount {
  min-width: 0;
}
.payment-detail-order-table td:last-child {
  white-space: nowrap;
}
.payment-detail-items th,
.payment-detail-items td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(107, 33, 168, .1);
  text-align: left;
  vertical-align: middle;
}
.payment-detail-order-table th:first-child,
.payment-detail-order-table td:first-child {
  width: 62%;
  overflow-wrap: anywhere;
  text-align: left;
}
.payment-detail-order-table th:nth-child(2),
.payment-detail-order-table td:nth-child(2) {
  width: 10%;
  text-align: left;
}
.payment-detail-order-table th:nth-child(3),
.payment-detail-order-table td:nth-child(3),
.payment-detail-order-table th:nth-child(4),
.payment-detail-order-table td:nth-child(4) {
  width: 14%;
  text-align: left;
  white-space: nowrap;
}
.payment-detail-items .payment-detail-order-table--amount th:first-child,
.payment-detail-items .payment-detail-order-table--amount td:first-child {
  width: 72%;
}
.payment-detail-items .payment-detail-order-table--amount th:last-child,
.payment-detail-items .payment-detail-order-table--amount td:last-child {
  width: 28%;
}
.payment-detail-items .payment-detail-transactions {
  min-width: 660px;
}
.payment-detail-transactions th:first-child { width: 32%; }
.payment-detail-transactions th:nth-child(2),
.payment-detail-transactions th:nth-child(3) { width: 15%; }
.payment-detail-transactions th:nth-child(4) { width: 16%; }
.payment-detail-transactions th:nth-child(5) { width: 22%; }
.payment-detail-transactions th { white-space: nowrap; }
.payment-detail-transactions td { overflow-wrap: anywhere; }
.payment-detail-transactions .admin-list-datetime {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  white-space: nowrap;
}
.payment-detail-transactions .admin-list-datetime small {
  font-size: .82em;
  color: var(--color-muted);
}
.payment-detail-items th {
  background: #f7efff;
  color: var(--color-primary-dark);
  font-size: .82rem;
}
.payment-detail-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(107, 33, 168, .1);
}
.payment-detail-footer .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.payment-detail-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 700;
}
.published-detail-wrap {
  display: grid;
  gap: 18px;
}
.published-detail-section {
  display: grid;
  gap: 14px;
}
.published-detail-section h3 {
  margin: 0;
  font-size: 1rem;
  color: #4c1d95;
}
.published-detail-entry-list {
  display: grid;
  gap: 14px;
}
.published-detail-entry {
  padding: 16px;
  border: 1px solid #efe3ff;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fcf8ff 100%);
}
.published-detail-entry-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.published-detail-entry-head strong {
  color: #20123a;
}
.published-detail-entry-head span {
  color: #8b7ca9;
  font-size: .92rem;
}
.published-detail-remarks {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8f2ff;
  color: #4a3e63;
  line-height: 1.6;
}
.published-detail-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.published-detail-media-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #eee4fb;
  border-radius: 16px;
  background: #fff;
}
.published-detail-media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}
.published-download-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: av-spin .7s linear infinite;
}
.published-detail-thumb {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #f3ecff;
}
.published-detail-thumb img,
.published-detail-video {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 12px;
}
.published-detail-audio {
  width: 100%;
}
.published-media-dialog {
  max-width: min(92vw, 760px);
}
.published-media-player {
  display: block;
  width: 100%;
}
video.published-media-player {
  max-height: 70vh;
  border-radius: 18px;
  background: #111;
}
audio.published-media-player {
  min-width: min(100%, 520px);
}
.published-detail-media-meta {
  display: grid;
  gap: 4px;
}
.published-detail-media-meta span {
  font-size: .82rem;
  color: #8b7ca9;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.published-detail-media-meta strong {
  color: #2b1d43;
  word-break: break-word;
}
.payment-status-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.payment-processing-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  color: var(--color-primary);
  font-weight: 700;
}
.payment-processing-state[hidden] {
  display: none !important;
}
.payment-processing-state .site-action-loader-spinner {
  width: 32px;
  height: 32px;
  border-width: 3px;
  box-shadow: none;
}
.table-icon-btn.is-loading,
.btn.is-loading {
  opacity: .62;
  pointer-events: none;
}
@media (max-width: 720px) {
  .payment-detail-summary,
  .payment-detail-grid {
    grid-template-columns: 1fr;
  }
  .payment-detail-dialog {
    padding: 22px 16px;
  }
  .payment-detail-items th,
  .payment-detail-items td {
    padding: 9px 8px;
    font-size: .86rem;
  }
  .payment-detail-order-table th:first-child,
  .payment-detail-order-table td:first-child {
    width: 52%;
  }
  .payment-detail-order-table th:nth-child(2),
  .payment-detail-order-table td:nth-child(2) {
    width: 12%;
  }
  .payment-detail-order-table th:nth-child(3),
  .payment-detail-order-table td:nth-child(3),
  .payment-detail-order-table th:nth-child(4),
  .payment-detail-order-table td:nth-child(4) {
    width: 18%;
  }
  .published-detail-media-grid {
    grid-template-columns: 1fr;
  }
  .published-detail-thumb img,
  .published-detail-video {
    height: auto;
    max-height: 280px;
  }
}
.profile-email-modal {
  position: fixed;
  inset: 0;
  z-index: 1110;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 15, 38, .58);
}
.profile-email-modal[hidden] {
  display: none;
}
.profile-email-modal-dialog {
  position: relative;
  width: min(100%, 480px);
  padding: 28px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(20, 15, 38, .28);
}
.profile-email-modal-dialog h2 {
  margin: 4px 0 8px;
  letter-spacing: 0;
}
.profile-email-modal-dialog p {
  margin: 0 0 18px;
  color: var(--color-muted);
  line-height: 1.55;
}
.profile-email-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(107, 76, 43, .1);
  color: var(--color-primary-dark);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.profile-email-modal-form {
  display: grid;
  gap: 14px;
}
.profile-email-modal-message {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
}
.profile-email-modal-message.is-success {
  color: #166534;
  background: #dcfce7;
}
.profile-email-modal-message.is-error {
  color: #991b1b;
  background: #fee2e2;
}
.site-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 100010;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 15, 38, .58);
  backdrop-filter: blur(6px);
}
.site-popup-card {
  position: relative;
  width: min(100%, 420px);
  padding: 28px 24px 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fffaf4);
  box-shadow: 0 24px 70px rgba(20, 15, 38, .28);
  text-align: center;
}
.site-popup-card.is-error {
  border: 1px solid rgba(239, 68, 68, .18);
}
.site-popup-card.is-success {
  border: 1px solid rgba(16, 185, 129, .2);
}
.site-popup-card.is-info {
  border: 1px solid rgba(107, 33, 168, .18);
}
.site-popup-card.is-warning {
  border: 1px solid rgba(245, 158, 11, .28);
  background: linear-gradient(180deg, #fff 55%, #fffbf0);
  padding: 24px 22px 20px;
}
.site-popup-card.is-warning .site-popup-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
  color: #b45309;
  background: #fff3d6;
  box-shadow: 0 0 0 8px rgba(245, 158, 11, .045);
}
.site-popup-card.is-warning h3 { color: #92400e; letter-spacing: 0; margin-bottom: 6px; }
.site-popup-card.is-warning p { line-height: 1.55; margin-bottom: 14px; overflow-wrap: anywhere; }
html[lang="ta"] .site-popup-card.is-warning p { line-height: 1.65; }
.site-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(107, 76, 43, .08);
  color: var(--color-primary-dark);
  cursor: pointer;
}
.site-popup-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
}
.site-popup-card.is-error .site-popup-icon {
  color: #dc2626;
  background: #fee2e2;
}
.site-popup-card.is-success .site-popup-icon {
  color: #059669;
  background: #d1fae5;
}
.site-popup-card.is-info .site-popup-icon {
  color: var(--color-primary);
  background: #f3e8ff;
}
.site-popup-card h3 {
  margin: 0 0 8px;
  color: var(--color-primary-dark);
}
.site-popup-card p {
  margin: 0 0 18px;
  color: var(--color-muted);
  line-height: 1.6;
  white-space: pre-line;
}
.site-popup-button {
  min-width: 140px;
}
.profile-email-modal-form + .profile-email-modal-form {
  margin-top: 16px;
}
.review-profile-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--color-muted);
  background: rgba(107, 33, 168, .06);
  font-size: .88rem;
  font-weight: 700;
}
.review-profile-preview span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.review-profile-preview i {
  color: var(--color-primary);
}
.review-modal-form textarea.form-control {
  min-height: 120px;
}
.profile-email-loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid rgba(255,255,255,.55);
  border-top-color: #fff;
  border-radius: 50%;
  animation: profileEmailSpin .7s linear infinite;
}
.profile-email-loader[hidden] {
  display: none;
}
.dashboard-profile-form [data-profile-save-loader] {
  margin-left: 10px;
  vertical-align: middle;
}
.profile-submit-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 15, 38, .58);
  backdrop-filter: blur(6px);
}
.profile-submit-overlay-card {
  width: min(100%, 320px);
  padding: 24px 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fffaf4);
  box-shadow: 0 24px 70px rgba(20, 15, 38, .28);
  text-align: center;
}
.profile-submit-overlay-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--color-primary-dark);
  font-size: 1.08rem;
}
.profile-submit-overlay-card p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.5;
}
.profile-save-message {
  margin-bottom: 14px;
}
.profile-submit-overlay-spinner {
  display: inline-block;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border: 4px solid rgba(107, 33, 168, .16);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: profileEmailSpin .7s linear infinite;
}
@keyframes profileEmailSpin {
  to { transform: rotate(360deg); }
}
.profile-email-otp-panel {
  padding: 14px;
  border: 1px solid rgba(245, 158, 11, .25);
  border-radius: 12px;
  background: #fff7ed;
}
.profile-email-otp-panel > span {
  font-size: .86rem;
  font-weight: 600;
  color: #92400e;
}
.profile-email-otp-panel .btn-primary span {
  color: #fff;
}
.profile-email-modal-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
@media (max-width: 520px) {
  .profile-email-modal-actions {
    grid-template-columns: 1fr;
  }
}
.checkout-address-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 15, 38, .58);
  backdrop-filter: blur(6px);
}
.checkout-address-modal[hidden] {
  display: none;
}
.checkout-address-dialog {
  position: relative;
  width: min(100%, 430px);
  padding: 30px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(20, 15, 38, .28);
  text-align: center;
}
.checkout-address-dialog h2 {
  margin: 10px 0 8px;
  color: var(--color-primary-dark);
  letter-spacing: 0;
}
.checkout-address-dialog p {
  margin: 0 0 22px;
  color: var(--color-muted);
  line-height: 1.6;
}
.checkout-address-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(107, 76, 43, .1);
  color: var(--color-primary-dark);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.meeting-link-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 6px 6px 6px 12px;
  border: 1px solid rgba(245, 158, 11, .28);
  border-radius: 10px;
  background: #fff8ec;
}
.meeting-link-value {
  display: block;
  color: var(--color-primary-dark);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.meeting-copy-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--color-primary-dark);
  font-size: 1.08rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(107, 76, 43, .12);
}
.meeting-copy-btn:hover,
.meeting-copy-btn.is-copied {
  background: var(--color-primary-dark);
  color: #fff;
}
.astrology-service-hero .category-hero-panel span {
  color: var(--color-accent-dark);
}
.astrology-tabs-shell .category-tabs {
  justify-content: center;
}
.astrology-tabs-shell .category-tab {
  min-width: 240px;
}
.astrology-service-list.view-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.astrology-service-item .category-item-image {
  background: linear-gradient(145deg, #fff7e8, #f6e9ff);
}
.astrology-service-item .category-item-image::after {
  background: linear-gradient(180deg, transparent 45%, rgba(76, 29, 117, .45));
}
.astrology-service-list.view-grid .category-item-body p:not(.category-item-meta):not(.category-item-sub) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}
.astrology-list-section .category-item-sub {
  color: var(--color-primary-dark);
}
/* ==========================================================================
   Home consultation carousel — realistic hardcover book page-flip
   The stage is one open book: a fixed left image page and a fixed right
   content page. Turning is done by a single "leaf" layered over the spread
   whose front face is the outgoing right page and whose back face is the
   incoming left page (mirrored), rotated about the spine on the Y axis.
   ========================================================================== */
.home-consultation-section {
  /* No overflow here: the shared .inner-bg-* utility already clips this
     section, and a second declaration would make the clipping look local to
     the carousel when it is not. */
  --home-consultation-bg-y: 0px;
  isolation: isolate;
  background-image: none;
  padding-bottom: 34px;
}
/* This section carries .inner-bg-navagraha, whose backdrop is promoted to a
   viewport-anchored layer at >=900px. That promotion flattens preserve-3d
   descendants, which would kill the page turn on desktop. Two class names are
   needed to outweigh `.astrology-list-section.inner-bg-navagraha`. */
@media (min-width: 900px) {
  .astrology-list-section.home-consultation-section {
    background-attachment: scroll;
  }
}
.home-consultation-section.inner-bg-navagraha::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('../images/optimized/back-navagragam-light.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}
@media (min-width: 900px) {
  .home-consultation-section.inner-bg-navagraha::after {
    background-attachment: fixed;
  }
}
.home-consultation-section.inner-bg-navagraha::before {
  z-index: 1;
}
/* .inner-bg-navagraha lays a 96%-opaque white sheet over the whole section via
   ::before, and only lifts its direct `> .container` child above it. The book
   sits deeper than that, so lift the carousel explicitly or the turning leaf
   is painted under the veil. */
.home-consultation-section.inner-bg-navagraha > .container {
  z-index: 2;
}
.home-consultation-section .home-consultation-carousel {
  position: relative;
  z-index: 1;
}
.home-consultation-section .container {
  max-width: 1180px;
}
.home-consultation-section .category-list-head {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
/* The arrows sit on the book's outer edges, vertically centred on the spread,
   so they read as controls for the book rather than for the section. */
.home-consultation-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  line-height: 1;
  border: 1px solid rgba(107,33,168,.18);
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(76,29,117,.1);
  /* translateY keeps it centred; the hover lift is folded into the same
     transform so the two cannot overwrite each other. */
  transform: translateY(-50%);
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.home-consultation-arrow-prev {
  left: 0;
}
.home-consultation-arrow-next {
  right: 0;
}
.home-consultation-arrow:hover,
.home-consultation-arrow:focus-visible {
  transform: translateY(-50%) scale(1.06);
  background: linear-gradient(135deg, var(--color-primary), #7c3aed);
  color: #fff;
  box-shadow: 0 14px 28px rgba(107,33,168,.24);
  outline: none;
}
.home-consultation-arrow[disabled] {
  opacity: .45;
  cursor: default;
}
.home-consultation-carousel {
  position: relative;
  /* The book is 900px; the extra width is the lane the edge arrows sit in. */
  max-width: 1020px;
  margin: 0 auto;
}
.home-consultation-viewport {
  position: relative;
  /* Side padding reserves the arrow lane so the book stays centred and the
     arrows clear its covers. */
  padding: 10px 54px 22px;
  /* The single perspective origin for the whole book: viewer sits centred
     and slightly above, so pages arc toward the reader as they lift. */
  perspective: 2000px;
  perspective-origin: 50% 42%;
  touch-action: pan-y;
}

/* --- the book body ------------------------------------------------------ */
.home-consultation-book {
  position: relative;
  width: min(100%, 900px);
  margin: 0 auto;
  aspect-ratio: 900 / 420;
  transform-style: preserve-3d;
  cursor: grab;
  /* Hardcover: the boards sit a few px proud of the paper on every side. */
  border-radius: 16px;
  background:
    linear-gradient(90deg, #3d1466 0%, #4c1d75 6%, #5b2489 48%, #4c1d75 94%, #3d1466 100%);
  padding: 8px;
  box-shadow:
    0 2px 0 rgba(255,255,255,.14) inset,
    0 34px 60px -18px rgba(45,16,74,.5),
    0 10px 24px rgba(45,16,74,.28);
}
.home-consultation-book.is-grabbing {
  cursor: grabbing;
}
.home-consultation-carousel.is-single .home-consultation-book {
  cursor: default;
}
/* Paper block edge — the stack of leaves visible under the top page. */
.home-consultation-book::before,
.home-consultation-book::after {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  width: 7px;
  z-index: 0;
  pointer-events: none;
  border-radius: 2px;
  background: repeating-linear-gradient(
    180deg,
    #fffdf8 0 2px,
    #e6dcc9 2px 3px
  );
  box-shadow: 0 1px 3px rgba(45,16,74,.35);
}
.home-consultation-book::before { left: 3px; }
.home-consultation-book::after  { right: 3px; }

.home-consultation-track.category-list,
.home-consultation-track.category-list.view-grid,
.home-consultation-track.category-list.view-list {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  height: 100%;
  min-height: 0;
  border-radius: 10px;
  background: #fffdf8;
  /* No overflow clipping here: it would flatten the 3D context and hide the
     raised leaf. The two pages clip their own content instead. */
  transform-style: preserve-3d;
}

/* The centre gutter: paper curving down into the binding on both sides. */
.home-consultation-book-spine {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 50%;
  width: 46px;
  z-index: 6;
  pointer-events: none;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg,
      rgba(255,255,255,0) 0%,
      rgba(76,29,117,.05) 26%,
      rgba(76,29,117,.20) 44%,
      rgba(45,16,74,.34) 50%,
      rgba(76,29,117,.20) 56%,
      rgba(76,29,117,.05) 74%,
      rgba(255,255,255,0) 100%);
}
.home-consultation-book-spine::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg,
    rgba(45,16,74,.1), rgba(45,16,74,.45) 18%, rgba(45,16,74,.45) 82%, rgba(45,16,74,.1));
}

/* --- pages -------------------------------------------------------------- */
/* Every slide occupies the whole spread; only the current one is shown.
   The leaf built by JS carries the animation, so the pages themselves are
   static — which keeps text crisp instead of rasterising it mid-rotation. */
.home-consultation-slide.category-item {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.home-consultation-slide.category-item.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
/* Left page — the image plate. */
.home-consultation-slide .category-item-image {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 0;
  margin: 0;
  aspect-ratio: auto;
  overflow: hidden;
  /* Paper tone behind a letterboxed poster, so any gap reads as the page
     itself rather than as a grey band. */
  background: #fdf7ec;
  border-radius: 10px 0 0 10px;
}
.home-consultation-slide .category-item-image img {
  width: 100%;
  height: 100%;
  /* These are designed posters with headline text baked into the artwork, so
     they must not be cropped — `cover` was cutting the first word off every
     title. `contain` keeps the whole plate readable; the page's own paper
     colour fills any letterboxing. */
  object-fit: contain;
  object-position: center;
}
/* Paper grain + the shadow the gutter casts across the left page. */
.home-consultation-slide .category-item-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(45,16,74,.28) 0%, rgba(45,16,74,.06) 7%, transparent 22%),
    linear-gradient(270deg, rgba(45,16,74,.34) 0%, rgba(45,16,74,.08) 9%, transparent 26%);
}
/* Right page — the content leaf. */
.home-consultation-slide .category-item-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: clamp(24px, 3.6vw, 46px) clamp(22px, 3.2vw, 42px) clamp(24px, 3.6vw, 46px) clamp(30px, 4.4vw, 58px);
  overflow: hidden;
  border: 0;
  border-radius: 0 10px 10px 0;
  background:
    radial-gradient(circle at 84% 12%, rgba(245,158,11,.16), transparent 30%),
    linear-gradient(90deg, #fdf7ec 0%, #fffdf8 18%, #fffdf8 82%, #fbf6ff 100%);
  box-shadow: none;
}
.home-consultation-slide .category-item-body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(45,16,74,.26) 0%, rgba(45,16,74,.05) 8%, transparent 24%),
    linear-gradient(270deg, rgba(45,16,74,.12) 0%, transparent 12%);
}
.home-consultation-slide .category-item-body > * {
  position: relative;
  z-index: 1;
}
.home-consultation-slide .category-item-meta {
  font-size: .9rem;
}
.home-consultation-slide .category-price {
  padding: 8px 14px;
  font-size: .9rem;
}
.home-consultation-slide .category-item-body h3 {
  max-width: 420px;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  line-height: 1.18;
  margin-bottom: 12px;
}
.home-consultation-slide .category-item-body p:not(.category-item-meta):not(.category-item-sub) {
  display: block;
  max-width: 430px;
  color: #555166;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 22px;
}
.home-consultation-slide .category-item-actions {
  margin-top: 4px;
}
/* The book's one call to action: a gold pill against the cream page, with a
   soft glow that deepens and an arrow that advances on hover. */
.home-consultation-book-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  white-space: normal;
  min-height: 48px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0a11a 0%, #e08706 55%, #c46f03 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    0 10px 24px rgba(196,111,3,.32),
    inset 0 1px 0 rgba(255,255,255,.34);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.home-consultation-book-btn span {
  font-size: 1.1em;
  line-height: 1;
  transition: transform .2s ease;
}
.home-consultation-book-btn:hover,
.home-consultation-book-btn:focus-visible {
  background: linear-gradient(135deg, #f5ac2b 0%, #ea9109 55%, #cf7803 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    0 16px 32px rgba(196,111,3,.42),
    inset 0 1px 0 rgba(255,255,255,.4);
  outline: none;
}
.home-consultation-book-btn:hover span,
.home-consultation-book-btn:focus-visible span {
  transform: translateX(4px);
}
.home-consultation-book-btn:focus-visible {
  box-shadow:
    0 0 0 3px rgba(255,255,255,.9),
    0 0 0 6px rgba(224,135,6,.55),
    0 16px 32px rgba(196,111,3,.42);
}
.home-consultation-book-btn:active {
  transform: translateY(0);
  box-shadow:
    0 6px 14px rgba(196,111,3,.34),
    inset 0 2px 4px rgba(120,64,0,.24);
}

/* --- the turning leaf --------------------------------------------------- */
/* One half-spread-wide element hinged at the spine. JS clones the outgoing
   and incoming pages into its two faces and drives rotateY from 0 to -180. */
.home-consultation-leaf {
  position: absolute;
  /* The leaf must match the page it represents EXACTLY — it holds a clone of
     that page, so even a couple of px narrower makes the text reflow and the
     copy visibly jump as the turn starts. Because the leaf is a child of the
     padded book, 0 resolves to the book's padding box, i.e. the same edges the
     page grid occupies — so the leaf lands on the page box with no hardcoded
     padding arithmetic to drift out of sync. */
  top: 0;
  bottom: 0;
  left: 50%;
  right: 0;
  z-index: 9;
  pointer-events: none;
  transform-style: preserve-3d;
  transform-origin: left center;
  transform: rotateY(0deg);
  visibility: hidden;
}
.home-consultation-leaf.is-turning {
  visibility: visible;
  /* Only while a turn is actually running: a permanent will-change would hold
     a composited layer for the life of the page. */
  will-change: transform;
}
/* Turning backwards: the leaf starts folded onto the left page and opens
   out to the right, so it is hinged from the same spine but mirrored. */
.home-consultation-leaf.is-reverse {
  left: 0;
  right: 50%;
  transform-origin: right center;
}
.home-consultation-leaf-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #fffdf8;
  /* Physical paper: sharp at the spine, rounded at the free fore-edge. */
  border-radius: 0 8px 8px 0;
  box-shadow: 0 0 0 1px rgba(45,16,74,.06);
}
.home-consultation-leaf-face > .home-consultation-leaf-page {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}
/* A leaf clone is a whole card, but a leaf face is only half a spread wide.
   Collapse the clone to a single column and show just the half this face
   represents, so it inherits the real page styling at the right size. */
.home-consultation-leaf-page .home-consultation-slide.category-item {
  position: absolute;
  inset: 0;
  grid-template-columns: 1fr;
  grid-template-rows: 100%;
  opacity: 1;
  visibility: visible;
}
.home-consultation-leaf-page .home-consultation-slide.show-image .category-item-body,
.home-consultation-leaf-page .home-consultation-slide.show-body .category-item-image {
  display: none;
}
.home-consultation-leaf-page .home-consultation-slide.show-image .category-item-image,
.home-consultation-leaf-page .home-consultation-slide.show-body .category-item-body {
  grid-column: 1;
  grid-row: 1;
  height: 100%;
}
/* Front = the right-hand content page that is being lifted. */
.home-consultation-leaf-front {
  transform: rotateY(0deg) translateZ(.6px);
}
/* Back = the left-hand image page of the next card. The leaf's own 180deg
   rotation and this face's 180deg cancel out, so the artwork already reads the
   right way round — do NOT add a scaleX counter-flip here, it would mirror the
   content. */
.home-consultation-leaf-back {
  transform: rotateY(180deg) translateZ(.6px);
  border-radius: 8px 0 0 8px;
}
.home-consultation-leaf.is-reverse .home-consultation-leaf-front {
  border-radius: 8px 0 0 8px;
}
.home-consultation-leaf.is-reverse .home-consultation-leaf-back {
  border-radius: 0 8px 8px 0;
}

/* Paper thickness: a stack of hairline slices standing on the fore-edge, so
   the leaf reads as a sheet with body rather than a zero-depth plane. */
.home-consultation-leaf-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 3px;
  z-index: 1;
  pointer-events: none;
  transform-origin: right center;
  transform: rotateY(-90deg);
  background: linear-gradient(180deg, #efe6d4, #fffdf8 30%, #efe6d4);
  box-shadow: 0 0 6px rgba(45,16,74,.3);
}
.home-consultation-leaf.is-reverse .home-consultation-leaf-edge {
  right: auto;
  left: 0;
  transform-origin: left center;
  transform: rotateY(90deg);
}

/* The curl. A leaf under tension is not flat: it lifts most in the middle of
   its free edge. This overlay darkens toward the spine and brightens along
   the lifting edge, and JS animates its opacity/position through the arc. */
.home-consultation-leaf-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(90deg,
      rgba(45,16,74,.42) 0%,
      rgba(45,16,74,.16) 18%,
      rgba(255,255,255,.10) 52%,
      rgba(255,255,255,.34) 86%,
      rgba(255,255,255,.5) 100%);
}
.home-consultation-leaf-back .home-consultation-leaf-shade {
  background:
    linear-gradient(90deg,
      rgba(255,255,255,.42) 0%,
      rgba(255,255,255,.16) 16%,
      rgba(45,16,74,.16) 56%,
      rgba(45,16,74,.4) 100%);
}

/* The shadow the raised leaf throws down onto the page beneath it. It sweeps
   across the spread and softens as the leaf rises away from the paper. */
.home-consultation-leaf-cast {
  position: absolute;
  /* Same page box as the leaf that throws it. */
  top: 0;
  bottom: 0;
  left: 50%;
  right: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(45,16,74,.5), rgba(45,16,74,.16) 55%, transparent);
}
.home-consultation-leaf-cast.is-reverse {
  left: 0;
  right: 50%;
  transform-origin: right center;
  background: linear-gradient(270deg, rgba(45,16,74,.5), rgba(45,16,74,.16) 55%, transparent);
}

/* --- dots --------------------------------------------------------------- */
.home-consultation-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 16px;
}
.home-consultation-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(107,33,168,.24);
  cursor: pointer;
  transition: width .2s ease, background .2s ease, transform .2s ease;
}
.home-consultation-dots button[aria-pressed="true"] {
  width: 30px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  transform: translateY(-1px);
}

/* --- responsive --------------------------------------------------------- */
/* Tablet: the book keeps both pages but gets taller and tighter. */
@media (max-width: 900px) {
  /* Narrow the arrow lane so the book keeps as much width as possible. */
  .home-consultation-viewport {
    padding-left: 44px;
    padding-right: 44px;
  }
  .home-consultation-book {
    aspect-ratio: 900 / 500;
    padding: 7px;
  }
  .home-consultation-book-spine {
    width: 34px;
  }
  .home-consultation-slide .category-item-body {
    padding: 22px 20px 22px 30px;
  }
  .home-consultation-slide .category-item-body h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }
  .home-consultation-slide .category-item-body p:not(.category-item-meta):not(.category-item-sub) {
    font-size: .93rem;
    line-height: 1.6;
    margin-bottom: 16px;
  }
}
/* Phone: a real book held open two-up is unreadable at this width, so the
   spread stacks — image above, content below — and the leaf hinges on the
   horizontal centre instead, which is still a page turn, just along X. */
@media (max-width: 640px) {
  .home-consultation-section {
    padding-left: 0;
    padding-right: 0;
  }
  .home-consultation-section .category-list-head {
    gap: 12px;
    align-items: flex-start;
  }
  /* Too narrow for an arrow lane, and overlaying them on a stacked book covers
     the copy. Drop them onto the dot row instead, where a thumb can reach both
     without hiding anything. */
  .home-consultation-arrow {
    position: static;
    width: 36px;
    height: 36px;
    transform: none;
  }
  .home-consultation-arrow:hover,
  .home-consultation-arrow:focus-visible {
    transform: scale(1.06);
  }
  .home-consultation-arrow-prev {
    order: 1;
  }
  .home-consultation-arrow-next {
    order: 3;
  }
  .home-consultation-carousel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }
  .home-consultation-viewport {
    order: 0;
    flex: 0 0 100%;
  }
  .home-consultation-dots {
    order: 2;
    margin-top: 0;
  }
  .home-consultation-viewport {
    padding-left: 0;
    padding-right: 0;
    perspective: 1400px;
    overflow: clip;
  }
  .home-consultation-book {
    aspect-ratio: 360 / 600;
    min-height: 600px;
    padding: 6px;
    border-radius: 12px;
  }
  .home-consultation-book::before,
  .home-consultation-book::after {
    top: auto;
    bottom: 3px;
    left: 14px;
    right: 14px;
    width: auto;
    height: 6px;
    background: repeating-linear-gradient(90deg, #fffdf8 0 2px, #e6dcc9 2px 3px);
  }
  .home-consultation-book::before { top: 3px; bottom: auto; }

  .home-consultation-track.category-list,
  .home-consultation-track.category-list.view-grid,
  .home-consultation-track.category-list.view-list,
  .home-consultation-slide.category-item {
    grid-template-columns: 1fr;
    grid-template-rows: 50% 50%;
  }
  /* Leaf clones stay single-cell here too — the face is already one half. */
  .home-consultation-leaf-page .home-consultation-slide.category-item {
    grid-template-rows: 100%;
  }
  /* Gutter runs across the page instead of down it. */
  .home-consultation-book-spine {
    top: 50%;
    bottom: auto;
    left: 6px;
    right: 6px;
    width: auto;
    height: 34px;
    transform: translateY(-50%);
    background: linear-gradient(180deg,
      rgba(255,255,255,0) 0%,
      rgba(76,29,117,.05) 26%,
      rgba(76,29,117,.18) 44%,
      rgba(45,16,74,.3) 50%,
      rgba(76,29,117,.18) 56%,
      rgba(76,29,117,.05) 74%,
      rgba(255,255,255,0) 100%);
  }
  .home-consultation-book-spine::after {
    top: 50%;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
    transform: translateY(-50%);
    background: linear-gradient(90deg,
      rgba(45,16,74,.1), rgba(45,16,74,.4) 18%, rgba(45,16,74,.4) 82%, rgba(45,16,74,.1));
  }
  .home-consultation-slide .category-item-image::after {
    background:
      linear-gradient(180deg, rgba(45,16,74,.2) 0%, transparent 18%),
      linear-gradient(0deg, rgba(45,16,74,.3) 0%, transparent 22%);
  }
  .home-consultation-slide .category-item-body {
    padding: 26px 22px 22px;
    background:
      radial-gradient(circle at 84% 6%, rgba(245,158,11,.16), transparent 32%),
      linear-gradient(180deg, #fdf7ec 0%, #fffdf8 16%, #fbf6ff 100%);
  }
  .home-consultation-slide .category-item-body::before {
    background: linear-gradient(180deg, rgba(45,16,74,.22) 0%, rgba(45,16,74,.04) 8%, transparent 22%);
  }
  .home-consultation-slide .category-item-body h3 {
    font-size: 1.35rem;
  }
  .home-consultation-slide .category-item-topline,
  .home-consultation-slide .category-item-actions {
    align-items: flex-start;
  }

  /* Leaf hinges on the horizontal gutter and rotates about X. */
  .home-consultation-leaf {
    top: 50%;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    transform-origin: center top;
    transform: rotateX(0deg);
  }
  .home-consultation-leaf.is-reverse {
    top: 0;
    bottom: 50%;
    right: 0;
    transform-origin: center bottom;
  }
  .home-consultation-leaf-face {
    border-radius: 0 0 8px 8px;
  }
  .home-consultation-leaf-front {
    transform: rotateX(0deg) translateZ(.6px);
  }
  /* As on desktop, the leaf's rotation and the face's rotation cancel, so the
     content needs no counter-flip. */
  .home-consultation-leaf-back {
    transform: rotateX(180deg) translateZ(.6px);
    border-radius: 8px 8px 0 0;
  }
  .home-consultation-leaf.is-reverse .home-consultation-leaf-front {
    border-radius: 8px 8px 0 0;
  }
  .home-consultation-leaf.is-reverse .home-consultation-leaf-back {
    border-radius: 0 0 8px 8px;
  }
  .home-consultation-leaf-edge {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: 3px;
    transform-origin: center bottom;
    transform: rotateX(90deg);
  }
  .home-consultation-leaf.is-reverse .home-consultation-leaf-edge {
    top: 0;
    bottom: auto;
    left: 0;
    transform-origin: center top;
    transform: rotateX(-90deg);
  }
  .home-consultation-leaf-shade {
    background: linear-gradient(180deg,
      rgba(45,16,74,.42) 0%,
      rgba(45,16,74,.16) 18%,
      rgba(255,255,255,.1) 52%,
      rgba(255,255,255,.34) 86%,
      rgba(255,255,255,.5) 100%);
  }
  .home-consultation-leaf-back .home-consultation-leaf-shade {
    background: linear-gradient(180deg,
      rgba(255,255,255,.42) 0%,
      rgba(255,255,255,.16) 16%,
      rgba(45,16,74,.16) 56%,
      rgba(45,16,74,.4) 100%);
  }
  .home-consultation-leaf-cast {
    top: 50%;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    transform-origin: center top;
    background: linear-gradient(180deg, rgba(45,16,74,.5), rgba(45,16,74,.16) 55%, transparent);
  }
  .home-consultation-leaf-cast.is-reverse {
    top: 0;
    bottom: 50%;
    right: 0;
    transform-origin: center bottom;
    background: linear-gradient(0deg, rgba(45,16,74,.5), rgba(45,16,74,.16) 55%, transparent);
  }
}

/* Users who ask for less motion get an instant, non-rotating page change. */
@media (prefers-reduced-motion: reduce) {
  .home-consultation-leaf,
  .home-consultation-leaf-cast {
    display: none;
  }
  .home-consultation-arrow,
  .home-consultation-book-btn,
  .home-consultation-book-btn span {
    transition: none;
  }
}
.table-panel {
  overflow: hidden;
}
.table-panel-head,
.cart-total-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(107, 33, 168, .1);
}
.table-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.inline-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.table-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--color-primary);
  border-radius: 999px;
  color: var(--color-primary);
  background: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.table-icon-btn:hover,
.table-icon-btn:focus-visible {
  color: #fff;
  background: var(--color-primary);
  box-shadow: 0 10px 22px rgba(107, 33, 168, .2);
  transform: translateY(-1px);
}
.icon-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 180;
  padding: 7px 10px;
  border-radius: 9px;
  color: #fff;
  background: #2f1248;
  box-shadow: 0 12px 26px rgba(47, 18, 72, .22);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}
.icon-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  z-index: 179;
  width: 9px;
  height: 9px;
  background: #2f1248;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 4px) rotate(45deg);
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}
.icon-tooltip:hover::after,
.icon-tooltip:focus-visible::after,
.icon-tooltip:hover::before,
.icon-tooltip:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.icon-tooltip:hover::before,
.icon-tooltip:focus-visible::before {
  transform: translate(-50%, 0) rotate(45deg);
}
.message-layout {
  display: block;
}
.astrology-chat-shell {
  --customer-chat-height: clamp(640px, calc(100dvh - 190px), 1100px);
  padding: 20px 24px 28px;
}
.astrology-chat-shell > .container { max-width: 1600px; }
.message-layout.has-conversations {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border: 1px solid #e8e2f0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(48, 26, 76, .09);
}
.customer-chat-sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: var(--customer-chat-height);
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-right: 1px solid #eee9f4 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.customer-chat-sidebar-heading { display: grid; gap: 16px; padding: 24px 20px 18px; }
.customer-chat-sidebar-heading > strong { color: #302140; font-size: 1.25rem; }
.customer-chat-types { display: flex; gap: 5px; padding: 4px; border-radius: 11px; background: #f5f2f9; }
.customer-chat-types a { flex: 1; padding: 7px 12px; border-radius: 8px; text-align: center; color: #776984; font-size: .82rem; }
.customer-chat-types a.is-active { background: #fff; color: #6b21a8; box-shadow: 0 2px 6px #38204f0d; }
.customer-chat-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #eee9f4; border-radius: 10px; color: #9a8ba6; background: #faf9fc; }
.customer-chat-search:focus-within { border-color: #b895dc; }
.customer-chat-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: .8rem; color: #433653; }
.customer-chat-conversations { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 12px; scrollbar-width: thin; scrollbar-color: #d8cbe4 transparent; }
.customer-chat-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 3px 0;
  padding: 14px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #433653;
  text-decoration: none;
}
.customer-chat-contact[hidden] { display: none; }
.customer-chat-contact:hover,
.customer-chat-contact:focus-visible { background: #faf7fd; }
.customer-chat-contact.is-active { background: #f2eafa; border-color: #e9daf7; }
.customer-chat-avatar { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: #eee5f8; color: #713da3; font-size: 1rem; font-weight: 700; }
.customer-chat-avatar.has-image > span { visibility: hidden; }
.customer-chat-avatar > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center top; border-radius: inherit; background: #eee5f8; }
.customer-chat-avatar.is-header { width: 50px; height: 50px; flex-basis: 50px; }
.customer-chat-avatar.is-translator { width: 34px; height: 34px; flex-basis: 34px; font-size: .8rem; }
.customer-chat-contact-body { display: grid; flex: 1; gap: 4px; min-width: 0; }
.customer-chat-contact-heading { display: flex; align-items: center; gap: 8px; }
.customer-chat-contact-heading strong { flex: 1; min-width: 0; font-size: .87rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.customer-chat-unread { flex-shrink: 0; padding: 2px 6px; border-radius: 999px; background: #7e22ce; color: #fff; font-size: .68rem; font-weight: 700; }
.customer-chat-reference { font-size: .69rem; color: #8a789a; font-weight: 500; }
.customer-chat-search-empty { padding: 20px 12px; color: #82758f; text-align: center; font-size: .85rem; }
.customer-chat-sender { display: block; margin-bottom: 5px; color: #8052a2; font-size: .72rem; font-weight: 600; }
.astrology-chat-shell .chat-card { min-width: 0; border: 0; border-radius: 0; box-shadow: none; }
.astrology-chat-shell .chat-window-head { min-height: 88px; padding: 18px 28px; border-bottom: 1px solid #eee9f4; background: #fff; color: #352340; }
.astrology-chat-shell .chat-head-avatar { width: 50px; height: 50px; flex-basis: 50px; border: 0; }
.astrology-chat-shell .chat-head-info { min-width: 0; }
.astrology-chat-shell .chat-head-info strong { color: #352340; font-size: 1.1rem; }
.astrology-chat-shell .chat-head-info > span { display: block; margin-top: 5px; color: #92819f; font-size: .75rem; opacity: 1; }
.customer-chat-translator { display: flex; align-items: center; gap: 9px; margin-left: auto; padding-left: 20px; border-left: 1px solid #eee9f4; }
.customer-chat-translator > span { display: grid; gap: 3px; }
.customer-chat-translator small { color: #96869f; font-size: .66rem; }
.customer-chat-translator strong { color: #66516f; font-size: .8rem; font-weight: 600; }
.astrology-chat-shell .chat-compose { padding: 18px 24px; }
.astrology-chat-shell .chat-input { min-width: 0; min-height: 48px; padding: 13px 18px; border-radius: 14px; border-color: #e9e1f0; background: #faf9fc; }
.astrology-chat-shell .chat-icon-btn { width: 44px; height: 48px; border-radius: 12px; background: transparent; color: #8d729f; }
.astrology-chat-shell .chat-icon-btn:hover { background: #f5effb; }
.astrology-chat-shell .chat-send-btn { width: 48px; height: 48px; border-radius: 14px; background: #7029ae; box-shadow: 0 4px 12px #7029ae26; }
.astrology-chat-shell .message-bubble { padding: 12px 16px 9px; border-radius: 15px; font-size: .98rem; box-shadow: 0 3px 10px #30214006; }
.astrology-chat-shell .message-bubble.is-user { background: #eee0fb; }
.customer-chat-empty i { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 24px; color: #a278c1; background: #efe7f6; font-size: 1.8rem; }
.customer-chat-empty strong { margin-bottom: 8px; color: #6b527a; font-size: 1.05rem; }
.customer-chat-empty > span { color: #a18fae; font-size: .88rem; }
.chat-card {
  width: 100%;
  padding: 0 !important;
  overflow: hidden;
}
.chat-window {
  display: flex;
  flex-direction: column;
  min-height: 560px;
}
/* Chat header */
.chat-window-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #6b21a8, #4c1d95);
  color: #fff;
}
.chat-head-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  border: 2px solid rgba(255,255,255,.35);
  text-decoration: none;
}
.chat-head-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-head-info strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.chat-head-info span { font-size: .78rem; opacity: .85; }
/* Thread with chat wallpaper */
.message-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 360px;
  max-height: 60vh;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding: 20px;
  background:
    radial-gradient(circle at 15% 12%, rgba(245, 158, 11, .07), transparent 26%),
    radial-gradient(circle at 85% 88%, rgba(107, 33, 168, .06), transparent 28%),
    #f6efe6;
}
.astrology-chat-shell .chat-window {
  height: var(--customer-chat-height);
  min-height: 0;
}
.astrology-chat-shell .message-thread {
  max-height: none;
  min-height: 0;
  gap: 12px;
  padding: 28px clamp(20px, 3vw, 48px);
  background: radial-gradient(ellipse at 80% 10%, #f1ecf860, transparent 55%), #f8f7fb;
}
.message-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 82%;
  animation: chatBubbleIn .18s ease;
}
.message-row.is-user { align-self: flex-end; flex-direction: row; justify-content: flex-end; }
.message-row.is-admin { align-self: flex-start; }
.message-row.is-pending { opacity: .72; }
.message-row.is-failed .message-bubble { border-color: #dc2626; }
.message-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e9d5ff;
  color: #4c1d95;
  font-weight: 800;
  font-size: .8rem;
  margin-bottom: 2px;
}
.message-avatar.is-self { background: #fde68a; color: #92400e; }
.message-avatar img { width: 100%; height: 100%; object-fit: cover; }
.message-bubble {
  position: relative;
  max-width: 100%;
  padding: 9px 12px 6px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(107,33,168,.08);
  box-shadow: 0 2px 6px rgba(31,22,46,.06);
}
.message-bubble.is-admin { border-top-left-radius: 3px; }
.message-bubble.is-user {
  background: #e7d6ff;
  border-top-right-radius: 3px;
}
/* bubble tails */
.message-bubble.is-admin::before {
  content: "";
  position: absolute;
  left: -6px; top: 0;
  border: 6px solid transparent;
  border-top-color: #fff;
  border-right: 0;
}
.message-bubble.is-user::after {
  content: "";
  position: absolute;
  right: -6px; top: 0;
  border: 6px solid transparent;
  border-top-color: #e7d6ff;
  border-left: 0;
}
.message-bubble strong {
  display: block;
  margin-bottom: 3px;
  color: #4c1d95;
  font-size: .9rem;
}
.message-bubble p {
  margin: 0;
  color: var(--color-text);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.message-bubble small {
  display: block;
  margin-top: 3px;
  color: var(--color-muted);
  font-size: .68rem;
  font-weight: 700;
  text-align: right;
}
.message-bubble small .bi { font-size: .8rem; vertical-align: -1px; }
.message-bubble small .bi.is-read { color: #2563eb; }
.empty-state {
  margin: auto;
  text-align: center;
  color: var(--color-muted);
}
.empty-state strong { display: block; }
.message-thread:has(.message-row) .empty-state {
  display: none;
}
/* Chat attachments */
.chat-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 2px;
}
.chat-attachment-image {
  display: block;
  max-width: 210px;
  border-radius: 10px;
  overflow: hidden;
}
.chat-attachment-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.chat-attachment-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 240px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(107,33,168,.08);
  color: #4c1d95;
  font-weight: 700;
  font-size: .82rem;
  text-decoration: none;
}
.chat-attachment-file .bi { font-size: 1.15rem; }
.chat-attachment-file span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Compose bar */
.chat-compose {
  margin: 0;
  padding: 12px 16px 14px;
  background: #fff;
  border-top: 1px solid rgba(107,33,168,.1);
}
.chat-subject {
  width: 100%;
  margin-bottom: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(107,33,168,.16);
  border-radius: 10px;
  outline: none;
}
.chat-attachment-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.chat-preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 260px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(107,33,168,.07);
  font-size: .75rem;
  color: #4c1d95;
}
.chat-preview-chip img { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; }
.chat-preview-chip .bi { font-size: 1.2rem; }
.chat-preview-chip small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-preview-actions {
  display: inline-flex;
  gap: 4px;
  margin-left: auto;
}
.chat-preview-action {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(107,33,168,.1);
  color: #5b21b6;
  cursor: pointer;
  font-size: .8rem;
}
.chat-preview-action:hover { background: rgba(107,33,168,.2); }
.chat-booking-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 6px;
  max-height: 100px;
  overflow-y: auto;
  padding: 7px 10px;
  margin-bottom: 8px;
  border-top: 1px solid rgba(107,33,168,.12);
  background: transparent;
}
.chat-booking-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  width: 100%;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #9ca3af;
}
.chat-booking-hint .bi {
  font-size: .75rem;
  color: #a78bfa;
}
.chat-booking-hint small {
  flex: 1 1 100%;
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #9ca3af;
}
.chat-booking-group {
  display: contents;
}
.chat-booking-group-title {
  display: none;
}
.chat-booking-chips {
  display: contents;
}
.chat-booking-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid rgba(107,33,168,.2);
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  line-height: 1.5;
}
.chat-booking-chip strong {
  font-size: .7rem;
  font-weight: 600;
  color: #5b21b6;
}
.chat-booking-chip span {
  display: none;
}
.chat-booking-chip:hover {
  border-color: rgba(107,33,168,.4);
  background: rgba(107,33,168,.06);
}
.chat-compose-bar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.chat-icon-btn {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(107,33,168,.08);
  color: #6b21a8;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background .15s ease;
}
.chat-icon-btn:hover { background: rgba(107,33,168,.16); }
.chat-input {
  flex: 1 1 auto;
  min-height: 42px;
  max-height: 130px;
  padding: 10px 16px;
  border: 1px solid rgba(107,33,168,.16);
  border-radius: 22px;
  resize: none;
  outline: none;
  font: inherit;
  line-height: 1.4;
}
.chat-send-btn {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(217,119,6,.28);
  transition: transform .12s ease;
}
.chat-send-btn:hover { transform: scale(1.05); }
.chat-camera-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .72);
}
.chat-camera-box {
  width: min(560px, 100%);
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}
.chat-camera-box video {
  display: block;
  width: 100%;
  max-height: 68vh;
  background: #000;
}
.chat-camera-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 14px;
  background: #fff;
}
.chat-camera-actions button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
}
.chat-camera-capture { background: #6b21a8; color: #fff; }
.chat-camera-close { background: rgba(107,33,168,.08); color: #4c1d95; }
@keyframes chatBubbleIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
  .message-layout { grid-template-columns: 1fr; }
  .astrology-chat-shell { --customer-chat-height: max(560px, calc(100dvh - 180px)); padding: 12px 10px 24px; }
  .message-layout.has-conversations { grid-template-columns: minmax(0, 1fr); border-radius: 16px; }
  .customer-chat-sidebar { height: auto; border-right: 0 !important; border-bottom: 1px solid #eee9f4 !important; }
  .customer-chat-sidebar-heading { gap: 10px; padding: 16px; grid-template-columns: 1fr 150px; align-items: center; }
  .customer-chat-search { grid-column: 1 / -1; }
  .customer-chat-conversations { flex: auto; max-height: 190px; padding: 0 8px 8px; }
  .customer-chat-contact { padding: 10px; }
  .astrology-chat-shell .chat-window-head { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .astrology-chat-shell .chat-head-info { flex: 1; }
  .customer-chat-translator { width: 100%; margin-left: 0; padding: 10px 0 0 62px; border-left: 0; border-top: 1px solid #f2edf7; }
  .astrology-chat-shell .chat-compose { padding: 12px 10px; }
  .astrology-chat-shell .chat-compose-bar { gap: 4px; }
  .astrology-chat-shell .chat-icon-btn { width: 34px; }
  .astrology-chat-shell .message-thread { padding: 18px 14px; }
  .astrology-chat-shell .message-row { max-width: 94%; }
  .message-row { max-width: 90%; }
}
.message-compose {
  margin-top: 16px;
}
.table-filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #dbe4f0;
  background: #f8fafc;
  color: #172033;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .92rem;
  line-height: 1;
  cursor: pointer;
}
.table-filter-toggle i {
  font-size: .92rem;
  line-height: 1;
}
.table-filter-toggle span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.table-filter-panel {
  display: none;
  padding: 18px 20px;
  border-bottom: 1px solid #dbe4f0;
  background: #fff;
}
.table-filter-panel.open { display: block; }
.table-filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 14px;
  align-items: end;
}
.table-filter-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  grid-column: 1 / -1;
  margin-top: 4px;
}
.table-filter-actions .btn {
  min-height: 36px;
  padding: 8px 16px;
  font-size: .9rem;
  white-space: nowrap;
}
.table-filter-field label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: #52637a;
  margin-bottom: 6px;
}
.table-filter-field input,
.table-filter-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1.5px solid #dbe4f0;
  border-radius: 8px;
  color: #172033;
  background: #fff;
  box-sizing: border-box;
}
.table-filter-field input:focus,
.table-filter-field select:focus {
  outline: none;
  border-color: #6d3df2;
  box-shadow: 0 0 0 3px rgba(109, 61, 242, .14);
}
.naadi-date-field { position: relative; }
.naadi-date-field .form-control,
.naadi-date-field input {
  padding-right: 44px;
}
.naadi-date-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6d3df2;
  cursor: pointer;
}
.naadi-date-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 80;
  width: 310px;
  max-width: calc(100vw - 42px);
  overflow: hidden;
  border: 1px solid #d9d4ff;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(66, 49, 120, .22);
}
.naadi-date-head {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
}
.naadi-date-head::before {
  content: "";
  position: absolute;
  left: 38px;
  top: -28px;
  width: 168px;
  height: 118px;
  border-radius: 0 0 96px 96px;
  background: rgba(255,255,255,.08);
  box-shadow: 56px 0 0 rgba(255,255,255,.06);
  pointer-events: none;
}
.naadi-date-title { position: relative; z-index: 1; text-align: center; font-size: 1.04rem; font-weight: 800; letter-spacing: 0; }
.naadi-date-title span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 12px;
  margin-left: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.22);
  font-size: .9rem;
}
.naadi-date-nav {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}
.naadi-date-week,
.naadi-date-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.naadi-date-week {
  padding: 12px 18px 4px;
  color: #8b9ab8;
  font-size: .72rem;
  font-weight: 800;
  text-align: center;
}
.naadi-date-week span:first-child,
.naadi-date-week span:last-child { color: #ff4b55; }
.naadi-date-days { gap: 3px; padding: 4px 18px 10px; }
.naadi-date-day {
  min-width: 0;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #172033;
  font-weight: 600;
  cursor: pointer;
}
.naadi-date-day.is-muted { color: #b5bee0; }
.naadi-date-day.is-weekend { color: #ef4444; }
.naadi-date-day.is-today { background: #eef2ff; color: #4f46e5; box-shadow: none; }
.naadi-date-day.is-selected { background: #6d3df2; color: #fff; box-shadow: 0 6px 14px rgba(109, 61, 242, .28); }
.naadi-date-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid #eef2f7;
}
.naadi-date-actions button {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid #dbe4f0;
  background: #fff;
  color: #64748b;
  font-weight: 800;
  cursor: pointer;
}
.naadi-date-actions .is-primary {
  background: #6d3df2;
  border-color: #6d3df2;
  color: #fff;
  box-shadow: 0 8px 16px rgba(109, 61, 242, .26);
}
.cdp-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 90;
  width: 310px;
  max-width: calc(100vw - 42px);
  overflow: hidden;
  border: 1px solid #d9d4ff;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(66, 49, 120, .22);
}
.cdp-nav-row {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 10px 10px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
}
.cdp-nav-row::before {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  top: -44px;
  right: -18px;
  pointer-events: none;
}
.cdp-nav-row::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  bottom: -28px;
  left: 24px;
  pointer-events: none;
}
.cdp-btn-nav,
.cdp-title {
  position: relative;
  z-index: 1;
}
.cdp-btn-nav {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  background: rgba(255,255,255,.14);
  color: #fff;
  cursor: pointer;
}
.cdp-prev i::before { content: "<"; font-style: normal; font-size: 1.1rem; }
.cdp-next i::before { content: ">"; font-style: normal; font-size: 1.1rem; }
.cdp-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  font-size: 1.08rem;
}
.cdp-month-lbl {
  color: #fff;
  cursor: pointer;
  padding: 3px 10px;
  border-radius: 10px;
  transition: background .14s;
}
.cdp-month-lbl:hover { background: rgba(255,255,255,.18); }
.cdp-yr-sep { opacity: .6; }
.cdp-year-lbl {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.22);
  font-size: .9rem;
  cursor: pointer;
  transition: background .14s, color .14s;
}
.cdp-year-lbl:hover {
  background: rgba(255,255,255,.28);
  color: #fff;
}
.cdp-body { background: #fff; }
.cdp-weekdays,
.cdp-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cdp-weekdays {
  padding: 14px 18px 4px;
  color: #9aa7ff;
  font-size: .68rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}
.cdp-weekdays .cdp-wday:first-child,
.cdp-weekdays .cdp-wday:last-child { color: #ff7070; }
.cdp-days-grid {
  gap: 3px;
  padding: 4px 18px 10px;
}
.cdp-months-grid,
.cdp-years-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 18px 12px;
}
.cdp-cell {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #172033;
  font-weight: 700;
  cursor: pointer;
}
.cdp-month,
.cdp-year {
  width: auto;
  height: auto;
  min-height: 38px;
  padding: 9px 4px;
  border-radius: 10px;
  font-size: .79rem;
}
.cdp-cell:hover {
  background: #eef2ff !important;
  color: #4338ca !important;
}
.cdp-other { color: #b9a8ff; }
.cdp-weekend { color: #ff1f2d; }
.cdp-today { background: #eef2ff; color: #4f46e5; }
.cdp-selected {
  background: linear-gradient(135deg,#4f46e5,#7c3aed) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(109, 61, 242, .3);
}
.cdp-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid #eef2f7;
}
.cdp-footer button {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid #dbe4f0;
  background: #fff;
  color: #64748b;
  font-weight: 900;
  cursor: pointer;
}
.cdp-footer .cdp-btn-today,
.cdp-footer .cdp-btn-ok {
  background: #6d3df2;
  border-color: #6d3df2;
  color: #fff;
  box-shadow: 0 8px 16px rgba(109, 61, 242, .26);
}
.select2-container { width: 100% !important; }
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  min-height: 44px;
  border: 1.5px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
}
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--multiple {
  border-color: #6d3df2;
  box-shadow: 0 0 0 3px rgba(109, 61, 242, .14);
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 42px;
  padding-left: 14px;
  color: #172033;
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; right: 8px; }
.select2-dropdown {
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .14);
  overflow: hidden;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1.5px solid #dbe4f0;
  border-radius: 8px;
  padding: 9px 12px;
}
.select2-container--default .select2-results__option { padding: 10px 14px; }
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: #6d3df2;
  color: #fff;
}
.select2-container .select2-choice {
  height: 44px;
  border: 1.5px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
  background-image: none;
  color: #172033;
  line-height: 42px;
  box-shadow: none;
}
.select2-container .select2-choice > .select2-chosen {
  line-height: 42px;
  margin-right: 38px;
  color: #172033;
}
.select2-container .select2-choice .select2-arrow {
  width: 38px;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: #fff;
  background-image: none;
}
.select2-container-active .select2-choice,
.select2-dropdown-open .select2-choice {
  border-color: #6d3df2;
  box-shadow: 0 0 0 3px rgba(109, 61, 242, .14);
}
.select2-drop {
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .14);
  overflow: hidden;
}
.select2-search input {
  min-height: 38px;
  border: 1.5px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
}
.select2-results .select2-result-label { padding: 10px 14px; }
.select2-results .select2-highlighted {
  background: #6d3df2;
  color: #fff;
}
.select2-container-multi .select2-choices {
  min-height: 44px;
  border: 1.5px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
  background-image: none;
}
.select2-container-multi.select2-container-active .select2-choices {
  border-color: #6d3df2;
  box-shadow: 0 0 0 3px rgba(109, 61, 242, .14);
}
.select2-container-multi .select2-choices .select2-search-choice {
  margin-top: 7px;
  border: 0;
  border-radius: 8px;
  background: #6d3df2;
  background-image: none;
  color: #fff;
  box-shadow: 0 6px 14px rgba(109, 61, 242, .2);
}
.naadi-time-field { position: relative; }
.naadi-time-field .form-control,
.naadi-time-field input {
  padding-right: 44px;
}
.naadi-time-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #172033;
  cursor: pointer;
}
.naadi-time-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 80;
  width: 310px;
  max-width: calc(100vw - 42px);
  overflow: hidden;
  border: 1px solid #d9d4ff;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(66, 49, 120, .22);
}
.naadi-time-head {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  font-size: 1.34rem;
  font-weight: 900;
  letter-spacing: .06em;
}
.naadi-time-head::before {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  top: -44px;
  right: -18px;
  pointer-events: none;
}
.naadi-time-head::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  bottom: -28px;
  left: 24px;
  pointer-events: none;
}
.naadi-time-head > * {
  position: relative;
  z-index: 1;
}
.naadi-time-head span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 2px 12px;
  margin-left: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  font-size: .84rem;
  letter-spacing: 0;
}
.naadi-time-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  max-height: 170px;
  border-bottom: 1px solid #eef2f7;
}
.naadi-time-column {
  max-height: 170px;
  overflow-y: auto;
  padding: 12px 10px;
  border-right: 1px solid #eef2f7;
}
.naadi-time-column:last-child { border-right: 0; }
.naadi-time-column::-webkit-scrollbar { width: 5px; }
.naadi-time-column::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
.naadi-time-option {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #172033;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
}
.naadi-time-option.is-selected {
  background: #4f46e5;
  color: #fff;
  box-shadow: 0 8px 18px rgba(79, 70, 229, .28);
}
.naadi-time-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px 12px;
}
.naadi-time-actions button {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid #dbe4f0;
  background: #fff;
  color: #64748b;
  font-weight: 800;
  cursor: pointer;
}
.naadi-time-actions .is-primary {
  background: #6d3df2;
  border-color: #6d3df2;
  color: #fff;
  box-shadow: 0 8px 16px rgba(109, 61, 242, .26);
}
.table-panel-head h2,
.table-panel-head h3,
.cart-total-bar h3,
.summary-card h3 {
  margin: 0;
  letter-spacing: 0;
  font-size:25px ;
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
.table {
  margin: 0;
}
.table th {
  color: var(--color-primary-dark);
  background: #fff7e8;
  border-bottom: 1px solid rgba(107, 33, 168, .12);
  white-space: nowrap;
}
.table td {
  vertical-align: middle;
}
.dashboard-panel .table-panel {
  border: 1px solid rgba(107, 33, 168, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 22px 55px rgba(55, 22, 86, .08);
}
.dashboard-panel .table-panel-head {
  align-items: center;
  background: linear-gradient(180deg, #fff 0%, #fffaf2 100%);
}
.dashboard-panel .table-panel-head .form-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f7efff;
  color: #5b3d71;
  font-weight: 800;
}
.dashboard-panel .table {
  min-width: 820px;
  table-layout: fixed;
}
.dashboard-panel[data-dashboard-panel="orders"] .table {
  min-width: 720px;
}
.dashboard-panel[data-dashboard-panel="bookings"] .table,
.dashboard-panel[data-dashboard-panel="payments"] .table {
  min-width: 840px;
}
.dashboard-panel[data-dashboard-panel="astrology"] .table {
  min-width: 1080px;
}
.dashboard-panel .table th,
.dashboard-panel .table td {
  text-align: center;
  vertical-align: middle;
}
.dashboard-panel .table th {
  padding: 15px 14px;
  font-size: .82rem;
  letter-spacing: 0;
  text-transform: uppercase;
}
.dashboard-panel .table td {
  height: 64px;
  padding: 14px;
  color: #241a32;
}
.dashboard-panel .table tbody tr {
  transition: background .16s ease, box-shadow .16s ease;
}
.dashboard-panel .table tbody tr:hover {
  background: #fffaf3;
  box-shadow: inset 4px 0 0 rgba(245, 158, 11, .72);
}
.dashboard-panel .cart-item-title {
  display: inline-flex;
  max-width: 100%;
  justify-content: center;
  color: var(--color-primary-dark);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.dashboard-panel .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 24px;
  padding: 4px 11px;
  line-height: 1;
}
.dashboard-panel .inline-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-wrap: nowrap;
}
.dashboard-panel .table-icon-btn {
  flex: 0 0 38px;
  box-shadow: 0 8px 18px rgba(107, 33, 168, .08);
}
.dashboard-panel .table-note {
  display: inline-flex;
  max-width: 112px;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}
.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 18px;
  border-top: 1px solid #e7ecf5;
  background: #f9fafc;
  border-radius: 0 0 14px 14px;
}
.pagination-summary {
  font-size: .85rem;
  font-weight: 700;
  color: #52637a;
}
.pagination-bar-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.pagination-size-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 700;
  color: #52637a;
  white-space: nowrap;
}
.pagination-size-select {
  min-height: 38px;
  padding: 6px 30px 6px 12px;
  border: 1.5px solid #dbe4f0;
  border-radius: 8px;
  color: #172033;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
  appearance: auto;
}
.pagination-size-select:focus {
  outline: none;
  border-color: #6d3df2;
  box-shadow: 0 0 0 3px rgba(109, 61, 242, .14);
}
.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pagination .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 14px;
  border: 1.5px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
  color: #52637a;
  font-size: 13px;
  font-weight: 700;
}
.pagination .btn:hover:not(:disabled) {
  border-color: #6d3df2;
  color: #6d3df2;
  background: rgba(109, 61, 242, .08);
}
.pagination .btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.pagination-page-info {
  font-size: .82rem;
  font-weight: 700;
  color: #172033;
  padding: 0 6px;
  white-space: nowrap;
}
.pagination-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid #dbe4f0;
  border-top-color: #6d3df2;
  border-radius: 50%;
  animation: pagination-spin .7s linear infinite;
}
@keyframes pagination-spin {
  to { transform: rotate(360deg); }
}
.pagination-error {
  flex-basis: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: .85rem;
  font-weight: 600;
}
[data-pagination].is-pagination-loading {
  position: relative;
}
[data-pagination].is-pagination-loading [data-pagination-rows],
[data-pagination].is-pagination-loading [data-pagination-cards] {
  opacity: .5;
  pointer-events: none;
  transition: opacity .15s ease;
}
.dashboard-record-panel .table-responsive {
  display: none;
}
.dashboard-record-panel[data-current-view="list"] .table-responsive,
.dashboard-record-panel.is-list-view .table-responsive {
  display: block;
}
.dashboard-record-panel[data-current-view="list"] .dashboard-card-grid,
.dashboard-record-panel.is-list-view .dashboard-card-grid {
  display: none;
}
.dashboard-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(107, 33, 168, .12);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(107, 33, 168, .08);
}
.dashboard-view-toggle button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-primary-dark);
  cursor: pointer;
  font-size: 1.04rem;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.dashboard-view-toggle button.active {
  color: #fff;
  background: var(--color-primary);
  box-shadow: 0 8px 18px rgba(107, 33, 168, .24);
}
.dashboard-view-toggle button:hover,
.dashboard-view-toggle button:focus-visible {
  transform: translateY(-1px);
}
.dashboard-view-toggle .icon-tooltip::after {
  top: calc(100% + 10px);
  bottom: auto;
  z-index: 260;
  transform: translate(-50%, -4px);
}
.dashboard-view-toggle .icon-tooltip::before {
  top: calc(100% + 5px);
  bottom: auto;
  z-index: 259;
  transform: translate(-50%, -4px) rotate(45deg);
}
.dashboard-view-toggle .icon-tooltip:hover::after,
.dashboard-view-toggle .icon-tooltip:focus-visible::after {
  transform: translate(-50%, 0);
}
.dashboard-view-toggle .icon-tooltip:hover::before,
.dashboard-view-toggle .icon-tooltip:focus-visible::before {
  transform: translate(-50%, 0) rotate(45deg);
}
.dashboard-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 250, 245, .5) 0%, rgba(255, 255, 255, .96) 100%);
}
/* Block + floated media so the body content wraps around the image and
   reclaims the empty space below it instead of leaving a dead column. */
.dashboard-record-card {
  display: block;
  height: 100%;
  padding: 16px;
  border: 1px solid rgba(107, 33, 168, .12);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff 0%, #fffaf5 100%);
  box-shadow: 0 16px 34px rgba(55, 22, 86, .08);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.dashboard-record-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, .36);
  box-shadow: 0 22px 44px rgba(55, 22, 86, .13);
}
.record-card-media {
  position: relative;
  overflow: hidden;
  float: left;
  width: 96px;
  aspect-ratio: 1 / 1;
  margin: 0 13px 9px 0;
  border-radius: 12px;
  border: 1px solid rgba(107, 33, 168, .1);
  background: #fff7e8;
  cursor: zoom-in;
}
.record-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .18s ease;
}
.record-card-media:hover img {
  transform: scale(1.035);
}
.record-card-media.is-avatar {
  border-radius: 12px;
  background: radial-gradient(circle at 50% 28%, #fff7df 0%, #f7efff 70%);
}
.record-card-media.is-avatar img {
  object-position: center top;
}
.record-card-media span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 8px 6px;
  background: linear-gradient(180deg, rgba(47, 18, 72, 0) 0%, rgba(47, 18, 72, .86) 60%);
  color: #fff;
  font-size: .58rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .02em;
}
/* Block (not flex) — a flex container would sit beside the float instead of
   letting its rows wrap around it. Child spacing uses margins, not gap. */
.record-card-body {
  display: block;
  min-width: 0;
}
.record-card-body > * + * {
  margin-top: 10px;
}
/* Clear the float once the top rows have flowed past the image, so the
   full-width rows below start at the card's left edge. */
.record-card-body::after {
  content: '';
  display: block;
  clear: both;
}
.record-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 24px;
}
.record-ref {
  min-width: 0;
  color: var(--color-primary-dark);
  font-size: .84rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.record-card-body h3 {
  margin: 0;
  color: #23162d;
  font-size: 1.02rem;
  line-height: 1.3;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
/* Not a grid: a grid container would sit entirely beside the float. Inline
   chips flow line-by-line, so the first rows wrap next to the image and the
   later ones spread into the full card width under it. */
.record-meta-grid {
  display: block;
  margin: 0 -3px;
  font-size: 0;
}
.record-meta-grid > span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: calc(100% - 6px);
  min-height: 34px;
  margin: 3px;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(107, 33, 168, .06);
  color: #4d3c60;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  vertical-align: top;
}
.record-meta-grid i {
  flex: 0 0 auto;
  color: var(--color-primary);
}
.record-meta-grid .record-amount-chip {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: calc(100% - 6px);
  min-height: 34px;
  margin: 3px;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(245, 158, 11, .16) 0%, rgba(107, 33, 168, .09) 100%);
  color: #4d3c60;
  vertical-align: top;
}
.record-amount-text {
  min-width: 0;
  color: inherit;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.25;
}
.record-amount-info {
  width: 26px;
  height: 26px;
  min-width: 26px;
  padding: 0;
  font-size: .72rem;
  border-width: 1px;
}
.record-amount-info i {
  color: inherit;
  font-size: .72rem;
}
.payment-detail-amount-breakdown {
  margin-top: 16px;
}
.dashboard-booking-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.booking-stage-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(107, 33, 168, .22);
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary);
  font-size: .85rem;
  line-height: 1;
  cursor: pointer;
}
.booking-stage-info:hover,
.booking-stage-info:focus-visible {
  background: #f7efff;
  border-color: var(--color-primary);
}
/* Keep actions beside the image while there is room. */
.record-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px dashed rgba(107, 33, 168, .14);
}
.record-card-actions .table-note {
  max-width: none;
  min-height: 34px;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  background: #f7efff;
  font-size: .76rem;
  white-space: nowrap;
}
.record-card-actions .btn-sm {
  margin-left: auto;
  white-space: nowrap;
}

/* Reschedule footer inside record cards */
.dashboard-reschedule-block {
  display: flex;
  clear: both;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.dashboard-reschedule-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dashboard-reschedule-request-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(107, 33, 168, .22);
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary-dark);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.dashboard-reschedule-request-btn:hover,
.dashboard-reschedule-request-btn:focus-visible {
  border-color: var(--color-primary);
  background: rgba(107, 33, 168, .07);
}
.dashboard-reschedule-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(107, 33, 168, .06);
  font-size: .74rem;
  font-weight: 800;
}
.dashboard-reschedule-label {
  color: var(--color-primary-dark);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.dashboard-reschedule-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: #4d3c60;
}
.reschedule-info-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(107, 33, 168, .22);
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary);
  cursor: pointer;
  font-size: .84rem;
  transition: background .16s ease, border-color .16s ease;
}
.reschedule-info-btn:hover,
.reschedule-info-btn:focus-visible {
  border-color: var(--color-primary);
  background: rgba(107, 33, 168, .07);
}
.reschedule-status-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  font-size: .68rem;
  line-height: 1;
}
.reschedule-status-icon-warning {
  background: rgba(245, 158, 11, .18);
  color: #b45309;
}
.reschedule-status-icon-success {
  background: rgba(22, 163, 74, .16);
  color: #15803d;
}
.reschedule-status-icon-danger {
  background: rgba(220, 38, 38, .16);
  color: #b91c1c;
}
.reschedule-status-icon-info,
.reschedule-status-icon-secondary,
.reschedule-status-icon-primary {
  background: rgba(107, 33, 168, .14);
  color: var(--color-primary-dark);
}
.record-image-modal {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(18, 12, 30, .66);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.record-image-modal[hidden] {
  display: none;
}
.record-image-dialog {
  position: relative;
  width: min(780px, 94vw);
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(18, 12, 30, .32);
}
.record-image-dialog img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #170f21;
}
.record-image-caption {
  padding: 16px 20px 20px;
}
.record-image-caption h2 {
  margin: 5px 0 0;
  color: var(--color-primary-dark);
  font-size: 1.25rem;
  letter-spacing: 0;
}
.record-image-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--color-primary-dark);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(18, 12, 30, .2);
}
.prefix-settings-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.prefix-settings-modal[hidden] {
  display: none;
}
.prefix-settings-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 10, 32, .44);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.prefix-settings-dialog {
  position: relative;
  width: min(780px, 96vw);
  max-height: min(86vh, 760px);
  overflow: auto;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(36, 18, 68, .28);
}
.prefix-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(107, 33, 168, .14);
}
.prefix-settings-head h3 {
  margin: 0;
  color: #172033;
  font-size: 1.22rem;
  font-weight: 700;
}
.prefix-settings-close {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  font-size: 1.05rem;
}
.prefix-settings-form {
  padding: 22px;
}
.prefix-settings-dialog .alert {
  margin: 16px 22px 0;
}
.prefix-settings-form .form-group.is-hidden {
  display: none !important;
}
.prefix-settings-form [data-affix-value-group][hidden] {
  display: none !important;
}
.prefix-settings-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin: 18px -22px -22px;
  padding: 18px 22px;
  border-top: 1px solid rgba(107, 33, 168, .14);
  background: #fff;
}
.prefix-settings-actions .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 700;
}
.prefix-settings-actions .btn-cancel {
  border: 1px solid #d8e0ed;
  background: #f8fafc;
  color: #475569;
  box-shadow: none;
}
.prefix-settings-actions .btn-outline {
  border-color: #5b5ff1;
  color: #4f46e5;
  background: #fff;
}
.prefix-settings-actions .btn-primary {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #fff;
  box-shadow: 0 12px 26px rgba(91, 33, 182, .28);
}
.empty-state {
  padding: 36px 20px;
  text-align: center;
  color: var(--color-muted);
}
.empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--color-primary-dark);
  font-size: 1.18rem;
  font-weight: 600;
}
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 24px;
  align-items: start;
}
.summary-card {
  position: sticky;
  top: 112px;
  padding: 24px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  color: var(--color-muted);
  border-bottom: 1px solid rgba(107, 33, 168, .1);
}
.summary-line.total {
  color: var(--color-primary-dark);
  border-bottom: 0;
  font-size: 1.15rem;
  font-weight: 600;
}
.cart-item-title {
  font-weight: 600;
  color: var(--color-primary-dark);
}
.qty-input {
  max-width: 82px;
  text-align: center;
}

@media (max-width: 960px) {
  .premium-hero,
  .auth-layout,
  .payment-policy-hero,
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .payment-policy-highlights,
  .payment-policy-grid {
    grid-template-columns: 1fr;
  }
  .payment-policy-highlights {
    padding-top: 40px;
  }
  .payment-policy-footer-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .payment-policy-footer-card::before {
    width: 240px;
    height: 240px;
  }
  .premium-hero h1 {
    font-size: 2.2rem;
  }
  .auth-copy h1 {
    font-size: 2.45rem;
  }
  .premium-hero-actions {
    justify-content: flex-start;
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .astrologer-grid,
  .astrology-booking-layout {
    grid-template-columns: 1fr;
  }
  .summary-card {
    position: static;
  }
  .dashboard-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
}

@media (max-width: 560px) {
  .payment-status-section.inner-bg-murugan {
    min-height: 440px;
    padding-top: 28px;
    background-size: auto 82%;
    background-position: center top 18px;
  }
  .premium-shell {
    padding: 30px 0 48px;
  }
  body {
    font-size: 15px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.62rem; }
  h3 { font-size: 1.18rem; }
  .premium-card,
  .auth-panel {
    padding: 24px;
  }
  .payment-policy-page {
    padding-top: 18px;
    padding-bottom: 30px;
  }
  .checkout-selected-item {
    grid-template-columns: 1fr;
  }
  .checkout-selected-image {
    width: 200px;
    justify-self: center;
  }
  .checkout-pooja-schedule {
    grid-template-columns: 1fr;
  }
  .checkout-profile-grid {
    grid-template-columns: 1fr;
  }
  .checkout-profile-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .premium-hero h1,
  .auth-copy h1 {
    font-size: 1.95rem;
    line-height: 1.12;
  }
  .payment-policy-hero-copy h1 {
    font-size: 1.95rem;
    line-height: 1.14;
  }
  .premium-hero p,
  .auth-copy p {
    font-size: .98rem;
  }
  .payment-policy-hero-copy p {
    font-size: .98rem;
  }
  .payment-policy-hero,
  .payment-policy-highlight-card,
  .payment-policy-card.premium-card,
  .payment-policy-footer-card {
    border-radius: 18px;
  }
  .payment-policy-card.premium-card {
    padding: 24px 20px;
  }
  /* Tighter step badge so long Tamil headings keep more room. */
  .payment-policy-card::before {
    top: 14px;
    right: 16px;
    min-width: 34px;
    height: 24px;
    padding: 0 8px;
    font-size: .78rem;
  }
  .payment-policy-card h3 {
    padding-right: 46px;
  }
  .payment-policy-highlights {
    padding-top: 34px;
  }
  .payment-policy-highlights::before {
    top: 2px;
    width: 124px;
    height: 19px;
  }
  .table th,
  .table td {
    font-size: .88rem;
  }
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .stat-cards {
    grid-template-columns: 1fr;
  }
  .stat-card {
    min-height: 0;
    padding: 18px;
  }
  .astrologer-grid {
    grid-template-columns: 1fr;
  }
  .astrology-tabs-shell .category-tab {
    min-width: 210px;
  }
  .auth-link-row,
  .table-panel-head,
  .cart-total-bar {
    align-items: flex-start;
    flex-direction: column;
  }
  .dashboard-panel .table-panel-head {
    align-items: stretch;
  }
  .dashboard-panel .table-panel-actions {
    width: 100%;
    justify-content: space-between;
  }
  .dashboard-card-grid {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .dashboard-record-card {
    padding: 12px;
  }
  .record-card-media {
    width: 78px;
    margin-right: 11px;
  }
  .record-card-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .record-card-actions .btn-sm {
    margin-left: 0;
  }
  .dashboard-reschedule-block {
    justify-content: flex-start;
  }
  .table-filter-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer (background image: banners/back-dark-velan.png) */
.site-footer {
  position: relative; overflow: hidden; 
  /* margin-top: 60px;  */
  padding: 48px 0 22px;
  color: rgba(255,255,255,.92);
  background-color: var(--color-primary-dark);
  background-image: url('../images/optimized/back-dark-velan.webp');
  background-size: cover; background-position: center; background-repeat: no-repeat;
  display: flex; flex-direction: column; justify-content: center;
}
/* On wide screens, match the footer box to the image's ratio (2172x724) so the
   FULL image shows with no cropping. Columns are shifted right (clear of the
   deity artwork on the left), and the copyright is pinned to the bottom centre. */
@media (min-width: 1200px) {
  .site-footer { aspect-ratio: 2172 / 724; min-height: 500px; padding: 0; justify-content: center; }
  .site-footer .footer-grid { width: min(1120px, calc(100% - 120px)); margin: 0 clamp(40px, 8vw, 120px) 0 auto; padding-left: 0; }
  .site-footer .footer-bottom { position: absolute; left: 0; right: 0; bottom: 0; }
}
/* Below the wide-artwork breakpoint the footer is a normal stacked block, so it
   needs real horizontal padding (the base .container has none). */
@media (max-width: 1199px) {
  .site-footer { padding: 42px 0 20px; background-position: top center; }
  .site-footer .footer-grid,
  .site-footer .footer-bottom-inner { padding-left: clamp(20px, 5vw, 40px); padding-right: clamp(20px, 5vw, 40px); }
  .site-footer .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* dark veil so the text stays readable over the lighter middle of the image */
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(20,8,40,.55) 0%, rgba(20,8,40,.72) 100%); pointer-events: none; }
.site-footer::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: clamp(16px, 4vw, 42px);
  bottom: 18px;
  width: min(48vw, 430px);
  aspect-ratio: 669 / 744;
  background-image: url('../images/murugan.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, #000 38%, rgba(0,0,0,.72) 54%, transparent 76%);
  mask-image: radial-gradient(ellipse at center, #000 0%, #000 38%, rgba(0,0,0,.72) 54%, transparent 76%);
  opacity: 0;
  pointer-events: none;
}
.site-footer > * { position: relative; z-index: 1; }
@media (min-width: 681px) and (max-width: 1199px) {
  .site-footer::after {
    opacity: .42;
  }
}
.footer-grid { display: grid; grid-template-columns: minmax(210px, .9fr) minmax(120px, .45fr) minmax(150px, .6fr) minmax(168px, .6fr) minmax(260px, 1fr); align-items: start; gap: clamp(16px, 1.45vw, 26px); margin-bottom: 58px; }
.footer-logo { display: inline-flex; align-items: center; width: 100%; margin: 0 0 14px; }
.footer-logo img { width: 100%;margin-left: -25px; height: auto; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,.65)); }
.footer-grid h4 { position: relative; color: #fff; font-size: .98rem; line-height: 1.2; margin: 0 0 18px; padding-bottom: 9px; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.footer-grid h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 2px; border-radius: 999px; background: linear-gradient(90deg, #fde68a 0%, rgba(253,230,138,.15) 100%); box-shadow: 0 0 12px rgba(253,230,138,.45); }
.footer-grid p { max-width: 300px; margin: 0; line-height: 1.55; text-shadow: 0 1px 6px rgba(0,0,0,.85); }
.footer-grid a { color: rgba(255,255,255,.85); display: block; margin-bottom: 9px; line-height: 1.90; text-shadow: 0 1px 6px rgba(0,0,0,.85); transition: color .15s ease; }
.footer-grid a:hover { color: #fde68a; }
.footer-brand { align-self: auto; }
.footer-link-group a { font-size: .9rem; font-weight: 700; }
.footer-contact-list a {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 8px;
  font-size: .82rem;
}
.footer-contact-list span { overflow-wrap: anywhere; }
.footer-contact-list i { color: #fde68a; line-height: 1.25; }
.footer-bottom {
  color: rgba(255,255,255,.92);
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 14px;
  background: transparent;
  font-size: .88rem;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0,0,0,.85);
}
.footer-bottom a { color: #fff; text-decoration: none; }
.footer-bottom a:hover { color: #fde68a; }
.footer-bottom .footer-credit-link {
  color: #fde68a;
  font-weight: 800;
}
.footer-bottom .footer-credit-link:hover { color: #fff; }
.footer-bottom-inner {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}
.footer-social span { margin-right: 2px; }
.footer-social a {
  display: inline-grid;
  place-items: center;
  color: rgba(255,255,255,.92);
  font-size: 1.16rem;
  line-height: 1;
  transition: transform .15s ease, opacity .15s ease;
}
.footer-social a:hover { color: #fde68a; opacity: .95; transform: translateY(-1px); }
.whatsapp-float {
  position: fixed;
  right: clamp(16px, 2.4vw, 30px);
  bottom: clamp(18px, 2.6vw, 34px);
  z-index: 120;
  width: 45px;
  height: 45px;
  min-width: 45px;
  min-height: 45px;
  max-width: 45px;
  max-height: 45px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #25d366;
  box-shadow: 0 14px 34px rgba(37, 211, 102, .34), 0 6px 16px rgba(24, 16, 40, .18);
  font-size: 1.8rem;
  line-height: 1;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  color: #fff;
  background: #1fbd5a;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(37, 211, 102, .42), 0 8px 20px rgba(24, 16, 40, .22);
}
.whatsapp-float:focus-visible {
  outline: 3px solid rgba(253, 230, 138, .9);
  outline-offset: 3px;
}

/* Calendar */
#calendar-app {
  position: relative;
  --cal-event: #f59e0b;
  --cal-my-event: #16a34a;
  --cal-astrology: #7c3aed;
  --cal-pooja: #0ea5e9;
}
#calendar-app.is-loading { opacity: .55; pointer-events: none; }
.calendar-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px 22px;
  border-radius: 20px;
  overflow: hidden;
  color: #fff;
  background: #2e1065;
  border-bottom: 5px solid #f59e0b;
  box-shadow: 0 18px 40px rgba(46, 16, 101, .3);
}
/* Decorative solid circles behind the header content. */
.calendar-hero::before,
.calendar-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.calendar-hero::before { width: 180px; height: 180px; top: -90px; left: 18%; background: rgba(245, 158, 11, .22); }
.calendar-hero::after { width: 140px; height: 140px; bottom: -80px; right: 16%; background: rgba(236, 72, 153, .24); }
.calendar-hero > * { position: relative; z-index: 1; }
.calendar-hero-title { text-align: center; }
.calendar-hero-title::after { content: ""; display: block; width: 56px; height: 4px; margin: 8px auto 0; border-radius: 4px; background: #f59e0b; }
.calendar-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 999px;
  color: #451a03;
  background: #fbbf24;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.calendar-hero h2 { margin: 6px 0 0; color: #fff; font-size: clamp(1.4rem, 3vw, 2.1rem); text-shadow: 0 2px 12px rgba(0, 0, 0, .2); }
.calendar-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: #2e1065;
  font-weight: 800;
  font-size: .88rem;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.calendar-nav-btn:hover { color: #451a03; background: #fbbf24; transform: translateY(-2px); }
/* Calendar board: white card so it reads apart from the warm day list below. */
.calendar-scroll {
  padding: 14px;
  border-radius: 20px;
  border: 1px solid #e4dcf3;
  background: #fff;
  box-shadow: 0 12px 30px rgba(46, 16, 101, .08);
}
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.calendar-weekday {
  padding: 8px 4px;
  border-radius: 10px;
  text-align: center;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .04em;
  color: #fff;
  background: #6d28d9;
}
.calendar-weekday.is-weekend { color: #fff; background: #db2777; }
/* Full-width line separating the weekday header from the dates. */
.calendar-divider {
  grid-column: 1 / -1;
  position: relative;
  height: 3px;
  margin: 4px 0 6px;
  border-radius: 3px;
  background: #e4dcf3;
  transform-origin: left center;
  animation: calLineGrow .6s ease both .1s;
}
.calendar-divider::before,
.calendar-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: #f59e0b;
}
.calendar-divider::before { left: 0; }
.calendar-divider::after { right: 0; background: #db2777; }
@keyframes calLineGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.calendar-day {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  min-height: 104px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: .8rem;
  cursor: pointer;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.calendar-day::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: transparent;
}
.calendar-day.has-event::before { background: var(--cal-event); }
.calendar-day.has-my-pooja-booking::before { background: var(--cal-pooja); }
.calendar-day.has-my-astrology-booking::before { background: var(--cal-astrology); }
.calendar-day.has-my-event-booking::before { background: var(--cal-my-event); }
.calendar-day.has-items { background: #faf7ff; }
.calendar-day:hover { transform: translateY(-3px); border-color: rgba(124, 58, 237, .35); box-shadow: 0 12px 24px rgba(76, 29, 149, .14); }
.calendar-day:focus-visible { outline: 3px solid rgba(124, 58, 237, .45); outline-offset: 2px; }
.calendar-day.is-today { border-color: #f59e0b; box-shadow: 0 0 0 2px rgba(245, 158, 11, .35); }
.calendar-day.is-selected {
  border-color: #7c3aed;
  background: #fff;
  border-width: 2px;
  box-shadow: 0 14px 30px rgba(124, 58, 237, .25);
  transform: translateY(-3px);
}
.calendar-day .day-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 2px; }
.calendar-day .day-num {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  font-weight: 800;
  color: var(--color-text);
}
.calendar-day.is-today .day-num { color: #fff; background: #f59e0b; }
.calendar-day.is-selected .day-num { color: #fff; background: #7c3aed; }
.day-today-badge { padding: 1px 7px; border-radius: 999px; font-size: .62rem; font-weight: 800; color: #c2410c; background: rgba(251, 191, 36, .22); }
.calendar-event {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 4px 7px;
  border-radius: 8px;
  color: #fff;
  background: var(--color-primary);
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(36, 27, 48, .12);
  transition: transform .15s ease, filter .15s ease;
}
.calendar-event span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event i { flex: none; }
.calendar-event:hover { color: #fff; transform: translateX(2px); filter: brightness(1.08); }
.calendar-public-event { background: var(--cal-event); }
.calendar-booking-event { background: var(--cal-my-event); }
.calendar-booking-astrology { background: var(--cal-astrology); }
.calendar-booking-pooja { background: var(--cal-pooja); }
.calendar-show-more {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px dashed rgba(124, 58, 237, .45);
  background: rgba(124, 58, 237, .08);
  color: #6d28d9;
  font-size: .68rem;
  font-weight: 800;
  cursor: pointer;
}
.calendar-show-more:hover { background: rgba(124, 58, 237, .18); }
.calendar-day-dots { display: flex; flex-wrap: wrap; gap: 3px; margin-top: auto; padding-top: 4px; }
.calendar-dot {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  color: #fff;
  font-size: .6rem;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}
.calendar-dot-event { background: var(--cal-event); }
.calendar-dot-event-booking { background: var(--cal-my-event); }
.calendar-dot-astrology-booking { background: var(--cal-astrology); }
.calendar-dot-pooja-booking { background: var(--cal-pooja); }
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}
.calendar-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: .84rem;
  box-shadow: 0 6px 14px rgba(36, 27, 48, .12);
}
.calendar-legend-event { background: var(--cal-event); }
.calendar-legend-event-booking { background: var(--cal-my-event); }
.calendar-legend-astrology-booking { background: var(--cal-astrology); }
.calendar-legend-pooja-booking { background: var(--cal-pooja); }
.calendar-detail-panel {
  margin-top: 18px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid #fcd9a0;
  border-top: 6px solid #f59e0b;
  background: #fff7e8;
  box-shadow: 0 16px 40px rgba(194, 65, 12, .12);
}
.calendar-detail-panel.is-animating { animation: calFadeUp .45s ease both; }
.calendar-detail-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.calendar-date-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 78px;
  padding: 8px 6px;
  border-radius: 16px;
  color: #fff;
  text-align: center;
  background: #7c3aed;
  box-shadow: 0 10px 22px rgba(124, 58, 237, .3);
}
.calendar-date-badge strong { font-size: 1.9rem; line-height: 1.05; }
.calendar-date-badge small { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .92; }
.calendar-detail-kicker { display: block; color: #c2410c; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.calendar-detail-heading h3 { margin: 2px 0 6px; font-size: 1.2rem; color: var(--color-text); }
.calendar-detail-counts { display: flex; flex-wrap: wrap; gap: 6px; }
.calendar-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: .74rem;
  font-weight: 800;
}
.calendar-count-pill--event { background: var(--cal-event); }
.calendar-count-pill--event-booking { background: var(--cal-my-event); }
.calendar-count-pill--astrology-booking { background: var(--cal-astrology); }
.calendar-count-pill--pooja-booking { background: var(--cal-pooja); }
.calendar-detail-list { display: grid; gap: 12px; }
.calendar-detail-card {
  --card-accent: var(--cal-astrology);
  --card-tint: rgba(124, 58, 237, .07);
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 14px 20px;
  border-radius: 16px;
  border: 1px solid #f6e3c4;
  background: #fff;
  overflow: hidden;
  animation: calFadeUp .5s ease backwards;
  animation-delay: calc(var(--i, 0) * 70ms);
  transition: transform .2s ease, box-shadow .2s ease;
}
.calendar-detail-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--card-accent); }
.calendar-detail-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(76, 29, 149, .14); }
.calendar-detail-card--event { --card-accent: var(--cal-event); --card-tint: rgba(249, 115, 22, .09); }
.calendar-detail-card--event-booking { --card-accent: var(--cal-my-event); --card-tint: rgba(34, 197, 94, .09); }
.calendar-detail-card--pooja-booking { --card-accent: var(--cal-pooja); --card-tint: rgba(14, 165, 233, .09); }
.calendar-detail-card.is-focused { animation: calFadeUp .5s ease backwards, calPulse 1.2s ease .5s 2; }
.calendar-detail-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #fff;
  font-size: 1.3rem;
  background: var(--card-accent);
  box-shadow: 0 8px 18px rgba(36, 27, 48, .16);
}
.calendar-detail-body { flex: 1; min-width: 0; }
.calendar-detail-type { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted); }
.calendar-detail-body strong { display: block; margin-top: 1px; color: var(--color-text); font-size: 1rem; }
.calendar-detail-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.calendar-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: #4b4458;
  font-size: .76rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.calendar-meta-chip i { color: #7c3aed; }
.calendar-book-form { display: contents; }
.calendar-detail-action {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  font-size: .84rem;
  text-decoration: none;
  background: var(--card-accent);
  box-shadow: 0 8px 18px rgba(36, 27, 48, .16);
  transition: transform .2s ease, filter .2s ease;
}
.calendar-detail-action:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.08); }
.calendar-detail-action i { transition: transform .2s ease; }
.calendar-detail-action:hover i { transform: translateX(3px); }
.calendar-detail-empty {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 26px 16px;
  border-radius: 16px;
  border: 2px dashed #f5c27a;
  background: #fff;
  text-align: center;
  color: var(--color-muted);
  animation: calFadeUp .45s ease both;
}
.calendar-detail-empty i { font-size: 2rem; color: #f59e0b; }
.calendar-detail-empty strong { color: var(--color-text); }
@keyframes calFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes calPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
  50% { box-shadow: 0 0 0 5px rgba(124, 58, 237, .25); }
}
/* Entrance and attention animations (re-run on every AJAX month change). */
.calendar-hero h2 { animation: calSlideDown .5s ease both; }
.calendar-hero-kicker i { display: inline-block; transform-origin: 50% 0; animation: calSwing 2.6s ease-in-out infinite; }
.calendar-weekday { animation: calFadeUp .4s ease both; }
.calendar-day { animation: calPop .45s cubic-bezier(.34, 1.56, .64, 1) backwards; animation-delay: calc(var(--d, 0) * 14ms); }
.calendar-event { animation: calSlideIn .4s ease backwards; animation-delay: calc(var(--d, 0) * 14ms + 180ms); }
.calendar-dot { animation: calPop .4s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--d, 0) * 14ms + 280ms); }
.calendar-day.is-today .day-num { animation: calTodayPulse 2s ease-out infinite; }
.calendar-day.is-selected { animation: calSelect .4s cubic-bezier(.34, 1.56, .64, 1); }
.calendar-legend-item { transition: transform .2s ease; }
.calendar-legend-item:hover { transform: translateY(-2px); }
.calendar-legend-item:hover i { animation: calWiggle .5s ease; }
.calendar-detail-panel.is-animating .calendar-date-badge { animation: calFlip .55s ease both; }
.calendar-detail-panel.is-animating .calendar-count-pill { animation: calPop .4s cubic-bezier(.34, 1.56, .64, 1) both .2s; }
.calendar-detail-icon { animation: calIconPop .5s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 150ms); }
.calendar-detail-empty i { animation: calFloat 2.4s ease-in-out infinite; }
@keyframes calPop {
  from { opacity: 0; transform: scale(.85); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes calSlideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes calSlideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes calSwing {
  0%, 60%, 100% { transform: rotate(0); }
  70% { transform: rotate(14deg); }
  80% { transform: rotate(-10deg); }
  90% { transform: rotate(5deg); }
}
@keyframes calTodayPulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(245, 158, 11, 0); }
}
@keyframes calSelect {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@keyframes calWiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-15deg); }
  75% { transform: rotate(15deg); }
}
@keyframes calFlip {
  from { opacity: 0; transform: perspective(400px) rotateY(-90deg); }
  to { opacity: 1; transform: perspective(400px) rotateY(0); }
}
@keyframes calIconPop {
  from { opacity: 0; transform: scale(.4) rotate(-25deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes calFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .calendar-day, .calendar-event, .calendar-nav-btn, .calendar-detail-card, .calendar-detail-action, .calendar-detail-action i { transition: none; }
  .calendar-detail-panel.is-animating, .calendar-detail-card, .calendar-detail-card.is-focused, .calendar-detail-empty,
  .calendar-hero h2, .calendar-hero-kicker i, .calendar-weekday, .calendar-divider, .calendar-day, .calendar-event, .calendar-dot,
  .calendar-day.is-today .day-num, .calendar-day.is-selected, .calendar-legend-item:hover i,
  .calendar-detail-panel.is-animating .calendar-date-badge, .calendar-detail-panel.is-animating .calendar-count-pill,
  .calendar-detail-icon, .calendar-detail-empty i { animation: none; }
  .calendar-day:hover, .calendar-day.is-selected { transform: none; }
}
@media (max-width: 640px) {
  .calendar-hero { padding: 14px; gap: 8px; }
  .calendar-nav-btn { padding: 8px 10px; }
  .calendar-nav-btn span { display: none; }
  .calendar-detail-panel { margin-top: 14px; padding: 12px; border-radius: 16px; }
  .calendar-detail-head { align-items: flex-start; gap: 10px; margin-bottom: 12px; }
  .calendar-date-badge { width: 52px; padding: 6px 4px; border-radius: 12px; }
  .calendar-date-badge strong { font-size: 1.25rem; }
  .calendar-date-badge small { font-size: .58rem; }
  .calendar-detail-kicker { font-size: .64rem; }
  .calendar-detail-heading h3 { margin: 1px 0 5px; font-size: .95rem; line-height: 1.3; }
  .calendar-count-pill { padding: 2px 8px; font-size: .68rem; }
  .calendar-detail-list { gap: 8px; }
  .calendar-detail-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    gap: 4px 10px;
    padding: 10px 10px 10px 14px;
    border-radius: 12px;
  }
  .calendar-detail-card::before { width: 4px; }
  .calendar-detail-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 1rem; }
  .calendar-detail-type { font-size: .6rem; }
  .calendar-detail-body strong { font-size: .88rem; line-height: 1.3; }
  .calendar-detail-meta { gap: 4px; margin-top: 5px; }
  .calendar-meta-chip { padding: 2px 7px; gap: 4px; font-size: .68rem; }
  .calendar-detail-action { grid-column: 2; justify-self: start; padding: 6px 12px; font-size: .74rem; box-shadow: 0 4px 10px rgba(36, 27, 48, .14); }
}
.calendar-loader {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  gap: 10px;
  align-content: center;
  background: rgba(255,255,255,.58);
  color: var(--color-primary);
  font-weight: 800;
}
.calendar-loader[hidden] { display: none; }
.calendar-loader-spinner {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 4px solid rgba(124, 58, 237, .18);
  border-top-color: var(--color-primary);
  animation: calendarLoaderSpin .7s linear infinite;
}
@keyframes calendarLoaderSpin {
  to { transform: rotate(360deg); }
}
.table tr:target { outline: 2px solid var(--color-accent); outline-offset: -2px; background: rgba(246, 185, 77, .12); }

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

@media (max-width: 960px) {
  .header-inner { max-width: 100%; }
  .event-detail-hero {
    grid-template-columns: 1fr;
  }
  .event-detail-main-image {
    min-height: 340px;
  }
  .offerings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-hero-inner,
  .seo-content-band,
  .seo-location-panel {
    grid-template-columns: 1fr;
  }
  .seo-hero-inner {
    max-width: 760px;
  }
  .seo-hero-panel {
    min-height: 160px;
  }
  .seo-service-grid,
  .seo-faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-hero { height: auto; padding: 26px 0; }
  .category-hero-inner { grid-template-columns: 1fr; }
  .category-hero-panel { max-width: 280px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1120px) {
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--color-surface); flex-direction: column; padding: 16px 20px; display: none; border-bottom: 1px solid var(--color-border); }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
}

@media (max-width: 680px) {
  .header-inner { min-height: 70px; padding: 10px 16px; }
  .logo img { width: 132px; max-height: 100px; }
  .header-actions { gap: 6px; }
  /* On small screens the language toggle moves into the hamburger menu so the header bar never overflows. */
  .header-actions .lang-switch,
  .header-actions .btn { display: none; }
  .header-actions .lang-toggle { display: none; }
  .nav-mobile-extra .lang-toggle { align-self: flex-start; }
  .account-trigger { min-height: 42px; padding: 4px; }
  .account-avatar { width: 36px; height: 36px; border-radius: 12px; }
  .account-copy,
  .account-trigger .bi-chevron-down { display: none; }
  .account-dropdown { right: -44px; width: min(238px, calc(100vw - 24px)); }
  .nav-mobile-extra {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
  }
  .nav-mobile-extra .btn { width: 100%; }
  .footer-bottom-inner {
    min-height: auto;
    flex-direction: column;
    justify-content: center;
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: center;
  }
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 45px;
    height: 45px;
    font-size: 1.55rem;
  }
  .footer-social { justify-content: center; flex-wrap: wrap; }
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 28px;
  }
  .footer-grid h4::after { left: 50%; transform: translateX(-50%); }
  .footer-logo { margin-left: auto; margin-right: auto; }
  .footer-logo img { margin-left: 0; }
  .footer-grid p { max-width: 340px;font-size:15px; margin-left: auto; margin-right: auto; }
  .site-footer {
    background-image: url('../images/left-menu-vel.webp');
    background-position: center top;
    background-size: cover;
  }
  .site-footer::before {
    background:
      linear-gradient(180deg, rgba(10,4,24,.34) 0%, rgba(10,4,24,.58) 42%, rgba(10,4,24,.78) 100%);
  }
  .site-footer::after {
    display: none;
  }
  .event-detail-page {
    padding: 28px 0 44px;
  }
  .event-detail-toolbar {
    justify-content: flex-start;
  }
  .event-detail-hero {
    padding: 12px;
    border-radius: 18px;
  }
  .event-detail-main-image {
    min-height: 300px;
    border-radius: 14px;
  }
  .event-date-card {
    top: 12px;
    left: 12px;
    width: 70px;
    min-height: 88px;
  }
  .event-date-card strong {
    font-size: 1.65rem;
  }
  .event-status-pill {
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
  }
  .event-detail-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .event-detail-content h1 {
    font-size: 1.8rem;
  }
  .event-info-grid {
    grid-template-columns: 1fr;
  }
  .event-booking-panel,
  .event-book-form {
    align-items: stretch;
    flex-direction: column;
  }
  .event-seat-summary {
    text-align: left;
  }
  .event-seat-control {
    flex: 1 1 auto;
  }
  .event-book-form .btn {
    width: 100%;
  }
  .event-book-form .whatsapp-share-btn,
  .event-book-actions .whatsapp-share-btn {
    width: 100%;
    height: 48px;
    border-radius: 999px;
  }
  .offerings-section .section-head { text-align: center; }
  .offerings-grid { grid-template-columns: 1fr; }
  /* .offerings-section { padding: 38px 0 44px; } */
  .offering-card { min-height: 190px; padding: 18px 16px; }
  .offering-copy { max-width: 78%; }
  .offering-image { width: 50%; height: 54%; bottom: 32px; }
  .offering-copy strong { font-size: 1rem; }
  /* .store-categories-section { padding: 38px 0 44px; } */
  .store-category-grid { grid-template-columns: 1fr; gap: 16px; }
  .seo-hero { padding: 24px 0 28px; }
  .seo-hero-copy h1 {
    font-size: clamp(26px, 8vw, 34px);
    line-height: 1.12;
  }
  .seo-hero-copy p {
    font-size: 14px;
    line-height: 1.52;
  }
  .seo-hero-panel {
    min-height: 140px;
    padding: 18px;
  }
  .seo-hero-panel strong {
    font-size: 28px;
  }
  .seo-service-grid,
  .seo-faq-grid {
    grid-template-columns: 1fr;
  }
  .seo-service-card,
  .seo-faq-card {
    padding: 20px;
  }
  .seo-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .seo-content-band,
  .seo-location-panel {
    padding: 22px;
  }
  .seo-content-band h2,
  .seo-location-panel h2 {
    font-size: 26px;
  }
  .seo-step-list li {
    padding-right: 14px;
  }
  .seo-location-list {
    justify-content: stretch;
  }
  .seo-location-list span {
    flex: 1 1 calc(50% - 10px);
    justify-content: center;
  }
  .store-category-card { min-height: 190px; padding: 18px 16px; }
  .store-category-copy { max-width: 78%; }
  .store-category-image { width: 50%; height: 54%; bottom: 32px; }
  .store-category-copy strong { font-size: 1rem; }
  .category-hero > .container,
  .category-list-section > .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .category-hero h1 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }
  .category-hero p {
    font-size: .9rem;
    line-height: 1.38;
  }
  .category-tabs-wrap { top: 70px; overflow: hidden; }
  .category-tabs-shell { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 16px; }
  .category-tabs-shell:not(.is-centered) {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 6px;
    padding: 0 8px;
  }
  .category-tab-scroll { flex-basis: 36px; width: 36px; height: 36px; font-size: 1.35rem; }
  .category-hero { height: auto; padding: 26px 0; }
  .category-hero-panel { display: none; }
  .category-tab { min-width: min(156px, calc(100vw - 32px)); padding: 10px 12px; gap: 9px; }
  .category-tab-icon { width: 38px; height: 38px; }
  .category-tab-label { min-width: 0; font-size: .78rem; line-height: 1.22; overflow-wrap: anywhere; }
  .category-tabs-shell.is-centered.astrology-tabs-shell .category-tabs {
    justify-content: flex-start;
  }
  .astrology-tabs-shell .category-tab {
    min-width: min(186px, calc(100vw - 32px));
  }
  .category-list-section { padding-top: 26px; }
  .category-list-head {
    align-items: flex-start;
    gap: 12px;
  }
  .category-list-head-copy {
    min-width: 0;
  }
  .category-list-head h2 {
    font-size: 19px;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }
  .category-list { grid-template-columns: 1fr; }
  .category-list.view-grid, .category-list.view-list { grid-template-columns: 1fr; }
  .category-item-body { padding: 18px; }
  .category-item-topline { flex-direction: column; gap: 8px; }
  .category-item-actions { align-items: flex-start; flex-direction: column; }
  /* Stack list-view cards (image on top) on small screens */
  .view-list .category-item { flex-direction: column; }
  .view-list .category-item-image { flex: none; height: auto; aspect-ratio: 16 / 10; }
  .view-list .category-item-body { padding: 18px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero--static h1 { font-size: 2rem; }
  /* Phones: fit all 7 days on screen. Cells show the date and coloured
     count dots only; tapping a date lists its items below the grid. */
  .calendar-scroll { padding: 8px; border-radius: 14px; }
  .calendar-grid { gap: 4px; }
  .calendar-weekday { padding: 6px 0; border-radius: 8px; font-size: .7rem; letter-spacing: 0; }
  .calendar-day { min-height: 60px; padding: 6px 2px 5px; border-radius: 10px; align-items: center; gap: 4px; }
  .calendar-day::before { height: 3px; }
  .calendar-day:hover, .calendar-day.is-selected { transform: none; }
  .calendar-day .day-head { justify-content: center; margin: 0; }
  .calendar-day .day-num { min-width: 26px; height: 26px; font-size: .8rem; }
  .day-today-badge, .calendar-day .calendar-event, .calendar-show-more { display: none; }
  .calendar-day-dots { justify-content: center; gap: 2px; padding-top: 0; }
  .calendar-dot { min-width: 14px; height: 14px; padding: 0 3px; font-size: .56rem; line-height: 14px; }
  .calendar-legend { gap: 6px; }
  .calendar-legend-item { padding: 5px 10px; font-size: .74rem; }
  .calendar-hero-kicker { font-size: .64rem; }
}

/* Chart view requested polish */
.pan-panel[data-panel="chart"] {
  background: #ebe4e4;
}
.pan-panel[data-panel="chart"] .pan-chart {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 24px;
  align-items: stretch;
  width: 100%;
  padding: 28px;
  border-radius: 18px;
  background: #ebe4e4;
  border: 1px solid rgba(76, 29, 117, .16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 16px 38px rgba(76, 29, 117, .08);
}
.pan-panel[data-panel="chart"] .pan-chart-head {
  grid-column: 1;
  grid-row: 1;
}
.pan-panel[data-panel="chart"] .pan-chart-grid {
  grid-column: 2;
  grid-row: 1 / 3;
  position: relative;
  width: 100%;
  min-height: 620px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(146px, 1fr));
  gap: 3px;
  padding: 3px;
  border-radius: 18px;
  overflow: hidden;
  background: #ebe4e4;
  box-shadow: 0 24px 55px rgba(76, 29, 117, .16);
}
.pan-panel[data-panel="chart"] .pan-chart-legend {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
}
.pan-panel[data-panel="chart"] .pan-chart-cell {
  z-index: 2;
  min-height: 146px;
  padding: 28px 12px 14px;
  background: rgba(255, 252, 247, .92);
  border: 1px solid rgba(76, 29, 117, .2);
}
.pan-chart-core {
  position: relative;
  z-index: 1;
  grid-column: 2 / 4;
  grid-row: 2 / 4;
  min-height: 292px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(45deg, transparent 49.5%, rgba(76,29,117,.22) 50%, transparent 50.5%),
    linear-gradient(-45deg, transparent 49.5%, rgba(76,29,117,.18) 50%, transparent 50.5%),
    #ebe4e4;
}
.pan-chart-core::before {
  content: "";
  position: absolute;
  width: min(78%, 285px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid rgba(76, 29, 117, .58);
  box-shadow: inset 0 0 0 14px rgba(76, 29, 117, .08), inset 0 0 0 38px rgba(245, 158, 11, .1), 0 18px 42px rgba(59,7,100,.13);
}
.pan-chart-core::after {
  content: "";
  position: absolute;
  width: min(56%, 205px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(76, 29, 117, .48);
}
.pan-chart-core-ring {
  position: relative;
  z-index: 1;
  max-width: 270px;
  color: rgba(76, 29, 117, .86);
  font-size: clamp(.86rem, 1vw, 1rem);
  line-height: 1.9;
  letter-spacing: .12em;
}
.pan-chart-core-sun {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  color: #7e22ce;
  font-size: clamp(3rem, 4vw, 4.2rem);
  line-height: 1;
  text-shadow: 0 5px 14px rgba(76,29,117,.16);
}
@media (max-width: 980px) {
  .pan-panel[data-panel="chart"] .pan-chart {
    grid-template-columns: 1fr;
  }
  .pan-panel[data-panel="chart"] .pan-chart-head,
  .pan-panel[data-panel="chart"] .pan-chart-grid,
  .pan-panel[data-panel="chart"] .pan-chart-legend {
    grid-column: 1;
    grid-row: auto;
  }
  .pan-panel[data-panel="chart"] .pan-chart-grid {
    min-height: 500px;
    grid-template-rows: repeat(4, minmax(112px, 1fr));
  }
  .pan-chart-core {
    min-height: 224px;
  }
}
@media (max-width: 620px) {
  .pan-panel[data-panel="chart"] .pan-chart {
    padding: 16px;
  }
  .pan-panel[data-panel="chart"] .pan-chart-grid {
    min-height: 400px;
    grid-template-rows: repeat(4, minmax(84px, 1fr));
  }
  .pan-panel[data-panel="chart"] .pan-chart-cell {
    min-height: 84px;
    padding: 20px 8px 8px;
  }
  .pan-chart-core {
    min-height: 168px;
  }
  .pan-chart-core-ring {
    display: none;
  }
}

/* Chart layout matching requested reference */
.pan-panel[data-panel="chart"] {
  background: #fff;
  padding: 30px;
}
.pan-panel[data-panel="chart"] .pan-chart {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 0 26px;
  align-items: stretch;
  min-height: 610px;
  padding: 30px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(76, 29, 117, .14);
  box-shadow: 0 18px 45px rgba(76, 29, 117, .08);
}
.pan-panel[data-panel="chart"] .pan-chart-head {
  grid-column: 1;
  grid-row: 1;
  padding-top: 8px;
}
.pan-panel[data-panel="chart"] .pan-chart-head h3 {
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.2;
}
.pan-panel[data-panel="chart"] .pan-chart-head p {
  font-size: 1rem;
}
.pan-panel[data-panel="chart"] .pan-chart-legend {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  margin-top: 0;
}
.pan-panel[data-panel="chart"] .pan-chart-grid {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 100%;
  min-height: 610px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(145px, 1fr));
  gap: 3px;
  padding: 3px;
  border-radius: 12px;
  overflow: hidden;
  background: #ebe4e4;
  box-shadow: 0 18px 42px rgba(76, 29, 117, .12);
}
.pan-panel[data-panel="chart"] .pan-chart-cell {
  z-index: 2;
  min-height: 145px;
  padding: 28px 12px 14px;
  background: #fffaf4;
  border: 1px solid rgba(76, 29, 117, .18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.pan-panel[data-panel="chart"] .pan-chart-cell strong {
  font-size: 1rem;
}
.pan-panel[data-panel="chart"] .pan-chart-house {
  width: 24px;
  height: 24px;
  font-size: .74rem;
}
.pan-panel[data-panel="chart"] .pan-chart-planets span {
  padding: 4px 8px;
  font-size: .78rem;
}
.pan-chart-core {
  display: none !important;
}
@media (max-width: 980px) {
  .pan-panel[data-panel="chart"] .pan-chart {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .pan-panel[data-panel="chart"] .pan-chart-head,
  .pan-panel[data-panel="chart"] .pan-chart-grid,
  .pan-panel[data-panel="chart"] .pan-chart-legend {
    grid-column: 1;
    grid-row: auto;
  }
  .pan-panel[data-panel="chart"] .pan-chart-grid {
    min-height: 500px;
    grid-template-rows: repeat(4, minmax(112px, 1fr));
  }
}
@media (max-width: 620px) {
  .pan-panel[data-panel="chart"] {
    padding: 18px;
  }
  .pan-panel[data-panel="chart"] .pan-chart {
    padding: 16px;
    min-height: auto;
  }
  .pan-panel[data-panel="chart"] .pan-chart-grid {
    min-height: 400px;
    grid-template-rows: repeat(4, minmax(84px, 1fr));
  }
  .pan-panel[data-panel="chart"] .pan-chart-cell {
    min-height: 84px;
    padding: 20px 8px 8px;
  }
}

/* Blog section */
.blog-section .category-list-head-copy p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--color-muted);
}
.blog-list.view-grid.blog-list-count-1 { grid-template-columns: 1fr; }
.blog-list.view-grid.blog-list-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blog-list.view-grid.blog-list-count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.blog-card {
  position: relative;
  min-height: 100%;
}
.blog-card h3 a {
  color: inherit;
  text-decoration: none;
}
.blog-card h3 a:hover {
  color: var(--color-primary);
}
.blog-list-count-1 .blog-card {
  max-width: none;
}
.blog-list-count-1 .blog-card .category-item-body {
  padding-right: min(8vw, 90px);
}
.blog-card-icon {
  width: 58px;
  height: 58px;
  margin: 22px 22px 0;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  color: #7c2d12;
  background: #fff7ed;
  border: 1px solid rgba(124, 45, 18, .12);
  font-size: 1.55rem;
}
.blog-video-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #115e59;
  background: #ccfbf1;
  font-size: .78rem;
  font-weight: 800;
}
.blog-content-preview {
  color: var(--color-muted);
  line-height: 1.7;
}
.blog-rich-content {
  color: var(--color-muted);
  line-height: 1.7;
}
.blog-rich-content p,
.blog-rich-content h2,
.blog-rich-content h3,
.blog-rich-content h4,
.blog-rich-content ul,
.blog-rich-content ol,
.blog-rich-content table {
  margin: 0 0 14px;
}
.blog-rich-content p:last-child,
.blog-rich-content h2:last-child,
.blog-rich-content h3:last-child,
.blog-rich-content h4:last-child,
.blog-rich-content ul:last-child,
.blog-rich-content ol:last-child,
.blog-rich-content table:last-child {
  margin-bottom: 0;
}
.blog-rich-content h2,
.blog-rich-content h3,
.blog-rich-content h4 {
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-size: 1.08rem;
  line-height: 1.45;
}
.blog-rich-content ul,
.blog-rich-content ol {
  padding-left: 20px;
}
.blog-rich-content li {
  margin: 4px 0;
}
.blog-rich-content strong {
  color: var(--color-text);
  font-weight: 800;
}
.blog-rich-content em {
  font-style: italic;
}
.blog-rich-content u {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-rich-content mark {
  padding: 0 .18em;
  border-radius: 3px;
  background: #fff1a8;
  color: inherit;
}
.blog-rich-content table {
  width: 100%;
  border-collapse: collapse;
}
.blog-rich-content th,
.blog-rich-content td {
  border: 1px solid var(--color-border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.blog-rich-content th {
  background: var(--color-bg);
  color: var(--color-text);
  font-weight: 800;
}
.blog-read-more {
  display: inline-block;
  margin: 0 0 0 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.blog-read-more:hover {
  color: var(--color-accent-dark);
}
.blog-video-wrap {
  margin: 14px auto 0;
  width: min(100%, 640px);
}
.blog-video-wrap .video-embed {
  margin: 0;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(76, 29, 117, .12);
  box-shadow: 0 12px 28px rgba(76, 29, 117, .12);
}
/* Blog detail page */
.blog-read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  height: 3px;
  pointer-events: none;
}
.blog-read-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), #fcd34d);
  box-shadow: 0 0 10px rgba(245, 158, 11, .6);
}
.blog-detail-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(22px, 3.5vw, 36px) clamp(18px, 4vw, 48px);
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(245, 158, 11, .32), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(252, 211, 77, .16), transparent 40%),
    linear-gradient(135deg, #2e1065 0%, var(--color-primary-dark) 48%, var(--color-primary) 100%);
  box-shadow: 0 16px 36px rgba(46, 16, 101, .22);
  animation: blog-fade-up .6s ease both;
}
.blog-detail-hero::before,
.blog-detail-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(252, 211, 77, .28);
  pointer-events: none;
}
.blog-detail-hero::before {
  width: 240px;
  height: 240px;
  right: -80px;
  top: -100px;
  box-shadow: inset 0 0 0 26px rgba(255, 255, 255, .03), inset 0 0 0 60px rgba(255, 255, 255, .025);
}
.blog-detail-hero::after {
  width: 150px;
  height: 150px;
  left: -60px;
  bottom: -75px;
  border-style: solid;
  border-color: rgba(255, 255, 255, .1);
}
.blog-hero-kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, .14);
  border: 1px solid rgba(252, 211, 77, .38);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.blog-detail-hero h1 {
  position: relative;
  max-width: 900px;
  margin: 12px 0 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .5px;
  text-shadow: 0 4px 22px rgba(0, 0, 0, .25);
}
.blog-hero-divider {
  position: relative;
  width: 84px;
  height: 3px;
  margin: 14px 0 12px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}
.blog-hero-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.blog-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: .8rem;
  font-weight: 500;
}
.blog-hero-meta i {
  color: #fcd34d;
}
.blog-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 28px;
}
.blog-article {
  position: relative;
  min-width: 0;
  padding: clamp(22px, 4vw, 48px);
  border-radius: 20px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(107, 33, 168, .08);
  border-top: 4px solid var(--color-accent);
  box-shadow: 0 18px 44px rgba(76, 29, 117, .09);
  animation: blog-fade-up .6s .12s ease both;
}
.blog-detail-page .blog-rich-content {
  max-width: 760px;
  margin: 0 auto;
  color: var(--color-text);
  font-size: 1.06rem;
  line-height: 1.95;
}
.blog-detail-page .blog-rich-content p,
.blog-detail-page .blog-rich-content ul,
.blog-detail-page .blog-rich-content ol,
.blog-detail-page .blog-rich-content table {
  margin-bottom: 1.1em;
}
.blog-detail-page .blog-rich-content > p:first-child {
  font-size: 1.14rem;
  color: var(--color-primary-dark);
}
.blog-detail-page .blog-rich-content strong {
  color: var(--color-primary-dark);
}
.blog-detail-page .blog-rich-content h2,
.blog-detail-page .blog-rich-content h3,
.blog-detail-page .blog-rich-content h4 {
  margin: 1.6em 0 .7em;
  padding-left: 14px;
  border-left: 4px solid var(--color-accent);
  font-size: 1.28rem;
  font-weight: 700;
}
.blog-detail-page .blog-rich-content h3 { font-size: 1.16rem; }
.blog-detail-page .blog-rich-content h4 { font-size: 1.06rem; }
.blog-detail-page .blog-rich-content blockquote {
  margin: 1.4em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--color-accent);
  border-radius: 0 12px 12px 0;
  background: var(--color-bg);
  color: var(--color-primary-dark);
  font-style: italic;
}
.blog-detail-page .blog-rich-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: rgba(245, 158, 11, .7);
  text-underline-offset: 3px;
}
.blog-detail-page .blog-rich-content li::marker {
  color: var(--color-accent-dark);
}
.blog-detail-video {
  margin-top: 28px;
}
.blog-article-end {
  margin-top: 34px;
  text-align: center;
  color: var(--color-accent);
  font-size: 1rem;
  letter-spacing: .6em;
}
.blog-aside {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
  animation: blog-fade-up .6s .22s ease both;
}
.blog-aside.has-more {
  grid-template-rows: auto 1fr;
}
.blog-aside.has-more > .blog-aside-card:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.blog-aside .blog-cta-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.blog-aside .blog-cta-btn {
  margin-top: auto;
}
.blog-aside-card {
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(107, 33, 168, .08);
  box-shadow: 0 14px 34px rgba(76, 29, 117, .08);
}
.blog-aside-title {
  margin: 0 0 14px;
  color: var(--color-primary-dark);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.blog-share {
  display: flex;
  gap: 10px;
}
.blog-share-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  font-size: 1.15rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.blog-share-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .15);
}
.blog-share-btn.is-whatsapp { background: #25d366; }
.blog-share-btn.is-copy { background: var(--color-primary); }
.blog-share-btn.is-copied { background: #16a34a; }
.blog-cta-card {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, .45), transparent 55%),
    linear-gradient(150deg, var(--color-primary-dark), var(--color-primary));
  border: 0;
}
.blog-cta-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #fcd34d;
  background: rgba(255, 255, 255, .12);
  font-size: 1.3rem;
}
.blog-cta-card h2 {
  margin: 14px 0 6px;
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.4;
  letter-spacing: 0;
}
.blog-cta-card p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, .82);
  font-size: .92rem;
  line-height: 1.6;
}
.blog-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #3b0764;
  background: linear-gradient(90deg, #fcd34d, var(--color-accent));
  font-size: .9rem;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease;
}
.blog-cta-btn:hover {
  color: #3b0764;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(245, 158, 11, .4);
}
.blog-more-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.blog-more-list a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  margin: 0 -10px;
  border-radius: 12px;
  color: var(--color-text);
  transition: background .15s ease;
}
.blog-more-list a:hover {
  background: var(--color-bg);
}
.blog-more-icon {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #7c2d12;
  background: #fff7ed;
  border: 1px solid rgba(124, 45, 18, .1);
}
.blog-more-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.blog-more-copy strong {
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.45;
}
.blog-more-list a:hover strong {
  color: var(--color-primary);
}
.blog-more-copy small {
  color: var(--color-muted);
  font-size: .78rem;
}
.blog-more-all {
  display: inline-flex;
  gap: 6px;
  margin-top: 12px;
  color: var(--color-primary);
  font-size: .88rem;
  font-weight: 700;
}
@keyframes blog-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .blog-detail-hero,
  .blog-article,
  .blog-aside { animation: none; }
}
@media (max-width: 1219px) {
  .blog-detail-page .container { padding-inline: 16px; }
}
@media (max-width: 720px) {
  .blog-detail-hero { border-radius: 18px; }
  .blog-detail-layout { margin-top: 20px; gap: 20px; }
  .blog-article { border-radius: 16px; }
  .blog-detail-page .blog-rich-content { font-size: 1rem; line-height: 1.9; }
  .blog-aside,
  .blog-aside.has-more { grid-template-columns: 1fr; grid-template-rows: none; }
  .blog-aside.has-more > .blog-aside-card:last-child { grid-column: auto; grid-row: auto; }
}
.blog-list.view-grid:not(.blog-list-count-1) .blog-video-wrap {
  width: 100%;
}
.blog-list.view-list .blog-video-wrap {
  width: min(100%, 620px);
}
.view-list .blog-card {
  grid-template-columns: 96px minmax(0, 1fr);
}
.view-list .blog-card .blog-card-icon {
  margin: 22px 0 22px 22px;
  align-self: start;
}
@media (max-width: 720px) {
  .blog-list.view-grid.blog-list-count-2,
  .blog-list.view-grid.blog-list-count-3 {
    grid-template-columns: 1fr;
  }
  .blog-list-count-1 .blog-card .category-item-body {
    padding-right: 20px;
  }
  .view-list .blog-card {
    flex-direction: column;
  }
  .view-list .blog-card .blog-card-icon {
    margin: 18px 18px 0;
  }
  .blog-video-wrap,
  .blog-list.view-list .blog-video-wrap {
    width: 100%;
  }
}

/* Selectable consultation times share the booking form's purple palette. */
.booking-date-time-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; align-items: start; }
.booking-date-time-row > .form-group { min-width: 0; }
.booking-time-options { display: flex; align-items: center; min-height: 46px; min-width: 0; }
.booking-time-boxes { display: flex; flex-wrap: nowrap; gap: 6px; min-width: 0; max-width: 100%; overflow-x: auto; padding: 3px; scrollbar-width: thin; }
.booking-time-box { flex: 0 0 auto; min-height: 36px; padding: 7px 9px; border: 1px solid #d9c8ed; border-radius: 10px; background: transparent; color: var(--primary, #54217e); font: inherit; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s; }
.booking-time-box:hover:not(:disabled) { background: #f5edff; color: #54217e; border-color: #9966cf; }
.booking-time-box[aria-pressed="true"] { background: #65309a; color: #fff; border-color: #65309a; box-shadow: 0 3px 10px #65309a24; }
.booking-time-box[aria-pressed="true"]:hover:not(:disabled) { background: #54217e; color: #fff; border-color: #54217e; }
.booking-time-box:focus-visible { outline: 3px solid #c4a4ec; outline-offset: 2px; }
.booking-time-box:disabled { opacity: .4; cursor: not-allowed; background: #f0edf3; color: #787080; box-shadow: none; border-color: #ded9e4; }
.booking-time-hint { margin: 0; color: var(--text-muted, #6b6478); font-size: 13px; }
.booking-time-group .booking-availability-error { margin-top: 8px; }

@media (max-width: 600px) {
  .booking-date-time-row { grid-template-columns: 150px minmax(0, 1fr); gap: 12px; }
}

.booking-form-error { white-space: pre-line; margin-bottom: 10px; }
.booking-form-error:empty { display: none; }
.booking-availability-error { white-space: pre-line; }

/* Keep mobile text entry readable without triggering input-focus zoom. */
@media (max-width: 720px) {
  body:not(.admin-body) input.form-control,
  body:not(.admin-body) select.form-control,
  body:not(.admin-body) textarea.form-control {
    font-size: 16px;
  }
}

/* Popup content must remain reachable in portrait, landscape and short viewports. */
.meeting-modal,
.profile-email-modal,
.payment-detail-modal,
.checkout-address-modal,
.record-image-modal,
.reschedule-detail-modal,
.reschedule-request-modal,
.site-popup-overlay,
.advt-banner-modal {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}
.meeting-modal > .meeting-modal-dialog,
.profile-email-modal > .profile-email-modal-dialog,
.payment-detail-modal > .payment-detail-dialog,
.checkout-address-modal > .checkout-address-dialog,
.record-image-modal > .record-image-dialog,
.reschedule-detail-modal > .reschedule-detail-dialog,
.reschedule-request-modal > .reschedule-request-dialog,
.prefix-settings-modal > .prefix-settings-dialog,
.site-popup-overlay > .site-popup-card,
.advt-banner-modal > .advt-banner-dialog {
  min-width: 0;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-wrap: anywhere;
}
.site-popup-overlay > .site-popup-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.site-popup-card > p {
  min-height: 0;
  overflow-y: auto;
}
.site-popup-card > .site-popup-icon,
.site-popup-card > h3,
.site-popup-card > .site-popup-button {
  flex-shrink: 0;
}
.site-popup-card > .site-popup-button { align-self: center; }
.prefix-settings-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: inherit;
}
.prefix-settings-head h3 { min-width: 0; overflow-wrap: anywhere; }
.prefix-settings-close { flex-shrink: 0; }

/* Keep the visual dots small while making the actual controls easy to activate. */
.hero-dots button,
.advt-banner-dots button,
.home-consultation-dots button,
.tslider-dots button {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  transform: none;
}
.hero-dots button::before,
.advt-banner-dots button::before,
.home-consultation-dots button::before,
.tslider-dots button::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.8);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);
}
.hero-dots button.active,
.advt-banner-dots button.active,
.home-consultation-dots button[aria-pressed="true"],
.tslider-dots button.active { width: 32px; background: transparent; transform: none; }
.hero-dots button.active::before { width: 18px; background: var(--color-accent); }
.advt-banner-dots button.active::before { background: var(--color-accent); box-shadow: 0 0 0 2px #fff; }
.home-consultation-dots button::before,
.tslider-dots button::before { background: #9b7cac; }
.home-consultation-dots button[aria-pressed="true"]::before { width: 28px; background: var(--color-primary); }
.tslider-dots button.active::before { background: var(--color-primary); }
.hero-dots button:focus-visible,
.advt-banner-dots button:focus-visible,
.home-consultation-dots button:focus-visible,
.tslider-dots button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.hero-dots, .advt-banner-dots, .home-consultation-dots, .tslider-dots { gap: 4px; }
.tslider-dots { flex-wrap: wrap; justify-content: center; min-width: 0; }
.tslider-nav .tslider-arrow { flex-shrink: 0; }
html.js .defer-background,
html.js .defer-background::before,
html.js .defer-background::after { background-image: none !important; }
@supports (content-visibility: auto) {
  html.js .defer-background { content-visibility: auto; contain-intrinsic-size: auto 700px; }
}
.mfp-title { overflow-wrap: anywhere; }
