/* ==========================================================================
   VIKRAANTWORLD — ASTRONOMICAL VEDIC LUXURY THEME
   Cosmic Dark Space • Celestial Stardust • Sacred Solar Gold • Glassmorphism
   ========================================================================== */

:root {
  /* COSMIC ASTRONOMICAL COLOR TOKENS */
  --space-void: #020611;
  --space-dark: #050b18;
  --space-navy: #0a1329;
  --space-surface: #0f1c3f;
  --space-surface-elevated: #162552;
  --space-border: rgba(245, 158, 11, 0.22);
  --space-border-subtle: rgba(255, 255, 255, 0.08);

  /* SACRED GOLD TOKENS */
  --gold-solar: #f59e0b;
  --gold-sacred: #d97706;
  --gold-radiance: #fbbf24;
  --gold-glow: rgba(245, 158, 11, 0.35);
  --gold-soft-bg: rgba(245, 158, 11, 0.08);
  --gold-gradient-cosmic: linear-gradient(135deg, #fbbf24 0%, #d97706 50%, #b45309 100%);
  --gold-gradient-glow: linear-gradient(135deg, rgba(251, 191, 36, 0.25) 0%, rgba(217, 119, 6, 0.1) 100%);

  /* CELESTIAL ACCENTS */
  --nebula-cyan: #38bdf8;
  --nebula-purple: #a855f7;
  --emerald-shubh: #10b981;
  --crimson-varjit: #ef4444;

  /* STARLIGHT TEXT — ULTRA CRISP & HIGH CONTRAST */
  --starlight-pure: #ffffff;
  --starlight-heading: #ffffff;
  --starlight-body: #f8fafc;
  --starlight-muted: #cbd5e1;
  --starlight-faint: #94a3b8;

  /* GLASSMORPHISM */
  --glass-card-bg: rgba(10, 19, 41, 0.88);
  --glass-card-hover: rgba(15, 28, 63, 0.95);
  --glass-blur: blur(14px);
  --glass-shadow: 0 10px 30px -5px rgba(2, 6, 17, 0.7), 0 0 20px -2px rgba(245, 158, 11, 0.08);
  --glass-shadow-hover: 0 16px 40px -4px rgba(2, 6, 17, 0.85), 0 0 30px rgba(245, 158, 11, 0.2);
}

/* ASTRONOMICAL BACKGROUND WRAPPER */
.astronomy-bg-wrapper,
.astronomy-body {
  position: relative;
  background-color: var(--space-dark);
  color: var(--starlight-body);
  overflow-x: hidden;
  min-height: 100vh;
}

/* CANVAS STARFIELD CONTAINER */
#celestialStarfieldCanvas,
#starfieldCanvas,
.starfield-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

/* SUBTLE NEBULA RADIAL GLOWS IN BACKGROUND */
.nebula-glow-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  background: 
    radial-gradient(circle at 15% 15%, rgba(217, 119, 6, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(56, 189, 248, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 85%, rgba(245, 158, 11, 0.06) 0%, transparent 40%);
}

/* RELATIVE CONTENT CONTAINER ABOVE STARS */
.cosmic-content-layer {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   ASTRONOMICAL HERO SECTION
   ========================================================================== */
.astro-hero {
  position: relative;
  padding: 5rem 1rem 4rem;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--space-border-subtle);
}

.astro-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--gold-radiance);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.astro-hero-badge .sparkle-icon {
  animation: pulse-sparkle 2s infinite ease-in-out;
}

@keyframes pulse-sparkle {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.8; filter: drop-shadow(0 0 4px #fbbf24); }
}

.astro-hero-title {
  font-family: 'Cinzel', 'Outfit', 'Noto Sans Devanagari', sans-serif;
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.18;
  color: var(--starlight-pure);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.astro-hero-title .gold-span {
  background: var(--gold-gradient-cosmic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 10px rgba(245, 158, 11, 0.25));
}

.astro-hero-subtitle {
  font-size: 1.25rem;
  color: var(--starlight-muted);
  max-width: 820px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  font-weight: 400;
}

/* ==========================================================================
   DAILY PANCHANG BANNER (HERO SNAPSHOT)
   ========================================================================== */
.panchang-snapshot-card {
  max-width: 1040px;
  margin: 0 auto 3rem;
  background: var(--glass-card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--space-border);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  box-shadow: var(--glass-shadow);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  transition: all 0.3s ease;
}

.panchang-snapshot-card:hover {
  border-color: var(--gold-solar);
  box-shadow: var(--glass-shadow-hover);
}

.panchang-snapshot-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.15));
  border: 1px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.panchang-snapshot-details {
  text-align: left;
}

.panchang-snapshot-heading-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.panchang-snapshot-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--starlight-pure);
}

