/* ==========================================================================
   VedicAstroTimes - UI Components CSS
   ========================================================================== */

/* --- Sticky Header & Professional Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(12, 30, 61, 0.08);
  box-shadow: 0 2px 12px rgba(12, 30, 61, 0.03);
  transition: all var(--transition-normal);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-insignia {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(159, 40, 0, 0.35);
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform var(--transition-fast);
  background: transparent;
}

.brand-logo:hover .logo-insignia {
  transform: rotate(15deg) scale(1.06);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.hero-main-logo {
  animation: logoGlowPulse 4s ease-in-out infinite alternate;
}

@keyframes logoGlowPulse {
  0% {
    box-shadow: 0 0 20px rgba(255, 179, 0, 0.4);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 35px rgba(255, 179, 0, 0.7);
    transform: scale(1.03);
  }
}

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

.brand-title {
  font-family: var(--font-classical);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-royal-blue);
  letter-spacing: 0.04em;
  line-height: 1.1;
}

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

.brand-tagline {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 1px;
}

/* Nav Links Desktop */
.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  list-style: none;
  background: rgba(12, 30, 61, 0.025);
  padding: 4px 6px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(12, 30, 61, 0.05);
}

@media (min-width: 1040px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-royal-blue);
  background: rgba(12, 30, 61, 0.05);
}

.nav-link.active {
  color: #FFFFFF;
  background: var(--color-royal-blue);
  box-shadow: 0 2px 6px rgba(12, 30, 61, 0.2);
}

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

/* Language Switcher - Segmented Control */
.lang-switcher {
  display: flex;
  align-items: center;
  background: #F4EFE6;
  border: 1px solid rgba(201, 151, 56, 0.3);
  border-radius: var(--radius-full);
  padding: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}

.lang-btn {
  padding: 4px 8px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  color: var(--color-royal-blue);
}

.lang-btn.active {
  background: #FFFFFF;
  color: var(--color-royal-blue);
  box-shadow: 0 1px 4px rgba(12, 30, 61, 0.15);
  font-weight: 800;
}

/* Primary CTA in Navbar */
.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #7A1C29 0%, #9B2C3B 100%);
  color: #FFFFFF !important;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 2px 8px rgba(122, 28, 41, 0.25);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(122, 28, 41, 0.35);
  background: linear-gradient(135deg, #9B2C3B 0%, #7A1C29 100%);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4.5px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: #F4EFE6;
  border: 1px solid var(--border-light);
  cursor: pointer;
}

@media (min-width: 1040px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--color-royal-blue);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: var(--space-6) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
  z-index: 999;
  border-bottom: 2px solid var(--color-gold);
  overflow-y: auto;
}

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

.mobile-nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-royal-blue);
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover {
  background: var(--color-ivory-warm);
  color: var(--color-maroon);
}

/* Tabs Header on Dashboard */
.tabs-header {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 6px;
  background: #FFFFFF;
  border: 1px solid rgba(12, 30, 61, 0.08);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-6);
  scrollbar-width: none;
  box-shadow: 0 2px 8px rgba(12, 30, 61, 0.02);
}

.tabs-header::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--color-royal-blue);
  background: rgba(12, 30, 61, 0.03);
}

.tab-btn.active {
  background: var(--color-royal-blue);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(12, 30, 61, 0.2);
}


/* --- Hero Section & Celestial Animation Container --- */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: var(--space-16) 0 var(--space-20) 0;
  background: radial-gradient(circle at 50% 30%, rgba(201, 151, 56, 0.08) 0%, rgba(250, 248, 245, 0.95) 75%), var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
}

.celestial-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid var(--gold-border-solid);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-classical);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-maroon);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  box-shadow: 0 4px 16px rgba(201, 151, 56, 0.15);
}

.hero-ganapathi-wrapper {
  margin: 0 auto var(--space-6) auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.ganapathi-image-frame {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #FFD700 0%, #C99738 50%, #7A1C29 100%);
  box-shadow: 0 10px 30px rgba(201, 151, 56, 0.4), 0 0 25px rgba(255, 215, 0, 0.3);
  animation: divineGlowPulse 4s ease-in-out infinite alternate;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.ganapathi-image-frame:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 40px rgba(201, 151, 56, 0.55), 0 0 35px rgba(255, 215, 0, 0.45);
}

.ganapathi-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  border: 2.5px solid #FFFDF9;
}

