/* ── Reset & Variables ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #E8751A;
  --primary-dark: #C5610F;
  --primary-light: #FF9A45;
  --primary-glow: rgba(232, 117, 26, 0.3);
  --secondary: #6B1D1D;
  --secondary-dark: #4A1414;
  --accent-gold: #D4A843;
  --accent-gold-light: #F0D078;
  --saffron: #FF6B00;
  --maroon: #800020;
  --text-dark: #1a1a2e;
  --text-main: var(--text-dark);
  --text-body: #444;
  --text-light: #666;
  --text-muted: #999;
  --bg-white: #ffffff;
  --bg-light: #FFF9F0;
  --bg-warm: #FFF3E0;
  --bg-cream: #FFFAF0;
  --bg-dark: #1A0F0A;
  --bg-footer: #1A0F0A;
  --border: #E8DDD0;
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Playfair Display', Georgia, serif;
  --header-height: 72px;
}

[data-theme="dark"] {
  --text-dark: #F0E6D8;
  --text-main: var(--text-dark);
  --text-body: #C4B8A8;
  --text-light: #A09888;
  --text-muted: #807060;
  --bg-white: #1A1410;
  --bg-light: #221A14;
  --bg-warm: #2A1E16;
  --bg-cream: #251C14;
  --bg-dark: #0F0A06;
  --bg-footer: #0F0A06;
  --border: #3A3028;
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.25);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.35);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.4);
  --primary-glow: rgba(232, 117, 26, 0.15);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-width: thin !important;
  scrollbar-color: #E8751A rgba(0, 0, 0, 0.03) !important;
}
html[data-theme='dark'] {
  scrollbar-color: #FF9F1C rgba(255, 255, 255, 0.03) !important;
}
::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03) !important;
  border-radius: 100px !important;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #FF9F1C 0%, #E8751A 100%) !important;
  border-radius: 100px !important;
  border: 2px solid transparent !important;
  background-clip: padding-box !important;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #FFB347 0%, #FF6B35 100%) !important;
  border: 2px solid transparent !important;
  background-clip: padding-box !important;
}
html[data-theme='dark'] ::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03) !important;
}
html[data-theme='dark'] ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #FFB347 0%, #FF9F1C 100%) !important;
  border: 2px solid transparent !important;
  background-clip: padding-box !important;
}
html[data-theme='dark'] ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #FFC97A 0%, #FFB347 100%) !important;
}
body {
  font-family: var(--font);
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: color 0.3s var(--ease);
  position: relative;
  display: inline-block;
}
a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s var(--ease);
}
a:hover {
  color: var(--primary-dark);
}
a:hover::after {
  width: 100%;
}
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--text-dark);
  line-height: 1.3;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.section, .donate-section {
  overflow-x: hidden;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--saffron));
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
  color: #fff;
}
.btn-secondary {
  background: var(--secondary);
  color: #fff;
}
.btn-secondary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.hero-course-cta {
  position: relative;
  border: none;
  overflow: hidden;
  isolation: isolate;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(255, 145, 40, 0.24);
}
.hero-course-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(115deg, #f2c94c 0%, #f5a623 22%, #ef7f1a 48%, #df6b18 72%, #f0b24f 100%);
  background-size: 220% 220%;
  opacity: 1;
  animation: heroCourseGradient 4.6s ease-in-out infinite;
  z-index: -2;
}
.hero-course-cta::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: calc(var(--radius-sm) - 2px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 232, 176, 0.08) 32%, rgba(124, 48, 8, 0.08) 100%);
  z-index: -1;
}
.hero-course-cta:hover {
  transform: translateY(-3px) scale(1.02);
  color: #fff;
  box-shadow: 0 18px 40px rgba(239, 127, 26, 0.32), 0 0 26px rgba(245, 166, 35, 0.22);
}
.hero-course-cta .shimmer-text {
  background: linear-gradient(90deg, #fff8eb 12%, #fff0c7 38%, #ffffff 56%, #ffd88e 84%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@keyframes heroCourseGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  color: var(--secondary-dark);
  font-weight: 700;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 168, 67, 0.35);
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.logo-text {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.logo-text .logo-title {
  white-space: nowrap;
}
.logo-text small {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-family: var(--font);
  font-size: 0.5rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  margin-top: 2px;
  line-height: 1.6;
}
.logo-text small::before,
.logo-text small::after {
  content: '';
  height: 1px;
  width: 14px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  flex-shrink: 0;
}

/* ── Logo Shimmer Animation ── */
@keyframes shimmerSweep {
  0%, 80% { left: -100%; }
  100% { left: 100%; }
}
.logo {
  position: relative;
  overflow: hidden;
}
.logo::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(212,168,67,0.18) 40%, rgba(232,117,26,0.12) 60%, transparent 100%);
  animation: shimmerSweep 4s ease-in-out infinite;
  animation-delay: 2s;
  pointer-events: none;
  z-index: 1;
}

/* ── Navigation ── */
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.main-nav a, .nav-dropdown > span {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.main-nav a:hover, .nav-dropdown:hover > span {
  color: var(--primary);
  background: var(--bg-warm);
}
.nav-course-link {
  color: var(--text-body) !important;
  font-weight: 500 !important;
}
.nav-course-link:hover {
  color: var(--primary) !important;
  background: var(--bg-warm);
}

/* ── Header Notify Button ── */
.header-notify-btn {
  background: linear-gradient(135deg, #1565C0 0%, #1976D2 100%);
  color: #ffffff !important;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.2);
}
.header-notify-btn:hover {
  background: linear-gradient(135deg, #1976D2 0%, #1E88E5 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(21, 101, 192, 0.35);
  color: #ffffff !important;
}
.header-notify-btn:active {
  transform: translateY(0);
}
.header-notify-btn i {
  color: #ffffff;
}
.header-notify-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 30%,
    rgba(255, 255, 255, 0.35) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: notifyShimmer 4.6s infinite var(--ease);
  pointer-events: none;
}
@keyframes notifyShimmer {
  0% { left: -75%; }
  18% { left: 125%; }
  100% { left: 125%; }
}

/* ── Mobile Donate Wrap (Hidden on Desktop) ── */
.mobile-donate-wrap {
  display: none;
}
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-dropdown > span {
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.88rem;
  border-radius: 0;
}
.nav-dropdown-menu a:hover {
  background: var(--bg-warm);
}
/* ── Donate nav-dropdown split-button ── */
.main-nav .nav-dd-link {
  padding: 0 !important;
  background: none !important;
  color: inherit !important;
  text-decoration: none !important;
  border-radius: 0 !important;
  font: inherit !important;
  white-space: nowrap;
}
.main-nav .nav-dd-link:hover {
  background: none !important;
  color: inherit !important;
}
.nav-donate-dd > span {
  color: var(--primary);
  font-weight: 600;
}
.nav-dd-arrow {
  cursor: pointer;
  padding: 2px;
  border-radius: 2px;
  transition: transform 0.25s var(--ease);
}
.nav-dropdown.dd-open .nav-dd-arrow {
  transform: rotate(180deg);
}
.nav-dropdown.dd-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
/* ── Header Actions (Donate + Theme + Hamburger) ── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-donate-btn {
  background: linear-gradient(135deg, var(--primary), var(--saffron));
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.nav-donate-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px var(--primary-glow);
  color: #fff !important;
  background: linear-gradient(135deg, var(--primary), var(--saffron)) !important;
}
@keyframes navDonatePulse {
  0%, 100% { box-shadow: 0 2px 8px var(--primary-glow); }
  50% { box-shadow: 0 4px 20px rgba(232,117,26,0.5); }
}
.nav-donate-btn {
  animation: navDonatePulse 2.5s ease-in-out infinite;
}
.nav-donate-btn:hover {
  animation: none;
}

/* ── Prasadam header button ── */
.header-prasadam-btn {
  background: linear-gradient(135deg, #2e7d32, #43a047);
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.header-prasadam-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(46,125,50,0.45);
  color: #fff !important;
  background: linear-gradient(135deg, #1b5e20, #2e7d32) !important;
}

/* ── Medium screens: tighten nav ── */
@media (min-width: 1101px) and (max-width: 1280px) {
  .main-nav a, .nav-dropdown > span { padding: 8px 10px; font-size: 0.82rem; }
  .nav-donate-btn { padding: 8px 16px !important; font-size: 0.8rem !important; }
  .header-prasadam-btn { padding: 8px 14px !important; font-size: 0.8rem !important; }
  .logo-text { font-size: 1rem; }
  .logo-text small { font-size: 0.4rem; letter-spacing: 0.8px; }
  .header-inner { padding: 0 16px; }
}

/* ── Mobile Nav ── */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 0;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.mobile-toggle i {
  display: block;
  line-height: 1;
  font-size: 1.3rem;
}
.mobile-toggle:hover {
  background: var(--bg-warm);
}
@media (max-width: 1100px) {
  .mobile-toggle { display: inline-flex; }
  html:has(.main-nav.open),
  html:has(.main-nav.open) body,
  html.nav-open,
  html.nav-open body { overflow: hidden; }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 85vw);
    flex-direction: column;
    background: var(--bg-white);
    padding: 80px 24px 24px;
    gap: 0;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease), visibility 0.35s;
    box-shadow: var(--shadow-xl);
    align-items: stretch;
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    visibility: hidden;
  }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .main-nav a,
  .nav-dropdown > span {
    white-space: normal;
    word-break: break-word;
  }
  .nav-dropdown {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    min-width: 0;
    max-width: 100%;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .nav-dropdown.dd-open > .nav-dropdown-menu {
    display: block;
  }
  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
  }
  .mobile-overlay.show { display: block; }
  .logo-text { font-size: 1rem; }
  .logo-text small {
    font-size: 0.4rem;
    letter-spacing: 0.8px;
    gap: 3px 4px;
    margin-top: 1px;
    text-align: left;
    justify-content: flex-start;
  }
  .logo-text small::before,
  .logo-text small::after {
    width: 10px;
  }
  .logo-img { width: 36px; height: 36px; }
  .logo { gap: 8px; }
  .header-inner { padding: 0 12px; }
  
  /* Hide desktop donate button from header on mobile */
  .nav-donate-btn { display: none !important; }
  
  /* Style mobile drawer donate button */
  .mobile-donate-wrap {
    display: block;
    margin: 16px 0 8px;
    padding: 0 16px;
  }
  .mobile-donate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--saffron));
    color: #fff !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    box-shadow: 0 4px 15px var(--primary-glow);
    animation: navDonatePulse 2.5s ease-in-out infinite;
  }
  .mobile-donate-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(232,117,26,0.5);
    animation: none;
  }

  .header-notify-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
  .header-prasadam-btn { padding: 8px 12px !important; font-size: 0.75rem !important; }
  .desktop-theme-btn { display: none; }
}
@media (max-width: 480px) {
  .logo-text { font-size: 0.85rem; }
  .logo-text small {
    font-size: 0.32rem;
    letter-spacing: 0.4px;
    gap: 2px 3px;
    text-align: left;
    justify-content: flex-start;
  }
  .logo-text small::before,
  .logo-text small::after {
    display: none;
  }
  .logo-img { width: 30px; height: 30px; }
  .logo { gap: 6px; flex-shrink: 1; min-width: 0; }
  .header-inner { padding: 0 8px; }
  .header-notify-btn {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
  .header-prasadam-btn { padding: 8px 10px !important; font-size: 0 !important; gap: 0 !important; }
  .header-prasadam-btn i { font-size: 1rem !important; }
  .header-actions { gap: 4px; }
}

/* ── Theme Toggle ── */
.theme-toggle {
  background: none;
  border: 2px solid var(--border);
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-body);
  font-size: 1rem;
  transition: all 0.3s var(--ease);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.mobile-theme-toggle-item {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-body);
  font-size: 0.9rem;
  font-weight: 500;
}
.mobile-theme-toggle-item span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-theme-toggle-item .mobile-theme-btn {
  margin-left: 0;
}
.mobile-settings-item {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-body);
  font-size: 0.9rem;
  font-weight: 500;
}
.mobile-settings-item span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-settings-item .settings-trigger {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-body);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.mobile-settings-item .settings-trigger:hover {
  border-color: var(--primary);
  color: var(--primary);
}
@media (max-width: 1100px) {
  .desktop-theme-btn { display: none; }
  .mobile-theme-toggle-item { display: flex; }
  .mobile-settings-item { display: flex; }
}

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: var(--header-height);
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  will-change: opacity, transform;
  transform: scale(1.08);
}
.hero-slide.active {
  opacity: 1;
  animation: heroSlideZoom 8s linear forwards;
}
@keyframes heroSlideZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(140deg, rgba(26,15,10,0.82) 0%, rgba(128,0,32,0.45) 40%, rgba(107,29,29,0.5) 60%, rgba(232,117,26,0.15) 100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(26,15,10,0.8) 0%, rgba(107,29,29,0.55) 50%, rgba(232,117,26,0.2) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 40px 24px;
}
.hero-content h1 {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  animation: heroFadeInUp 1s var(--ease) 0.3s both;
}
.hero-content p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  line-height: 1.8;
  animation: heroFadeInUp 1s var(--ease) 0.6s both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: heroFadeInUp 1s var(--ease) 0.9s both;
}
.hero-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.hero-dot.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  transform: scale(1.25);
}
.hero-dot:hover {
  background: rgba(255,255,255,0.7);
}
@keyframes heroFadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Chida-Dahi Mahotsav Festival Button ── */
@keyframes festivalGradientSweep {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes festivalPulse {
  0% {
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.45), 0 0 0 0 rgba(16, 185, 129, 0.5);
  }
  50% {
    box-shadow: 0 10px 30px rgba(255, 62, 108, 0.65), 0 0 0 12px rgba(255, 107, 0, 0);
  }
  100% {
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.45), 0 0 0 0 rgba(255, 107, 0, 0);
  }
}

@keyframes chimeBell {
  0% { transform: rotate(-10deg); }
  100% { transform: rotate(10deg); }
}

@keyframes festivalShineSweep {
  0% { left: -150%; }
  40% { left: 150%; }
  100% { left: 150%; }
}

.btn-festival {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  color: #fff !important;
  background: linear-gradient(115deg, #FF6B00 0%, #10B981 25%, #FF3E6C 50%, #D41414 75%, #FF6B00 100%);
  background-size: 250% auto;
  animation: festivalGradientSweep 4s ease-in-out infinite, festivalPulse 2s infinite;
  transition: all 0.4s var(--ease-spring);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.45);
  z-index: 1;
}

.btn-festival i {
  font-size: 1.15rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  animation: chimeBell 1.5s ease-in-out infinite alternate;
}

.btn-festival::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 2;
  animation: festivalShineSweep 3.5s infinite;
}

.btn-festival:hover {
  transform: translateY(-4px) scale(1.05);
  background-size: 150% auto;
  box-shadow: 0 12px 30px rgba(255, 62, 108, 0.5), 0 0 40px rgba(16, 185, 129, 0.45);
}

.btn-festival:active {
  transform: translateY(-1px) scale(0.98);
}

@media (max-width: 576px) {
  .btn-festival {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}


@media (max-width: 768px) {
  .hero { min-height: 70vh; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-content p { font-size: 1rem; }
}

/* ── Sections ── */
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--bg-light);
}
.section-warm {
  background: var(--bg-warm);
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold));
  border-radius: 2px;
}
.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 20px auto 0;
}