.panchang-snapshot-date {
  font-size: 0.85rem;
  color: var(--gold-radiance);
  font-weight: 700;
}

.panchang-snapshot-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.92rem;
  color: var(--starlight-body);
}

.panchang-metric-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.panchang-metric-label {
  color: var(--starlight-muted);
  font-size: 0.8rem;
}

.panchang-metric-val {
  color: var(--starlight-pure);
  font-weight: 700;
}

.panchang-snapshot-btn {
  background: var(--gold-gradient-cosmic);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.35);
  transition: all 0.25s ease;
}

.panchang-snapshot-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(217, 119, 6, 0.5);
  color: #ffffff;
}

@media (max-width: 900px) {
  .panchang-snapshot-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.25rem;
  }
  .panchang-snapshot-details {
    text-align: center;
  }
  .panchang-snapshot-heading-row,
  .panchang-snapshot-metrics {
    justify-content: center;
  }
  .panchang-snapshot-icon-wrap {
    margin: 0 auto;
  }
  .astro-hero-title {
    font-size: 2.3rem;
  }
}

/* ==========================================================================
   3 SACRED PILLARS SECTION (JYOTISH, VASTU, NUMEROLOGY)
   ========================================================================== */
.pillars-master-section {
  padding: 4rem 1rem 5rem;
  max-width: 1360px;
  margin: 0 auto;
}

.section-head-cosmic {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag-gold {
  color: var(--gold-radiance);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 8px;
}

.section-title-cosmic {
  font-family: 'Cinzel', 'Outfit', sans-serif;
  font-size: 2.4rem;
  color: var(--starlight-pure);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-desc-cosmic {
  font-size: 1.1rem;
  color: var(--starlight-muted);
  max-width: 760px;
  margin: 0 auto;
}

/* 3 MAIN PILLARS GRID */
.pillars-three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1080px) {
  .pillars-three-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin: 0 auto;
  }
}

/* PILLAR CARD CONTAINER */
.pillar-universe-card {
  background: var(--glass-card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1.5px solid var(--space-border);
  border-radius: 24px;
  padding: 2.2rem 1.8rem;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-universe-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient-cosmic);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.pillar-universe-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-solar);
  box-shadow: var(--glass-shadow-hover);
}

.pillar-universe-card:hover::before {
  opacity: 1;
}

/* PILLAR HEADER */
.pillar-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--space-border-subtle);
}

.pillar-emblem-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
  flex-shrink: 0;
}

.pillar-universe-card.pillar-jyotish .pillar-emblem-box {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
}

.pillar-universe-card.pillar-vastu .pillar-emblem-box {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
}

.pillar-universe-card.pillar-numerology .pillar-emblem-box {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
}

.pillar-head-title-wrap h3 {
  font-size: 1.45rem;
  color: var(--starlight-pure);
  font-weight: 800;
  margin-bottom: 2px;
}

.pillar-head-title-wrap span {
  font-size: 0.85rem;
  color: var(--gold-radiance);
  font-weight: 700;
}

.pillar-intro-text {
  font-size: 0.95rem;
  color: var(--starlight-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* LIST OF DEDICATED TOOLS (SIMPLE NAMES) */
.pillar-tools-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pillar-tool-item {
  position: relative;
}

.pillar-tool-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none !important;
  color: var(--starlight-body);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-tool-link:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--starlight-pure);
  transform: translateX(4px);
}

.tool-left-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-emoji-icon {
  font-size: 1.15rem;
}

.tool-primary-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--starlight-pure);
}

.tool-tag-pill {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 800;
}

.tag-new {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.tag-adv {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.tag-live {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.tool-arrow-icon {
  color: var(--starlight-faint);
  font-size: 0.9rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.pillar-tool-link:hover .tool-arrow-icon {
  color: var(--gold-solar);
  transform: translateX(3px);
}

/* PILLAR BOTTOM MAIN CTA */
.pillar-bottom-action {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--space-border-subtle);
}

.btn-pillar-portal {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none !important;
  color: #ffffff;
  background: var(--gold-gradient-cosmic);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.3);
  transition: all 0.25s ease;
}

.btn-pillar-portal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.5);
  color: #ffffff;
}

