/* ==========================================================================
   Astrologer Manikandan - Sacred Temple Ivory & Royal Gold Design System
   Light Theme (Default) with Poppins Font Family & Dark Mode Toggle
   Vedic & KP Astrology Web Portal - Pan-India & Worldwide
   Astrologer Manikandan
   -------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Tamil:wght@500;600;700;800&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Primary Theme: Sacred Temple Ivory & Royal Gold (Light) */
  --bg-cosmic: #fdfbf7;
  --bg-deep: #f8f4eb;
  --bg-card: #ffffff;
  --bg-card-hover: #fffdfa;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-input: #ffffff;

  /* Sacred Vedic Gold & Amber Palette (Deepened for high contrast in light mode) */
  --gold-primary: #b45309;
  --gold-glow: #d97706;
  --gold-dark: #92400e;
  --gold-gradient: linear-gradient(135deg, #b45309 0%, #d97706 50%, #92400e 100%);
  --gold-shimmer: linear-gradient(90deg, #92400e, #d97706, #92400e);

  /* Sacred Saffron & Vermilion Accents */
  --saffron: #ea580c;
  --vermilion: #c2410c;
  --saffron-gradient: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #c2410c 100%);

  /* Celestial Violet / Indigo */
  --mystic-purple: #7c3aed;
  --mystic-indigo: #4f46e5;
  --mystic-glow: rgba(124, 58, 237, 0.15);

  /* High-Contrast Typography */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  /* Borders & Shadows - Modern Soft Elevation (Stroke-Free) */
  --border-gold: rgba(217, 119, 6, 0.18);
  --border-gold-glow: rgba(217, 119, 6, 0.5);
  --border-subtle: rgba(0, 0, 0, 0.06);

  --shadow-gold: 0 10px 28px rgba(217, 119, 6, 0.14);
  --shadow-cosmic: 0 16px 36px -12px rgba(180, 83, 9, 0.12);
  --shadow-card: 0 8px 24px -4px rgba(180, 83, 9, 0.07), 0 2px 8px -2px rgba(0, 0, 0, 0.03);
  --shadow-card-hover: 0 18px 38px -8px rgba(180, 83, 9, 0.15), 0 6px 14px -3px rgba(0, 0, 0, 0.05);

  /* Typography: 100% Poppins Family */
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Transitions & Spacing */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* ==========================================================================
   Dark Theme Overrides (when data-theme="dark")
   ========================================================================== */
[data-theme="dark"] {
  --bg-cosmic: #060913;
  --bg-deep: #0b1120;
  --bg-card: rgba(15, 23, 42, 0.85);
  --bg-card-hover: rgba(26, 38, 66, 0.95);
  --bg-glass: rgba(15, 23, 42, 0.85);
  --bg-input: rgba(11, 17, 32, 0.9);

  --gold-primary: #f59e0b;
  --gold-glow: #fbbf24;
  --gold-dark: #b45309;
  --gold-gradient: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #d97706 100%);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #060913;

  --border-gold: rgba(245, 158, 11, 0.18);
  --border-gold-glow: rgba(251, 191, 36, 0.4);
  --border-subtle: rgba(255, 255, 255, 0.06);

  --shadow-gold: 0 0 25px rgba(245, 158, 11, 0.18);
  --shadow-cosmic: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  --shadow-card: 0 12px 32px -6px rgba(0, 0, 0, 0.55), 0 4px 10px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 20px 44px -8px rgba(0, 0, 0, 0.75), 0 0 20px rgba(245, 158, 11, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background-color: var(--bg-cosmic);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Background Canvas Starfield (Disabled) */
#cosmic-canvas {
  display: none !important;
}

/* Ambient Glow Elements */
.celestial-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}

.glow-top-gold {
  top: -120px;
  right: -80px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--gold-glow), transparent 70%);
}

.glow-bottom-purple {
  bottom: -120px;
  left: -80px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--mystic-purple), transparent 70%);
}

.glow-center-saffron {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--saffron), transparent 70%);
  opacity: 0.08;
}

/* Content Container */
.site-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 128px;
}

/* Unified Fixed Header Group (Top Bar + Main Navigation) */
.sticky-header-group {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Styles with Poppins */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-sans);
  letter-spacing: -0.015em;
  color: var(--text-primary);
  font-weight: 700;
}

.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 800;
}