/* ── Cards Grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 28px;
}
.cards-grid > *,
.blog-highlight-grid > *,
.gallery-grid > *,
.festivals-grid > *,
.stats-grid > *,
.activities-grid > *,
.donate-grid > *,
.contact-grid > * {
  min-width: 0;
}
.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-xs);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card-body {
  padding: 24px;
}
.card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Schedule Table ── */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.schedule-table th {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: #fff;
  padding: 16px 20px;
  text-align: left;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.schedule-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:hover td { background: var(--bg-warm); }
.schedule-time {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.schedule-closed {
  color: var(--text-muted);
  font-style: italic;
}
@media (max-width: 768px) {
  .schedule-table {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }
  .schedule-table, .schedule-table tbody, .schedule-table tr, .schedule-table td, .schedule-table th {
    display: block;
    width: 100%;
  }
  .schedule-table thead { display: none; }
  .schedule-table tr {
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s var(--ease);
  }
  .schedule-table tr:hover {
    box-shadow: var(--shadow-md);
  }
  .schedule-table tr:hover td {
    background: inherit;
  }
  /* Time — accent header strip */
  .schedule-table td:nth-child(1),
  .schedule-table tr:hover td:nth-child(1) {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 16px;
    letter-spacing: 0.3px;
    border-bottom: none;
    text-align: left;
  }
  /* Programme — bold main text */
  .schedule-table td:nth-child(2) {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-dark);
    padding: 12px 16px 6px;
    border-bottom: none;
  }
  /* Type — inline pill badge */
  .schedule-table td:nth-child(3) {
    padding: 2px 16px 8px;
    border-bottom: none;
    font-size: 0.85rem;
  }
  /* Details — description text */
  .schedule-table td:nth-child(4) {
    padding: 0 16px 14px;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    border-bottom: none;
  }
  .schedule-table td {
    text-align: left;
    position: static;
    padding-left: 16px;
  }
  .schedule-table td::before {
    display: none;
  }
}

/* ── Seva Cards ── */
.seva-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.seva-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.seva-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.seva-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.seva-card-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.seva-card-body p { color: var(--text-light); font-size: 0.92rem; flex: 1; }
.seva-card-amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.seva-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}
.seva-price small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* ── Stats / Milestones ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 24px;
}
.stat-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--bg-warm), var(--bg-cream));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  transition: all 0.4s var(--ease);
}
.stat-card:hover .stat-icon {
  background: linear-gradient(135deg, var(--primary), var(--saffron));
  color: #fff;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-head);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  min-width: 0;
}
@supports not (aspect-ratio: 4/3) {
  .gallery-item {
    height: 0;
    padding-top: 75%; /* 4:3 is 75% */
  }
  .gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #fff;
  font-size: 0.9rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 2001;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }
.lightbox-caption {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.95rem;
  text-align: center;
  max-width: 600px;
  z-index: 2001;
}

/* ── Blog ── */
.blog-card { display: flex; flex-direction: column; }
.blog-card .card-img { height: 200px; }
.blog-card .card-body { flex: 1; display: flex; flex-direction: column; }
.blog-card .card-body p { flex: 1; }
.blog-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.blog-tag {
  background: var(--bg-warm);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}
.blog-content { max-width: 780px; margin: 0 auto; line-height: 1.9; font-size: 1.05rem; }
.blog-content h2 { font-size: 1.6rem; margin: 32px 0 16px; }
.blog-content h3 { font-size: 1.3rem; margin: 24px 0 12px; }
.blog-content p { margin-bottom: 16px; }
.blog-content img { border-radius: var(--radius-md); margin: 24px 0; }
.blog-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--bg-warm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-dark);
}

/* ── Contact Form ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-group { display: flex; flex-direction: column; gap: 3px; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 3px;
}
.required-mark {
  color: #C62828;
  font-weight: 700;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text-body);
  background: var(--bg-white);
  transition: all 0.3s var(--ease);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-textarea { min-height: 70px; resize: vertical; }

/* ── Reactive Form Validation ── */
.form-input.valid, .form-textarea.valid {
  border-color: #2E7D32;
  background-color: rgba(46, 125, 50, 0.02);
}
.form-input.valid:focus, .form-textarea.valid:focus {
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.15);
}
.form-input.invalid, .form-textarea.invalid {
  border-color: #C62828;
  background-color: rgba(198, 40, 40, 0.02);
  animation: shakeField 0.4s ease-in-out;
}
.form-input.invalid:focus, .form-textarea.invalid:focus {
  box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.15);
}
@keyframes shakeField {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.field-error {
  font-size: 0.75rem;
  color: #C62828;
  min-height: 14px;
  display: flex;
  align-items: center;
  gap: 3px;
  opacity: 0;
  transform: translateY(-3px);
  transition: all 0.3s var(--ease);
}
.field-error.visible {
  opacity: 1;
  transform: translateY(0);
}
.field-error::before {
  content: '\f071';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.75rem;
}

/* ── Validation Summary ── */
.validation-summary {
  background: linear-gradient(135deg, rgba(198, 40, 40, 0.08), rgba(198, 40, 40, 0.04));
  border: 1px solid rgba(198, 40, 40, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 12px;
  animation: slideDown 0.4s var(--ease-spring);
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.validation-summary-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #C62828;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.validation-summary-header i {
  font-size: 1.1rem;
}
.validation-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-left: 26px;
}
.validation-summary-list li {
  font-size: 0.85rem;
  color: var(--text-body);
  padding: 4px 0;
  position: relative;
}
.validation-summary-list li::before {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: -16px;
  color: #C62828;
  font-size: 0.7rem;
}
.validation-summary-list li strong {
  color: var(--text-dark);
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── Donate Page ── */
.donate-section { padding: 120px 0 80px; }
.donate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) {
  .donate-section { padding: 100px 0 60px; }
  .donate-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .donate-info h2 { font-size: 1.5rem; }
  .donate-form-card { padding: 16px; }
  .donate-info-card { padding: 16px; }
  .amount-btn { font-size: 0.9rem; padding: 10px 8px; }
  .amount-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.donate-info,
.donate-form-card {
  min-width: 0;
}
.donate-info h2 { font-size: 2rem; margin-bottom: 16px; }
.donate-info p { margin-bottom: 16px; color: var(--text-light); }
.donate-info-card {
  background: var(--bg-warm);
  padding: 24px;
  border-radius: var(--radius-md);
  margin-top: 24px;
}
.donate-info-card h4 { margin-bottom: 12px; font-size: 1.05rem; }
.donate-info-card p {
  margin-bottom: 6px;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.donate-form-card {
  background: var(--bg-white);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.donate-details-grid {
  gap: 8px;
  margin-bottom: 10px;
}
.donate-details-grid .form-group {
  gap: 2px;
}
.donate-details-grid .donate-name-group { order: 1; }
.donate-details-grid .donate-phone-group { order: 2; }
.donate-details-grid .donate-email-group { order: 3; }
.donate-details-grid .donate-address-group { order: 4; }
.donate-details-grid .donate-pan-group { order: 5; }
.donate-details-grid .donate-gotra-group { order: 6; }
.donate-details-grid .donate-comment-group { order: 7; }
.donate-details-grid .field-error {
  min-height: 0;
  line-height: 1.2;
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
}
.donate-details-grid .field-error.visible {
  max-height: 18px;
  margin-top: 2px;
}
.amount-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.amount-btn {
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.amount-btn:hover, .amount-btn.active {
  border-color: var(--primary);
  background: var(--bg-warm);
  color: var(--primary);
}
@media (max-width: 420px) {
  .amount-presets { grid-template-columns: 1fr; }
}

/* ── Seva Custom Dropdown ── */
.seva-dropdown {
  position: relative;
  width: 100%;
}
.seva-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-align: left;
}
.seva-dropdown-trigger:hover {
  border-color: var(--primary-light);
}
.seva-dropdown-trigger:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.seva-dropdown.open .seva-dropdown-trigger {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.seva-dropdown-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}
.seva-dropdown-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: var(--text-dark);
}
.seva-dropdown-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease-spring);
}
.seva-dropdown.open .seva-dropdown-arrow {
  transform: rotate(180deg);
}
.seva-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease-spring), visibility 0.25s;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.seva-dropdown-menu::-webkit-scrollbar { width: 6px; }
.seva-dropdown-menu::-webkit-scrollbar-track { background: transparent; }
.seva-dropdown-menu::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.seva-dropdown.open .seva-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.seva-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: left;
}
.seva-dropdown-item:hover {
  background: var(--bg-warm);
  color: var(--text-dark);
}
.seva-dropdown-item.selected {
  background: var(--bg-warm);
  color: var(--primary);
  font-weight: 600;
}
.seva-item-emoji {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.seva-item-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.seva-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seva-item-amt {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 1px;
}

/* ── Prasadam Booking Page ── */
.prasadam-section {
  padding: 40px 0 80px;
}
.prasadam-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--bg-white);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 40px;
  transition: all 0.4s var(--ease);
  box-shadow: var(--shadow-sm);
}
.prasadam-back-link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateX(-6px);
  box-shadow: var(--shadow-md);
}
.prasadam-back-link i { transition: transform 0.3s var(--ease); }
.prasadam-back-link:hover i { transform: translateX(-4px); }

.prasadam-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.prasadam-form-col, .prasadam-info-col { min-width: 0; }

/* Form Card */
.prasadam-form-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.prasadam-form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold), var(--saffron));
}
.prasadam-form-title {
  font-size: 1.6rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dark);
}
.prasadam-form-title i {
  color: var(--primary);
  font-size: 1.3rem;
}

/* Meal type buttons - modern, highly legible styling rules */
#dynamic-meal-options .meal-type-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 1. SELECTED state (open booking & selected) */
#dynamic-meal-options .meal-type-btn[data-web-booking-status="open"].selected {
  border: 2px solid var(--primary) !important;
  background: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(232, 117, 26, 0.4) !important;
  transform: translateY(-3px) !important;
}
#dynamic-meal-options .meal-type-btn[data-web-booking-status="open"].selected [data-booking-time],
#dynamic-meal-options .meal-type-btn[data-web-booking-status="open"].selected [data-service-time] {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* 2. UNSELECTED state (open booking, not selected) */
#dynamic-meal-options .meal-type-btn[data-web-booking-status="open"]:not(.selected) {
  border: 2px solid var(--primary) !important;
  background: #FFF9F5 !important;
  color: var(--primary) !important;
  box-shadow: none !important;
  transform: none !important;
}
#dynamic-meal-options .meal-type-btn[data-web-booking-status="open"]:not(.selected):hover {
  background: #FFEFE3 !important;
  box-shadow: 0 4px 12px rgba(232, 117, 26, 0.15) !important;
  transform: translateY(-1px) !important;
}
#dynamic-meal-options .meal-type-btn[data-web-booking-status="open"]:not(.selected) [data-booking-time] {
  color: #718096 !important;
}
#dynamic-meal-options .meal-type-btn[data-web-booking-status="open"]:not(.selected) [data-service-time] {
  color: #666666 !important;
}

/* 3. CLOSED state (disabled) */
#dynamic-meal-options .meal-type-btn[data-web-booking-status="closed"] {
  background: #f3f4f6 !important;
  color: #9ca3af !important;
  border: 1px solid #e5e7eb !important;
  opacity: 0.7 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}
#dynamic-meal-options .meal-type-btn[data-web-booking-status="closed"] [data-booking-time],
#dynamic-meal-options .meal-type-btn[data-web-booking-status="closed"] [data-service-time] {
  color: #9ca3af !important;
}

/* Booking cutoff box */
.prasadam-cutoff-box {
  background: linear-gradient(135deg, var(--bg-warm), var(--bg-cream));
  border: 1px solid var(--accent-gold);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 28px;
}
.prasadam-cutoff-box h5 {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.prasadam-cutoff-box h5 i { color: var(--primary); }
.prasadam-cutoff-box ul {
  list-style: none;
  padding: 0;
}
.prasadam-cutoff-box li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-body);
  position: relative;
  padding-left: 18px;
}
.prasadam-cutoff-box li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Form fields */
.prasadam-form-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.prasadam-date-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 4px;
}

/* Price summary */
.prasadam-summary {
  background: linear-gradient(135deg, var(--bg-warm), var(--bg-cream));
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
  border: 1px solid var(--accent-gold);
  animation: prasadamSummaryIn 0.4s var(--ease-spring);
}
@keyframes prasadamSummaryIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.prasadam-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--text-body);
}
.prasadam-summary-total {
  border-top: 2px solid var(--accent-gold);
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-dark);
}
.prasadam-summary-total span:last-child {
  color: var(--primary);
  font-size: 1.3rem;
}

/* Submit button */
.prasadam-submit-btn {
  width: 100%;
  justify-content: center;
  font-size: 1.05rem;
  padding: 16px 32px;
  position: relative;
  overflow: hidden;
}
.prasadam-submit-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.prasadam-submit-btn:hover::after {
  width: 300px;
  height: 300px;
}

/* Info Card */
.prasadam-info-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.prasadam-info-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--saffron));
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px var(--primary-glow);
}
.prasadam-info-title {
  font-size: 1.3rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.prasadam-info-title i { color: var(--accent-gold); }

/* Pricing table */
.prasadam-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  border-radius: var(--radius-sm);
}
.prasadam-table {
  width: 100%;
  min-width: max-content;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.prasadam-table thead th {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: #fff;
  padding: 14px 18px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  white-space: nowrap;
}
.prasadam-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
  transition: background 0.2s;
  white-space: nowrap;
}
.prasadam-table tbody tr:last-child td { border-bottom: none; }
.prasadam-table tbody tr:nth-child(even) td {
  background: var(--bg-cream);
}
.prasadam-table tbody tr:hover td {
  background: var(--bg-warm);
}

/* Seva links */
.prasadam-seva-links {
  margin-top: 32px;
}
.prasadam-seva-links h4 {
  font-size: 1.15rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.prasadam-seva-links h4 i { color: var(--primary); }
.prasadam-seva-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--primary), var(--saffron));
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
  transition: all 0.35s var(--ease);
  box-shadow: var(--shadow-sm);
}
.prasadam-seva-link:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.prasadam-seva-link i {
  font-size: 1.1rem;
  opacity: 0.85;
}

/* Responsive */
@media (max-width: 992px) {
  .prasadam-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .prasadam-form-card { padding: 28px; }
  .prasadam-info-card { padding: 28px; }
}
@media (max-width: 600px) {
  .prasadam-section { padding: 28px 0 60px; }
  .prasadam-form-card { padding: 20px; }
  .prasadam-info-card { padding: 20px; }
  .prasadam-form-title { font-size: 1.3rem; }
  .prasadam-back-link { padding: 10px 20px; font-size: 0.9rem; }
  .prasadam-table { font-size: 0.82rem; }
  .prasadam-table thead th { padding: 10px 12px; font-size: 0.78rem; }
  .prasadam-table tbody td { padding: 10px 12px; }
  .prasadam-submit-btn { font-size: 0.95rem; padding: 14px 24px; }
  .prasadam-seva-link { padding: 12px 18px; font-size: 0.88rem; }
}

