/* ===================================================================
   PUJOVIBE: MODERN DURGA GUIDE - STYLES & TAILWIND ENHANCEMENTS
   Colors, Custom Fonts, Clip Paths, and Animations
=================================================================== */

@layer base {
  html, body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    background-color: #f4eee9;
    color: #1f1b19;
  }
  body {
    overscroll-behavior-y: none;
    -webkit-tap-highlight-color: transparent;
  }
  .pb-safe {
    padding-bottom: env(safe-area-inset-bottom, 16px);
  }
  .pt-safe {
    padding-top: env(safe-area-inset-top, 16px);
  }
}

/* Hide scrollbars while retaining scrollability */
.no-scrollbar::-webkit-scrollbar,
::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Screen View Toggling */
.screen-view {
  display: none;
  width: 100%;
  animation: fadeInScreen 0.25s ease-out forwards;
}

.screen-view.active {
  display: flex;
  flex-direction: column;
}

@keyframes fadeInScreen {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Temple Arch Avatar Clip Path */
.temple-arch-clip {
  clip-path: polygon(50% 0%, 82% 12%, 100% 32%, 100% 100%, 0% 100%, 0% 32%, 18% 12%);
}

/* Soundwave Animation for Tala Pratyay Audio Player */
@keyframes soundwave {
  0%, 100% { height: 4px; }
  50% { height: 18px; }
}

.wave-bar-1 { animation: soundwave 1.1s ease-in-out infinite; }
.wave-bar-2 { animation: soundwave 0.8s ease-in-out infinite 0.2s; }
.wave-bar-3 { animation: soundwave 1.3s ease-in-out infinite 0.4s; }
.wave-bar-4 { animation: soundwave 0.9s ease-in-out infinite 0.1s; }

/* Scalloped Arch Accent */
.arch-scallop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  pointer-events: none;
  opacity: 0.9;
}

/* Infographic Route Timeline Stepper */
.route-step-active {
  background: linear-gradient(135deg, #c0392b 0%, #9e2016 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(158, 32, 22, 0.25);
}

.route-step-inactive {
  background-color: #ffffff;
  color: #59413d;
  border: 1px solid #f0e6e3;
}

/* Sacred Banana Tree Element in Infographic Route */
#infographic-route-card img[alt="Sacred Banana Tree"] {
  max-width: 100% !important;
  max-height: 280px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: top center !important;
  display: block !important;
}


/* ===================================================================
   FIXED BACKEND SCREEN BACKGROUNDS SYSTEM (STATIONARY & BEHIND CONTENT)
   - Fixed to viewport (never moves when scrolling up or down)
   - Pinned at z-index: 0 strictly behind all page content
   - Separate distinct background per screen picked from asset collection
=================================================================== */

.app-fixed-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto;
  max-width: 448px;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background-color: #faf4ee;
}

.screen-bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease-in-out, visibility 0.35s ease-in-out;
  pointer-events: none;
}

.screen-bg-layer.active {
  opacity: 1;
  visibility: visible;
}

.screen-bg-art {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  will-change: transform, opacity;
}

/* 1. Home: Fixed Base Layer (Soft Festive Neutral Parchment Behind Scrolling Content) */
.bg-home-autumn,
.bg-home-mandala {
  background-color: #faf4ee;
  background-image: radial-gradient(circle at 50% 15%, rgba(255, 237, 213, 0.45) 0%, transparent 70%);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 1;
  filter: none;
}

/* ===================================================================
   HOME SCREEN SECTION-SPECIFIC BACKGROUNDS SYSTEM
   - Landing hero has dedicated peacock feather & gold watercolor arch
   - Below content has distinct festive traditional backgrounds
   - Scoped strictly to Home page only (other pages remain untouched)
=================================================================== */