/* ==========================================================================
   PAGE SUB-HERO (FOR JYOTISH, VASTU, NUMEROLOGY HUB PAGES)
   ========================================================================== */
.subpage-cosmic-hero {
  padding: 3.5rem 1rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--space-border-subtle);
  position: relative;
}

.subpage-hero-title {
  font-family: 'Cinzel', 'Outfit', sans-serif;
  font-size: 2.8rem;
  color: var(--starlight-pure);
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.subpage-hero-title span {
  background: var(--gold-gradient-cosmic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subpage-hero-desc {
  font-size: 1.15rem;
  color: var(--starlight-muted);
  max-width: 820px;
  margin: 0 auto;
}

.subpage-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1360px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.subpage-tool-card {
  background: var(--glass-card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1.5px solid var(--space-border);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.subpage-tool-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-solar);
  box-shadow: var(--glass-shadow-hover);
}

.subpage-tool-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.15rem;
}

.subpage-tool-card h4 {
  font-size: 1.3rem;
  color: var(--starlight-pure);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.subpage-tool-card p {
  font-size: 0.92rem;
  color: var(--starlight-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.subpage-tool-card-link-act {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--gold-radiance);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   UNIVERSAL CRISP & SHARP HIGH-CONTRAST TABLES & TEXT (ASTRONOMY THEME)
   Guarantees 100% crisp visibility, sharp borders, and readable contrast
   ========================================================================== */

/* Universal Table Base Formatting */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

/* COSMIC DARK TABLES (Calculators & Celestial Dark Reports ONLY) */
.astronomy-bg-wrapper:not(.theme-light) .report-table,
.astronomy-bg-wrapper:not(.theme-light) .num-data-table,
.astronomy-bg-wrapper:not(.theme-light) .styled-table,
.astronomy-bg-wrapper:not(.theme-light) .vastu-report-table,
.astronomy-bg-wrapper:not(.theme-light) .milan-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  background: rgba(8, 16, 36, 0.94) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.35) !important;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), 0 0 15px rgba(245, 158, 11, 0.08);
  font-size: 0.96rem;
}

.astronomy-bg-wrapper:not(.theme-light) .report-table th,
.astronomy-bg-wrapper:not(.theme-light) .num-data-table th,
.astronomy-bg-wrapper:not(.theme-light) .styled-table th,
.astronomy-bg-wrapper:not(.theme-light) .vastu-report-table th,
.astronomy-bg-wrapper:not(.theme-light) .milan-table th {
  background: linear-gradient(180deg, #102047 0%, #0a1532 100%) !important;
  color: #fbbf24 !important;
  font-weight: 800 !important;
  padding: 14px 16px !important;
  text-align: left;
  border-bottom: 2px solid var(--gold-solar) !important;
  border-right: 1px solid rgba(245, 158, 11, 0.2) !important;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.astronomy-bg-wrapper:not(.theme-light) .report-table th:last-child,
.astronomy-bg-wrapper:not(.theme-light) .num-data-table th:last-child {
  border-right: none !important;
}

.astronomy-bg-wrapper:not(.theme-light) .report-table td,
.astronomy-bg-wrapper:not(.theme-light) .num-data-table td,
.astronomy-bg-wrapper:not(.theme-light) .styled-table td,
.astronomy-bg-wrapper:not(.theme-light) .vastu-report-table td,
.astronomy-bg-wrapper:not(.theme-light) .milan-table td {
  padding: 12px 16px !important;
  color: #f8fafc !important;
  background: rgba(11, 22, 48, 0.85) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  line-height: 1.65 !important;
  font-weight: 500;
}

.astronomy-bg-wrapper:not(.theme-light) .report-table td:last-child,
.astronomy-bg-wrapper:not(.theme-light) .num-data-table td:last-child {
  border-right: none !important;
}

.astronomy-bg-wrapper:not(.theme-light) .report-table tr:last-child td,
.astronomy-bg-wrapper:not(.theme-light) .num-data-table tr:last-child td {
  border-bottom: none !important;
}

.astronomy-bg-wrapper:not(.theme-light) .report-table tr:nth-child(even) td,
.astronomy-bg-wrapper:not(.theme-light) .num-data-table tr:nth-child(even) td,
.astronomy-bg-wrapper:not(.theme-light) .styled-table tr:nth-child(even) td {
  background: rgba(16, 32, 69, 0.88) !important;
}

.astronomy-bg-wrapper:not(.theme-light) .report-table tr:hover td,
.astronomy-bg-wrapper:not(.theme-light) .num-data-table tr:hover td,
.astronomy-bg-wrapper:not(.theme-light) .styled-table tr:hover td,
.astronomy-bg-wrapper:not(.theme-light) .vastu-report-table tr:hover td,
.astronomy-bg-wrapper:not(.theme-light) .milan-table tr:hover td,
.astronomy-bg-wrapper:not(.theme-light) .remedy-table tr:hover td {
  background: #172b54 !important;
  color: #ffffff !important;
}

.astronomy-bg-wrapper:not(.theme-light) .report-table tr:hover td strong,
.astronomy-bg-wrapper:not(.theme-light) .report-table tr:hover td b,
.astronomy-bg-wrapper:not(.theme-light) .num-data-table tr:hover td strong,
.astronomy-bg-wrapper:not(.theme-light) .num-data-table tr:hover td b {
  color: #fbbf24 !important;
}

/* Cosmic Dark Tables: Selected / Active Row Contrast */
.astronomy-bg-wrapper:not(.theme-light) .report-table tr.selected td,
.astronomy-bg-wrapper:not(.theme-light) .report-table tr.active td,
.astronomy-bg-wrapper:not(.theme-light) .num-data-table tr.selected td,
.astronomy-bg-wrapper:not(.theme-light) .num-data-table tr.active td,
.astronomy-bg-wrapper:not(.theme-light) .milan-table tr.selected td,
.astronomy-bg-wrapper:not(.theme-light) .milan-table tr.active td {
  background: #1e3a8a !important;
  color: #fef08a !important;
}

.astronomy-bg-wrapper:not(.theme-light) .report-table tr.selected td strong,
.astronomy-bg-wrapper:not(.theme-light) .report-table tr.selected td b,
.astronomy-bg-wrapper:not(.theme-light) .report-table tr.active td strong,
.astronomy-bg-wrapper:not(.theme-light) .report-table tr.active td b,
.astronomy-bg-wrapper:not(.theme-light) .num-data-table tr.selected td strong,
.astronomy-bg-wrapper:not(.theme-light) .num-data-table tr.selected td b,
.astronomy-bg-wrapper:not(.theme-light) .milan-table tr.selected td strong,
.astronomy-bg-wrapper:not(.theme-light) .milan-table tr.selected td b {
  color: #ffffff !important;
}

/* ==========================================================================
   UNIVERSAL LIGHT CARD & CHAPTER READER TABLE RULES (100% CRYSTAL CLEAR HIGH CONTRAST)
   Guarantees pure white / light tint readability across all articles & cards
   ========================================================================== */
body.theme-light table,
.card table,
.card-luxury table,
.reader-paper-sheet table,
.reader-direct-article table,
.legal-content-panel table,
.section-card table,
.light-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 1.8rem 0 !important;
  background-color: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light table th,
.card table th,
.card-luxury table th,
.reader-paper-sheet table th,
.reader-direct-article table th,
.legal-content-panel table th,
.section-card table th,
.light-table th {
  background: #0f1d3d !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  padding: 14px 16px !important;
  text-align: left !important;
  border: 1px solid #1e293b !important;
  border-bottom: 2px solid #f59e0b !important;
  letter-spacing: 0.3px !important;
  text-shadow: none !important;
  font-size: 0.96rem !important;
}

body.theme-light table td,
.card table td,
.card-luxury table td,
.reader-paper-sheet table td,
.reader-direct-article table td,
.legal-content-panel table td,
.section-card table td,
.light-table td {
  padding: 13px 16px !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  line-height: 1.7 !important;
  font-size: var(--reader-font-size, 16.5px) !important;
  font-weight: 500 !important;
}

/* Alternating Even Rows: Crisp Soft Tint */
body.theme-light table tr:nth-child(even) td,
.card table tr:nth-child(even) td,
.card-luxury table tr:nth-child(even) td,
.reader-paper-sheet table tr:nth-child(even) td,
.reader-direct-article table tr:nth-child(even) td,
.legal-content-panel table tr:nth-child(even) td,
.section-card table tr:nth-child(even) td,
.light-table tr:nth-child(even) td {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

/* Alternating Odd Rows: Pure White */
body.theme-light table tr:nth-child(odd) td,
.card table tr:nth-child(odd) td,
.card-luxury table tr:nth-child(odd) td,
.reader-paper-sheet table tr:nth-child(odd) td,
.reader-direct-article table tr:nth-child(odd) td,
.legal-content-panel table tr:nth-child(odd) td,
.section-card table tr:nth-child(odd) td,
.light-table tr:nth-child(odd) td {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

/* Deep Charcoal / Royal Navy for Bold Titles inside Table Cells */
body.theme-light table td strong,
body.theme-light table td b,
.card table td strong,
.card table td b,
.card-luxury table td strong,
.card-luxury table td b,
.reader-paper-sheet table td strong,
.reader-paper-sheet table td b,
.reader-direct-article table td strong,
.reader-direct-article table td b,
.legal-content-panel table td strong,
.legal-content-panel table td b,
.section-card table td strong,
.section-card table td b,
.light-table td strong,
.light-table td b {
  color: #0b1b3d !important;
  font-weight: 800 !important;
}

/* Smooth Golden Cream Hover (High Legibility & Friendly UX) */
body.theme-light table tr:hover td,
.card table tr:hover td,
.card-luxury table tr:hover td,
.reader-paper-sheet table tr:hover td,
.reader-direct-article table tr:hover td,
.legal-content-panel table tr:hover td,
.section-card table tr:hover td,
.light-table tr:hover td {
  background-color: #fef3c7 !important;
  color: #0f172a !important;
}

body.theme-light table tr:hover td strong,
body.theme-light table tr:hover td b,
.card table tr:hover td strong,
.card table tr:hover td b,
.card-luxury table tr:hover td strong,
.card-luxury table tr:hover td b,
.reader-paper-sheet table tr:hover td strong,
.reader-paper-sheet table tr:hover td b,
.reader-direct-article table tr:hover td strong,
.reader-direct-article table tr:hover td b,
.legal-content-panel table tr:hover td strong,
.legal-content-panel table tr:hover td b,
.section-card table tr:hover td strong,
.section-card table tr:hover td b,
.light-table tr:hover td strong,
.light-table tr:hover td b {
  color: #92400e !important;
}

/* Universal Light Table Selected / Active / Highlight Row Contrast */
body.theme-light table tr.selected td,
body.theme-light table tr.active td,
body.theme-light table tr.highlight td,
.card table tr.selected td,
.card-luxury table tr.selected td,
.reader-paper-sheet table tr.selected td,
.reader-direct-article table tr.selected td,
.legal-content-panel table tr.selected td,
.section-card table tr.selected td,
.light-table tr.selected td {
  background-color: #fef3c7 !important;
  color: #0f172a !important;
  border-top: 1.5px solid #f59e0b !important;
  border-bottom: 1.5px solid #f59e0b !important;
}

body.theme-light table tr.selected td strong,
body.theme-light table tr.selected td b,
body.theme-light table tr.active td strong,
body.theme-light table tr.active td b,
.card table tr.selected td strong,
.card table tr.selected td b,
.reader-direct-article table tr.selected td strong,
.reader-direct-article table tr.selected td b,
.section-card table tr.selected td strong,
.section-card table tr.selected td b,
.light-table tr.selected td strong,
.light-table tr.selected td b {
  color: #92400e !important;
}

/* If any row has a light background applied, ensure dark high-contrast text */
table tr[style*="background: #f"] td,
table tr[style*="background:#f"] td,
table tr[style*="background: rgb(2"] td,
table tr[style*="background: white"] td,
table tr[style*="background:#fff"] td {
  color: #0f172a !important;
}
table tr[style*="background: #f"] td b,
table tr[style*="background: #f"] td strong {
  color: #000000 !important;
}

/* Global Text Selection Contrast Across Tables & Entire Website */
::selection {
  background: #f59e0b !important;
  color: #020617 !important;
}
::-moz-selection {
  background: #f59e0b !important;
  color: #020617 !important;
}
table ::selection,
.report-table ::selection,
.num-data-table ::selection,
.styled-table ::selection,
.milan-table ::selection {
  background: #fbbf24 !important;
  color: #020617 !important;
}

.astronomy-bg-wrapper .report-table strong,
.astronomy-bg-wrapper .num-data-table strong,
.astronomy-bg-wrapper .styled-table strong {
  color: #ffffff !important;
  font-weight: 700;
}

/* Master Report Document Specific Table Contrast */
.master-report-document .report-table th {
  background: #0d1a38 !important;
  color: #fbbf24 !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
}

.master-report-document .report-table td {
  background: #081126 !important;
  color: #f1f5f9 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.master-report-document .report-table tr:nth-child(even) td {
  background: #0c1836 !important;
}

/* High Contrast Visibility for Subtitles, Descriptions and Metadata */
.ch-desc,
.item-desc,
.footer-brand-desc,
.astro-page-subtitle,
.subpage-hero-desc,
.subpage-tool-card p,
.form-feedback-hint,
.num-stat-sub {
  color: #cbd5e1 !important;
}

/* Form Labels: High contrast by container context */
.form-group > label,
.form-label {
  color: #0f1d3d !important;
  font-weight: 700 !important;
}

/* Explicit Light Card Form Labels (Fix for Screenshot 5: Invisibility on White Card) */
.card .form-label,
.card-luxury .form-label,
.card .form-group > label,
.card-luxury .form-group > label,
.card-body .form-label {
  color: #0f1d3d !important;
  font-weight: 700 !important;
}

/* Celestial Dark Sections Only */
.astro-hero .form-label,
.astro-card .form-label,
.form-group-astro .form-label,
.astro-hero .form-group > label,
.astro-card .form-group > label,
body.theme-dark .form-label {
  color: #fbbf24 !important;
}

.radio-pill-label {
  color: #1e293b !important;
  font-weight: 700 !important;
}

.radio-pill-input:checked + .radio-pill-label {
  background: #c2410c !important;
  color: #ffffff !important;
  border-color: #c2410c !important;
}

.form-control-astro {
  color: #ffffff !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
}

.form-control-astro::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}

/* Table Responsive Container */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.25rem 0;
  border-radius: 12px;
}

/* High Contrast Fixes for Page Headings & Titles in Astronomy Wrapper */
.astro-page-title,
.subpage-hero-title,
.tool-page-title {
  color: #ffffff !important;
  font-family: var(--font-heading, 'Cinzel', 'Outfit', serif);
  font-size: 2.3rem !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  margin-bottom: 0.6rem !important;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7);
}

.astronomy-bg-wrapper .astro-panel h1,
.astronomy-bg-wrapper .astro-panel h2,
.astronomy-bg-wrapper .astro-panel h3,
.astronomy-bg-wrapper .mob-card h1,
.astronomy-bg-wrapper .mob-card h2,
.astronomy-bg-wrapper .mob-card h3,
.astronomy-bg-wrapper .gallery-header h2,
.astronomy-bg-wrapper .gallery-header h3,
.astronomy-bg-wrapper .gallery-section h2,
.astronomy-bg-wrapper .gallery-section h3,
.astronomy-bg-wrapper .gallery-card h4,
.astronomy-bg-wrapper .calc-box-card h2,
.astronomy-bg-wrapper .calc-box-card h3 {
  color: #ffffff !important;
}

.astronomy-bg-wrapper .section-gold-title,
.astronomy-bg-wrapper .gold-heading {
  color: #fbbf24 !important;
}

/* Opaque High-Contrast Top Navigation Dropdown Styling */
.astronomy-bg-wrapper .dropdown-menu,
body .dropdown-menu {
  background: #09132d !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.astronomy-bg-wrapper .dropdown-item,
body .dropdown-item {
  color: #f1f5f9 !important;
}

.astronomy-bg-wrapper .dropdown-item .item-title,
body .dropdown-item .item-title {
  color: #ffffff !important;
}

.astronomy-bg-wrapper .dropdown-item .item-desc,
body .dropdown-item .item-desc {
  color: #94a3b8 !important;
}

.astronomy-bg-wrapper .dropdown-item:hover,
body .dropdown-item:hover {
  background: rgba(245, 158, 11, 0.16) !important;
  color: #fbbf24 !important;
}

.astronomy-bg-wrapper .dropdown-item:hover .item-title,
body .dropdown-item:hover .item-title {
  color: #fbbf24 !important;
}

/* DROPDOWN STUDY LINK HIGH CONTRAST (SCREENSHOT 1 FIX) */
.astronomy-bg-wrapper .dropdown-item.study-link-item,
body .dropdown-item.study-link-item {
  background: rgba(245, 158, 11, 0.14) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  border-radius: 10px !important;
  margin: 6px 8px 4px 8px !important;
  padding: 10px 14px !important;
}

.astronomy-bg-wrapper .dropdown-item.study-link-item:hover,
body .dropdown-item.study-link-item:hover {
  background: rgba(245, 158, 11, 0.28) !important;
  border-color: #fbbf24 !important;
}

.astronomy-bg-wrapper .dropdown-item.study-link-item .item-title,
body .dropdown-item.study-link-item .item-title {
  color: #fbbf24 !important;
  font-weight: 800 !important;
}

.astronomy-bg-wrapper .dropdown-item.study-link-item .item-desc,
body .dropdown-item.study-link-item .item-desc {
  color: #fde68a !important;
  opacity: 0.95 !important;
}

/* ENHANCED HOMEPAGE LIVE PANCHANG CARD (SCREENSHOT 2 FIX) */
.enhanced-panchang-card {
  max-width: 1140px;
  margin: 2.2rem auto 0;
  background: rgba(10, 19, 41, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 22px;
  padding: 1.8rem 2rem;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 158, 11, 0.12);
  text-align: left;
}

.panchang-head-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.4rem;
}

.panchang-head-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.panchang-sun-symbol {
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.6));
}

.panchang-master-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 4px 0;
  letter-spacing: 0.3px;
}

