/* ===================================================
   SANATAN RAKSHA DAL (SRD) - ROYAL & ENTERPRISE SYSTEM
   Mobile-First Master Stylesheet
   =================================================== */

:root {
  --saffron-primary: #e87d11;
  --saffron-dark: #b85e05;
  --saffron-light: #fff5ea;
  --saffron-glow: rgba(232, 125, 17, 0.25);
  --gold-primary: #d4af37;
  --gold-bright: #f59e0b;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --maroon-spiritual: #680d0d;
  --stone-dark: #1c1917;
}

/* ===================================================
   SACRED ROYAL PAGE LOADER (Zero-White-Screen Baseline)
   =================================================== */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(circle at center, #7c2d12 0%, #4a0707 50%, #1f0202 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
  pointer-events: auto;
}
#page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-chakra-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-chakra-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(251, 191, 36, 0.2);
  border-top: 3px solid #f59e0b;
  border-right: 3px solid #ea580c;
  animation: loaderSpin 1.1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.35);
}
.loader-chakra-inner {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px dashed rgba(251, 191, 36, 0.4);
  animation: loaderSpinReverse 3s linear infinite;
}
.loader-om {
  font-size: 34px;
  font-weight: 900;
  color: #fef3c7;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.9), 0 0 35px rgba(234, 88, 12, 0.7);
  animation: loaderPulse 1.4s ease-in-out infinite alternate;
  user-select: none;
}
.loader-bar-bg {
  width: 140px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 18px;
  position: relative;
}
.loader-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #f59e0b, #ea580c, #f59e0b);
  border-radius: 3px;
  animation: loaderBarMove 1.2s ease-in-out infinite alternate;
}
@keyframes loaderSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes loaderSpinReverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}
@keyframes loaderPulse {
  0% { transform: scale(0.92); opacity: 0.85; filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.5)); }
  100% { transform: scale(1.08); opacity: 1; filter: drop-shadow(0 0 18px rgba(251, 191, 36, 0.95)); }
}
@keyframes loaderBarMove {
  0% { left: 0%; width: 25%; }
  100% { left: 75%; width: 25%; }
}

/* ===================================================
   MOBILE-FIRST GLOBAL FOUNDATIONS & FIXES
   =================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100vw;
}

body {
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.6;
  padding-bottom: 70px; /* Space for mobile sticky action bar */
}

/* Universal Sticky Header (Desktop & Mobile) */
header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}

/* Eliminate 300ms mobile touch delay & enable smooth gestures */
a, button, input, select, textarea, label {
  touch-action: manipulation;
}

/* iOS Safari Input Zoom Fix: Inputs MUST be 16px+ on mobile to prevent unwanted zoom */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Devanagari Typography Preservation: Prevent Matra Truncation */
.font-devanagari, [lang="hi"] {
  line-height: 1.55 !important;
  word-break: normal;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
}

/* Fluid responsive typography with graceful bounds */
h1 {
  font-size: clamp(1.4rem, 4.5vw, 2.75rem);
  line-height: 1.35;
  word-break: normal;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(1.2rem, 3.8vw, 2.25rem);
  line-height: 1.35;
  word-break: normal;
  overflow-wrap: break-word;
}

h3 {
  font-size: clamp(1.05rem, 3.2vw, 1.75rem);
  line-height: 1.4;
  word-break: normal;
  overflow-wrap: break-word;
}

h4, h5, h6 {
  line-height: 1.4;
  word-break: normal;
  overflow-wrap: break-word;
}

/* Images & Media responsive safety */
img, video, canvas, svg {
  max-width: 100%;
  height: auto;
}