/* 1. Landing Hero Zone (Mint Green Watercolor Background) */
#home-landing-hero,
.home-landing-section {
  position: relative;
  background-image: url('Durga Puja/backgrounds/mint_watercolor_hero_bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  width: 100%;
}

/* 2. Below Portion - Section A: 5 Sacred Days Ribbon & Daily Infographic Route */
.home-route-section {
  position: relative;
  background-image: url('Durga Puja/backgrounds/mandala_ornate_bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  width: 100%;
}

/* 3. Below Portion - Section B: Top Pandals by Clubs & Sacred Agomoni Footsteps */
.home-clubs-section {
  position: relative;
  background-image: url('Durga Puja/backgrounds/mint_botanical_watercolor_bg.jpg?v=2.7.1');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  width: 100%;
}

.home-bg-dimmer {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

@keyframes bgAutumnSway {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  50% { transform: scale(1.025) translate3d(-0.6%, 0.4%, 0); }
  100% { transform: scale(1.01) translate3d(0.6%, -0.4%, 0); }
}

/* Atmospheric White Autumn Cumulus Clouds Drifting */
.clouds-drift-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  pointer-events: none;
  background: radial-gradient(ellipse 65% 38% at 30% 20%, rgba(255, 255, 255, 0.45) 0%, transparent 68%),
              radial-gradient(ellipse 55% 32% at 75% 15%, rgba(255, 255, 255, 0.38) 0%, transparent 65%);
  animation: cloudsFloat 22s ease-in-out infinite alternate;
}

@keyframes cloudsFloat {
  0% { transform: translateX(-3%); }
  100% { transform: translateX(3%); }
}

/* Autumn Golden Sunlight Radiant Sunburst */
.sunlight-glow-overlay {
  position: absolute;
  top: -40px;
  right: -30px;
  width: 280px;
  height: 280px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(255, 243, 205, 0.5) 0%, rgba(255, 214, 102, 0.25) 45%, transparent 75%);
  filter: blur(25px);
  pointer-events: none;
  animation: sunGlowPulse 7s ease-in-out infinite alternate;
}

@keyframes sunGlowPulse {
  0% { opacity: 0.65; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.15); }
}

/* Royal Silk Curtain Drape Animation (Festive Autumn Breeze) */
.curtain-drape-wrapper {
  position: absolute;
  top: 0px;
  width: 150px;
  height: auto;
  pointer-events: none;
  z-index: 2;
  opacity: 1;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.22));
}

.curtain-drape-wrapper.curtain-right {
  right: -8px;
  transform-origin: top right;
  animation: curtainSwayRight 6s ease-in-out infinite alternate;
}

.curtain-drape-wrapper.curtain-left {
  left: -8px;
  transform-origin: top left;
  transform: scaleX(-1);
  animation: curtainSwayLeft 6s ease-in-out infinite alternate;
}

.curtain-img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes curtainSwayRight {
  0% { transform: rotate(0deg) skewX(0deg); }
  50% { transform: rotate(2.5deg) skewX(-1deg) scale(1.01); }
  100% { transform: rotate(-1.5deg) skewX(0.8deg) scale(0.99); }
}

@keyframes curtainSwayLeft {
  0% { transform: scaleX(-1) rotate(0deg) skewX(0deg); }
  50% { transform: scaleX(-1) rotate(2.5deg) skewX(-1deg) scale(1.01); }
  100% { transform: scaleX(-1) rotate(-1.5deg) skewX(0.8deg) scale(0.99); }
}

/* 2. Explore: Sacred Peacock Feathers */
.bg-explore-peacock {
  background-image: url('Durga Puja/backgrounds/peacock_feather_bg.jpg');
  opacity: 0.94;
  animation: peacockFeatherDrift 18s ease-in-out infinite alternate;
}

@keyframes peacockFeatherDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(1%, -1%, 0) scale(1.03); }
  100% { transform: translate3d(-1%, 1%, 0) scale(1.01); }
}

/* 3. Trending: Golden Divine Light & Silk Ribbons (High-Visibility & Festive) */
.bg-trending-art {
  background-image: url('Durga Puja/Design 21.jpg');
  opacity: 0.95;
  animation: goldenSanctumGlow 14s ease-in-out infinite alternate;
}

/* 4. Club Detail: Golden Temple Sanctum Light */
.bg-detail-golden {
  background-image: url('Durga Puja/backgrounds/temple_golden_arch.jpg');
  opacity: 0.94;
  animation: goldenSanctumGlow 14s ease-in-out infinite alternate;
}

@keyframes goldenSanctumGlow {
  0% { transform: scale(1); opacity: 0.90; }
  50% { transform: scale(1.02) translate3d(0, -0.6%, 0); opacity: 0.98; }
  100% { transform: scale(1.01); opacity: 0.92; }
}

/* 5. Groups: Festive Canopy */
.bg-groups-mandala {
  background-image: url('Durga Puja/backgrounds/mandala_corners_bg.jpg');
  opacity: 0.94;
  animation: bgMandalaDrift 20s ease-in-out infinite alternate;
}

/* 6. Profile: Warm Royal Temple Arch & Golden Spotlight (Design 20.jpg) */
.bg-profile-arch {
  background-image: url('Durga Puja/Design 20.jpg');
  opacity: 0.95;
  animation: royalLotusPulse 14s ease-in-out infinite alternate;
}