.panchang-date-samvat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.panchang-live-date {
  font-size: 0.92rem;
  color: #fbbf24;
  font-weight: 700;
}

.panchang-samvat-pill {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.panchang-live-clock-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: rgba(15, 28, 63, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 8px 14px;
  border-radius: 12px;
}

.clock-time-val {
  font-family: 'Cinzel', monospace;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
}

.clock-tz-val {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
}

.clock-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  margin-right: 4px;
  animation: pulseGreen 1.5s infinite;
}

.panchang-section-mini-heading {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fbbf24;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.panchang-angas-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 1.4rem;
}

@media (max-width: 900px) {
  .panchang-angas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .panchang-angas-grid {
    grid-template-columns: 1fr;
  }
}

.anga-cell {
  background: rgba(15, 28, 63, 0.75);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: all 0.25s ease;
}

.anga-cell:hover {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(15, 28, 63, 0.95);
  transform: translateY(-2px);
}

.anga-icon {
  font-size: 1.35rem;
  line-height: 1.2;
}

.anga-info {
  display: flex;
  flex-direction: column;
}

.anga-label {
  font-size: 0.74rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 2px;
}

.anga-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.anga-val.highlight-gold {
  color: #fbbf24;
}

.anga-sub {
  font-size: 0.68rem;
  color: #cbd5e1;
  opacity: 0.8;
  margin-top: 2px;
}