.ganapathi-caption {
  font-family: var(--font-classical);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-maroon);
  margin-top: 10px;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

@keyframes divineGlowPulse {
  0% {
    box-shadow: 0 8px 24px rgba(201, 151, 56, 0.35), 0 0 18px rgba(255, 215, 0, 0.2);
  }
  100% {
    box-shadow: 0 12px 36px rgba(201, 151, 56, 0.5), 0 0 30px rgba(255, 215, 0, 0.4);
  }
}

.hero-headline {
  font-size: var(--text-4xl);
  color: var(--color-royal-blue);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

@media (min-width: 768px) {
  .hero-headline {
    font-size: var(--text-5xl);
  }
}

.hero-headline span {
  background: linear-gradient(135deg, #7A1C29 0%, #B83244 50%, #C99738 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto var(--space-8) auto;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-trust-item span.icon {
  color: var(--color-gold);
  font-size: 16px;
}

/* --- Form Elements & Horoscope Generator Card --- */
.generator-card {
  background: var(--bg-surface);
  border: 2px solid var(--gold-border-solid);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: 0 16px 40px rgba(12, 30, 61, 0.09), 0 0 0 1px rgba(201, 151, 56, 0.15);
  position: relative;
}

@media (min-width: 768px) {
  .generator-card {
    padding: var(--space-10);
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .form-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
}

.form-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-royal-blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label .helper {
  font-weight: 400;
  text-transform: none;
  color: var(--text-light);
}

.form-control {
  width: 100%;
  height: 48px;
  padding: 10px 16px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 151, 56, 0.2);
}

.autocomplete-wrapper {
  position: relative;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1.5px solid var(--gold-border-solid);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 240px;
  overflow-y: auto;
  z-index: 100;
  margin-top: 4px;
  display: none;
}

.autocomplete-dropdown.show {
  display: block;
}

.autocomplete-item {
  padding: 10px 14px;
  font-size: var(--text-sm);
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.autocomplete-item:hover {
  background: var(--color-ivory-warm);
  color: var(--color-maroon);
}

.autocomplete-item .coords {
  font-size: var(--text-xs);
  color: var(--text-light);
}

/* Quick Profiles Switcher */
.quick-profiles-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding: var(--space-3) var(--space-4);
  background: var(--color-ivory-warm);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.quick-profiles-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-maroon);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: var(--space-2);
}

.quick-profile-btn {
  padding: 4px 12px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-royal-blue);
  transition: all var(--transition-fast);
}

.quick-profile-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-maroon);
  background: #FFFDF9;
}

/* --- Interactive Tabs System --- */
.tabs-header {
  display: flex;
  gap: var(--space-2);
  border-bottom: 2px solid var(--border-light);
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.tabs-header::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 12px 20px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  white-space: nowrap;
  transition: all var(--transition-fast);
  border-bottom: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.tab-btn:hover {
  color: var(--color-royal-blue);
  background: var(--color-ivory-warm);
}

.tab-btn.active {
  color: var(--color-maroon);
  border-bottom-color: var(--color-maroon);
  background: var(--bg-surface);
}

.tab-pane {
  display: none;
  padding-top: var(--space-6);
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

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

/* --- Tables & Data Grids --- */
.data-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: #FFFFFF;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--text-sm);
}

.data-table th {
  background: var(--color-ivory-warm);
  color: var(--color-royal-blue);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1.5px solid var(--border-light);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: rgba(201, 151, 56, 0.04);
}

/* --- Feature Cards & Tradition Showcase --- */
.tradition-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tradition-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-border-solid);
}

.tradition-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  background: var(--gold-subtle-gradient);
  border: 1.5px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: var(--space-6);
  color: var(--color-maroon);
}

.tradition-title {
  font-size: var(--text-2xl);
  color: var(--color-royal-blue);
  margin-bottom: var(--space-3);
}