@keyframes royalLotusPulse {
  0% { transform: scale(1); opacity: 0.88; }
  50% { transform: scale(1.02) translate3d(0, -0.6%, 0); opacity: 0.96; }
  100% { transform: scale(1.01); opacity: 0.90; }
}

/* Translucent Glass & Direct Background Styles */
.direct-bg-pill {
  background-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.direct-bg-row {
  background-color: transparent;
  border-bottom: 1px solid rgba(141, 112, 108, 0.2);
}

/* Pulse Glows */
.pulse-glow-red {
  box-shadow: 0 0 16px rgba(192, 57, 43, 0.2);
}

.pulse-glow-gold {
  box-shadow: 0 0 16px rgba(255, 164, 64, 0.25);
}

/* Modal Transitions */
.modal-overlay {
  transition: opacity 0.25s ease-out;
}
.modal-content {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease-out;
}

/* ===================================================================
   FESTIVE CULTURAL ELEMENTS ANIMATIONS (DHAK & KULA)
=================================================================== */

@keyframes dhakRhythm {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(-3deg) scale(1.03);
  }
  50% {
    transform: rotate(0deg) scale(1);
  }
  75% {
    transform: rotate(3deg) scale(1.03);
  }
}

.dhak-bounce {
  animation: dhakRhythm 3s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes kulaFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(1.5deg);
  }
}

/* ===================================================================
   SHARAD SAMMAN AWARDS & PODIUM STYLES
=================================================================== */

/* Crown & Laurels */
.crown-card-shadow {
  box-shadow: 0 8px 28px rgba(158, 32, 22, 0.16), 0 0 0 1px rgba(245, 158, 11, 0.4);
}

.gold-crown-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.35);
}

/* 3-Tier Podium Pedestal */
.podium-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  position: relative;
  transition: transform 0.2s ease;
}

.podium-pillar:active {
  transform: scale(0.98);
}

.podium-pillar-gold {
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.94) 0%, rgba(253, 230, 138, 0.88) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  border-bottom: none;
}

.podium-pillar-silver {
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.94) 0%, rgba(226, 232, 240, 0.88) 100%);
  border: 1.5px solid rgba(148, 163, 184, 0.45);
  border-bottom: none;
}

.podium-pillar-bronze {
  background: linear-gradient(180deg, rgba(255, 237, 213, 0.94) 0%, rgba(254, 215, 170, 0.88) 100%);
  border: 1.5px solid rgba(217, 119, 6, 0.4);
  border-bottom: none;
}

/* Avatar Halos */
.gold-halo {
  box-shadow: 0 0 0 3px #f59e0b, 0 4px 14px rgba(245, 158, 11, 0.35);
}

.silver-halo {
  box-shadow: 0 0 0 3px #94a3b8, 0 4px 10px rgba(148, 163, 184, 0.3);
}

.bronze-halo {
  box-shadow: 0 0 0 3px #d97706, 0 4px 10px rgba(217, 119, 6, 0.3);
}

/* Micro-interaction: Animated vote indicator */
@keyframes votePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.28); color: #005e3a; }
  100% { transform: scale(1); }
}

.vote-animating {
  animation: votePop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===================================================================
   AGOMONI: DIVINE ARRIVAL, SACRED FOOTPRINTS & WELCOMING LADY SYSTEM
=================================================================== */

/* Divine Golden Chaalchitra Aura */
.divine-aura-halo {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 250px;
  height: 250px;
  margin-top: -125px;
  margin-left: -125px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 240, 138, 0.6) 0%, rgba(245, 158, 11, 0.35) 45%, rgba(220, 38, 38, 0.18) 70%, transparent 85%);
  filter: blur(16px);
  pointer-events: none;
  animation: auraGlowPulse 4.5s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes auraGlowPulse {
  0% { transform: scale(0.92); opacity: 0.65; }
  50% { transform: scale(1.1); opacity: 0.95; }
  100% { transform: scale(1.02); opacity: 0.85; }
}

/* Durga Pratima Sway */
.durga-pratima-hero {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.32));
  animation: pratimaSway 8s ease-in-out infinite alternate;
}

@keyframes pratimaSway {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(0.4deg); }
  100% { transform: translateY(0px) rotate(-0.4deg); }
}