.panchang-timings-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.4rem;
}

.timing-mini-pill {
  flex: 1;
  min-width: 170px;
  background: rgba(15, 28, 63, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timing-mini-pill.shubh-pill {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(6, 78, 59, 0.2);
}
.timing-mini-pill.shubh-pill .mini-pill-val {
  color: #34d399;
}

.timing-mini-pill.abhijit-pill {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(180, 83, 9, 0.15);
}
.timing-mini-pill.abhijit-pill .mini-pill-val {
  color: #fbbf24;
}

.timing-mini-pill.rahu-pill {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(127, 29, 29, 0.2);
}
.timing-mini-pill.rahu-pill .mini-pill-val {
  color: #f87171;
}

.mini-pill-icon {
  font-size: 1.15rem;
}

.mini-pill-text {
  display: flex;
  flex-direction: column;
}

.mini-pill-lbl {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 600;
}

.mini-pill-val {
  font-size: 0.86rem;
  color: #ffffff;
  font-weight: 700;
}

.panchang-action-footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-panchang-full-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-gradient-cosmic);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 11px 24px;
  border-radius: 12px;
  text-decoration: none !important;
  box-shadow: 0 4px 18px rgba(217, 119, 6, 0.4);
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
}

.btn-panchang-full-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(217, 119, 6, 0.55);
}