.saffron-gradient-text {
  background: var(--saffron-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 800;
}

p {
  color: var(--text-secondary);
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Header & Navigation */
.header {
  position: relative;
  width: 100%;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-symbol {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.15) 0%, var(--bg-card) 100%);
  border: 1.5px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  position: relative;
  overflow: hidden;
}

.brand-symbol svg {
  width: 30px;
  height: 30px;
  fill: var(--gold-primary);
  filter: drop-shadow(0 0 4px rgba(217, 119, 6, 0.4));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--gold-primary);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Nav Menu Items */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-primary);
  font-weight: 600;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--gold-gradient);
  transition: width var(--transition-smooth);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-badge {
  font-size: 0.68rem;
  background: var(--saffron-gradient);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gold-primary);
  font-size: 1.25rem;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-card);
}

.theme-toggle-btn:hover {
  transform: scale(1.08) rotate(15deg);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-card-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(217, 119, 6, 0.28);
}

[data-theme="dark"] .btn-primary {
  color: #060913;
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(217, 119, 6, 0.45);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.btn-secondary:hover {
  background: rgba(217, 119, 6, 0.06);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.25);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(22, 163, 74, 0.4);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* Mobile Nav Controls & Toggle (Hidden on desktop, shown on mobile <=768px) */
.mobile-nav-controls {
  display: none;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--gold-primary);
  font-size: 1.8rem;
  cursor: pointer;
}

/* Mobile Drawer (Strictly hidden on desktop, cleanly toggled on mobile) */
.mobile-drawer {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-drawer {
    display: flex !important;
    position: fixed;
    top: 130px;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-15px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 99;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }

  .mobile-drawer.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-drawer .nav-link {
    font-size: 1.1rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
  }
}

/* Floating Bottom Bar for Mobile */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  padding: 10px 16px;
  z-index: 90;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

/* Hero Section */
.hero-section {
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(217, 119, 6, 0.08);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.hero-badge-icon {
  color: var(--gold-primary);
  display: flex;
  font-size: 0.95rem;
}

.hero-badge-text {
  font-size: 0.85rem;
  color: var(--gold-primary);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: 3.4rem;
  line-height: 1.18;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px;
}

.hero-stats-row {
  display: flex;
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--gold-primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-top: 4px;
}

/* Hero Celestial Mandala Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mandala-container {
  width: 440px;
  height: 440px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mandala-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(217, 119, 6, 0.4);
}

.ring-outer {
  width: 440px;
  height: 440px;
  border-style: solid;
  border-color: rgba(217, 119, 6, 0.25);
}

.ring-middle {
  width: 350px;
  height: 350px;
  border-color: rgba(234, 88, 12, 0.4);
}

.ring-inner {
  width: 260px;
  height: 260px;
  border-style: solid;
  border-color: rgba(217, 119, 6, 0.5);
}

.mandala-center-avatar {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--bg-card) 0%, var(--bg-deep) 100%);
  border: 2.5px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold), inset 0 0 25px rgba(217, 119, 6, 0.2);
  z-index: 2;
  text-align: center;
  position: relative;
  user-select: none;
  overflow: visible;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.avatar-om {
  font-size: 3.5rem;
  line-height: 1.25;
  font-family: 'Noto Serif Tamil', 'Tamil Sangam MN', 'InaiMathi', serif;
  font-weight: 700;
  color: #d97706;
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.65), 0 0 30px rgba(217, 119, 6, 0.45), 0 0 45px rgba(217, 119, 6, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: visible;
  transition: transform 0.4s ease, text-shadow 0.4s ease, color 0.4s ease;
}

.mandala-center-avatar:hover .avatar-om {
  transform: scale(1.08);
  color: #f59e0b;
  text-shadow: 0 0 25px rgba(245, 158, 11, 0.9), 0 0 50px rgba(217, 119, 6, 0.7);
}

/* Floating Zodiac Signs Around Mandala */
.floating-planet {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-fast);
}

.floating-planet:hover {
  transform: scale(1.18);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-card-hover);
}

.fp-1 { top: 0; left: 50%; transform: translateX(-50%); }
.fp-2 { top: 25%; right: 5%; }
.fp-3 { bottom: 25%; right: 5%; }
.fp-4 { bottom: 0; left: 50%; transform: translateX(-50%); }
.fp-5 { bottom: 25%; left: 5%; }
.fp-6 { top: 25%; left: 5%; }