/* Hide scrollbar for neat horizontal touch swipe tabs */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Smooth Touch Scrolling */
.touch-scroll {
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.touch-scroll > * {
  scroll-snap-align: start;
}

/* Minimum Touch Target for Mobile Usability (44x44px W3C WCAG) */
.touch-target {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===================================================
   HERO CAROUSEL RESPONSIVE RATIO
   Eliminates awkward blank letterboxing on mobile screens
   while preserving the grand 520px height on desktop
   =================================================== */
.hero-carousel-wrapper {
  height: clamp(235px, 56vw, 520px);
}

@media (min-width: 1024px) {
  .hero-carousel-wrapper {
    height: 520px !important;
  }
}

/* Custom Scrollbar for Desktop */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #fdfaf6;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #e87d11, #b85e05);
  border-radius: 6px;
  border: 2px solid #fdfaf6;
}
::-webkit-scrollbar-thumb:hover {
  background: #b85e05;
}

/* Royal Fonts */
.font-heritage {
  font-family: 'Rozha One', 'Noto Sans Devanagari', serif;
}
.font-royal {
  font-family: 'Cinzel', 'Outfit', serif;
}

/* Sacred Shimmer Button & Card Effect */
.royal-shimmer {
  position: relative;
  overflow: hidden;
}
.royal-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 25%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  transition: all 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.royal-shimmer:hover::after {
  left: 150%;
}

/* Sacred Temple Arch Framing */
.temple-arch-frame {
  border-radius: 2.25rem 2.25rem 1rem 1rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 28px -8px rgba(232, 125, 17, 0.3), 0 6px 12px -4px rgba(0, 0, 0, 0.08);
  border: 3px solid #ffffff;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
@media (min-width: 640px) {
  .temple-arch-frame {
    border-radius: 3.5rem 3.5rem 1.25rem 1.25rem;
    border-width: 4px;
    box-shadow: 0 15px 35px -10px rgba(232, 125, 17, 0.35), 0 8px 16px -5px rgba(0, 0, 0, 0.08);
  }
}
.temple-arch-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(232, 125, 17, 0.45), 0 12px 24px -6px rgba(0, 0, 0, 0.12);
}
.temple-arch-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  pointer-events: none;
  z-index: 10;
}

/* Sacred Gold Dividers */
.sacred-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .sacred-divider {
    gap: 1rem;
  }
}
.sacred-divider::before,
.sacred-divider::after {
  content: '';
  height: 2px;
  width: 35px;
  background: linear-gradient(to right, transparent, #d4af37, transparent);
}
@media (min-width: 640px) {
  .sacred-divider::before,
  .sacred-divider::after {
    width: 70px;
  }
}

/* ===================================================
   LIGHTWEIGHT HARDWARE-ACCELERATED ANIMATIONS
   Optimized for mobile devices & battery life
   =================================================== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.10s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.20s; }

/* Smooth Lift on Hover, tap scale on mobile */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}
@media (hover: hover) {
  .hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px -8px rgba(232, 125, 17, 0.25), 0 8px 16px -4px rgba(0, 0, 0, 0.06);
  }
}
.hover-lift:active {
  transform: scale(0.985);
}

/* Social Button Pop */
.social-icon-btn {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, color 0.25s ease;
  min-width: 38px;
  min-height: 38px;
}
@media (hover: hover) {
  .social-icon-btn:hover {
    transform: translateY(-2px) scale(1.08);
  }
}
.social-icon-btn:active {
  transform: scale(0.94);
}

/* Royal Mixed Saffron-Maroon Footer Gradient */
.royal-footer-bg {
  background: linear-gradient(145deg, #e87d11 0%, #db6a05 30%, #b85e05 65%, #680d0d 100%);
}

/* Frosted Dark Glass Panel for Footer Columns */
.footer-glass-card {
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) {
  .footer-glass-card:hover {
    background: rgba(0, 0, 0, 0.28);
    border-color: rgba(253, 230, 138, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 16px 35px -8px rgba(0, 0, 0, 0.3);
  }
}

/* Elevation and Hover Cards */
.royal-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
  border: 1px solid rgba(232, 125, 17, 0.15);
}
@media (hover: hover) {
  .royal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(232, 125, 17, 0.22), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
    border-color: rgba(212, 175, 55, 0.6);
  }
}
.royal-card:active {
  transform: scale(0.99);
}