/* ── Footer ── */
.site-footer {
  background: linear-gradient(180deg, #1E1410 0%, var(--bg-footer) 100%);
  color: #C4B8A8;
  padding: 64px 0 0;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--maroon), var(--primary), var(--accent-gold), var(--saffron), var(--primary));
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}
.footer-col p, .footer-col a {
  font-size: 0.9rem;
  color: #A09888;
  line-height: 1.8;
}
.footer-col a:hover { color: var(--primary); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { display: flex; align-items: center; gap: 8px; }
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 1rem;
  transition: all 0.3s var(--ease);
}
.footer-social a:nth-child(1):hover { background: #1877F2; box-shadow: 0 4px 16px rgba(24,119,242,0.4); }
.footer-social a:nth-child(2):hover { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); box-shadow: 0 4px 16px rgba(225,48,108,0.4); }
.footer-social a:nth-child(3):hover { background: #FF0000; box-shadow: 0 4px 16px rgba(255,0,0,0.4); }
.footer-social a:nth-child(4):hover { background: #25D366; box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
.footer-social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #807060;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footer-bottom p {
  margin: 0;
}
.footer-bottom-copy {
  max-width: 100%;
  color: #807972c2;
}
.footer-bottom-copy a,
.footer-bottom-copy a:hover,
.footer-bottom-copy a:focus-visible {
  color: #807972c2;
}
.footer-bottom-credit {
  max-width: 100%;
  margin-top: 8px;
}
.footer-credit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.22rem;
  padding: 0;
  color: rgba(128,128,128,0.85);
  opacity: .6;
  letter-spacing: 0.16px;
  line-height: 1.45;
  font-size: 0.8rem;
  text-decoration: none;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.footer-credit > * {
  position: relative;
  z-index: 1;
}
.footer-credit-sparkle {
  color: rgba(128,128,128,0.85);
  font-size: 0.74em;
  line-height: 1;
}
.footer-credit-text {
  color: rgba(128,128,128,0.85);
}
.footer-credit-shimmer {
  color: rgba(128,128,128,0.85);
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
}
.footer-credit-heart {
  color: rgba(128,128,128,0.85);
  font-size: 0.78em;
  line-height: 1;
}
.footer-credit-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.08rem 0.12rem 0.08rem 0.2rem;
  border-radius: 999px;
}
.footer-credit-name {
  font-weight: 700;
  position: relative;
  display: inline-block;
  text-shadow: none;
  transition: color 0.3s var(--ease), text-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.footer-credit-name::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: rgba(128,128,128,0.5);
  transition: width 0.35s var(--ease);
}
.footer-credit-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(128,128,128,0.35);
  box-shadow: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.footer-credit-icon {
  color: rgba(128,128,128,0.5);
  font-size: 0.6rem;
  transform: rotate(-10deg);
}
.footer-credit:hover .footer-credit-name::after {
  width: 100%;
}
.footer-credit:hover,
.footer-credit:focus-visible {
  transform: translateY(-1px);
  color: rgba(128,128,128,0.5);
}
.footer-credit:hover .footer-credit-name {
  transform: translateY(-1px);
  text-shadow: none;
}
.footer-credit:hover .footer-credit-icon-wrap,
.footer-credit:focus-visible .footer-credit-icon-wrap {
  transform: translateX(2px) scale(1.06);
  box-shadow: none;
}
.footer-credit:focus-visible {
  outline: 2px solid rgba(240, 208, 120, 0.5);
  outline-offset: 3px;
}
@keyframes footerCreditTextShimmer {
  0% {
    background-position: 200% 50%;
  }
  55% {
    background-position: -20% 50%;
  }
  100% {
    background-position: -20% 50%;
  }
}
@keyframes footerCreditHeartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  18% {
    transform: scale(1.18);
  }
  36% {
    transform: scale(0.96);
  }
  54% {
    transform: scale(1.08);
  }
}
@keyframes footerCreditPulse {
  0%,
  100% {
    transform: translateY(0);
    text-shadow: 0 0 14px rgba(232, 117, 26, 0.14);
  }
  50% {
    transform: translateY(-1px);
    text-shadow: 0 0 22px rgba(232, 117, 26, 0.26);
  }
}
@keyframes footerCreditIconPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(232, 117, 26, 0.26);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(232, 117, 26, 0);
  }
}
@keyframes footerCreditIconNudge {
  0%,
  100% {
    transform: rotate(-10deg) translateX(0);
  }
  50% {
    transform: rotate(0deg) translateX(2px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .footer-credit,
  .footer-credit-shimmer,
  .footer-credit-heart,
  .footer-credit-name,
  .footer-credit-icon-wrap,
  .footer-credit-icon {
    animation: none;
    transition: none;
  }
  .newsletter-section,
  .newsletter-section::before,
  .newsletter-section .particles-container,
  .newsletter-section .particle,
  .nl-success-icon,
  .nl-success-icon::before {
    animation: none;
    transition: none;
  }
  .newsletter-section .particles-container { display: none; }
}
@media (max-width: 768px) {
  .footer-bottom-credit {
    margin-top: 12px;
  }
  .footer-credit {
    gap: 0.25rem;
    row-gap: 0.1rem;
    font-size: 0.78rem;
    line-height: 1.4;
    max-width: min(100%, 24rem);
  }
  .footer-credit-cta {
    gap: 0.35rem;
    padding: 0.22rem 0.16rem 0 0.28rem;
  }
  .footer-credit-name {
    font-size: 0.96em;
  }
  .footer-credit-icon-wrap {
    width: 1.3rem;
    height: 1.3rem;
  }
  .footer-credit-icon {
    font-size: 0.58rem;
  }
}
.footer-preferences {
  grid-column: span 1;
}
.footer-preferences h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer-preferences h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}
.footer-settings-group {
  margin-bottom: 20px;
}
.footer-settings-group > span {
  display: block;
  font-size: 0.8rem;
  color: #807060;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  font-weight: 500;
}
.footer-settings-group .pill-group {
  display: flex;
  gap: 8px;
  flex-direction: row;
  flex-wrap: nowrap;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 8px;
}
.footer-settings-group .pill-group.pill-group-lang {
  flex-wrap: wrap;
}
.footer-settings-group .pill-btn {
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: #A09888;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  min-width: 70px;
}
.footer-settings-group .pill-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.footer-settings-group .pill-btn.is-active {
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}
.mobile-settings-link {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}
.mobile-settings-link span {
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-preferences { grid-column: span 1; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-preferences { grid-column: span 1; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-preferences { grid-column: span 1; }
}
@media (max-width: 1100px) {
  .mobile-settings-link { display: flex; }
}

/* ── Founder / Acharya Section ── */
.founder-section {
  background: var(--bg-cream);
  overflow: hidden;
}
.founder-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 56px;
  align-items: center;
}
.founder-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.founder-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  pointer-events: none;
}
.founder-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease);
}
.founder-image:hover img { transform: scale(1.03); }
.founder-content h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}
.founder-title {
  color: var(--accent-gold);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: var(--font);
}
.founder-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 16px;
}
.founder-quote {
  border-left: 4px solid var(--accent-gold);
  padding: 20px 24px;
  margin: 24px 0;
  background: var(--bg-warm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-dark);
  font-family: var(--font-head);
  line-height: 1.7;
}
.founder-quote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--text-muted);
  font-family: var(--font);
}
@media (max-width: 768px) {
  .founder-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .founder-image { max-width: 320px; margin: 0 auto; }
}

/* ── Activities / What We Do ── */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.activity-card {
  text-align: center;
  padding: 40px 24px 32px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.activity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold));
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}
.activity-card:hover::before { transform: scaleX(1); }
.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-glow);
}
.activity-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--bg-warm), var(--bg-cream));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  transition: all 0.4s var(--ease);
}
.activity-card:hover .activity-icon {
  background: linear-gradient(135deg, var(--primary), var(--saffron));
  color: #fff;
  transform: scale(1.1);
}
.activity-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.activity-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}
@media (max-width: 992px) {
  .activities-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .activities-grid { grid-template-columns: 1fr; }
}

/* ── Festivals Section ── */
.festivals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
  gap: 24px;
}
.festival-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
  position: relative;
  min-width: 0;
}
.festival-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.festival-card-img {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.festival-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.festival-card:hover .festival-card-img img { transform: scale(1.08); }
.festival-date-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  text-align: center;
  line-height: 1.2;
  box-shadow: var(--shadow-sm);
}
.festival-date-badge .day {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-head);
}
.festival-date-badge .month {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.festival-major-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-gold);
  color: var(--secondary-dark);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.festival-card-body {
  padding: 20px;
  min-width: 0;
}
.festival-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.festival-card-body p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.festivals-footer {
  text-align: center;
  margin-top: 36px;
}

/* ── Quote / Scripture Section ── */
.quote-section {
  background: var(--bg-warm);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-section::before,
.quote-section::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  background: var(--accent-gold);
  opacity: 0.06;
  border-radius: 50%;
}
.quote-section::before { top: -40px; left: -40px; }
.quote-section::after { bottom: -40px; right: -40px; }
.quote-ornament {
  font-size: 2.5rem;
  color: var(--accent-gold);
  opacity: 0.5;
  margin-bottom: 20px;
}
.quote-text {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 20px;
  position: relative;
}
.quote-source {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}
.quote-translation {
  font-size: 0.95rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 12px auto 0;
  line-height: 1.7;
}
@media (max-width: 768px) {
  .quote-text { font-size: 1.25rem; }
}

/* ── Blog Highlights ── */
.blog-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 28px;
}
.blog-highlight-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.blog-highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.blog-highlight-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.blog-highlight-card:hover .blog-highlight-img { transform: scale(1.03); }
.blog-highlight-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-highlight-body h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.4;
}
.blog-highlight-body h3 a {
  color: var(--text-dark);
  transition: color 0.3s var(--ease);
}
.blog-highlight-body h3 a:hover { color: var(--primary); }
.blog-highlight-body .excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-highlight-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.blog-highlight-meta i { color: var(--primary); }

/* ── Staggered Animation Delays ── */
.stagger-1 { transition-delay: 0.1s !important; }
.stagger-2 { transition-delay: 0.2s !important; }
.stagger-3 { transition-delay: 0.3s !important; }
.stagger-4 { transition-delay: 0.4s !important; }
.stagger-5 { transition-delay: 0.5s !important; }
.stagger-6 { transition-delay: 0.6s !important; }

/* ── Enhanced Section Header with Ornamental Divider ── */
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold));
  border-radius: 2px;
}
.section-header .section-ornament {
  display: block;
  margin-top: 16px;
  font-size: 1rem;
  color: var(--accent-gold);
  opacity: 0.4;
  letter-spacing: 8px;
}

/* ── CTA Section Enhanced ── */
.cta-section-enhanced {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section-enhanced::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-section-enhanced h2 { color: #fff; position: relative; }
.cta-section-enhanced p { color: rgba(255,255,255,0.85); position: relative; }
.cta-section-enhanced .btn { position: relative; }

/* ── Hero Gradient Text ── */
.hero-content h1 .hero-highlight {
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero Decorative Lotus Divider ── */
.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 20px 0;
  color: var(--accent-gold-light);
  opacity: 0.6;
}
.hero-divider::before,
.hero-divider::after {
  content: '';
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold-light));
}
.hero-divider::after {
  background: linear-gradient(90deg, var(--accent-gold-light), transparent);
}

/* ── Floating Donate Button ── */
.floating-donate {
  display: flex;
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 996;
  background: linear-gradient(135deg, var(--primary), var(--saffron));
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 1.2rem;
  box-shadow: 0 6px 28px rgba(232,117,26,0.45);
  transition: transform 0.28s var(--ease), filter 0.28s var(--ease), opacity 0.28s var(--ease);
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.8);
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.floating-donate.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  animation: floatDonateHeartbeat 2.5s ease-in-out infinite;
}
.floating-donate:hover {
  box-shadow: 0 12px 36px rgba(232,117,26,0.7);
  transform: translateY(-3px) scale(1.06);
  animation-play-state: paused;
  filter: brightness(1.05);
  color: #fff;
}
@keyframes floatDonateHeartbeat {
  0%, 100% { box-shadow: 0 6px 28px rgba(232,117,26,0.45); }
  20% { box-shadow: 0 9px 34px rgba(232,117,26,0.62); }
  45% { box-shadow: 0 7px 30px rgba(232,117,26,0.5); }
  70% { box-shadow: 0 10px 36px rgba(232,117,26,0.58); }
}

/* ── Back to Top Button ── */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.35s var(--ease);
  box-shadow: var(--shadow-md);
  z-index: 997;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-3px);
  background: var(--secondary-dark);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 768px) {
  .floating-donate { right: 18px; bottom: 24px; width: 50px; height: 50px; font-size: 1rem; }
  .back-to-top { right: 18px; bottom: 86px; width: 42px; height: 42px; }
}

/* ── Page Load Animation ── */
body {
  animation: pageEnter 0.6s var(--ease) both;
}
@keyframes pageEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Animations ── */
[data-animate] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-animate="fade-left"] { transform: translateX(-40px); }
[data-animate="fade-right"] { transform: translateX(40px); }
[data-animate="zoom-in"] { transform: scale(0.85); }
@media (max-width: 768px) {
  [data-animate="fade-left"],
  [data-animate="fade-right"] {
    transform: translateY(24px);
  }
  .festivals-grid {
    gap: 18px;
  }
  .festival-card-body {
    padding: 16px;
  }
  .festival-date-badge {
    top: 10px;
    left: 10px;
    padding: 5px 10px;
  }
  .festival-major-badge {
    top: 10px;
    right: 10px;
    max-width: calc(100% - 90px);
    font-size: 0.64rem;
    padding: 3px 8px;
    white-space: normal;
    text-align: center;
  }
}
[data-animate="fade-down"] { transform: translateY(-36px); }
[data-animate="flip-up"] { transform: perspective(1000px) rotateX(15deg) translateY(30px); }
[data-animate="scale-up"] { transform: scale(0.6); }
[data-animate].animated {
  opacity: 1;
  transform: none;
}

/* ── Gradient Text Effect ── */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent-gold), var(--saffron));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section Decorative Dividers (Waves) ── */
.section-wave-top {
  position: relative;
}
.section-wave-top::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 48px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 48h1200V18c-200 32-400-16-600 8S200-2 0 28z' fill='%23FFF9F0'/%3E%3C/svg%3E") center/cover no-repeat;
  z-index: 1;
  pointer-events: none;
}

/* ── Glowing Card Borders ── */
.glow-card {
  position: relative;
  overflow: hidden;
}
.glow-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--primary), var(--accent-gold), var(--saffron), var(--accent-gold));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.glow-card:hover::before {
  opacity: 1;
}
.glow-card > * {
  position: relative;
  z-index: 1;
}

/* ── Floating Decorative Shapes ── */
@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-12px) rotate(3deg); }
  75% { transform: translateY(8px) rotate(-2deg); }
}
.decorative-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.decorative-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  animation: floatShape 8s ease-in-out infinite;
}
.decorative-shapes .shape-1 {
  width: 200px; height: 200px;
  background: var(--primary);
  top: -60px; right: -40px;
  animation-delay: 0s;
}
.decorative-shapes .shape-2 {
  width: 120px; height: 120px;
  background: var(--accent-gold);
  bottom: -30px; left: 10%;
  animation-delay: 2s;
}
.decorative-shapes .shape-3 {
  width: 80px; height: 80px;
  background: var(--saffron);
  top: 30%; left: -20px;
  animation-delay: 4s;
}