/* Durga Divine Feet Pacing Motion (Legs moving / stepping forward) */
.durga-feet-container {
  position: relative;
  animation: durgaFeetStep 3.6s ease-in-out infinite alternate;
  filter: drop-shadow(0 8px 18px rgba(185, 28, 28, 0.32));
}

@keyframes durgaFeetStep {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

/* Ankle Bell Chime Halo */
.nupur-chime-halo {
  animation: nupurChimePulse 2.4s ease-in-out infinite;
}

@keyframes nupurChimePulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.22); opacity: 0.85; }
}

/* Animated Footprint Walking Path (Charan Chinha) */
.charan-trail-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
}

.charan-step-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Step Walking Keyframes: illuminates sequentially as Maa steps forward */
@keyframes stepWalkLoop {
  0%, 15% {
    opacity: 0.3;
    transform: scale(0.88) translateY(4px);
    filter: drop-shadow(0 1px 3px rgba(220, 38, 38, 0.35));
  }
  25%, 70% {
    opacity: 1;
    transform: scale(1.1) translateY(0px);
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.9)) drop-shadow(0 0 18px rgba(245, 158, 11, 0.7));
  }
  85%, 100% {
    opacity: 0.85;
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 2px 6px rgba(220, 38, 38, 0.5));
  }
}

.step-1-anim { animation: stepWalkLoop 4.8s infinite 0s; }
.step-2-anim { animation: stepWalkLoop 4.8s infinite 1.2s; }
.step-3-anim { animation: stepWalkLoop 4.8s infinite 2.4s; }
.step-4-anim { animation: stepWalkLoop 4.8s infinite 3.6s; }

/* Sparkle Star Rising from Footprints */
@keyframes starFloat {
  0% { transform: translateY(0) scale(0.6) rotate(0deg); opacity: 0; }
  50% { opacity: 1; transform: translateY(-8px) scale(1.1) rotate(90deg); }
  100% { transform: translateY(-16px) scale(0.5) rotate(180deg); opacity: 0; }
}

.charan-star {
  animation: starFloat 2.4s ease-out infinite;
}

/* Graceful Bengali Lady Welcoming Devi */
.bengali-lady-container {
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.28));
  animation: ladyWelcomeSway 6.5s ease-in-out infinite alternate;
  transform-origin: bottom center;
}

@keyframes ladyWelcomeSway {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3.5px) rotate(0.6deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* Dhunuchi Fragrant Incense Smoke Wisps */
@keyframes smokeWispRise {
  0% { opacity: 0.2; transform: translateY(0) scale(0.9) skewX(0deg); }
  50% { opacity: 0.75; transform: translateY(-12px) scale(1.15) skewX(5deg); }
  100% { opacity: 0; transform: translateY(-26px) scale(1.4) skewX(-4deg); }
}

.dhunuchi-smoke-wisp {
  animation: smokeWispRise 3.6s ease-out infinite;
}

/* Kash Phul Sway in Breeze Overlay */
@keyframes kashPhulGentleSway {
  0% { transform: rotate(0deg) skewX(0deg); }
  50% { transform: rotate(3deg) skewX(-1.5deg); }
  100% { transform: rotate(-2deg) skewX(1deg); }
}

.kash-phul-sway {
  transform-origin: bottom center;
  animation: kashPhulGentleSway 5s ease-in-out infinite alternate;
}


/* ================= HERO CAROUSEL & WELCOMING LADY ================= */
.hero-carousel-container {
  position: relative;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0.25rem 0 0.25rem 0;
}

.hero-slides-box {
  position: relative;
  width: 100%;
  height: 315px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 380px) {
  .hero-slides-box {
    height: 340px;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Slide Indicator Dots (Dedols) */
.hero-dots-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 4px;
  z-index: 25;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.5);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.hero-dot:hover {
  background-color: rgba(255, 255, 255, 0.95);
  transform: scale(1.2);
}

.hero-dot.active {
  width: 24px;
  height: 8px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #d9480f, #f59f00);
  border-color: #ffd43b;
  box-shadow: 0 2px 8px rgba(217, 72, 15, 0.55);
}

/* Welcoming Bengali Lady Section Below Hero */
.welcoming-lady-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 1.25rem;
  padding: 0.85rem 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(180, 83, 9, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.welcoming-lady-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(180, 83, 9, 0.1);
}

.welcoming-lady-img-large {
  max-height: 200px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.22));
  transition: transform 0.3s ease;
}

.welcoming-lady-card:hover .welcoming-lady-img-large {
  transform: scale(1.03);
}