/* Golden Halo Glow */
.gold-halo {
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.25), 0 0 10px rgba(232, 125, 17, 0.15);
}

/* Header Gradient Trim */
.header-gold-trim {
  border-bottom: 3px solid #d4af37;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Saffron Gradient Header & Hero Banners */
.saffron-gradient {
  background: linear-gradient(135deg, #b85e05 0%, #e87d11 50%, #b85e05 100%) !important;
  color: #ffffff !important;
}

/* Saffron Button Glow */
.btn-saffron-glow {
  background: linear-gradient(135deg, #e87d11 0%, #b85e05 100%);
  box-shadow: 0 8px 20px -4px rgba(232, 125, 17, 0.45);
  transition: all 0.3s ease;
}
.btn-saffron-glow:hover {
  background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
  box-shadow: 0 12px 25px -4px rgba(232, 125, 17, 0.6);
  transform: translateY(-2px);
}
.btn-saffron-glow:active {
  transform: scale(0.97);
}

/* Floating Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 80px; /* Above mobile sticky nav */
  right: 16px;
  z-index: 45;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e87d11;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(232, 125, 17, 0.5);
  border: 2px solid #ffffff;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  visibility: hidden;
}
@media (min-width: 1024px) {
  .back-to-top-btn {
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
  }
}
.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top-btn:hover {
  background: #b85e05;
  transform: translateY(-3px) scale(1.06);
}
.back-to-top-btn:active {
  transform: scale(0.95);
}

/* Mobile Drawer */
#mobile-menu {
  transition: max-height 0.35s ease-in-out, opacity 0.3s ease;
  max-height: calc(100vh - 75px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Mobile Bottom Sticky Navigation Bar (Native App Quality) */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 2px solid #e87d11;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  padding: 6px 4px max(6px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-around;
}
@media (min-width: 1024px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}

.mobile-bottom-nav .mobile-nav-item,
.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #44403c;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 8px;
  transition: all 0.2s ease;
  min-width: 52px;
  text-decoration: none;
  line-height: 1.2;
}
.mobile-bottom-nav .mobile-nav-item i,
.mobile-bottom-nav .nav-item i {
  font-size: 16px;
  margin-bottom: 2px;
}
.mobile-bottom-nav .mobile-nav-item.active:not(.mobile-nav-cta):not(.donate-special),
.mobile-bottom-nav .nav-item.active:not(.mobile-nav-cta):not(.donate-special),
.mobile-bottom-nav .mobile-nav-item:active:not(.mobile-nav-cta):not(.donate-special),
.mobile-bottom-nav .nav-item:active:not(.mobile-nav-cta):not(.donate-special) {
  color: #e87d11 !important;
  background: #fff7ed !important;
}

.mobile-bottom-nav .mobile-nav-cta,
.mobile-bottom-nav .donate-special {
  background: linear-gradient(135deg, #b85e05, #e87d11) !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  padding: 6px 14px !important;
  box-shadow: 0 4px 14px rgba(232, 125, 17, 0.45) !important;
  min-width: auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.mobile-bottom-nav .mobile-nav-cta i,
.mobile-bottom-nav .donate-special i {
  color: #fef3c7 !important;
  font-size: 16px !important;
}
.mobile-bottom-nav .mobile-nav-cta span,
.mobile-bottom-nav .donate-special span {
  color: #ffffff !important;
  font-weight: 800 !important;
}

/* Prominent Radiant Active State when on Donation Page */
.mobile-bottom-nav .mobile-nav-cta.active,
.mobile-bottom-nav .donate-special.active,
.mobile-bottom-nav .mobile-nav-cta:active,
.mobile-bottom-nav .donate-special:active {
  background: linear-gradient(135deg, #9a3412, #ea580c, #f59e0b) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(184, 94, 5, 0.6), 0 0 0 2px #fbbf24 !important;
  transform: translateY(-2px) !important;
}
.mobile-bottom-nav .mobile-nav-cta.active i,
.mobile-bottom-nav .donate-special.active i {
  color: #ffffff !important;
  font-size: 16px !important;
}
.mobile-bottom-nav .mobile-nav-cta.active span,
.mobile-bottom-nav .donate-special.active span {
  color: #ffffff !important;
  font-weight: 800 !important;
}
.donate-btn-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Quick Amount Chip for Donation Form */
.amount-chip {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid #fed7aa;
  background: #fffaf0;
  color: #b85e05;
  font-weight: 800;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
}
.amount-chip:hover, .amount-chip.active {
  background: #e87d11;
  color: #ffffff;
  border-color: #b85e05;
  box-shadow: 0 4px 12px rgba(232, 125, 17, 0.3);
  transform: translateY(-1px);
}
.amount-chip:active {
  transform: scale(0.96);
}

/* ===================================================
   SANATAN RAKSHA DAL (SRD) - ROYAL & ENTERPRISE SYSTEM v2.5
   LIGHTWEIGHT 60FPS ENHANCEMENTS FOR ALL MOBILE DEVICES
   =================================================== */

/* 1. SACRED SHLOK AMBIENT TICKER (Pure CSS 60fps Marquee) */
.sacred-ticker-strip {
  background: linear-gradient(90deg, #4a0707 0%, #680d0d 25%, #944703 50%, #680d0d 75%, #4a0707 100%);
  border-bottom: 2px solid #d4af37;
  color: #fef3c7;
  font-size: 12px;
  overflow: hidden;
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
  z-index: 30;
  user-select: none;
}
.sacred-ticker-badge {
  flex-shrink: 0;
  background: linear-gradient(135deg, #e87d11, #b85e05);
  color: #ffffff;
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.5px;
  border-right: 2px solid #d4af37;
  z-index: 2;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}
.sacred-ticker-track {
  display: flex;
  white-space: nowrap;
  animation: sacredTicker 42s linear infinite;
  will-change: transform;
}
.sacred-ticker-strip:hover .sacred-ticker-track,
.sacred-ticker-strip:active .sacred-ticker-track {
  animation-play-state: paused;
}
.sacred-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  font-weight: 600;
  color: #fef3c7;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  font-family: 'Noto Sans Devanagari', sans-serif;
}
.sacred-ticker-item .om-bullet {
  color: #f59e0b;
  font-weight: 900;
  font-size: 15px;
  filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.7));
}
@keyframes sacredTicker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* 2. DYNAMIC HEADER SHRINK & COMPACT STATE ON SCROLL */
header {
  transition: padding 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, box-shadow 0.25s ease;
}
header.header-scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28) !important;
}
header.header-scrolled .header-inner-row {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}
header.header-scrolled .header-logo-img {
  width: 42px !important;
  height: 42px !important;
}

/* 3. TACTILE TOUCH & ACTIVE PHYSICAL FEEDBACK */
a, button, input, select, textarea, .amount-chip, .mobile-nav-item, .royal-card, .social-icon-btn, .shagun-chip {
  -webkit-tap-highlight-color: transparent;
}
button:active, .btn-active-scale:active, .amount-chip:active, .mobile-nav-item:active, .shagun-chip:active {
  transform: scale(0.96) !important;
  transition: transform 0.08s ease !important;
}

/* 4. QUICK 1-TAP HOLY SHAGUN UPI BOTTOM SHEET DRAWER */
.bottom-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 6, 6, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}
.bottom-sheet-backdrop.active {
  opacity: 1;
  visibility: visible;
}
.bottom-sheet-panel {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 26px 26px 0 0;
  border-top: 3.5px solid #d4af37;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.45);
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translate3d(0, 100%, 0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 16px 20px calc(24px + env(safe-area-inset-bottom));
  position: relative;
}
.bottom-sheet-backdrop.active .bottom-sheet-panel {
  transform: translate3d(0, 0, 0);
}
.bottom-sheet-drag-handle {
  width: 44px;
  height: 5px;
  background: #cbd5e1;
  border-radius: 9999px;
  margin: 0 auto 12px;
}
.shagun-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}
.shagun-chip {
  padding: 10px 4px;
  border-radius: 14px;
  border: 1.5px solid #fed7aa;
  background: #fffaf0;
  color: #944703;
  font-weight: 800;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.shagun-chip span.shagun-blessing {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #b85e05;
  margin-top: 1px;
}
.shagun-chip.active {
  background: linear-gradient(135deg, #e87d11, #b85e05) !important;
  color: #ffffff !important;
  border-color: #d4af37 !important;
  box-shadow: 0 4px 14px rgba(232, 125, 17, 0.4) !important;
}
.shagun-chip.active span.shagun-blessing {
  color: #fef3c7 !important;
}

/* 5. LIVE SEVA PROGRESS TRACKER (Pure CSS) */
.seva-progress-wrap {
  background: #fffaf0;
  border: 1.5px solid #fed7aa;
  border-radius: 16px;
  padding: 16px;
  margin: 14px 0;
  box-shadow: 0 4px 14px rgba(232, 125, 17, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.seva-progress-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 125, 17, 0.16);
}
.seva-progress-bar {
  width: 100%;
  height: 12px;
  background: #f1ede8;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  margin: 10px 0 6px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.seva-progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #f59e0b, #e87d11, #d4af37);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 6. 1-TAP WHATSAPP VIRAL SHARE BADGE */
.whatsapp-viral-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  touch-action: manipulation;
}
.whatsapp-viral-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.5);
  color: #ffffff !important;
}
.whatsapp-viral-btn:active {
  transform: scale(0.95);
}