/* ── Text Typing / Reveal Animation ── */
@keyframes typeReveal {
  from { max-width: 0; }
  to { max-width: 100%; }
}

/* ── Pulsing Glow for Icons ── */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,117,26,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(232,117,26,0); }
}

/* ── Enhanced Card Hover with 3D Tilt ── */
.tilt-card {
  transition: all 0.4s var(--ease);
  transform-style: preserve-3d;
}
.tilt-card:hover {
  transform: perspective(1000px) rotateY(-3deg) rotateX(2deg) translateY(-6px);
  box-shadow: 12px 12px 40px rgba(0,0,0,0.12), -4px -4px 20px rgba(232,117,26,0.08);
}

/* ── Gradient Border Bottom for Sections ── */
.gradient-border-bottom {
  position: relative;
}
.gradient-border-bottom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent-gold), var(--primary), transparent);
  border-radius: 2px;
}

/* ── Parallax Background ── */
@media (min-width: 769px) {
  .parallax-bg {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
  }
}

/* ── Animated Underline for Links ── */
.animated-underline {
  position: relative;
}
.animated-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s var(--ease);
}
.animated-underline:hover::after { width: 100%; }

/* ── Rainbow Border Top for Cards ── */
.rainbow-top {
  position: relative;
  overflow: hidden;
}
.rainbow-top::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--maroon), var(--primary), var(--accent-gold), var(--saffron), var(--primary));
  background-size: 200% 100%;
  animation: rainbowSlide 3s linear infinite;
}
@keyframes rainbowSlide {
  from { background-position: 0 0; }
  to { background-position: 200% 0; }
}

/* ── Morphing Background Blobs ── */
@keyframes morphBlob {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}
.morph-blob {
  animation: morphBlob 8s ease-in-out infinite;
}

/* ── Colorful Section Backgrounds ── */
.section-gradient-warm {
  background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-warm) 50%, rgba(212,168,67,0.08) 100%);
}
.section-gradient-saffron {
  background: linear-gradient(135deg, rgba(232,117,26,0.04) 0%, rgba(255,107,0,0.06) 50%, rgba(212,168,67,0.04) 100%);
}

/* ── Hover Scale Bounce ── */
.bounce-hover {
  transition: transform 0.3s var(--ease-spring);
}
.bounce-hover:hover {
  transform: scale(1.05);
}

/* ── Card hover lift ── */
.card, .seva-card, .festival-card, .blog-highlight-card {
  transition: all 0.4s var(--ease);
}
.card:hover, .seva-card:hover, .festival-card:hover, .blog-highlight-card:hover {
  transform: perspective(1000px) rotateY(-1.5deg) rotateX(1deg) translateY(-6px);
  box-shadow: 8px 12px 40px rgba(0,0,0,0.12), -2px -2px 20px rgba(232,117,26,0.06);
}
.activity-card, .stat-card {
  transition: all 0.4s var(--ease);
}
.stat-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 32px rgba(232,117,26,0.15);
}
.activity-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

/* ── Schedule row animation ── */
.schedule-table tr {
  transition: background 0.3s var(--ease);
}

/* ── Section header animated underline ── */
.section-header h2 {
  overflow: hidden;
}
.section-header h2::after {
  transition: transform 0.6s var(--ease-out-expo);
  transform-origin: left;
}
[data-animate].animated .section-header h2::after,
.section-header[data-animate].animated h2::after {
  animation: underlineReveal 0.8s var(--ease-out-expo) 0.3s both;
}
@keyframes underlineReveal {
  from { transform: translateX(-50%) scaleX(0); }
  to { transform: translateX(-50%) scaleX(1); }
}

/* ── Stat Counter Glow on Animate ── */
.stat-card.animated .stat-icon {
  animation: statIconPulse 0.6s var(--ease-spring);
}
@keyframes statIconPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ── Seva Card Hover Glow ── */
.seva-card:hover {
  border-color: rgba(232, 117, 26, 0.3);
  box-shadow: 0 8px 32px var(--primary-glow);
}

/* ── Utilities ── */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-gold { color: var(--accent-gold); }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.py-16 { padding-top: 16px; padding-bottom: 16px; }

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 14px 24px;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1.5px solid var(--accent-gold);
  animation: toastIn 0.3s var(--ease-spring);
  max-width: 380px;
  backdrop-filter: blur(10px);
}
.toast-success {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: rgba(16, 185, 129, 0.4);
}
.toast-error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: rgba(239, 68, 68, 0.4);
}
.toast-info {
  background: linear-gradient(135deg, var(--primary), var(--saffron));
  border-color: var(--accent-gold);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: none; }
}

/* ── Om / Decorative ── */
.ornament {
  display: block;
  margin: 0 auto 20px;
  text-align: center;
  font-size: 2rem;
  color: var(--accent-gold);
  opacity: 0.6;
}

/* ── Donor List ── */
.donor-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.donor-table th {
  background: var(--bg-light);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.5px;
}
.donor-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.donor-table tr:last-child td { border-bottom: none; }
.donor-table tr:hover td { background: var(--bg-warm); }

/* ── Page Banner ── */
.page-banner {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: #fff;
  padding: 120px 0 60px;
  text-align: center;
  margin-top: var(--header-height);
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-banner h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 12px;
  position: relative;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.page-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  word-break: break-word;
  overflow-wrap: break-word;
}
@media (max-width: 768px) {
  .page-banner { padding: 100px 0 40px; }
  .page-banner h1 { font-size: 1.6rem; }
  .page-banner p { font-size: 0.95rem; }
}
@media (max-width: 480px) {
  .page-banner { padding: 90px 0 30px; }
  .page-banner h1 { font-size: 1.35rem; }
  .page-banner p { font-size: 0.85rem; }
}

/* ── Newsletter ── */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary), var(--saffron), var(--primary-dark));
  background-size: 200% 200%;
  animation: gradientShift 6s ease-in-out infinite;
  padding: 60px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.newsletter-section h3 { color: #fff; font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); margin-bottom: 12px; position: relative; }
.newsletter-section p { color: rgba(255, 255, 255, 0.95); font-size: 1.1rem; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); margin-bottom: 24px; position: relative; }
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}
.newsletter-input-group {
  display: flex;
  gap: 12px;
  width: 100%;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: box-shadow 0.3s var(--ease);
}
.newsletter-form input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}
.newsletter-form button {
  padding: 14px 28px;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.newsletter-form button:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.newsletter-checkbox-group {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: left;
}
.newsletter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s;
}
.newsletter-checkbox-label:hover {
  opacity: 1;
  color: #fff;
}
.newsletter-checkbox-label input[type="checkbox"] {
  display: none;
}
.newsletter-checkbox-label .custom-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: transparent;
  transition: all 0.2s ease;
  background: transparent;
  flex-shrink: 0;
}
.newsletter-checkbox-label input[type="checkbox"]:checked + .custom-checkbox {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}
.newsletter-checkbox-label input[type="checkbox"]:focus-visible + .custom-checkbox {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.3);
}
@media (max-width: 500px) {
  .newsletter-input-group { flex-direction: column; }
  .newsletter-options { grid-template-columns: 1fr; }
  .newsletter-push-btn { width: 100%; }
  .ip-notify-card { padding: 18px; }
  .special-prasadam-card { padding: 22px 18px; }
  .newsletter-card { padding: 18px; gap: 14px; }
  .newsletter-card-header { gap: 12px; }
  .newsletter-card-header .newsletter-option-icon { width: 40px; height: 40px; font-size: 1.1rem; }
  .newsletter-card-header .newsletter-card-body h4 { font-size: 1.05rem; }
  .newsletter-card-header .newsletter-card-body p { font-size: 0.82rem; }
  .newsletter-card .newsletter-push-row { align-items: stretch; }
  .newsletter-card .newsletter-push-btn { width: 100%; justify-content: center; }
  .newsletter-card .newsletter-option-foot { text-align: center; }
}

/* ── Newsletter split (Phone vs Web Push) ── */
.newsletter-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  align-items: stretch;
}
.newsletter-card {
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Card 1: Web Notifications Card - Premium Saffron/Golden Glass */
#ft-card-push {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.12) 0%, rgba(232, 117, 26, 0.22) 100%);
  border: 1px solid rgba(255, 215, 0, 0.35);
  box-shadow: 0 8px 32px rgba(232, 117, 26, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
#ft-card-push:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.2) 0%, rgba(232, 117, 26, 0.3) 100%);
  border-color: rgba(255, 215, 0, 0.55);
  box-shadow: 0 16px 40px rgba(232, 117, 26, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Card 2: Phone Updates Card - Deep Slate/Navy Glass */
#ft-card-phone {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.4) 0%, rgba(30, 41, 59, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
#ft-card-phone:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.5) 0%, rgba(30, 41, 59, 0.6) 100%);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.newsletter-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.newsletter-card-header .newsletter-option-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--accent-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.newsletter-card-header .newsletter-card-body {
  flex: 1;
}
.newsletter-card-header .newsletter-card-body h4 {
  font-size: 1.25rem;
  margin: 0 0 4px;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.newsletter-card-header .newsletter-card-body p {
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}
.newsletter-card .newsletter-push-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
  width: 100%;
}
.newsletter-card .newsletter-push-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1a0f00 !important;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 750;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: auto;
}
.newsletter-card .newsletter-push-btn:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(255, 215, 0, 0.45);
}
.newsletter-card .newsletter-push-btn:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}
.newsletter-card .newsletter-push-btn.is-active {
  background: linear-gradient(135deg, #00FF87, #60EFFF) !important;
  color: #002c18 !important;
  box-shadow: 0 8px 24px rgba(0, 255, 135, 0.3);
}
.newsletter-card .newsletter-form {
  max-width: 100%;
  margin: 0;
  gap: 12px;
  width: 100%;
}
.newsletter-card .newsletter-form input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 12px;
  font-weight: 500;
  padding: 14px 20px;
  font-size: 0.95rem;
}
.newsletter-card .newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.newsletter-card .newsletter-form input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}
.newsletter-card .newsletter-form button {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  padding: 14px 28px;
  box-shadow: 0 6px 18px rgba(232, 117, 26, 0.25);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.newsletter-card .newsletter-form button:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 24px rgba(232, 117, 26, 0.4);
}
.newsletter-card .newsletter-option-foot {
  text-align: left;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}
.newsletter-card-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  margin: 6px 0;
  text-align: center;
  position: relative;
  width: 100%;
}
.newsletter-card-divider::before,
.newsletter-card-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 16px;
}

/* Backward compatibility for original newsletter-option styles */
.newsletter-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  padding: 18px;
  color: rgba(255,255,255,0.95);
}
.newsletter-option-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--accent-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.newsletter-option-body h4 {
  font-size: 1.05rem;
  margin: 0 0 4px;
  color: #fff;
  font-weight: 600;
}
.newsletter-option-body p {
  font-size: 0.86rem;
  margin: 0;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}
.newsletter-option-foot {
  text-align: center;
  margin-top: 8px;
  color: rgba(255,255,255,0.78);
  font-size: 0.82rem;
}
.newsletter-option-foot small { color: inherit; }
.newsletter-option-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-weight: 700;
  letter-spacing: 0.3em;
  font-size: 0.78rem;
  margin: 8px 0;
  text-align: center;
  position: relative;
  grid-column: 1 / -1;
}
.newsletter-option-divider::before,
.newsletter-option-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.25);
  margin: 0 12px;
  display: block;
}
.newsletter-push-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.newsletter-push-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent-gold), var(--primary));
  color: #fff;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(232,117,26,0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.3s;
}
.newsletter-push-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(232,117,26,0.45);
}
.newsletter-push-btn:disabled { cursor: default; opacity: 0.85; }
.newsletter-push-btn.is-active {
  background: linear-gradient(135deg, #2e7d32, #43a047);
  box-shadow: 0 8px 20px rgba(46,125,50,0.35);
}

/* ── In-page notify button (used for Special Prasadam + page-specific topics) ── */
.ip-notify-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  color: #fff;
}
.ip-notify-card .ip-notify-text {
  flex: 1;
  text-align: left;
}
.ip-notify-card .ip-notify-text h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}
.ip-notify-card .ip-notify-text p {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.45;
}
.ip-page-notify-section .ip-notify-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 12px 28px rgba(232,117,26,0.22);
}
.ip-notify-btn {
  appearance: none;
  border: 2px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s var(--ease);
  flex-shrink: 0;
}
.ip-notify-btn:hover:not(:disabled) {
  border-color: var(--accent-gold);
  background: rgba(255,193,7,0.18);
  transform: translateY(-1px);
}
.ip-notify-btn.is-on {
  background: linear-gradient(135deg, #2e7d32, #43a047);
  border-color: #43a047;
  color: #fff;
  box-shadow: 0 6px 16px rgba(46,125,50,0.35);
}
.ip-notify-btn.is-on:hover:not(:disabled) { background: linear-gradient(135deg, #c62828, #e53935); border-color: #e53935; box-shadow: 0 6px 16px rgba(198,40,40,0.35); }
.ip-notify-btn.is-off { /* default */ }
.ip-notify-btn.is-loading { opacity: 0.7; cursor: progress; }
.ip-notify-btn.is-denied {
  background: rgba(198,40,40,0.18);
  border-color: rgba(198,40,40,0.5);
  color: #fff;
  cursor: not-allowed;
  opacity: 0.75;
}

/* ── Special Prasadam card with shimmer + glow ── */
.special-prasadam-card {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    linear-gradient(135deg, #ff6f00, #e91e63, #ff6f00);
  background-size: 200% 200%, 300% 300%;
  border-radius: 22px;
  padding: 32px 28px;
  color: #fff;
  text-align: center;
  margin: 24px 0 36px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(233,30,99,0.32);
  isolation: isolate;
}
.special-prasadam-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  background-size: 200% 100%;
  background-position: -150% 0;
  animation: specialShimmer 2.6s linear infinite;
  pointer-events: none;
  z-index: 0;
}
.special-prasadam-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,193,7,0.25), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(156,39,176,0.25), transparent 50%);
  z-index: 0;
  pointer-events: none;
  animation: specialGlow 5s ease-in-out infinite alternate;
}
.special-prasadam-card > * { position: relative; z-index: 1; }
@keyframes specialShimmer {
  0% { background-position: -150% 0; }
  100% { background-position: 250% 0; }
}
@keyframes specialGlow {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}
.special-prasadam-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.25);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  color: #fff8e1;
}
.special-prasadam-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--font-head);
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.special-prasadam-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.28);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  margin: 8px 0 18px;
  color: #fff;
}
.special-prasadam-status i { color: #ffeb3b; }
.special-prasadam-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
  max-width: 540px;
  margin: 0 auto 18px;
}
.special-prasadam-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.special-prasadam-notify {
  appearance: none;
  border: 2px solid #fff;
  background: linear-gradient(135deg, #ffeb3b, #ffc107);
  color: #4a148c;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s var(--ease);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.special-prasadam-notify:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.32);
}
.special-prasadam-notify:disabled { cursor: default; opacity: 0.85; }
.special-prasadam-notify.is-on {
  background: linear-gradient(135deg, #2e7d32, #43a047);
  color: #fff;
  border-color: #66bb6a;
  box-shadow: 0 8px 20px rgba(46,125,50,0.4);
}
.special-prasadam-notify.is-on:hover:not(:disabled) {
  background: linear-gradient(135deg, #c62828, #e53935);
  border-color: #ef5350;
  box-shadow: 0 8px 20px rgba(198,40,40,0.4);
}

/* Dark theme overrides for the special card so it remains vibrant */
[data-theme="dark"] .special-prasadam-card {
  background:
    linear-gradient(135deg, rgba(0,0,0,0.15), rgba(0,0,0,0.05)),
    linear-gradient(135deg, #ff6f00, #c2185b, #ff6f00);
  background-size: 200% 200%, 300% 300%;
}

/* ── Floating Particles ── */
.particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { transform: translateY(100%) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100%) rotate(360deg); opacity: 0; }
}
.particle:nth-child(odd) { background: rgba(232,117,26,0.07); }
.particle:nth-child(3n) { background: rgba(212,168,67,0.06); }

/* ── Global Background Stars ── */
.global-stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.star {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-gold);
  opacity: 0;
  animation: starTwinkle ease-in-out infinite;
}
@keyframes starTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.5) translateY(0); }
  30% { opacity: 0.7; transform: scale(1) translateY(-8px); }
  60% { opacity: 0.3; transform: scale(0.8) translateY(-4px); }
}
.star:nth-child(odd) { background: rgba(232,117,26,0.35); }
.star:nth-child(3n) { background: rgba(212,168,67,0.4); }
.star:nth-child(5n) { background: rgba(255,255,255,0.3); }
[data-theme="dark"] .star { opacity: 0; animation-name: starTwinkleDark; }
@keyframes starTwinkleDark {
  0%, 100% { opacity: 0; transform: scale(0.5) translateY(0); }
  30% { opacity: 0.5; transform: scale(1.2) translateY(-10px); }
  60% { opacity: 0.2; transform: scale(0.7) translateY(-5px); }
}