/* Unique, Natural & Professional Icon-Only Bottom Navigation Dock */
.nav-item {
  position: relative;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-icon-box {
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item.active .nav-icon-box {
  background-color: rgba(154, 44, 22, 0.12);
  color: #9a2c16;
  box-shadow: 0 2px 8px rgba(154, 44, 22, 0.15);
  transform: translateY(-1px);
}

.nav-item.active .nav-icon-box span {
  font-variation-settings: 'FILL' 1, 'wght' 600;
  transform: scale(1.1);
}

.nav-item:not(.active) .nav-icon-box span {
  font-variation-settings: 'FILL' 0, 'wght' 400;
}

.nav-item:not(.active):hover .nav-icon-box {
  background-color: rgba(0, 0, 0, 0.04);
}

.nav-active-dot {
  transition: all 0.25s ease;
}

.nav-item.active .nav-active-dot {
  background-color: #9a2c16;
  width: 5px;
  height: 5px;
  box-shadow: 0 0 6px rgba(154, 44, 22, 0.6);
}

/* ===================================================================
   GROUPS SCREEN & DOCK TAB CUSTOM THEME (#9e039e)
   Overrides red primary strictly on Groups page, tab icon, and pointer
   =================================================================== */

/* 1. Bottom Dock Groups Tab & Active Pointer */
.nav-item[data-nav="groups"].active {
  color: #9e039e !important;
}

.nav-item[data-nav="groups"].active .nav-icon-box {
  background-color: rgba(158, 3, 158, 0.15) !important;
  color: #9e039e !important;
  box-shadow: 0 2px 8px rgba(158, 3, 158, 0.25) !important;
}

.nav-item[data-nav="groups"].active .nav-label {
  color: #9e039e !important;
}

.nav-item[data-nav="groups"].active .nav-active-dot {
  background-color: #9e039e !important;
  box-shadow: 0 0 6px rgba(158, 3, 158, 0.7) !important;
}

/* 2. All Red Accents Scoped Strictly to #screen-groups */
#screen-groups .bg-primary-container,
#screen-groups [class*="bg-primary-container"] {
  background-color: #9e039e !important;
}

#screen-groups .text-primary-container,
#screen-groups [class*="text-primary-container"] {
  color: #9e039e !important;
}

#screen-groups .border-primary-container,
#screen-groups [class*="border-primary-container"] {
  border-color: #9e039e !important;
}

#screen-groups .bg-primary-container\/10 {
  background-color: rgba(158, 3, 158, 0.10) !important;
}

#screen-groups .bg-primary-container\/15 {
  background-color: rgba(158, 3, 158, 0.15) !important;
}

#screen-groups .bg-primary-container\/20 {
  background-color: rgba(158, 3, 158, 0.20) !important;
}

#screen-groups .bg-primary-container\/25 {
  background-color: rgba(158, 3, 158, 0.25) !important;
}

#screen-groups .border-primary-container\/20 {
  border-color: rgba(158, 3, 158, 0.20) !important;
}

#screen-groups .border-primary-container\/25 {
  border-color: rgba(158, 3, 158, 0.25) !important;
}

#screen-groups .hover\:bg-primary-container\/25:hover {
  background-color: rgba(158, 3, 158, 0.25) !important;
}

#screen-groups .hover\:text-primary-container:hover {
  color: #9e039e !important;
}

#screen-groups .text-primary {
  color: #9e039e !important;
}

#screen-groups .bg-primary {
  background-color: #9e039e !important;
}

#screen-groups .border-primary {
  border-color: #9e039e !important;
}

/* 3. Squad Action Modals (Join, Create, Share, Members, Manage, QR) */
#join-modal .bg-primary-container,
#create-modal .bg-primary-container,
#share-squad-modal .bg-primary-container,
#squad-members-modal .bg-primary-container,
#qr-scanner-modal .bg-primary-container,
#manage-squads-modal .bg-primary-container {
  background-color: #9e039e !important;
}

#join-modal .text-primary-container,
#create-modal .text-primary-container,
#share-squad-modal .text-primary-container,
#squad-members-modal .text-primary-container,
#qr-scanner-modal .text-primary-container,
#manage-squads-modal .text-primary-container {
  color: #9e039e !important;
}

#join-modal .bg-primary-container\/15,
#create-modal .bg-primary-container\/15,
#share-squad-modal .bg-primary-container\/15,
#squad-members-modal .bg-primary-container\/15,
#qr-scanner-modal .bg-primary-container\/15,
#manage-squads-modal .bg-primary-container\/15 {
  background-color: rgba(158, 3, 158, 0.15) !important;
}