/* 7. SACRED "NIGHT AARTI" THEME (Battery-Saving Dark Gold Mode) */
body.dark-theme {
  background-color: #120606 !important;
  color: #f5ede6 !important;
}
body.dark-theme .bg-white,
body.dark-theme .bg-\[\#fcfaf7\],
body.dark-theme .bg-\[\#fdfbf9\] {
  background-color: #1a0a0a !important;
}
body.dark-theme .royal-card {
  background-color: #210d0d !important;
  border-color: rgba(212, 175, 55, 0.35) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}
body.dark-theme .text-stone-900,
body.dark-theme .text-stone-800 {
  color: #fef3c7 !important;
}
body.dark-theme .text-stone-600,
body.dark-theme .text-stone-500 {
  color: #d6cfc7 !important;
}
body.dark-theme .border-orange-100,
body.dark-theme .border-orange-200\/60,
body.dark-theme .border-orange-200\/80 {
  border-color: rgba(212, 175, 55, 0.3) !important;
}
body.dark-theme .bottom-sheet-panel {
  background-color: #1a0a0a !important;
  color: #fef3c7 !important;
  border-top-color: #f59e0b !important;
}
body.dark-theme .shagun-chip {
  background: #281111 !important;
  border-color: rgba(212, 175, 55, 0.4) !important;
  color: #fed7aa !important;
}
body.dark-theme .shagun-chip span.shagun-blessing {
  color: #f59e0b !important;
}
body.dark-theme .mobile-bottom-nav {
  background: rgba(26, 10, 10, 0.98) !important;
  border-top-color: #d4af37 !important;
}
body.dark-theme .mobile-bottom-nav .mobile-nav-item,
body.dark-theme .mobile-bottom-nav .nav-item {
  color: #e5d5c5 !important;
}
body.dark-theme .mobile-bottom-nav .mobile-nav-item.active,
body.dark-theme .mobile-bottom-nav .nav-item.active {
  background: #331515 !important;
  color: #f59e0b !important;
}
body.dark-theme .seva-progress-wrap {
  background: #250f0f !important;
  border-color: rgba(212, 175, 55, 0.3) !important;
}
body.dark-theme .seva-progress-bar {
  background: #331515 !important;
}

/* 8. GPU PERFORMANCE & OLD PHONE OPTIMIZATION */
.contain-paint {
  content-visibility: auto;
  contain-intrinsic-size: 1px 500px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