/* ── Shimmer Text Effect ── */
@keyframes textShimmer {
  0%, 70% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.shimmer-text {
  background: linear-gradient(90deg, var(--text-dark) 30%, var(--accent-gold) 50%, var(--text-dark) 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 5s ease-in-out infinite;
}
[data-theme="dark"] .shimmer-text {
  background: linear-gradient(90deg, var(--text-dark) 30%, var(--accent-gold) 50%, var(--text-dark) 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 5s ease-in-out infinite;
}

/* ── Parallax Sections ── */
.parallax-bg {
  background-attachment: scroll;
  will-change: transform;
}
@media (min-width: 769px) {
  .parallax-bg {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
  }
}

/* ── Mobile Responsiveness Fixes ── */

/* Hero dots: expand touch target to 44px minimum */
.hero-dot { position: relative; }
.hero-dot::before {
  content: '';
  position: absolute;
  top: -16px; left: -16px; right: -16px; bottom: -16px;
}

/* Donor table: card layout on mobile */
@media (max-width: 600px) {
  .donor-table,
  .donor-table thead,
  .donor-table tbody,
  .donor-table tr,
  .donor-table th,
  .donor-table td { display: block; }
  .donor-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .donor-table tr {
    margin-bottom: 12px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
  }
  .donor-table td {
    padding: 6px 0;
    border-bottom: none;
    text-align: left;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    gap: 8px;
  }
  .donor-table td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-light);
    flex-shrink: 0;
  }
  .donor-table tr:hover td { background: transparent; }
}

/* Toast: prevent overflow on small screens */
@media (max-width: 480px) {
  .toast-container { left: 12px; right: 12px; top: 12px; }
  .toast { max-width: 100%; }
}

/* Lightbox: tighter positioning on small screens */
@media (max-width: 480px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1.2rem; }
  .lightbox-caption { font-size: 0.85rem; padding: 0 16px; }
}

/* Small mobile: tighter spacing, smaller type */
@media (max-width: 375px) {
  .section { padding: 48px 0; }
  .section-header h2 { font-size: 1.6rem; }
  .container { padding-left: 12px; padding-right: 12px; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 0.9rem; }
  .stat-number { font-size: 2rem; }
}

/* Word-wrap safety for hero headings */
.hero-content h1 { overflow-wrap: break-word; word-break: break-word; }

/* Mobile nav link touch targets */
@media (max-width: 1100px) {
  .main-nav a,
  .nav-dropdown > span { min-height: 44px; display: flex; align-items: center; }
}

/* ══════════════════════════════════════════════════════
   Active Navigation Highlight
   ══════════════════════════════════════════════════════ */
.main-nav a.active-nav,
.nav-dropdown.active-nav > span {
  color: var(--primary);
  background: var(--bg-warm);
  font-weight: 600;
  position: relative;
}
.main-nav a.active-nav::after,
.nav-dropdown.active-nav > span::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2.5px;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold));
  border-radius: 2px;
}
@media (max-width: 992px) {
  .main-nav a.active-nav::after,
  .nav-dropdown.active-nav > span::after {
    bottom: auto; left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 60%; border-radius: 2px;
  }
}
.nav-dropdown-menu a.active-nav {
  color: var(--primary);
  background: var(--bg-warm);
  font-weight: 600;
}
.nav-dropdown-menu a.active-nav::after { display: none; }

/* ══════════════════════════════════════════════════════
   Page Hero Banner (reusable inner-page hero)
   ══════════════════════════════════════════════════════ */
.page-hero {
  position: relative;
  padding: 140px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-warm) 100%);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232,117,26,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: 2.8rem;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}
.page-hero .hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--saffron));
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(232,117,26,0.25);
}
@media (max-width: 768px) {
  .page-hero { padding: 110px 0 56px; }
  .page-hero h1 { font-size: 2rem; }
  .page-hero p { font-size: 1rem; }
}

/* ══════════════════════════════════════════════════════
   Tour Card — alternating two-column layout
   ══════════════════════════════════════════════════════ */
.tour-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.tour-card:last-child { border-bottom: none; }
.tour-card:nth-child(even) .tour-card-media { order: 2; }
.tour-card:nth-child(even) .tour-card-content { order: 1; }
.tour-card-content h3 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.tour-card-content .tour-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 16px;
}
.tour-card-content p {
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 16px;
}
.tour-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.tour-highlights li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  color: var(--text-body);
  font-size: 0.95rem;
}
.tour-highlights li::before {
  content: '\f06d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-size: 0.8rem;
}
.tour-duration {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--primary-dark);
}
@media (max-width: 768px) {
  .tour-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0;
  }
  .tour-card:nth-child(even) .tour-card-media { order: 0; }
  .tour-card:nth-child(even) .tour-card-content { order: 0; }
  .tour-card-content h3 { font-size: 1.4rem; }
}

/* ── Tour Slideshow ── */
.tour-slideshow {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 420px;
  box-shadow: var(--shadow-lg);
}
.tour-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.tour-slideshow img.active {
  opacity: 1;
}
.tour-slideshow-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.tour-slideshow-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: 2px solid rgba(255,255,255,0.7);
}
.tour-slideshow-dots span.active {
  background: #fff;
  transform: scale(1.2);
}
@media (max-width: 768px) {
  .tour-slideshow { height: 280px; }
}

/* ══════════════════════════════════════════════════════
   Book Distribution Page
   ══════════════════════════════════════════════════════ */
.book-mission-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 56px;
  align-items: center;
}
.book-mission-grid .mission-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.book-mission-grid .mission-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.book-mission-grid .mission-content h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.book-mission-grid .mission-content p {
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 14px;
}
.book-mission-grid .mission-content blockquote {
  border-left: 4px solid var(--accent-gold);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--bg-warm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.7;
}
@media (max-width: 768px) {
  .book-mission-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.book-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.book-card .book-card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-card .book-card-img i {
  font-size: 3.5rem;
  color: var(--primary);
  opacity: 0.4;
}
.book-card .book-card-body {
  padding: 24px;
}
.book-card .book-card-body h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.book-card .book-card-body p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

.book-stall-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}
.book-stall-gallery .stall-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 240px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.book-stall-gallery .stall-img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}
.book-stall-gallery .stall-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── CTA Banner (shared for inner pages) ── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 80px 0;
  text-align: center;
  color: #fff;
  position: relative;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
/* Wave divider at bottom to separate from newsletter */
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 60' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M0 60h1200V25c-200 20-400-10-600 5S200 10 0 35z' fill='%23E8751A'/%3E%3C/svg%3E") center/cover no-repeat;
  z-index: 1;
}
.cta-banner .container {
  position: relative;
  z-index: 2;
}
.cta-banner h2 {
  font-family: var(--font-head);
  font-size: 2.2rem;
  margin-bottom: 16px;
  color: #fff;
}
.cta-banner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.95);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.cta-banner .cta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.cta-banner .cta-info span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  background: rgba(255,255,255,0.15);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.25);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: all 0.3s var(--ease);
}
.cta-banner .cta-info span:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}
.cta-banner .cta-info span i {
  font-size: 1.1rem;
  color: var(--accent-gold-light);
}
@media (max-width: 768px) {
  .cta-banner { padding: 64px 0 80px; }
  .cta-banner h2 { font-size: 1.6rem; }
  .cta-banner::after { height: 40px; }
}
@media (max-width: 480px) {
  .cta-banner .cta-info span {
    padding: 12px 18px;
    font-size: 0.9rem;
  }
}

/* ──────────── Life Guidance Page ──────────── */
.lg-intro { max-width: 820px; margin: 0 auto; }
.lg-intro h2 { font-family: var(--font-head); font-size: 2rem; margin-bottom: 20px; color: var(--text-dark); }
.lg-intro .lg-intro-body { color: var(--text-body); font-size: 1.05rem; line-height: 1.85; }
.lg-intro .lg-intro-body p { margin-bottom: 16px; }
.lg-intro .lg-intro-body strong { color: var(--primary-dark); }
.lg-intro .lg-intro-body em { color: var(--text-dark); }
.lg-intro .lg-intro-body ul { margin: 14px 0 18px 22px; }
.lg-intro .lg-intro-body li { margin-bottom: 6px; }

.lg-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 36px; }
.lg-tab {
  font-family: var(--font); font-size: 0.92rem; font-weight: 600;
  padding: 10px 20px; border-radius: 999px;
  background: var(--bg-light); color: var(--text-body);
  border: 1.5px solid var(--border); cursor: pointer;
  transition: all 0.2s var(--ease); display: inline-flex; align-items: center; gap: 8px;
}
.lg-tab:hover { border-color: var(--primary); color: var(--primary); }
.lg-tab[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border-color: var(--primary-dark);
  box-shadow: 0 6px 18px rgba(232,117,26,0.3);
}
.lg-tab i { font-size: 0.9em; }

.lg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }

.lg-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  display: flex; flex-direction: column;
  scroll-margin-top: calc(var(--header-height) + 20px);
}
.lg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent-gold-light); }
.lg-card[hidden] { display: none !important; }
.lg-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.lg-card__toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.lg-card__head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.lg-card__icon {
  flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-warm), var(--accent-gold-light));
  color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.lg-card:hover .lg-card__icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}
.lg-card__meta { flex: 1 1 auto; min-width: 0; }
.lg-card__chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: var(--accent-gold-light); color: var(--secondary-dark);
  margin-bottom: 8px;
}
.lg-card__title {
  font-family: var(--font-head); font-size: 1.2rem; line-height: 1.35;
  color: var(--text-dark); margin: 0;
}
.lg-card__problem { color: var(--text-body); font-size: 0.97rem; line-height: 1.65; margin: 0 0 16px; }

.lg-stub-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto;
  font-size: 0.78rem; font-weight: 600; color: var(--text-muted);
  padding: 8px 14px; border-radius: 999px;
  background: var(--bg-light); border: 1px dashed var(--border);
  align-self: flex-start;
}

.lg-card__toggle {
  margin-top: auto;
  font-family: var(--font); font-size: 0.9rem; font-weight: 700;
  color: var(--primary); background: none; border: none; cursor: pointer;
  padding: 6px 0; display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  transition: color 0.2s var(--ease);
}
.lg-card__toggle:hover { color: var(--primary-dark); }
.lg-card__toggle i { transition: transform 0.3s var(--ease); }
.lg-card__toggle[aria-expanded="true"] i { transform: rotate(180deg); }

.lg-card__body {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border);
  color: var(--text-body); font-size: 0.97rem; line-height: 1.75;
}
.lg-card__body[hidden] { display: none; }

.lg-section-label {
  display: block;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary-dark); margin: 18px 0 8px;
}
.lg-section-label:first-child { margin-top: 0; }

.lg-quote {
  background: var(--bg-light);
  border-left: 4px solid var(--accent-gold);
  padding: 16px 20px; margin: 6px 0 4px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head); font-style: italic; color: var(--text-dark);
  font-size: 0.98rem; line-height: 1.7;
}
.lg-quote cite { display: block; margin-top: 8px; font-style: normal; font-weight: 700; font-size: 0.82rem; color: var(--primary-dark); font-family: var(--font); letter-spacing: 0.02em; }
.lg-solution p { margin-bottom: 12px; }
.lg-solution strong { color: var(--primary-dark); }
.lg-steps { margin: 6px 0 6px 20px; }
.lg-steps li { margin-bottom: 10px; }

.lg-card__visit {
  display: block; margin-top: 18px; padding: 14px 16px;
  background: linear-gradient(135deg, rgba(232,117,26,0.08), rgba(212,168,67,0.12));
  border: 1px solid var(--accent-gold-light); border-radius: var(--radius-md);
  color: var(--text-body); font-size: 0.92rem; line-height: 1.6;
}
.lg-card__visit::before {
  content: "\f3c5"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  color: var(--primary); margin-right: 8px;
}

.lg-closing {
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
  color: #fff; padding: 64px 0; text-align: center;
}
.lg-closing h2 { font-family: var(--font-head); font-size: 2rem; margin-bottom: 16px; color: #fff; }
.lg-closing p { max-width: 700px; margin: 0 auto 28px; color: rgba(255,255,255,0.88); font-size: 1.05rem; line-height: 1.75; }
.lg-closing .btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.lg-empty { grid-column: 1/-1; text-align: center; padding: 48px 16px; color: var(--text-muted); }

/* Dark mode overrides */
[data-theme="dark"] .lg-card { background: #1f1711; border-color: #3a2b1e; }
[data-theme="dark"] .lg-card__title { color: #f5e9d8; }
[data-theme="dark"] .lg-card__problem, [data-theme="dark"] .lg-card__body, [data-theme="dark"] .lg-intro .lg-intro-body { color: #cbb9a4; }
[data-theme="dark"] .lg-tab { background: #231911; border-color: #3a2b1e; color: #cbb9a4; }
[data-theme="dark"] .lg-quote { background: #231911; color: #f5e9d8; }
[data-theme="dark"] .lg-card__visit { background: linear-gradient(135deg, rgba(232,117,26,0.12), rgba(212,168,67,0.08)); border-color: #554127; color: #cbb9a4; }
[data-theme="dark"] .lg-stub-badge { background: #231911; border-color: #3a2b1e; color: #a08b73; }
[data-theme="dark"] .lg-section-label { color: var(--primary-light); }
[data-theme="dark"] .lg-card__chip { background: #3a2b1e; color: var(--accent-gold-light); }
[data-theme="dark"] .lg-card__body { border-top-color: #3a2b1e; }

@media (max-width: 600px) {
  .lg-grid { grid-template-columns: 1fr; }
  .lg-card { padding: 22px 20px; }
  .lg-intro h2 { font-size: 1.6rem; }
  .lg-closing { padding: 48px 0; }
  .lg-closing h2 { font-size: 1.55rem; }
}

/* ══════════════════════════════════════════════════════════════════════════
   SETTINGS SIDEBAR (theme + language) — appended, independent styles
   ══════════════════════════════════════════════════════════════════════════ */

/* Gear trigger button in the header */
.settings-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-dark);
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  margin-left: 4px;
}
.settings-trigger:hover {
  transform: rotate(40deg);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px var(--primary-glow);
  border-color: transparent;
}
.settings-trigger:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
@media (max-width: 768px) {
  .settings-trigger { width: 38px; height: 38px; font-size: 0.95rem; }
}

/* Dimmed overlay */
.settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  z-index: 9998;
}
.settings-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Slide-in drawer */
.settings-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 360px;
  max-width: 92vw;
  background: var(--bg-white);
  color: var(--text-dark);
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out-expo);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
}
.settings-sidebar.is-open {
  transform: translateX(0);
}

.settings-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary), var(--saffron));
  color: #fff;
}
.settings-sidebar-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-head);
}
.settings-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.settings-close:hover { background: rgba(255, 255, 255, 0.35); }