#join-modal .bg-primary-container\/20,
#create-modal .bg-primary-container\/20,
#share-squad-modal .bg-primary-container\/20,
#squad-members-modal .bg-primary-container\/20,
#qr-scanner-modal .bg-primary-container\/20,
#manage-squads-modal .bg-primary-container\/20 {
  background-color: rgba(158, 3, 158, 0.20) !important;
}

#join-modal input:focus,
#create-modal input:focus {
  border-color: #9e039e !important;
  --tw-ring-color: #9e039e !important;
}

/* Squad Route Selection Buttons (Violet Theme #9e039e) */
.squad-route-btn.active {
  background: #9e039e !important;
  background-color: #9e039e !important;
  color: #ffffff !important;
  border-color: #9e039e !important;
  box-shadow: 0 2px 8px rgba(158, 3, 158, 0.45) !important;
}
.squad-route-btn.active span {
  color: #ffffff !important;
}

/* Squad Launch Trip "Go" Action Button (Exact Groups Purple Theme #9e039e) */
.squad-go-trip-btn {
  background: #9e039e !important;
  background-color: #9e039e !important;
  background-image: none !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(158, 3, 158, 0.4) !important;
}
.squad-go-trip-btn:hover {
  background-color: #880288 !important;
  filter: brightness(1.08);
}

/* ===================================================================
   HOME SCREEN & DOCK TAB CUSTOM THEME (#15803d)
   Overrides red primary strictly on Home page, tab icon, and pointer
   =================================================================== */

/* 1. Bottom Dock Home Tab & Active Pointer */
.nav-item[data-nav="home"].active {
  color: #15803d !important;
}

.nav-item[data-nav="home"].active .nav-icon-box {
  background-color: rgba(21, 128, 61, 0.15) !important;
  color: #15803d !important;
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.25) !important;
}

.nav-item[data-nav="home"].active .nav-label {
  color: #15803d !important;
}

.nav-item[data-nav="home"].active .nav-active-dot {
  background-color: #15803d !important;
  box-shadow: 0 0 6px rgba(21, 128, 61, 0.7) !important;
}

/* 2. All Red Accents Scoped Strictly to #screen-home */
#screen-home .bg-primary-container,
#screen-home [class*="bg-primary-container"] {
  background-color: #15803d !important;
}

#screen-home .text-primary-container,
#screen-home [class*="text-primary-container"] {
  color: #15803d !important;
}

#screen-home .border-primary-container,
#screen-home [class*="border-primary-container"] {
  border-color: #15803d !important;
}

#screen-home .bg-primary-container\/10 {
  background-color: rgba(21, 128, 61, 0.10) !important;
}

#screen-home .bg-primary-container\/15 {
  background-color: rgba(21, 128, 61, 0.15) !important;
}

#screen-home .bg-primary-container\/20 {
  background-color: rgba(21, 128, 61, 0.20) !important;
}

#screen-home .bg-primary-container\/25 {
  background-color: rgba(21, 128, 61, 0.25) !important;
}

#screen-home .border-primary-container\/20 {
  border-color: rgba(21, 128, 61, 0.20) !important;
}

#screen-home .border-primary-container\/25 {
  border-color: rgba(21, 128, 61, 0.25) !important;
}

#screen-home .border-primary-container\/30 {
  border-color: rgba(21, 128, 61, 0.30) !important;
}

#screen-home .border-primary-container\/40 {
  border-color: rgba(21, 128, 61, 0.40) !important;
}

#screen-home .hover\:bg-primary-container\/25:hover {
  background-color: rgba(21, 128, 61, 0.25) !important;
}

#screen-home .hover\:text-primary-container:hover {
  color: #15803d !important;
}

#screen-home .text-primary {
  color: #15803d !important;
}

#screen-home .bg-primary {
  background-color: #15803d !important;
}

#screen-home .border-primary {
  border-color: #15803d !important;
}

/* ===================================================================
   PUJO MAP SCREEN & DOCK TAB CUSTOM THEME (#253bfa)
   Overrides default colors strictly on Pujo Map screen, header & dock tab
   =================================================================== */

/* 1. Map Header Bar */
section#screen-pujomap > div.flex.flex-col > div.flex.items-center,
#screen-pujomap .map-header-bar {
  background-color: #253bfa !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* 2. Bottom Dock Pujo Map Tab & Active Pointer */
.nav-item[data-nav="pujomap"].active {
  color: #253bfa !important;
}