/* Live Panchang Top Bar (Permanent Dark Cosmic Background) */
.panchang-banner {
  position: relative;
  z-index: 1010;
  width: 100%;
  height: 44px;
  background: #070a14 !important;
  border-bottom: 1.5px solid rgba(245, 158, 11, 0.4) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  font-size: 0.76rem;
  color: #f8fafc;
  overflow: visible;
}

.panchang-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 14px;
}

.panchang-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.live-pulse {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  flex-shrink: 0;
}

.panchang-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 0.01em;
}

.panchang-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}

.panchang-metrics::-webkit-scrollbar {
  display: none;
}

.panchang-metric {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  color: #f1f5f9;
  flex-shrink: 0;
}

.panchang-label {
  color: #94a3b8;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.74rem;
}

.panchang-label i {
  color: #fbbf24;
  font-size: 0.82rem;
}

.panchang-value {
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.76rem;
}

/* Astrological Status Badges in Top Bar */
.badge-chandrashtamam {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5 !important;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.74rem;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.badge-nalla {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #86efac !important;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.74rem;
}

.badge-rahu {
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #f87171 !important;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.74rem;
}

.badge-clock {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: #fde047 !important;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.badge-tamil {
  color: #fde047;
  font-weight: 600;
}

.rahu-alert {
  color: #dc2626;
  font-weight: 600;
}

/* Dynamic Active Time Pill */
.panchang-period-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.badge-active-period {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.badge-active-period .period-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.badge-active-period.period-auspicious {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #86efac !important;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.15);
}
.badge-active-period.period-auspicious .period-indicator-dot {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.badge-active-period.period-inauspicious {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5 !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}
.badge-active-period.period-inauspicious .period-indicator-dot {
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

.badge-active-period.period-neutral {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fde047 !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}
.badge-active-period.period-neutral .period-indicator-dot {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.badge-active-period:hover {
  transform: translateY(-1px);
  filter: brightness(1.2);
}

/* Hover Schedule Tooltip */
.panchang-schedule-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 290px;
  background: #090e1a;
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.85), 0 0 16px rgba(245, 158, 11, 0.12);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.panchang-period-wrapper:hover .panchang-schedule-tooltip,
.panchang-period-wrapper.is-open .panchang-schedule-tooltip,
.panchang-period-wrapper:focus-within .panchang-schedule-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.tooltip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(245, 158, 11, 0.22);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.tooltip-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tooltip-badge-info {
  font-size: 0.68rem;
  color: #94a3b8;
}

.tooltip-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  padding: 3px 0;
}

.tooltip-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
}

.tooltip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.dot-auspicious { background: #22c55e; box-shadow: 0 0 5px #22c55e; }
.dot-inauspicious { background: #ef4444; box-shadow: 0 0 5px #ef4444; }
.dot-neutral { background: #f59e0b; box-shadow: 0 0 5px #f59e0b; }

.tooltip-time {
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: #f8fafc;
  letter-spacing: 0.01em;
}

@media (min-width: 992px) {
  .panchang-metrics {
    overflow: visible;
  }
}

@media (max-width: 991px) {
  .panchang-inner {
    overflow: visible;
    position: relative;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .panchang-metrics {
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 16px;
    padding: 0 16px;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    animation: none !important;
  }

  .panchang-schedule-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(295px, 88vw);
    max-width: 320px;
    transform: translateY(6px);
  }

  .panchang-period-wrapper:hover .panchang-schedule-tooltip,
  .panchang-period-wrapper.is-open .panchang-schedule-tooltip,
  .panchang-period-wrapper:focus-within .panchang-schedule-tooltip {
    transform: translateY(0);
  }
}

@keyframes panchangMarquee {
  0%, 18% {
    transform: translateX(0);
  }
  82%, 100% {
    transform: translateX(-38%);
  }
}

/* Cards System - Modern Borderless Elevation */
.astro-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.astro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
  opacity: 0.8;
  transition: var(--transition-smooth);
}

.astro-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.astro-card:hover::before {
  opacity: 1;
  height: 4px;
}

/* Section Common Layouts */
.section {
  padding: 90px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-deep);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-tag {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-primary);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: 2.5rem;
  line-height: 1.25;
  margin-bottom: 16px;
  font-weight: 800;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Form Grid & Inputs */
.quick-tool-section {
  background: var(--bg-deep);
}

.form-grid-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.astro-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-label i {
  color: var(--gold-primary);
}

.form-control {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18);
  background: var(--bg-card);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23d97706' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* Prokerala-style Place of Birth & Autocomplete Component */
.location-group-wrapper {
  position: relative;
  width: 100%;
}

.form-clear-text-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.form-clear-text-wrapper .form-control {
  width: 100%;
  padding-right: 38px;
}

.form-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
  line-height: 1;
  z-index: 5;
}

[data-theme="dark"] .form-clear-btn {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
}

.form-clear-btn:hover {
  background: var(--gold-primary);
  color: #fff;
}

.form-clear-btn.visible {
  display: flex;
}

/* Custom Location Autocomplete Dropdown */
.location-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  max-height: 260px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  padding: 6px;
  border: 1px solid var(--border-subtle);
  scrollbar-width: thin;
}

.location-dropdown.open {
  display: block;
  animation: fadeIn 0.18s ease;
}

.location-item {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-fast);
  color: var(--text-primary);
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.location-item:hover,
.location-item.selected {
  background: rgba(217, 119, 6, 0.1);
  color: var(--gold-primary);
}

.location-item-icon {
  color: var(--gold-primary);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.location-item-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  text-align: left;
}

.location-item-name strong {
  color: var(--gold-primary);
  font-weight: 700;
}

.location-no-match {
  padding: 14px 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}

.location-search-status {
  padding: 8px 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px dashed var(--border-subtle);
  margin-top: 4px;
  background: rgba(217, 119, 6, 0.04);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.location-spinner {
  width: 13px;
  height: 13px;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: locationSpin 0.7s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes locationSpin {
  to {
    transform: rotate(360deg);
  }
}


/* Tool Tab Navs */
.tool-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tool-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-card);
}

.tool-tab-btn:hover {
  color: var(--gold-primary);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-card-hover);
  background: rgba(217, 119, 6, 0.04);
}

.tool-tab-btn.active {
  background: var(--gold-gradient);
  color: #ffffff;
  border-color: transparent;
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

.tool-content-pane {
  display: none;
}

.tool-content-pane.active {
  display: block;
}

/* Astrology Calculation Results Display */
.result-card {
  margin-top: 32px;
  background: var(--bg-card);
  border: 1.5px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-gold), var(--shadow-card);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.result-title {
  font-size: 1.4rem;
  color: var(--text-primary);
  font-weight: 700;
}

.chart-type-toggle {
  display: flex;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
}

.toggle-opt-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.toggle-opt-btn.active {
  background: var(--gold-gradient);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

/* Chart Canvas & SVG Container */
.chart-display-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.chart-wrapper-full {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chart-wrapper-full .chart-title {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.chart-svg-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.chart-svg-box svg {
  width: 100%;
  max-width: 580px;
  height: auto;
}

.table-wrapper-full {
  width: 100%;
}

.table-wrapper-full .table-title {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.planet-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  background: var(--bg-card);
}

/* Key Metrics Grid */
.planet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.planet-table th, .planet-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.planet-table th {
  color: var(--gold-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
}

.planet-table tr:hover {
  background: rgba(217, 119, 6, 0.04);
}

.sign-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(217, 119, 6, 0.12);
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.82rem;
}

[data-theme="dark"] .sign-badge {
  color: var(--gold-glow);
}

/* Services Cards Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.service-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.12) 0%, var(--bg-card) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--gold-primary);
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.1);
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.service-tag {
  font-size: 0.78rem;
  background: rgba(217, 119, 6, 0.08);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-weight: 500;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-box {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.feature-icon {
  font-size: 2rem;
  color: var(--gold-primary);
  margin-bottom: 16px;
}

.feature-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.feature-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* Testimonial Cards */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.testimonial-rating {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.testimonial-quote {
  font-size: 0.98rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 1.1rem;
}

.author-info h4 {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.author-info p {
  font-size: 0.82rem;
  color: var(--gold-primary);
  font-weight: 500;
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.faq-item:hover {
  box-shadow: var(--shadow-card-hover);
}

.faq-item.active {
  box-shadow: var(--shadow-card-hover);
}

.faq-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-header h3 {
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 600;
}

.faq-toggle-icon {
  font-size: 1.3rem;
  color: var(--gold-primary);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-body {
  padding: 0 24px 24px;
  max-height: 300px;
}

/* Contact & Astrology Center Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.center-info-card,
.clinic-info-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(217, 119, 6, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-detail h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-detail p, .contact-detail a {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.contact-detail a:hover {
  color: var(--gold-primary);
}

/* ==========================================================================
   Inverted Footer:
   - Light Mode: Deep Cosmic Navy (#070a14) with Radiant Gold Accents
   - Dark Mode: Sacred Temple Ivory (#f8f4eb) with Deep Temple Gold Accents
   ========================================================================== */
.footer {
  /* Scoped Variables for Light Mode (Dark Footer) */
  --footer-bg: #070a14;
  --footer-border: rgba(245, 158, 11, 0.4);
  --footer-border-subtle: rgba(255, 255, 255, 0.1);
  --footer-title: #f8fafc;
  --footer-gold: #fbbf24;
  --footer-text: #cbd5e1;
  --footer-muted: #94a3b8;
  --footer-link: #cbd5e1;
  --footer-link-hover: #fbbf24;

  /* Override inherited color tokens within footer scope */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --gold-primary: #fbbf24;
  --gold-glow: #fbbf24;
  --border-subtle: rgba(255, 255, 255, 0.1);

  background: var(--footer-bg) !important;
  border-top: 1.5px solid var(--footer-border) !important;
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.25);
  color: var(--footer-text);
  padding: 70px 0 30px;
  margin-top: auto;
  position: relative;
  z-index: 10;
  transition: background var(--transition-smooth), color var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

[data-theme="dark"] .footer {
  /* Scoped Variables for Dark Mode (Light Footer) */
  --footer-bg: #f8f4eb;
  --footer-border: rgba(217, 119, 6, 0.45);
  --footer-border-subtle: rgba(0, 0, 0, 0.09);
  --footer-title: #0f172a;
  --footer-gold: #b45309;
  --footer-text: #334155;
  --footer-muted: #64748b;
  --footer-link: #334155;
  --footer-link-hover: #b45309;

  /* Override inherited color tokens within footer scope for dark mode */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --gold-primary: #b45309;
  --gold-glow: #d97706;
  --border-subtle: rgba(0, 0, 0, 0.09);

  background: var(--footer-bg) !important;
  border-top: 1.5px solid var(--footer-border) !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  color: var(--footer-text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .brand-title {
  color: var(--footer-title);
}

.footer-brand .brand-subtitle {
  color: var(--footer-gold);
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--footer-text);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--footer-gold);
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--footer-link);
  font-weight: 500;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-links a:hover {
  color: var(--footer-link-hover);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--footer-border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--footer-muted);
}

/* Keyframes */
@keyframes rotateMandala {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes counterRotate {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-badge-wrap {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 24px;
    justify-content: center;
    max-width: 320px;
    margin: 0 auto;
  }
  .mandala-container {
    width: 360px;
    height: 360px;
  }
  .ring-outer { width: 360px; height: 360px; }
  .ring-middle { width: 280px; height: 280px; }
  .ring-inner { width: 200px; height: 200px; }
  .chart-display-container {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 14px;
  }
  .site-wrapper {
    padding-top: 114px;
  }
  .nav-container {
    height: 64px;
  }
  .brand-logo {
    gap: 8px;
  }
  .brand-symbol {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
  .brand-symbol svg {
    width: 22px;
    height: 22px;
  }
  .brand-title {
    font-size: 0.95rem;
    white-space: nowrap;
  }
  .brand-subtitle {
    display: none;
  }
  .nav-menu, .nav-actions {
    display: none !important;
  }
  .mobile-nav-controls {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 8px;
    background: rgba(217, 119, 6, 0.12);
    border: none;
    color: var(--gold-primary);
    cursor: pointer;
  }
  .mobile-theme-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    cursor: pointer;
  }
  .mobile-drawer {
    top: 108px;
  }
  .mobile-bottom-bar {
    display: flex;
  }
  .hero-visual {
    overflow: hidden;
    max-width: 100%;
    padding: 20px 0;
  }
  .mandala-container {
    width: 280px;
    height: 280px;
  }
  .ring-outer { width: 280px; height: 280px; }
  .ring-middle { width: 220px; height: 220px; }
  .ring-inner { width: 160px; height: 160px; }
  .mandala-center-avatar {
    width: 124px;
    height: 124px;
  }
  .avatar-om {
    font-size: 2.6rem;
    line-height: 1.25;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  body {
    padding-bottom: 60px;
  }
}