.settings-sidebar-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}
.settings-group + .settings-group { margin-top: 28px; }
.settings-group h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin: 0 0 12px 0;
  font-family: var(--font);
}

/* Segmented pill group */
.pill-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
}
.pill-group-lang { grid-template-columns: 1fr 1fr 1fr; }
.pill-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-body);
  padding: 10px 12px;
  border-radius: calc(var(--radius-md) - 4px);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.pill-btn:hover { color: var(--text-dark); }
.pill-btn.is-active {
  background: linear-gradient(135deg, var(--primary), var(--saffron));
  color: #fff;
  box-shadow: 0 4px 12px var(--primary-glow);
}
.pill-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Narrow screens — full width drawer */
@media (max-width: 480px) {
  .settings-sidebar { width: 100vw; max-width: 100vw; border-left: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .settings-sidebar,
  .settings-overlay,
  .settings-trigger,
  .pill-btn {
    transition: none !important;
  }
  .settings-trigger:hover { transform: none; }
}

/* ── Newsletter Subscription Success Modal ── */
.nl-success-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.nl-success-modal-overlay.active {
  display: flex;
  opacity: 1;
}
.nl-success-modal {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  max-width: 450px;
  width: 100%;
  text-align: center;
  padding: 48px 40px;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s var(--ease-out-expo);
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}
.nl-success-modal-overlay.active .nl-success-modal {
  transform: scale(1) translateY(0);
}
.nl-success-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 28px;
  background: linear-gradient(135deg, var(--primary), var(--saffron), var(--accent-gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: #fff;
  box-shadow: 0 12px 32px rgba(232, 117, 26, 0.4), 0 4px 12px rgba(212, 168, 67, 0.3);
  animation: nlSuccessPop 0.8s var(--ease-spring);
  position: relative;
}
.nl-success-icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--saffron), var(--accent-gold));
  opacity: 0.3;
  z-index: -1;
  animation: nlSuccessRipple 1.5s ease-out infinite;
}
@keyframes nlSuccessPop {
  0% { transform: scale(0) rotate(-180deg); opacity: 0; }
  50% { transform: scale(1.15) rotate(10deg); }
  70% { transform: scale(0.95) rotate(-5deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes nlSuccessRipple {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}
.nl-success-modal h3 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.nl-success-modal p {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}
.nl-success-modal .btn-primary {
  padding: 14px 32px;
}
@media (max-width: 480px) {
  .nl-success-modal {
    padding: 36px 24px;
  }
  .nl-success-modal h3 {
    font-size: 1.35rem;
  }
}

/* ── Push Notification Prompt ── */
.push-prompt-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 2000;
  max-width: 400px;
  width: calc(100vw - 48px);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  display: none;
}
.push-prompt-container.active {
  opacity: 1;
  transform: translateY(0);
}
.push-prompt-card {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg, 16px);
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .push-prompt-card {
  background: rgba(31, 23, 17, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.push-prompt-close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted, #a08b73);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s var(--ease);
}
.push-prompt-close-btn:hover {
  color: var(--primary);
}
.push-prompt-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.push-prompt-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary, #e8751a), var(--saffron, #ff8c00));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(232, 117, 26, 0.3);
}
.push-prompt-bell-icon {
  color: #fff;
  font-size: 1.2rem;
  animation: promptBellRing 3s ease-in-out infinite;
}
@keyframes promptBellRing {
  0%, 100% { transform: rotate(0); }
  10%, 20% { transform: rotate(15deg); }
  15%, 25% { transform: rotate(-15deg); }
  30% { transform: rotate(0); }
}
.push-prompt-text-wrap {
  flex: 1;
}
.push-prompt-title {
  margin: 0 0 6px 0;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark, #2b1f1d);
}
[data-theme="dark"] .push-prompt-title {
  color: #f5e9d8;
}
.push-prompt-desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-light, #554840);
}
[data-theme="dark"] .push-prompt-desc {
  color: #cbb9a4;
}
.push-prompt-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.push-prompt-btn {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.push-prompt-btn-later {
  background: transparent;
  border: 1px solid var(--border, #e5dcd3);
  color: var(--text-body, #3a2e2b);
}
[data-theme="dark"] .push-prompt-btn-later {
  border-color: rgba(255, 255, 255, 0.15);
  color: #cbb9a4;
}
.push-prompt-btn-later:hover {
  background: rgba(0, 0, 0, 0.05);
}
[data-theme="dark"] .push-prompt-btn-later:hover {
  background: rgba(255, 255, 255, 0.05);
}
.push-prompt-btn-allow {
  background: linear-gradient(135deg, var(--primary, #e8751a), var(--saffron, #ff8c00));
  border: none;
  color: #fff;
  box-shadow: 0 4px 12px rgba(232, 117, 26, 0.25);
}
.push-prompt-btn-allow:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(232, 117, 26, 0.4);
}
@media (max-width: 480px) {
  .push-prompt-container {
    bottom: 16px;
    left: 16px;
    width: calc(100vw - 32px);
  }
}

/* ── Geolocation Footer Location Widget ── */
.ft-location-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 8px;
}
#ft-location-name {
  font-size: 0.85rem;
  color: #A09888;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ft-location-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 6px;
  color: #fff;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.25s var(--ease);
}
.ft-location-btn:hover {
  background: var(--primary);
  box-shadow: 0 4px 10px var(--primary-glow);
}

/* ── Geolocation Reminders Success Popup ── */
.push-success-container {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.push-success-container.active {
  display: flex;
  opacity: 1;
}
.push-success-card {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg, 16px);
  padding: 32px 24px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s var(--ease-out-expo);
}
[data-theme="dark"] .push-success-card {
  background: rgba(31, 23, 17, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.push-success-container.active .push-success-card {
  transform: scale(1) translateY(0);
}
.push-success-icon-wrap {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, #2E7D32, #4CAF50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.4);
}
.push-success-check-icon {
  color: #fff;
  font-size: 1.8rem;
}
.push-success-card h4 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin: 0 0 10px 0;
  color: var(--text-dark, #2b1f1d);
}
[data-theme="dark"] .push-success-card h4 {
  color: #f5e9d8;
}
.push-success-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-body, #3a2e2b);
  margin: 0 0 20px 0;
}
[data-theme="dark"] .push-success-card p {
  color: #cbb9a4;
}
.push-success-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary, #e8751a), var(--saffron, #ff8c00));
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  box-shadow: 0 4px 12px rgba(232, 117, 26, 0.3);
}
.push-success-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(232, 117, 26, 0.45);
}

/* ── Geolocation Drift Weekly Alert ── */
.drift-alert-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 2999;
  max-width: 420px;
  width: calc(100vw - 48px);
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  display: none;
}
.drift-alert-container.active {
  opacity: 1;
  transform: translateX(0);
}
.drift-alert-card {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-left: 5px solid var(--primary, #e8751a);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
[data-theme="dark"] .drift-alert-card {
  background: rgba(31, 23, 17, 0.9);
  border-color: var(--primary);
  border-top-color: rgba(255, 255, 255, 0.05);
  border-bottom-color: rgba(255, 255, 255, 0.05);
  border-right-color: rgba(255, 255, 255, 0.05);
}
.drift-alert-content {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.drift-alert-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(232, 117, 26, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.drift-alert-marker-icon {
  color: var(--primary);
  font-size: 1.1rem;
}
.drift-alert-text {
  flex: 1;
}
.drift-alert-title {
  margin: 0 0 4px 0;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark, #2b1f1d);
}
[data-theme="dark"] .drift-alert-title {
  color: #f5e9d8;
}
.drift-alert-desc {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-body, #3a2e2b);
}
[data-theme="dark"] .drift-alert-desc {
  color: #cbb9a4;
}
.drift-alert-btn {
  align-self: flex-end;
  padding: 6px 14px;
  background: var(--primary, #e8751a);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}
.drift-alert-btn:hover {
  background: var(--primary-dark);
}
@media (max-width: 768px) {
  .drift-alert-container {
    top: auto;
    bottom: 90px;
    right: 16px;
    left: 16px;
    width: calc(100vw - 32px);
    transform: translateY(30px);
  }
  .drift-alert-container.active {
    transform: translateY(0);
  }
}

/* ── Vaisnava Ekadashi Page Layout Styles ── */
.ekadashi-page-banner {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: #fff;
  padding: 130px 0 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ekadashi-page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.ekadashi-page-title {
  font-family: var(--font-head);
  font-size: 2.6rem;
  color: #fff;
  margin: 0 0 10px 0;
}
.ekadashi-page-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
}

.ekadashi-location-bar {
  background: #FFFFFF;
  border: 2px solid var(--border, #e5dcd3);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 900px;
  margin: -24px auto 32px auto;
  position: relative;
  z-index: 10;
}
[data-theme="dark"] .ekadashi-location-bar {
  background: #1f1711;
  border-color: #3e2d1d;
}
.ekadashi-location-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark, #2b1f1d);
}
[data-theme="dark"] .ekadashi-location-info {
  color: #f5e9d8;
}
.ekadashi-location-info i {
  color: var(--accent-gold);
  font-size: 1.1rem;
}
.ekadashi-location-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ekadashi-loc-btn {
  background: linear-gradient(135deg, var(--primary, #e8751a), var(--saffron, #ff8c00));
  border: 1px solid var(--accent-gold);
  border-radius: 8px;
  color: #fff;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.25s var(--ease);
  height: 40px;
  min-width: 190px;
  box-sizing: border-box;
}
.ekadashi-loc-btn:hover {
  transform: translateY(-1px);
}
.ekadashi-loc-btn-secondary {
  background: #FAF6F0;
  border: 1px solid var(--border, #e5dcd3);
  color: var(--text-body, #5c4a45);
}
[data-theme="dark"] .ekadashi-loc-btn-secondary {
  background: #231911;
  border-color: #3a2b1e;
  color: #cbb9a4;
}
.ekadashi-loc-btn-secondary:hover {
  background: var(--border, #e5dcd3);
  color: var(--text-dark, #2b1f1d);
  box-shadow: none;
}
[data-theme="dark"] .ekadashi-loc-btn-secondary:hover {
  background: #3a2b1e;
  color: #f5e9d8;
}

/* Upcoming Ekadashi Hero Section */
.upcoming-ekadashi-hero {
  max-width: 900px;
  margin: 0 auto 48px auto;
}
.upcoming-card {
  background: #FFF8EE;
  border: 2px solid var(--accent-gold-light, #f0e6d6);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
[data-theme="dark"] .upcoming-card {
  background: #251B12;
  border-color: #3e2d1d;
}
.upcoming-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(232,117,26,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.upcoming-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 16px;
  width: 100%;
}
.upcoming-header-flex .upcoming-badge {
  margin-bottom: 0;
}
.hero-story-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 700;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  font-size: 0.9rem;
}
.hero-story-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
}
.hero-story-btn:active {
  transform: translateY(0);
}
.upcoming-details {
  display: flex;
  flex-direction: column;
}
.upcoming-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: linear-gradient(90deg, var(--primary, #e8751a), var(--saffron, #ff8c00));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.upcoming-title {
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--text-dark, #2b1f1d);
  margin: 0 0 6px 0;
}
[data-theme="dark"] .upcoming-title {
  color: #f5e9d8;
}
.upcoming-month {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.upcoming-info-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.upcoming-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-body);
}
[data-theme="dark"] .upcoming-info-item {
  color: #cbb9a4;
}
.upcoming-info-item i {
  color: var(--accent-gold);
  width: 16px;
  text-align: center;
}
.upcoming-info-item strong {
  color: var(--text-dark);
}
[data-theme="dark"] .upcoming-info-item strong {
  color: #f5e9d8;
}

/* Countdown Clock */
.upcoming-countdown {
  background: rgba(232, 117, 26, 0.05);
  border: 1px solid rgba(232, 117, 26, 0.15);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}
[data-theme="dark"] .upcoming-countdown {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}
.countdown-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 14px;
}
[data-theme="dark"] .countdown-label {
  color: #a08b73;
}
.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 54px;
}
.countdown-number {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.countdown-text {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Yearly Calendar Section */
.ekadashi-calendar-section {
  max-width: 900px;
  margin: 0 auto 80px auto;
}
.year-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}
.year-tab-btn {
  appearance: none;
  background: var(--bg-light, #f5edf3);
  border: 1.5px solid var(--border, #e5dcd3);
  color: var(--text-body);
  border-radius: 999px;
  padding: 10px 24px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
[data-theme="dark"] .year-tab-btn {
  background: #231911;
  border-color: #3a2b1e;
  color: #cbb9a4;
}
.year-tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.year-tab-btn.active {
  background: linear-gradient(135deg, var(--primary, #e8751a), var(--saffron, #ff8c00));
  border-color: var(--primary-dark);
  color: #fff;
  box-shadow: 0 6px 18px rgba(232, 117, 26, 0.3);
}

/* Grid list */
/* Traditional Background and Frame */
body.ekadashi-calendar-page {
  background: #E8D8C8 url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='20' height='20' fill='%23FAF0E6'/%3E%3Cpath d='M0 0 h20 v20 H0 Z' fill='none' stroke='%23e8d5c4' stroke-width='0.5'/%3E%3C/svg%3E") !important;
}

.traditional-panel {
  max-width: 1050px !important;
  margin: 0 auto;
  background: #FFF8EE;
  padding: 32px 50px !important;
  position: relative;
  box-shadow: 0 12px 48px rgba(139, 94, 60, 0.15);
  border-left: 24px solid transparent;
  border-right: 24px solid transparent;
  border-image: url("data:image/svg+xml,%3Csvg width='24' height='40' viewBox='0 0 24 40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='24' height='40' fill='%23E5C199'/%3E%3Cpath d='M12 2 C15 10 21 14 21 20 C21 26 15 30 12 38 C9 30 3 26 3 20 C3 14 9 10 12 2 Z' fill='%23C67623'/%3E%3Ccircle cx='12' cy='20' r='3.5' fill='%23FBC02D'/%3E%3Cpath d='M2 10 C6 12 6 18 2 20 Z' fill='%238D4F10' opacity='0.7'/%3E%3Cpath d='M22 10 C18 12 18 18 22 20 Z' fill='%238D4F10' opacity='0.7'/%3E%3Cline x1='0' y1='0' x2='0' y2='40' stroke='%238D4F10' stroke-width='2.5'/%3E%3Cline x1='24' y1='0' x2='24' y2='40' stroke='%238D4F10' stroke-width='2.5'/%3E%3C/svg%3E") 0 24 repeat;
}
[data-theme="dark"] .traditional-panel {
  background: #1e140d !important;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  border-image: url("data:image/svg+xml,%3Csvg width='24' height='40' viewBox='0 0 24 40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='24' height='40' fill='%232a1d13'/%3E%3Cpath d='M12 2 C15 10 21 14 21 20 C21 26 15 30 12 38 C9 30 3 26 3 20 C3 14 9 10 12 2 Z' fill='%238D4F10'/%3E%3Ccircle cx='12' cy='20' r='3.5' fill='%23cc8a00'/%3E%3Cline x1='0' y1='0' x2='0' y2='40' stroke='%231f140d' stroke-width='2.5'/%3E%3Cline x1='24' y1='0' x2='24' y2='40' stroke='%231f140d' stroke-width='2.5'/%3E%3C/svg%3E") 0 24 repeat;
}

@media (max-width: 768px) {
  .traditional-panel {
    border-left-width: 12px;
    border-right-width: 12px;
    padding: 16px 20px !important;
  }
}
@media (max-width: 480px) {
  .traditional-panel {
    border-left: none;
    border-right: none;
    padding: 12px 10px !important;
  }
}

/* Month Headers */
.ekadashi-month-header {
  background: #4C5E37;
  color: #FFFFFF;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  margin-top: 32px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-left: 5px solid var(--accent-gold, #FBC02D);
  display: flex;
  align-items: center;
  gap: 10px;
}
[data-theme="dark"] .ekadashi-month-header {
  background: #2a351f;
  border-left-color: #ffb300;
}

/* Grid list */
.ekadashi-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ekadashi-list-card {
  background: #ffffff;
  border: 1px solid var(--border, #e5dcd3);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: all 0.3s var(--ease);
  box-shadow: 0 2px 6px rgba(139, 94, 60, 0.05);
}
[data-theme="dark"] .ekadashi-list-card {
  background: #231912;
  border-color: #3e2d1d;
  box-shadow: none;
}
.ekadashi-list-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(198, 118, 35, 0.12);
  border-color: var(--accent-gold, #FAF0E6);
  background: #FFFBF5;
}
[data-theme="dark"] .ekadashi-list-card:hover {
  background: #291e15;
  border-color: #a6733c;
}

/* Thumb block */
.ekadashi-row-thumb {
  width: 80px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
[data-theme="dark"] .ekadashi-row-thumb {
  border-color: #3e2d1d;
}
.ekadashi-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info block */
.ekadashi-row-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1.2;
}
.ekadashi-row-date {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}
[data-theme="dark"] .ekadashi-row-date {
  color: #f5e9d8;
}
.ekadashi-row-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
[data-theme="dark"] .ekadashi-row-name {
  color: #e8751a;
}
.ekadashi-row-day {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}
[data-theme="dark"] .ekadashi-row-day {
  color: #a08b73;
}

/* Viddha Badge */
.viddha-badge {
  color: #D32F2F;
  font-weight: 800;
  font-size: 0.8rem;
}

/* Moon block */
.ekadashi-row-moon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  width: 90px;
  text-align: center;
}
.ekadashi-row-moon i {
  font-size: 1.25rem;
}
.ekadashi-row-moon span {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
}
[data-theme="dark"] .ekadashi-row-moon span {
  color: #a08b73;
}

/* Parana block */
.ekadashi-row-parana {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.ekadashi-row-parana-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}
[data-theme="dark"] .ekadashi-row-parana-label {
  color: #a08b73;
}
.ekadashi-row-parana-time {
  font-size: 0.9rem;
  color: #2E7D32;
  font-weight: 700;
}
[data-theme="dark"] .ekadashi-row-parana-time {
  color: #81c784;
}

/* Actions block */
.ekadashi-row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .ekadashi-list-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .ekadashi-row-info {
    width: 100%;
  }
  .ekadashi-row-moon {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: auto;
    text-align: left;
  }
  .ekadashi-row-parana {
    width: 100%;
    border-top: 1px dashed var(--border);
    padding-top: 10px;
  }
  [data-theme="dark"] .ekadashi-row-parana {
    border-top-color: #3e2d1d;
  }
  .ekadashi-row-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 991px) {
  .ekadashi-loc-btn {
    min-width: 0 !important;
  }
  .ekadashi-location-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 16px 20px;
    margin-top: -16px;
  }
  .ekadashi-location-info {
    justify-content: center;
    text-align: center;
    width: 100%;
  }
  .ekadashi-location-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
  .upcoming-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px;
    text-align: center;
  }
  .upcoming-header-flex {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .upcoming-details {
    align-items: center;
  }
  .upcoming-badge {
    align-self: center;
  }
  .upcoming-title {
    font-size: 2rem;
    text-align: center;
  }
  .upcoming-month {
    text-align: center;
  }
  .upcoming-info-row {
    align-items: center;
    width: 100%;
  }
  .upcoming-info-item {
    justify-content: center;
  }
  .upcoming-action-row {
    justify-content: center;
    width: 100%;
  }
  .ekadashi-prasadam-guidelines {
    margin: 32px auto;
    padding: 24px;
  }
  .ekadashi-prasadam-guidelines h3 {
    font-size: 1.35rem;
  }
  .guidelines-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .upcoming-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px;
  }
  .upcoming-title {
    font-size: 1.8rem;
  }
  .ekadashi-list-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }
  .ekadashi-parana-col {
    border-top: 1px dashed var(--border);
    padding-top: 10px;
    margin-top: 2px;
  }
  [data-theme="dark"] .ekadashi-parana-col {
    border-top-color: #3a2b1e;
  }
  .year-tabs {
    flex-wrap: wrap;
  }
  .ekadashi-action-col {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    margin-top: 8px;
    gap: 8px;
  }
  .ekadashi-notify-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .ekadashi-location-actions {
    flex-direction: column;
    width: 100%;
  }
  .ekadashi-location-actions .ekadashi-loc-btn {
    width: 100%;
    justify-content: center;
  }
  .upcoming-card {
    padding: 16px;
  }
  .upcoming-title {
    font-size: 1.5rem;
  }
  .upcoming-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
  }
  .upcoming-month {
    font-size: 0.88rem;
  }
  .upcoming-action-row {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }
  .upcoming-action-row .hero-notify-btn {
    width: 100% !important;
    justify-content: center;
  }
  .search-input-group {
    flex-direction: column;
  }
  .search-input-group #inp-city-search,
  .search-input-group #btn-city-search {
    width: 100% !important;
  }
  #custom-coords-panel {
    padding: 16px !important;
  }
  .ekadashi-prasadam-guidelines {
    padding: 16px;
    margin: 16px auto;
    border-radius: 12px;
  }
  .ekadashi-prasadam-guidelines h3 {
    font-size: 1.15rem;
    padding-bottom: 8px;
    margin-bottom: 12px;
  }
  .ekadashi-prasadam-guidelines p {
    font-size: 0.88rem;
    margin-bottom: 16px;
  }
  .guidelines-col.forbidden-box,
  .guidelines-col.allowed-box {
    padding: 16px;
  }
  .guidelines-col h4 {
    font-size: 1.05rem;
    margin-bottom: 12px;
  }
  .guidelines-col ul {
    padding-left: 16px;
    font-size: 0.85rem;
    line-height: 1.5;
  }
  .guidelines-tab-bar {
    gap: 8px;
    margin-bottom: 20px;
  }
  .guidelines-tab-bar .tab-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 8px;
  }
}

@media (max-width: 400px) {
  .countdown-grid {
    gap: 10px;
  }
  .countdown-item {
    min-width: 44px;
  }
  .countdown-number {
    font-size: 1.4rem;
  }
  .countdown-text {
    font-size: 0.65rem;
  }
}

/* Custom Action Button */
.ekadashi-action-col {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.ekadashi-notify-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ekadashi-notify-btn i {
  font-size: 0.9rem;
}

.ekadashi-notify-btn.notify-ekadashi-btn {
  border-color: #E8751A;
  color: #E8751A;
}

.ekadashi-notify-btn.notify-ekadashi-btn:hover {
  background: #E8751A;
  color: #FFF;
  transform: translateY(-1.5px);
}

.ekadashi-notify-btn.notify-parana-btn {
  border-color: #FF8C00;
  color: #FF8C00;
}

.ekadashi-notify-btn.notify-parana-btn:hover {
  background: #FF8C00;
  color: #FFF;
  transform: translateY(-1.5px);
}

.ekadashi-notify-btn:active {
  transform: translateY(0);
}

/* Active State */
.ekadashi-notify-btn.reminder-active {
  background: #2E7D32 !important;
  border-color: #2E7D32 !important;
  color: #fff !important;
}

.ekadashi-notify-btn.reminder-active:hover {
  background: #1B5E20 !important;
  border-color: #1B5E20 !important;
}

/* Hero Button Override */
.hero-notify-btn {
  padding: 12px 24px;
  font-size: 0.95rem;
  border-width: 2px;
}

.hero-notify-btn.notify-ekadashi-btn {
  background: #E8751A;
  border-color: #E8751A;
  color: #FFF;
}

.hero-notify-btn.notify-ekadashi-btn:hover {
  background: #C65A0B;
  border-color: #C65A0B;
}

.hero-notify-btn.notify-parana-btn {
  background: #FF8C00;
  border-color: #FF8C00;
  color: #FFF;
}

.hero-notify-btn.notify-parana-btn:hover {
  background: #D47300;
  border-color: #D47300;
}

.hero-notify-btn.reminder-active {
  background: #2E7D32 !important;
  border-color: #2E7D32 !important;
  color: #fff !important;
}

.hero-notify-btn.reminder-active:hover {
  background: #1B5E20 !important;
  border-color: #1B5E20 !important;
}

/* Advanced Solid Modal */
.ekadashi-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ekadashi-modal-backdrop.active {
  opacity: 1;
}

.ekadashi-modal-card {
  background: #ffffff;
  border: 2.5px solid var(--accent-gold);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  position: relative;
  overflow: hidden;
  padding: 32px;
}

[data-theme="dark"] .ekadashi-modal-card {
  background: #1a120b;
  border-color: var(--accent-gold);
}

.ekadashi-modal-backdrop.active .ekadashi-modal-card {
  transform: translateY(0) scale(1);
}

/* Modal Header */
.ekadashi-modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  padding: 0;
}

.ekadashi-modal-close-btn:hover {
  color: var(--text-main);
}

.ekadashi-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.ekadashi-modal-bell-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #FAF6F0;
  border: 1px solid var(--border, #e5dcd3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
}
[data-theme="dark"] .ekadashi-modal-bell-wrap {
  background: #231911;
  border-color: #3e2d1d;
}

.ekadashi-modal-bell-icon {
  font-size: 1.25rem;
  color: var(--accent-gold);
  animation: modal-bell-swing 2s infinite ease;
}

.ekadashi-modal-header h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-main);
}

/* Modal Body */
.ekadashi-modal-event-info {
  background: #FAF6F0;
  border: 2px solid var(--border, #e5dcd3);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 24px;
}

[data-theme="dark"] .ekadashi-modal-event-info {
  background: #251B12;
  border-color: #3e2d1d;
}

.reminder-event-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--text-main);
}

.reminder-event-subtitle {
  font-size: 0.85rem;
  color: var(--accent-gold);
  font-weight: 600;
  margin: 0 0 14px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reminder-event-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

.reminder-event-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.reminder-event-detail-item i {
  color: var(--accent-gold);
  width: 16px;
  text-align: center;
}

.reminder-event-detail-item strong {
  color: var(--text-main);
}

/* Options Sections */
.reminder-options-section,
.reminder-time-section {
  margin-bottom: 24px;
}

.reminder-section-title {
  display: block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.reminder-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reminder-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
  padding: 2px 0;
}

.reminder-checkbox-label:hover {
  color: var(--text-main);
}

.reminder-checkbox-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-top: 1px; /* Align perfectly with first line of text */
}

.custom-checkbox i {
  font-size: 0.75rem;
  color: #fff;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s;
}

.reminder-checkbox-label input:checked ~ .custom-checkbox {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
}

.reminder-checkbox-label input:checked ~ .custom-checkbox i {
  opacity: 1;
  transform: scale(1);
}

.reminder-checkbox-label.disabled-check {
  cursor: not-allowed;
  opacity: 0.8;
  color: var(--text-main);
}

.reminder-checkbox-label.disabled-check input:checked ~ .custom-checkbox {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.35);
}

.reminder-checkbox-label.disabled-check input:checked ~ .custom-checkbox i {
  color: var(--accent-gold);
  opacity: 1;
  transform: scale(1);
}

[data-theme="dark"] .reminder-checkbox-label.disabled-check input:checked ~ .custom-checkbox {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.25);
}

.badge-required {
  font-size: 0.72rem;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  margin-left: 6px;
  color: var(--text-muted);
  font-weight: 600;
}

[data-theme="dark"] .badge-required {
  background: rgba(255, 255, 255, 0.05);
}

/* Dropdown styling */
.reminder-select-wrap {
  position: relative;
  width: 100%;
}

.reminder-select-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  background: var(--bg-white, #fff);
  border-radius: 10px;
  color: var(--text-main);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font-weight: 500;
  transition: all 0.2s;
}

[data-theme="dark"] .reminder-select-input {
  background: #251b12;
  border-color: #3e2d1d;
}

.reminder-select-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(232, 117, 26, 0.15);
}

.select-arrow-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.85rem;
}

.reminder-time-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 8px 0 0 0;
  line-height: 1.4;
}

/* Modal Footer */
.ekadashi-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

[data-theme="dark"] .ekadashi-modal-footer {
  border-top-color: #3e2d1d;
}

.ekadashi-modal-btn {
  padding: 12px 24px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  background: linear-gradient(135deg, var(--primary, #e8751a), var(--saffron, #f39c12));
  color: #fff;
}

.ekadashi-modal-btn:hover {
  background: linear-gradient(135deg, #d35400, var(--primary, #e8751a));
  transform: translateY(-1.5px);
}

.ekadashi-modal-btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  border-color: var(--border);
  color: var(--text-muted);
}

.ekadashi-modal-btn-secondary:hover {
  background: rgba(0, 0, 0, 0.02);
  color: var(--text-main);
  border-color: var(--text-muted);
  box-shadow: none;
}

[data-theme="dark"] .ekadashi-modal-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Animations */
@keyframes modal-bell-swing {
  0% { transform: rotate(0); }
  10% { transform: rotate(15deg); }
  20% { transform: rotate(-10deg); }
  30% { transform: rotate(5deg); }
  40% { transform: rotate(-5deg); }
  50% { transform: rotate(0); }
  100% { transform: rotate(0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ekadashi-action-col {
    justify-content: flex-start;
    margin-top: 6px;
  }
  .ekadashi-notify-btn {
    width: 100%;
    justify-content: center;
  }
  .ekadashi-modal-backdrop {
    align-items: flex-start;
    overflow-y: auto;
    padding: 20px 10px;
  }
  .ekadashi-modal-card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .ekadashi-modal-footer {
    flex-direction: column-reverse;
    gap: 8px;
    margin-top: 24px;
  }
  .ekadashi-modal-btn {
    width: 100%;
    text-align: center;
  }
}

/* Ekadashi Prasadam Dietary Guidelines CSS */
.ekadashi-prasadam-guidelines {
  margin: 48px auto;
  max-width: 900px;
  padding: 32px;
  background: #FFFFFF;
  border: 2.5px solid var(--accent-gold);
  border-radius: 16px;
}
[data-theme="dark"] .ekadashi-prasadam-guidelines {
  background: #1f1711;
  border-color: var(--accent-gold);
}
.ekadashi-prasadam-guidelines h3 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-top: 0;
  margin-bottom: 12px;
  text-align: center;
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
}
[data-theme="dark"] .ekadashi-prasadam-guidelines h3 {
  color: #f5e9d8;
  border-bottom-color: #3e2d1d;
}
.ekadashi-prasadam-guidelines p {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
[data-theme="dark"] .ekadashi-prasadam-guidelines p {
  color: #a08b73;
}
.guidelines-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 768px) {
  .guidelines-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.guidelines-col.forbidden-box {
  background: #FFF5F5;
  border: 1px solid #FFCDD2;
  border-radius: 12px;
  padding: 24px;
}
[data-theme="dark"] .guidelines-col.forbidden-box {
  background: #2D1414;
  border-color: #5C2323;
}
.guidelines-col.forbidden-box h4 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: #C62828;
  margin-top: 0;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
[data-theme="dark"] .guidelines-col.forbidden-box h4 {
  color: #EF5350;
}
.guidelines-col.allowed-box {
  background: #E8F5E9;
  border: 1px solid #C8E6C9;
  border-radius: 12px;
  padding: 24px;
}
[data-theme="dark"] .guidelines-col.allowed-box {
  background: #142D19;
  border-color: #235C2B;
}
.guidelines-col.allowed-box h4 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: #2E7D32;
  margin-top: 0;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
[data-theme="dark"] .guidelines-col.allowed-box h4 {
  color: #81C784;
}
.guidelines-col ul {
  margin: 0;
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
}
[data-theme="dark"] .guidelines-col ul {
  color: #cbb9a4;
}
.guidelines-col li {
  margin-bottom: 10px;
}
.guidelines-col li strong {
  color: var(--text-dark);
}
[data-theme="dark"] .guidelines-col li strong {
  color: #f5e9d8;
}

/* Custom Location Selector Panel Styles */
#custom-coords-panel {
  background: #FFFFFF !important;
  border: 2px solid var(--accent-gold) !important;
  border-radius: 16px !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08) !important;
}
[data-theme="dark"] #custom-coords-panel {
  background: #1f1711 !important;
  border-color: var(--accent-gold) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3) !important;
}
#inp-city-search {
  background: #FFFFFF !important;
  border: 2px solid var(--border, #e5dcd3) !important;
  color: var(--text-dark, #2b1f1d) !important;
  outline: none;
}
[data-theme="dark"] #inp-city-search {
  background: #251b12 !important;
  border-color: #3e2d1d !important;
  color: #f5e9d8 !important;
}
#city-results-mount {
  background: #FAF6F0 !important;
  border: 1px solid var(--border, #e5dcd3) !important;
}
[data-theme="dark"] #city-results-mount {
  background: #251b12 !important;
  border-color: #3e2d1d !important;
}
.city-result-item {
  background: var(--bg-white, #FFF) !important;
  border-color: var(--border, #e5dcd3) !important;
}
[data-theme="dark"] .city-result-item {
  background: #1f1711 !important;
  border-color: #3e2d1d !important;
}
.city-result-item span {
  color: var(--text-dark, #2b1f1d) !important;
}
[data-theme="dark"] .city-result-item span {
  color: #f5e9d8 !important;
}
.city-result-item span:last-child {
  color: var(--text-muted, #7c6a65) !important;
}
[data-theme="dark"] .city-result-item span:last-child {
  color: #a08b73 !important;
}

/* Guidelines Tab Bar CSS */
.guidelines-tab-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.guidelines-tab-bar .tab-btn {
  appearance: none;
  background: #FAF6F0;
  border: 2px solid var(--border, #e5dcd3);
  color: var(--text-body, #5c4a45);
  border-radius: 10px;
  padding: 10px 24px;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .guidelines-tab-bar .tab-btn {
  background: #231911;
  border-color: #3a2b1e;
  color: #cbb9a4;
}

.guidelines-tab-bar .tab-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.guidelines-tab-bar .tab-btn.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #fff;
  box-shadow: 0 4px 12px rgba(232, 117, 26, 0.25);
}

[data-theme="dark"] .guidelines-tab-bar .tab-btn.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #fff;
}

/* Modal Responsiveness Fixes for Tablets and Mobiles */
@media (max-width: 520px) {
  .ekadashi-modal-backdrop {
    padding: 12px;
  }
  .ekadashi-modal-card {
    padding: 24px 20px;
    border-radius: 16px;
    max-width: 100%;
    border-width: 2px;
  }
  .ekadashi-modal-header {
    gap: 12px;
    margin-bottom: 18px;
  }
  .ekadashi-modal-header h3 {
    font-size: 1.15rem;
  }
  .ekadashi-modal-bell-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .ekadashi-modal-bell-icon {
    font-size: 1.1rem;
  }
  .ekadashi-modal-event-info {
    padding: 14px;
    margin-bottom: 18px;
    border-radius: 10px;
  }
  .reminder-event-title {
    font-size: 1.05rem;
  }
  .reminder-event-subtitle {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }
  .reminder-event-details {
    gap: 6px;
    font-size: 0.85rem;
  }
  .reminder-options-section,
  .reminder-time-section {
    margin-bottom: 18px;
  }
  .reminder-section-title {
    font-size: 0.88rem;
    margin-bottom: 8px;
  }
  .reminder-checkbox-label {
    font-size: 0.82rem;
    gap: 10px;
  }
  .custom-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 5px;
  }
  .custom-checkbox i {
    font-size: 0.68rem;
  }
  .reminder-select-input {
    padding: 10px 14px;
    font-size: 0.88rem;
    border-radius: 8px;
  }
  .ekadashi-modal-footer {
    flex-direction: column-reverse;
    gap: 10px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }
  [data-theme="dark"] .ekadashi-modal-footer {
    border-top-color: #3e2d1d;
  }
  .ekadashi-modal-btn {
    width: 100% !important;
    text-align: center;
    padding: 12px 18px;
    font-size: 0.9rem;
    border-radius: 8px;
  }
  .ekadashi-modal-close-btn {
    top: 16px;
    right: 16px;
    font-size: 1.75rem;
  }
}

/* Extra small devices (iPhone SE/5/etc) */
@media (max-width: 360px) {
  .ekadashi-modal-card {
    padding: 20px 16px;
  }
  .ekadashi-modal-header h3 {
    font-size: 1.05rem;
  }
  .reminder-event-title {
    font-size: 0.98rem;
  }
  .reminder-checkbox-label {
    font-size: 0.78rem;
  }
}

/* ─── FCM migration banner ───────────────────────────────────────────
 * Non-intrusive soft prompt shown to existing VAPID subscribers
 * when they return to a site that has migrated to Firebase Cloud
 * Messaging. The card sits in the lower-right of the viewport and
 * uses the same saffron/gold tokens as the rest of the UI so it
 * reads as part of the page, not a third-party overlay.
 */
.ip-migration-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  max-width: 360px;
  width: calc(100% - 40px);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 240ms ease-out, transform 240ms ease-out;
  pointer-events: none;
}
.ip-migration-container.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ip-migration-card {
  background: var(--card-bg, #fffaf0);
  color: var(--text, #2b1d12);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  padding: 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: relative;
}
.ip-migration-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg, #f59e0b, #d97706);
}
.ip-migration-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-top: 2px;
}
.ip-migration-body {
  flex: 1 1 auto;
  min-width: 0;
}
.ip-migration-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text, #2b1d12);
}
.ip-migration-text {
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0 0 12px;
  color: var(--text-muted, #6b5a47);
}
.ip-migration-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ip-migration-btn {
  appearance: none;
  border: 0;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  transition: filter 120ms ease, transform 120ms ease;
  font-family: inherit;
}
.ip-migration-btn:hover { filter: brightness(0.96); }
.ip-migration-btn:active { transform: translateY(1px); }
.ip-migration-btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}
.ip-migration-btn-ghost {
  background: transparent;
  color: var(--text-muted, #6b5a47);
  border: 1px solid rgba(217, 119, 6, 0.25);
}
@media (max-width: 480px) {
  .ip-migration-container {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
  }
}
@media (prefers-color-scheme: dark) {
  .ip-migration-card {
    --card-bg: #1f1a14;
    --text: #f5e6d0;
    --text-muted: #b89b76;
    background: var(--card-bg);
    color: var(--text);
    border-color: rgba(217, 119, 6, 0.35);
  }
  .ip-migration-title { color: var(--text); }
  .ip-migration-text { color: var(--text-muted); }
}

/* ── Schedule Notify Me ──────────────────────────────────────────────────── */

.ip-sn-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1.5px solid rgba(217, 119, 6, 0.35);
  border-radius: 20px;
  background: rgba(217, 119, 6, 0.06);
  color: #b45309;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1.4;
}
.ip-sn-btn:hover {
  background: rgba(217, 119, 6, 0.14);
  border-color: rgba(217, 119, 6, 0.5);
  box-shadow: 0 1px 4px rgba(217, 119, 6, 0.12);
}
.ip-sn-btn:focus-visible {
  outline: 2px solid #d97706;
  outline-offset: 2px;
}
.ip-sn-icon { font-size: 0.85em; line-height: 1; }

/* Active (subscribed) state */
.ip-sn-active {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}
.ip-sn-active:hover {
  background: linear-gradient(135deg, #059669, #047857) !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

/* Loading state */
.ip-sn-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ── Subscription modal ──────────────────────────────────────────────────── */

.ip-sn-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(4px);
}
.ip-sn-modal-backdrop.ip-sn-modal-open {
  opacity: 1;
  pointer-events: auto;
}
.ip-sn-modal {
  background: var(--bg-white);
  border-radius: 22px;
  max-width: 440px;
  width: calc(100% - 32px);
  box-shadow: var(--shadow-lg);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1);
  border: 2px solid var(--accent-gold);
  overflow: hidden;
}
.ip-sn-modal-open .ip-sn-modal {
  transform: translateY(0) scale(1);
}
.ip-sn-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  background: linear-gradient(135deg, #6B1D1D, #4A1414);
  color: #fff;
  position: relative;
}
.ip-sn-modal-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-head);
}
.ip-sn-modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  font-size: 1.3rem;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
}
.ip-sn-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.ip-sn-modal-body { padding: 24px; background: var(--bg-white); }
.ip-sn-modal-text {
  margin: 0 0 16px;
  color: var(--text-light);
  font-size: 0.9rem;
}
.ip-sn-field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ip-sn-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.ip-sn-chip {
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ip-sn-chip:hover {
  border-color: var(--primary);
  background: rgba(232, 117, 26, 0.05);
}
.ip-sn-chip-ip-sn-chip-on,
.ip-sn-chip-on {
  background: linear-gradient(135deg, var(--primary), #FF6B00);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(232, 117, 26, 0.2);
}
.ip-sn-chip-on:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.ip-sn-modal-msg {
  margin: 0;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
  min-height: 1.5em;
  white-space: pre-line;
}
.ip-sn-msg-ok {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #047857;
}
.ip-sn-msg-err {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #b91c1c;
}
.ip-sn-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 24px 24px;
  background: var(--bg-white);
}
.ip-sn-btn-secondary,
.ip-sn-btn-primary {
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ip-sn-btn-secondary {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  color: var(--text-body);
}
.ip-sn-btn-secondary:hover {
  background: var(--bg-light);
  border-color: var(--primary);
  color: var(--primary);
}
.ip-sn-btn-primary {
  background: linear-gradient(135deg, var(--primary), #FF6B00);
  border: none;
  color: #fff;
  box-shadow: 0 4px 15px rgba(232, 117, 26, 0.25);
}
.ip-sn-btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(232, 117, 26, 0.35);
  transform: translateY(-1px);
}
.ip-sn-btn-primary:active {
  transform: translateY(1px);
}

/* ── Popover (change / unsubscribe) ──────────────────────────────────────── */

.ip-sn-popover {
  position: fixed;
  z-index: 100000;
  background: var(--bg-white);
  border: 1.5px solid var(--accent-gold);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s;
}
.ip-sn-popover-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.ip-sn-pop-item {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  text-align: left;
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.15s;
}
.ip-sn-pop-item:hover {
  background: rgba(232, 117, 26, 0.08);
  color: var(--primary);
}
.ip-sn-pop-danger { color: #dc2626; }
.ip-sn-pop-danger:hover {
  background: #fef2f2;
  color: #b91c1c;
}

/* ── Highlight pulse (after notification click) ──────────────────────────── */

@keyframes ipSnPulse {
  0%   { background: rgba(217, 119, 6, 0.15); }
  50%  { background: rgba(217, 119, 6, 0.30); }
  100% { background: rgba(217, 119, 6, 0); }
}
.ip-sn-pulse {
  animation: ipSnPulse 2.5s ease-out;
}

/* ── Dark mode overrides (website theme-based) ──────────────────────────── */
[data-theme="dark"] .ip-sn-pop-danger:hover {
  background: #3B1F1F;
  color: #f87171;
}

/* ── Mobile responsive ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .ip-sn-btn {
    padding: 5px 10px;
    font-size: 0.72rem;
    gap: 4px;
  }
  .ip-sn-text { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
  .ip-sn-modal { max-width: 100%; border-radius: 12px; }
  .ip-sn-modal-header { padding: 16px 18px; }
  .ip-sn-modal-body { padding: 16px 18px; }
  .ip-sn-modal-footer { padding: 0 18px 16px; }
  .ip-sn-chips { gap: 6px; }
  .ip-sn-chip { padding: 6px 11px; font-size: 0.78rem; }
  .ip-sn-popover { min-width: 160px; }
}
@media (max-width: 400px) {
  .ip-sn-text { display: none; }
  .ip-sn-btn { padding: 5px 8px; }
}

/* ── Unsubscribe / Danger button styling ── */
.ip-sn-btn-danger {
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border: none;
  color: #fff;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ip-sn-btn-danger:hover {
  background: #b91c1c;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
  transform: translateY(-1px);
}
.ip-sn-btn-danger:active {
  transform: translateY(1px);
}

/* ── Dark theme contrast overrides for status messages ── */
[data-theme="dark"] .ip-sn-msg-ok {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.25);
  color: #34d399;
}
[data-theme="dark"] .ip-sn-msg-err {
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.25);
  color: #f87171;
}

/* Mobile responsive for danger button */
@media (max-width: 600px) {
  .ip-sn-btn-danger {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}