.tradition-list {
  list-style: none;
  margin: var(--space-4) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.tradition-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.tradition-list li::before {
  content: "✓";
  color: var(--color-benefic);
  font-weight: 700;
}

/* --- Life Domains Grid --- */
.domain-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.domain-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.domain-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto var(--space-4) auto;
  border-radius: 50%;
  background: var(--color-ivory-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.domain-name {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-royal-blue);
  margin-bottom: var(--space-1);
}

.domain-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* --- Course & Service Cards --- */
.course-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-border-solid);
}

.course-header {
  padding: var(--space-6);
  background: var(--color-ivory-warm);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.course-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin: var(--space-4) 0;
  padding: var(--space-3) 0;
  border-top: 1px dashed var(--border-light);
  border-bottom: 1px dashed var(--border-light);
  font-size: var(--text-xs);
}

.course-meta-item {
  display: flex;
  flex-direction: column;
}

.course-meta-label {
  color: var(--text-light);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
}

.course-meta-value {
  color: var(--color-royal-blue);
  font-weight: 700;
}

.course-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-4);
}

.course-price {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-maroon);
}

/* --- Modals --- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 30, 61, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #FFFFFF;
  border: 1.5px solid var(--gold-border-solid);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-8);
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: all var(--transition-normal);
  position: relative;
}

.modal-backdrop.show .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-ivory-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--color-maroon);
  color: #FFFFFF;
}

/* --- Timeline Widget --- */
.timeline-track {
  position: relative;
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.timeline-track::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 10px;
  width: 2px;
  background: var(--gold-gradient);
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--color-maroon);
  box-shadow: var(--shadow-xs);
}

.timeline-dot.active {
  background: var(--gold-gradient);
  color: #FFFFFF;
  border-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(201, 151, 56, 0.4);
}

.timeline-card {
  background: var(--color-ivory-warm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.site-footer {
  background: linear-gradient(180deg, #6E1B00 0%, #4A0E00 100%);
  color: #FFFFFF;
  border-top: 3px solid #FFB300;
  padding: var(--space-16) 0 var(--space-8) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr repeat(3, 1fr);
  }
}

.footer-title {
  font-family: var(--font-classical);
  font-size: var(--text-lg);
  color: var(--color-gold-bright);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

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

.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 151, 56, 0.25);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-8);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* --- KP Horary and Planetary Tables (KPAstro.ai style) --- */
.kp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #FFFFFF;
}

.kp-table thead {
  background: #FAF5EB;
  border-bottom: 2px solid var(--color-gold);
}

.kp-table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  color: var(--color-royal-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.kp-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
  vertical-align: middle;
}

.kp-table tbody tr:hover {
  background: #FFFDF9;
}

.sub-lord-pill {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(201, 151, 56, 0.15);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 11.5px;
  color: var(--color-maroon);
}

/* --- 5-Level Vimshottari Dasha Styles --- */
.dasha-explorer-wrapper {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes pulseDashaNode {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.pulse-highlight {
  animation: pulseDashaNode 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.prana-item {
  transition: all 0.15s ease-in-out;
}

.prana-item:hover {
  background: #F0FDF4 !important;
  transform: translateX(2px);
}

.sookshma-card {
  transition: border-color 0.2s ease;
}

.sookshma-card:hover {
  border-color: #93C5FD;
}

.pd-card {
  transition: border-color 0.2s ease;
}

.pd-card:hover {
  border-color: #FCD34D;
}

.ad-card {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ad-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* --- High-Precision KP Horary Prashna Styles --- */
.horary-tab-bar {
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold) transparent;
}

.horary-tab-bar::-webkit-scrollbar {
  height: 4px;
}

.horary-tab-bar::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 4px;
}

.horary-nav-tab {
  white-space: nowrap;
  font-weight: 600;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12.5px;
  transition: all 0.2s ease;
}

.horary-tab-panel {
  animation: fadeIn 0.25s ease-in-out;
}

@media (max-width: 768px) {
  .horary-tables-grid {
    grid-template-columns: 1fr !important;
  }
}