.nav-item[data-nav="pujomap"].active .nav-icon-box {
  background-color: rgba(37, 59, 250, 0.15) !important;
  color: #253bfa !important;
  box-shadow: 0 2px 8px rgba(37, 59, 250, 0.25) !important;
}

.nav-item[data-nav="pujomap"].active .nav-label {
  color: #253bfa !important;
}

.nav-item[data-nav="pujomap"].active .nav-active-dot {
  background-color: #253bfa !important;
  box-shadow: 0 0 6px rgba(37, 59, 250, 0.7) !important;
}

/* 3. Screen Accents for #screen-pujomap */
#screen-pujomap .bg-primary-container,
#screen-pujomap [class*="bg-primary-container"] {
  background-color: #253bfa !important;
}

#screen-pujomap .text-primary-container,
#screen-pujomap [class*="text-primary-container"] {
  color: #253bfa !important;
}

#screen-pujomap .border-primary-container,
#screen-pujomap [class*="border-primary-container"] {
  border-color: #253bfa !important;
}

#screen-pujomap .bg-primary {
  background-color: #253bfa !important;
}

#screen-pujomap .text-primary {
  color: #253bfa !important;
}

/* 4. Light Blue Top Header & Bottom Dock Footer for Pujo Map Screen (#pujomap) */
#app-container[data-screen="pujomap"] header.fixed.top-0,
#app-container[data-screen="pujomap"] header.fixed.top-0 > div,
body:has(#screen-pujomap.active) header.fixed.top-0,
body:has(#screen-pujomap.active) header.fixed.top-0 > div {
  background-color: #dbeafe !important;
  background: rgba(219, 234, 254, 0.94) !important;
  backdrop-filter: blur(14px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(180%) !important;
  border-bottom: 1px solid rgba(37, 59, 250, 0.25) !important;
  box-shadow: 0 4px 16px rgba(37, 59, 250, 0.10) !important;
}

#app-container[data-screen="pujomap"] header.fixed.top-0 .bg-primary-container,
body:has(#screen-pujomap.active) header.fixed.top-0 .bg-primary-container {
  background-color: #253bfa !important;
}

#app-container[data-screen="pujomap"] header.fixed.top-0 a[data-path="user-profile"] .bg-primary,
body:has(#screen-pujomap.active) header.fixed.top-0 a[data-path="user-profile"] .bg-primary {
  background-color: #253bfa !important;
}

#app-container[data-screen="pujomap"] nav#bottom-dock-nav,
#app-container[data-screen="pujomap"] nav#bottom-dock-nav > div,
body:has(#screen-pujomap.active) nav#bottom-dock-nav,
body:has(#screen-pujomap.active) nav#bottom-dock-nav > div {
  background-color: #dbeafe !important;
  background: rgba(219, 234, 254, 0.94) !important;
  backdrop-filter: blur(14px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(180%) !important;
  border-top: 1px solid rgba(37, 59, 250, 0.25) !important;
  box-shadow: 0 -4px 18px rgba(37, 59, 250, 0.12) !important;
}


/* Animated Bottom Navigation Dock on Scroll with Adaptive Glassmorphism */
.bottom-dock-nav {
  background-color: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid rgba(136, 19, 55, 0.1) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.6), 0 -2px 10px rgba(0, 0, 0, 0.03);
  transform: translate3d(0, 0, 0);
  opacity: 1;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.bottom-dock-nav.nav-hidden {
  transform: translate3d(0, 115%, 0);
  opacity: 0;
  pointer-events: none;
}

.bottom-dock-nav.nav-visible {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  pointer-events: auto;
}

/* ================= SACRED DEITY SPOTLIGHT & IDLE AURA ================= */
#durga-family-row {
  position: relative;
  overflow: visible !important;
}

.deity-char-wrapper {
  position: relative;
  transform-origin: bottom center !important;
  will-change: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* No up and down movement: characters remain strictly grounded on horizontal baseline */
.deity-body-inner {
  transform: none !important;
  animation: none !important;
}

/* Dimmed state when another deity is active in center spotlight */
.deity-char-wrapper.spotlight-inactive {
  opacity: 0.85 !important;
}

/* Active spotlight deity state */
.deity-char-wrapper.spotlight-active {
  z-index: 100 !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.8)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28)) !important;
}

.deity-char-wrapper.spotlight-active .deity-body-inner {
  animation: none !important;
  transform: none !important;
}

/* Divine Mandap Radial Glow behind Pantheon */
.spotlight-radial-glow {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translate(-50%, 0) scale(1);
  width: 220px;
  height: 180px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.4) 0%, rgba(245, 158, 11, 0.22) 50%, transparent 75%);
  filter: blur(24px);
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 5;
}

