/* ==========================================================================
   BHAKTILOK PREMIUM HOMEPAGE SYSTEM - MODERN LUXURY SPIRITUAL THEME
   ========================================================================== */

:root {
  --primary-saffron: #FF6F00;
  --primary-gradient: linear-gradient(135deg, #FF6F00 0%, #FF8F00 50%, #FFA000 100%);
  --primary-glow: rgba(255, 111, 0, 0.12);
  --primary-glow-strong: rgba(255, 111, 0, 0.28);
  --gold-accent: #D4AF37;
  --gold-gradient: linear-gradient(135deg, #F9D04B 0%, #D4AF37 100%);
  --bg-body: #FBF9F5;
  --bg-card-glass: #FFFFFF;
  --text-dark: #1E293B;
  --text-muted-custom: #64748B;
  --border-glass: rgba(255, 111, 0, 0.15);
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 16px 40px rgba(255, 111, 0, 0.12);
  --font-outfit: 'Outfit', 'Segoe UI', system-ui, sans-serif;
}

/* Grand Light-Themed Hero Banner */
.grand-hero-section {
  background: radial-gradient(circle at 50% 0%, rgba(255, 111, 0, 0.08) 0%, rgba(251, 249, 245, 1) 75%), #FFFFFF;
  border-bottom: 1px solid rgba(255, 111, 0, 0.12);
  padding: 3.5rem 1rem 3rem;
  position: relative;
  overflow: hidden;
}

.grand-hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 143, 0, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-title-gradient {
  font-family: var(--font-outfit);
  background: linear-gradient(135deg, #C2410C 0%, #EA580C 50%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

/* Master Search Engine Bar */
.master-search-container {
  max-width: 680px;
  margin: 1.75rem auto 2.5rem;
  position: relative;
}

.master-search-input {
  width: 100%;
  padding: 1.1rem 1.5rem 1.1rem 3.4rem;
  font-size: 1.05rem;
  border-radius: 9999px;
  border: 2px solid rgba(255, 111, 0, 0.25);
  background: #FFFFFF;
  box-shadow: 0 12px 36px rgba(255, 111, 0, 0.08);
  color: #1E293B;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.master-search-input:focus {
  border-color: #FF6F00;
  box-shadow: 0 16px 45px rgba(255, 111, 0, 0.18), 0 0 0 4px rgba(255, 111, 0, 0.15);
}

.search-icon-inside {
  position: absolute;
  left: 1.35rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  color: #EA580C;
  pointer-events: none;
}

/* ==========================================================================
   6-Category Devotional Hub Cards - Modern Animated SVG & Glassmorphism
   ========================================================================== */
.hub-card {
  background: linear-gradient(160deg, #FFFFFF 0%, #FFFDF9 100%);
  border: 1.5px solid rgba(255, 111, 0, 0.12);
  border-radius: 22px;
  padding: 1.4rem 0.9rem 1.25rem;
  text-align: center;
  transition: all 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.03), 0 2px 8px rgba(255, 111, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
  height: 100%;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--card-accent, #FF6F00) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hub-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--card-glow, rgba(255, 111, 0, 0.08)) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.38s ease;
}

.hub-card:hover {
  transform: translateY(-7px) scale(1.02);
  border-color: var(--card-accent, #FF6F00);
  box-shadow: 0 20px 42px -10px var(--card-shadow, rgba(255, 111, 0, 0.22)), 0 6px 16px rgba(0, 0, 0, 0.04);
}

.hub-card:hover::before,
.hub-card:hover::after {
  opacity: 1;
}

/* Category Accent Theme Tokens */
.hub-card-bhajan {
  --card-accent: #FF6F00;
  --card-glow: rgba(255, 111, 0, 0.12);
  --card-shadow: rgba(255, 111, 0, 0.25);
}
.hub-card-mantra {
  --card-accent: #E65100;
  --card-glow: rgba(230, 81, 0, 0.12);
  --card-shadow: rgba(230, 81, 0, 0.25);
}
.hub-card-aarti {
  --card-accent: #F57F17;
  --card-glow: rgba(245, 127, 23, 0.14);
  --card-shadow: rgba(245, 127, 23, 0.28);
}
.hub-card-chalisa {
  --card-accent: #D81B60;
  --card-glow: rgba(216, 27, 96, 0.12);
  --card-shadow: rgba(216, 27, 96, 0.25);
}
.hub-card-panchang {
  --card-accent: #7B1FA2;
  --card-glow: rgba(123, 31, 162, 0.12);
  --card-shadow: rgba(123, 31, 162, 0.25);
}
.hub-card-granth {
  --card-accent: #00897B;
  --card-glow: rgba(0, 137, 123, 0.12);
  --card-shadow: rgba(0, 137, 123, 0.25);
}

/* SVG Container Icon Pill */
.hub-icon-pill {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  background: #FFF9F2;
  border: 1px solid rgba(255, 111, 0, 0.14);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.03);
  position: relative;
  transition: all 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.hub-card:hover .hub-icon-pill {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 10px 24px -4px var(--card-shadow, rgba(255, 111, 0, 0.3));
  border-color: var(--card-accent, #FF6F00);
}

/* Individual Pill Background Accents */
.hub-card-bhajan .hub-icon-pill { background: linear-gradient(145deg, #FFF8E1 0%, #FFF3E0 100%); border-color: rgba(255, 111, 0, 0.18); }
.hub-card-mantra .hub-icon-pill { background: linear-gradient(145deg, #FBE9E7 0%, #FFCCBC 100%); border-color: rgba(230, 81, 0, 0.18); }
.hub-card-aarti .hub-icon-pill { background: linear-gradient(145deg, #FFFDE7 0%, #FFF9C4 100%); border-color: rgba(245, 127, 23, 0.22); }
.hub-card-chalisa .hub-icon-pill { background: linear-gradient(145deg, #FCE4EC 0%, #F8BBD0 100%); border-color: rgba(216, 27, 96, 0.18); }
.hub-card-panchang .hub-icon-pill { background: linear-gradient(145deg, #F3E5F5 0%, #E1BEE7 100%); border-color: rgba(123, 31, 162, 0.18); }
.hub-card-granth .hub-icon-pill { background: linear-gradient(145deg, #E0F2F1 0%, #B2DFDB 100%); border-color: rgba(0, 137, 123, 0.18); }

/* SVG Core Properties */
.hub-svg {
  width: 42px;
  height: 42px;
  display: block;
  overflow: visible;
  transition: transform 0.38s ease;
}

.hub-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 0.25rem;
  line-height: 1.35;
  transition: color 0.3s ease;
}

.hub-card:hover .hub-card-title {
  color: var(--card-accent, #FF6F00);
}

.hub-card-subtitle {
  font-size: 0.78rem;
  color: #64748B;
  line-height: 1.35;
  font-weight: 500;
  transition: color 0.3s ease;
}

.hub-card:hover .hub-card-subtitle {
  color: #334155;
}

/* Explore Pill Arrow (Appears smoothly on hover) */
.hub-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  background: var(--card-accent, #FF6F00);
  color: #FFFFFF;
  font-size: 0.7rem;
  margin-top: 0.6rem;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-card:hover .hub-card-arrow {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   SVG MICRO-ANIMATIONS & KEYFRAMES
   ========================================================================== */

/* 1. Bhajan (Harmonics & Musical Notes) */
.hub-svg-bhajan .music-group {
  animation: bhajanFloat 3.2s ease-in-out infinite;
  transform-origin: 32px 32px;
}
.hub-svg-bhajan .wave-left {
  animation: wavePulse 2.4s ease-in-out infinite alternate;
  transform-origin: 12px 32px;
}
.hub-svg-bhajan .wave-right-1 {
  animation: wavePulse 2.4s 0.4s ease-in-out infinite alternate;
  transform-origin: 50px 32px;
}
.hub-svg-bhajan .wave-right-2 {
  animation: wavePulse 2.4s 0.8s ease-in-out infinite alternate;
  transform-origin: 55px 32px;
}
.hub-svg-bhajan .sparkle-1 {
  animation: sparkleTwinkle 2s ease-in-out infinite;
}
.hub-svg-bhajan .sparkle-2 {
  animation: sparkleTwinkle 2.5s 0.6s ease-in-out infinite;
}

.hub-card-bhajan:hover .hub-svg-bhajan .music-group {
  animation-duration: 1.6s;
}

@keyframes bhajanFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3.5px) rotate(-3deg); }
}
@keyframes wavePulse {
  0% { opacity: 0.3; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.15); }
}

/* 2. Siddha Mantra (Sacred Lotus & Yantra Aura) */
.hub-svg-mantra .mantra-yantra-ring {
  animation: yantraSpin 18s linear infinite;
  transform-origin: 32px 32px;
}
.hub-svg-mantra .petal-diag {
  animation: lotusBreathe 3s ease-in-out infinite alternate;
  transform-origin: 32px 32px;
}
.hub-svg-mantra .petal-card {
  animation: lotusBreathe 3s 0.5s ease-in-out infinite alternate;
  transform-origin: 32px 32px;
}
.hub-svg-mantra .mantra-core {
  animation: corePulse 2.2s ease-in-out infinite;
}

.hub-card-mantra:hover .hub-svg-mantra .mantra-yantra-ring {
  animation-duration: 6s;
}

@keyframes yantraSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes lotusBreathe {
  0% { transform: scale(0.94); opacity: 0.85; }
  100% { transform: scale(1.05); opacity: 1; }
}
@keyframes corePulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px #FFD700); }
  50% { transform: scale(1.2); filter: drop-shadow(0 0 6px #FFA000); }
}

/* 3. Aarti (Dancing Flame & Sacred Diya) */
.hub-svg-aarti .flame-outer {
  animation: flameFlicker 1.8s ease-in-out infinite;
  transform-origin: 32px 34px;
}
.hub-svg-aarti .flame-core {
  animation: flameFlicker 1.4s 0.2s ease-in-out infinite;
  transform-origin: 32px 30px;
}
.hub-svg-aarti .aarti-halo {
  animation: haloBreathe 2.5s ease-in-out infinite;
}
.hub-svg-aarti .spark-1 {
  animation: emberRise 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.hub-svg-aarti .spark-2 {
  animation: emberRise 2.4s 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes flameFlicker {
  0%, 100% { transform: scale(1) skewX(0deg); }
  25% { transform: scale(1.06, 0.95) skewX(2.5deg); }
  50% { transform: scale(0.95, 1.05) skewX(-1.5deg); }
  75% { transform: scale(1.03, 0.98) skewX(1deg); }
}
@keyframes haloBreathe {
  0%, 100% { opacity: 0.15; transform: scale(0.95); }
  50% { opacity: 0.35; transform: scale(1.15); }
}
@keyframes emberRise {
  0% { opacity: 0; transform: translateY(4px) scale(0.5); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10px) scale(1.2); }
}

/* 4. Chalisa (Sacred Scripture & Swaying Ribbon) */
.hub-svg-chalisa .book-page-right {
  animation: pageFlutter 3s ease-in-out infinite alternate;
  transform-origin: 32px 22px;
}
.hub-svg-chalisa .bookmark-ribbon {
  animation: ribbonSway 2.8s ease-in-out infinite alternate;
  transform-origin: 32px 22px;
}
.hub-svg-chalisa .verse-line {
  animation: verseShimmer 3s ease-in-out infinite;
}
.hub-svg-chalisa .v-1, .hub-svg-chalisa .v-4 { animation-delay: 0s; }
.hub-svg-chalisa .v-2, .hub-svg-chalisa .v-5 { animation-delay: 0.4s; }
.hub-svg-chalisa .v-3, .hub-svg-chalisa .v-6 { animation-delay: 0.8s; }

@keyframes pageFlutter {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(2.5deg); }
}
@keyframes ribbonSway {
  0% { transform: rotate(-3deg); }
  100% { transform: rotate(4deg); }
}
@keyframes verseShimmer {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; stroke: #C2185B; }
}

/* 5. Panchang & Vrat (Sun Rays & Twinkling Celestial Stars) */
.hub-svg-panchang .sun-rays {
  animation: sunRaySpin 24s linear infinite;
}
.hub-svg-panchang .crescent-moon {
  animation: moonShimmer 3s ease-in-out infinite alternate;
}
.hub-svg-panchang .star-1 {
  animation: starTwinkle 2.2s ease-in-out infinite;
}
.hub-svg-panchang .star-2 {
  animation: starTwinkle 2.8s 0.7s ease-in-out infinite;
}

.hub-card-panchang:hover .hub-svg-panchang .sun-rays {
  animation-duration: 8s;
}

@keyframes sunRaySpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes moonShimmer {
  0% { opacity: 0.85; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1.04); }
}
@keyframes starTwinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.25); }
}

/* 6. Sanatan Granth (Vedas, Upanishads & Wisdom Light Rays) */
.hub-svg-granth .wisdom-rays {
  animation: wisdomBeams 3s ease-in-out infinite alternate;
  transform-origin: 32px 20px;
}
.hub-svg-granth .chakra-emblem {
  animation: chakraSpin 16s linear infinite;
}
.hub-svg-granth .spark-1 {
  animation: starTwinkle 2s ease-in-out infinite;
}
.hub-svg-granth .spark-2 {
  animation: starTwinkle 2.5s 0.5s ease-in-out infinite;
}

.hub-card-granth:hover .hub-svg-granth .chakra-emblem {
  animation-duration: 5s;
}

@keyframes wisdomBeams {
  0% { opacity: 0.35; transform: scaleY(0.85); }
  100% { opacity: 0.95; transform: scaleY(1.2); }
}
@keyframes chakraSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Generic Sparkle */
@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.6); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Dark Mode Theme Support */
[data-bs-theme="dark"] .hub-card,
body.dark-mode .hub-card {
  background: linear-gradient(160deg, #1E293B 0%, #0F172A 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .hub-card-title,
body.dark-mode .hub-card-title {
  color: #F8FAFC !important;
}

[data-bs-theme="dark"] .hub-card-subtitle,
body.dark-mode .hub-card-subtitle {
  color: #94A3B8 !important;
}

[data-bs-theme="dark"] .hub-icon-pill,
body.dark-mode .hub-icon-pill {
  border-color: rgba(255, 255, 255, 0.1);
}


/* ======================== ULTRA MASTER PANCHANG SINGLE HORIZONTAL STRIP ======================== */
.live-panchang-strip {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 249, 242, 0.95) 100%) !important;
  border: 1.5px solid rgba(255, 111, 0, 0.2) !important;
  border-radius: 22px !important;
  padding: 1.25rem 1.65rem !important;
  box-shadow: 0 14px 38px rgba(234, 88, 12, 0.09), 0 2px 10px rgba(0, 0, 0, 0.02) !important;
  margin: 2.75rem auto 1.5rem !important;
  max-width: 1200px !important;
  backdrop-filter: blur(24px) !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}

.live-panchang-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF6F00, #FFA000, #FF3D00, #FFB300);
  opacity: 0.9;
}

.live-panchang-strip:hover {
  box-shadow: 0 20px 52px rgba(234, 88, 12, 0.15), 0 6px 18px rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(255, 111, 0, 0.35) !important;
  transform: translateY(-2px);
}

.panchang-left-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-align: left;
}

.surya-orb-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffbeb 0%, #fef08a 25%, #f59e0b 65%, #ea580c 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.45), inset 0 2px 5px rgba(255, 255, 255, 0.6);
  animation: suryaOrbPulse 3.5s ease-in-out infinite alternate;
  flex-shrink: 0;
}

.panchang-grid-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-grow: 1;
  flex-shrink: 1;
}

.panchang-pill-card {
  padding: 0.68rem 1rem !important;
  border-radius: 16px !important;
  text-align: center;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.panchang-pill-card:hover {
  transform: translateY(-2px) scale(1.02);
}

.pill-tithi {
  background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid rgba(254, 215, 170, 0.9);
}
.pill-tithi:hover { box-shadow: 0 6px 16px rgba(249, 115, 22, 0.18); border-color: #fb923c; }

.pill-nakshatra {
  background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid rgba(187, 247, 208, 0.9);
}
.pill-nakshatra:hover { box-shadow: 0 6px 16px rgba(34, 197, 94, 0.18); border-color: #86efac; }

.pill-rahu {
  background: linear-gradient(145deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid rgba(254, 202, 202, 0.9);
}
.pill-rahu:hover { box-shadow: 0 6px 16px rgba(239, 68, 68, 0.18); border-color: #fca5a5; }

.pill-abhijit {
  background: linear-gradient(145deg, #f0fdfa 0%, #ccfbf1 100%);
  border: 1px solid rgba(153, 246, 228, 0.9);
}
.pill-abhijit:hover { box-shadow: 0 6px 16px rgba(13, 148, 136, 0.18); border-color: #5eead4; }

.btn-panchang-cta {
  background: linear-gradient(135deg, #ff6f00 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 0.72rem 1.35rem !important;
  font-weight: 700 !important;
  font-size: 0.86rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.32) !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.btn-panchang-cta:hover {
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.45) !important;
  color: #ffffff !important;
}

.btn-panchang-cta i {
  transition: transform 0.2s ease;
}
.btn-panchang-cta:hover i {
  transform: translateX(4px);
}

/* Daily Prayer & Section Glass Panel Containers */
.daily-prayer-glass-panel {
  background: #FFFFFF !important;
  border: 1px solid rgba(255, 111, 0, 0.15) !important;
  border-radius: 24px !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.04) !important;
  padding: 1.5rem 1.75rem !important;
  margin-bottom: 2rem;
  position: relative;
}

.section-headline-modern {
  font-family: var(--font-outfit);
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.3px;
}

/* ======================== ULTRA-MODERN COMPREHENSIVE VEDIC RASHI ORACLE ======================== */
.rashi-oracle-container {
  position: relative;
  background: radial-gradient(circle at 10% 20%, rgba(255, 248, 238, 0.98) 0%, rgba(255, 255, 255, 0.99) 90%);
  border: 1.5px solid rgba(255, 111, 0, 0.22) !important;
  border-radius: 32px !important;
  box-shadow: 0 20px 60px rgba(255, 111, 0, 0.07), 0 4px 20px rgba(0, 0, 0, 0.03) !important;
  padding: 2.25rem 2rem !important;
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.rashi-cosmic-bg {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 380px;
  height: 380px;
  pointer-events: none;
  opacity: 0.18;
  z-index: 0;
  animation: celestialOrbitSpin 45s linear infinite;
}

@keyframes celestialOrbitSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes cosmicPulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 16px rgba(255, 111, 0, 0.5)); }
}

@keyframes waveBarMotion {
  0%, 100% { height: 6px; }
  50% { height: 22px; }
}

.rashi-nav-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.55rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 1199px) {
  .rashi-nav-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 767px) {
  .rashi-nav-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.45rem;
  }
}

@media (max-width: 480px) {
  .rashi-nav-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rashi-btn {
  background: #FFFFFF;
  border: 1.5px solid rgba(255, 111, 0, 0.16);
  border-radius: 18px;
  padding: 0.85rem 0.4rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.02);
}

.rashi-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: all 0.25s ease;
}

.rashi-btn:hover {
  transform: translateY(-4px);
  border-color: #FF6F00;
  box-shadow: 0 10px 22px rgba(255, 111, 0, 0.16);
}

.rashi-btn.active {
  background: linear-gradient(135deg, #FF6F00 0%, #E65100 100%);
  border-color: #E65100;
  color: #FFFFFF !important;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(230, 81, 0, 0.32);
}

.rashi-btn.active::before {
  background: #FFE082;
}

.rashi-btn.active .rashi-symbol-circle {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  transform: scale(1.1);
}

.rashi-btn.active .rashi-name {
  color: #FFFFFF !important;
}

.rashi-btn.active .rashi-element-dot {
  border-color: #FFFFFF;
}

.rashi-symbol-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 111, 0, 0.08);
  color: #E65100;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: all 0.25s ease;
}

.rashi-btn .rashi-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1E293B;
  font-family: var(--font-outfit);
}

.rashi-element-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 1px;
}
.rashi-element-dot.fire { background: #FF3D00; }
.rashi-element-dot.earth { background: #43A047; }
.rashi-element-dot.air { background: #0288D1; }
.rashi-element-dot.water { background: #7B1FA2; }

.rashi-detail-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(255, 111, 0, 0.2);
  border-radius: 28px;
  padding: 2.25rem 2rem;
  box-shadow: 0 18px 45px rgba(255, 111, 0, 0.08);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.rashi-hero-panel {
  background: linear-gradient(145deg, #FFF9F2 0%, #FFF3E0 100%);
  border: 1px solid rgba(255, 111, 0, 0.25);
  border-radius: 24px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.zodiac-orb-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zodiac-orb-ring {
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(255, 111, 0, 0.4);
  border-radius: 50%;
  animation: celestialOrbitSpin 20s linear infinite;
}

.zodiac-orb-ring-inner {
  position: absolute;
  inset: 8px;
  border: 1.5px solid rgba(255, 160, 0, 0.5);
  border-radius: 50%;
  animation: celestialOrbitSpin 12s linear infinite reverse;
}

.zodiac-orb-center {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6F00 0%, #D84315 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  box-shadow: 0 10px 25px rgba(230, 81, 0, 0.4), inset 0 2px 6px rgba(255, 255, 255, 0.4);
  animation: cosmicPulseGlow 3s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.rashi-tabs-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-bottom: 0.85rem;
  margin-bottom: 1.6rem;
  border-bottom: 2px solid rgba(255, 111, 0, 0.12);
}

.rashi-tab-btn {
  background: rgba(255, 111, 0, 0.05);
  border: 1px solid rgba(255, 111, 0, 0.16);
  color: #475569;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0.55rem 1.05rem;
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.22s ease;
  line-height: 1.3;
}

@media (max-width: 767px) {
  .rashi-tabs-header {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .rashi-tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

.rashi-tab-btn:hover {
  background: rgba(255, 111, 0, 0.12);
  color: #E65100;
  transform: translateY(-1px);
}

.rashi-tab-btn.active {
  background: linear-gradient(135deg, #FF6F00 0%, #E65100 100%);
  border-color: #E65100;
  color: #FFFFFF !important;
  box-shadow: 0 6px 16px rgba(230, 81, 0, 0.28);
}

.rashi-tab-content {
  display: none;
  animation: rashiTabFadeIn 0.32s ease-out;
}

.rashi-tab-content.active {
  display: block;
}

@keyframes rashiTabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.rashi-prop-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(255, 111, 0, 0.14);
  border-radius: 18px;
  padding: 1.15rem 1.25rem;
  height: 100%;
  min-height: 122px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.55rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.025);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  word-break: break-word;
}

.rashi-prop-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rashi-prop-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255, 111, 0, 0.1);
  color: #E65100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.rashi-prop-label {
  font-size: 0.82rem;
  color: #64748B;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.rashi-prop-val {
  display: block;
  line-height: 1.45;
  font-size: 0.95rem !important;
  font-weight: 700;
  color: #1E293B;
  margin-top: auto;
}

.rashi-prop-card strong {
  display: block;
  line-height: 1.45;
  word-break: break-word;
}

.rashi-prop-card:hover {
  border-color: rgba(255, 111, 0, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 111, 0, 0.1);
}

.rashi-prop-card:hover .rashi-prop-icon {
  transform: scale(1.08);
}

.rashi-mantra-box {
  background: linear-gradient(135deg, #FFF8E1 0%, #FFFFFF 100%);
  border: 1.5px solid rgba(255, 160, 0, 0.4);
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 8px 24px rgba(255, 160, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.audio-wave-visualizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  vertical-align: middle;
}

.wave-bar {
  width: 3.5px;
  background: #FF6F00;
  border-radius: 3px;
  height: 6px;
}

.audio-wave-visualizer.playing .wave-bar:nth-child(1) { animation: waveBarMotion 0.8s ease-in-out infinite; }
.audio-wave-visualizer.playing .wave-bar:nth-child(2) { animation: waveBarMotion 1.1s ease-in-out infinite 0.15s; }
.audio-wave-visualizer.playing .wave-bar:nth-child(3) { animation: waveBarMotion 0.7s ease-in-out infinite 0.3s; }
.audio-wave-visualizer.playing .wave-bar:nth-child(4) { animation: waveBarMotion 1.3s ease-in-out infinite 0.2s; }
.audio-wave-visualizer.playing .wave-bar:nth-child(5) { animation: waveBarMotion 0.9s ease-in-out infinite 0.4s; }

.spiritual-meter-badge {
  background: rgba(255, 111, 0, 0.1);
  border: 1px solid rgba(255, 111, 0, 0.25);
  border-radius: 16px;
  padding: 0.6rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  margin-top: 1rem;
}

.meter-progress-track {
  flex-grow: 1;
  height: 7px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  overflow: hidden;
}

.meter-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #FF9800 0%, #E65100 100%);
  border-radius: 10px;
  transition: width 0.6s ease;
}

.rashi-copy-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #0F172A;
  color: #FFFFFF;
  padding: 0.85rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 9999;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rashi-copy-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Compact Track List Rows for Aarti & Chalisa */
.ac-track-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ac-compact-row {
  background: #FFFFFF;
  border: 1px solid rgba(255, 111, 0, 0.12);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.ac-compact-row:hover {
  background: rgba(255, 111, 0, 0.04);
  border-color: #FF6F00;
  transform: translateX(4px);
}

.ac-compact-row .track-title {
  font-weight: 600;
  color: #1E293B;
  font-size: 0.95rem;
}

/* Post Card Proportions */
.article-card-light {
  background: #FFFFFF;
  border: 1px solid rgba(255, 111, 0, 0.12);
  border-radius: 20px;
  padding: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.article-card-light:hover {
  transform: translateY(-4px);
  border-color: #FF6F00;
  box-shadow: 0 12px 30px rgba(255, 111, 0, 0.12);
}

/* Global Button Overrides */
.btn-bhajan-read, .btn-saffron-action {
  background: var(--primary-gradient);
  color: #FFFFFF !important;
  border: none;
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  text-decoration: none !important;
}

.btn-bhajan-read:hover, .btn-saffron-action:hover {
  box-shadow: 0 8px 20px rgba(255, 111, 0, 0.3);
  transform: translateY(-2px);
}

/* Autocomplete suggestions box */
.search-suggestions-box {
  position: absolute;
  top: 105%;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid rgba(255, 111, 0, 0.2);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  max-height: 320px;
  overflow-y: auto;
  display: none;
}

.suggestion-item {
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1E293B;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.suggestion-item:hover {
  background: rgba(255, 111, 0, 0.08);
  color: #FF6F00;
}

.suggestion-item:last-child {
  border-bottom: none;
}