.spotlight-radial-glow.glow-active {
  opacity: 0.95;
  transform: translate(-50%, 0) scale(1.35);
}

@media (prefers-reduced-motion: reduce) {
  .deity-char-wrapper,
  .deity-body-inner,
  .spotlight-radial-glow {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ===== PUJO MAP SCREEN STYLES ===== */

#screen-pujomap {
  background: #1a1a2e;
  height: calc(100dvh - 64px);
  min-height: calc(100dvh - 64px);
}

#pujomap-container {
  width: 100%;
  height: 100%;
  position: relative;
}

#pujomap {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

#screen-pujomap .mapboxgl-ctrl-top-right {
  top: 8px;
  right: 8px;
}

#screen-pujomap .mapboxgl-ctrl-bottom-right {
  bottom: 74px;
  right: 8px;
  z-index: 20;
}

#screen-pujomap .mapboxgl-ctrl-group {
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

#screen-pujomap .mapboxgl-ctrl-group button {
  width: 36px;
  height: 36px;
  border-color: rgba(255, 255, 255, 0.08);
}

#screen-pujomap .mapboxgl-ctrl-group button .mapboxgl-ctrl-icon {
  filter: invert(1) brightness(0.9);
}

/* Map Day Selector Pills - Topmost Layer & Prominent Visibility */
#map-day-pills {
  position: relative !important;
  z-index: 9999 !important;
  scrollbar-width: none;
}

.map-day-pill {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  white-space: nowrap;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-day-pill:hover {
  background: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  transform: translateY(-1px);
}

.map-day-pill.active {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #253bfa !important;
  font-weight: 800 !important;
  border: 1.5px solid #ffffff !important;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.85), 0 2px 8px rgba(0, 0, 0, 0.35) !important;
  transform: scale(1.05);
}

/* Custom Pandal Markers */
.pujomap-marker {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom center;
}

.pujomap-marker:hover,
.pujomap-marker:active {
  transform: scale(1.22);
}

.pujomap-marker-pin {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  background: var(--marker-color, #f59e0b);
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  border: 2px solid #ffffff;
}

.pujomap-marker-number {
  transform: rotate(45deg);
  font-size: 11px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1;
}

/* User Location Marker */
.pujomap-user-marker {
  cursor: default;
}

.pujomap-user-dot {
  width: 18px;
  height: 18px;
  background: #3b82f6;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.35), 0 2px 8px rgba(0, 0, 0, 0.4);
  animation: pulse-user-dot 2s ease-in-out infinite;
}

@keyframes pulse-user-dot {
  0%, 100% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.35), 0 2px 8px rgba(0, 0, 0, 0.4); }
  50% { box-shadow: 0 0 0 14px rgba(59, 130, 246, 0.1), 0 2px 8px rgba(0, 0, 0, 0.4); }
}

/* Map Info Card Slide-up Animation */
#map-info-card {
  animation: slideUpCard 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideUpCard {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Map Active Route Banner Styles */
#map-route-banner {
  animation: slideDownBanner 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownBanner {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.map-stop-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 3px 10px 3px 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
}

.map-stop-pill:hover,
.map-stop-pill:active {
  background: rgba(37, 59, 250, 0.25);
  border-color: rgba(37, 59, 250, 0.6);
  transform: translateY(-1px);
}

.map-stop-pill-idx {
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: #253bfa;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-stop-pill-name {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.map-stop-arrow {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
  user-select: none;
}

/* ===== FIREBASE AUTH MODAL & PROFILE STYLES ===== */

#auth-modal {
  animation: slideUpModal 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpModal {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#auth-otp-input {
  letter-spacing: 0.35em;
  font-family: monospace;
}

.auth-phone-verified-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 1rem;
  padding: 0.875rem 1rem;
}

/* ================= SQUAD LIVE RADAR & MAP PINS (POINTS 6 & 7) ================= */
.squad-member-marker {
  cursor: pointer;
  z-index: 15;
}

.squad-member-marker:hover {
  z-index: 25;
}

@keyframes squadPulseWave {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.6); opacity: 0.3; }
  100% { transform: scale(2.2); opacity: 0; }
}

.squad-radar-wave {
  animation: squadPulseWave 2.4s ease-out infinite;
}

/* Toast popup permanently disabled across entire website */
#app-toast {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
