/* ASTRA AI - Cosmic Vedic Design System */
:root {
  --bg-deep: #070a14;
  --bg-surface: #0f1629;
  --bg-card: rgba(18, 26, 48, 0.75);
  --bg-glass: rgba(23, 33, 61, 0.6);
  --border-gold: rgba(245, 158, 11, 0.35);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --gold-primary: #f59e0b;
  --gold-glow: #fbbf24;
  --cyan-accent: #38bdf8;
  --purple-accent: #a855f7;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Cinzel', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(168, 85, 247, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(245, 158, 11, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(56, 189, 248, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Header & Nav */
header.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 76px;
  background: rgba(7, 10, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  z-index: 1000;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #fff;
}
.brand-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}
.brand-info h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #fff, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-info span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-primary);
  display: block;
}

nav.main-nav {
  display: flex;
  gap: 8px;
}
.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s ease;
}
.nav-tab-btn:hover, .nav-tab-btn.active {
  color: #fff;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--border-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-cta {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #070a14;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 24px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
}

/* Layout Container */
main.main-content {
  margin-top: 96px;
  padding: 20px 5% 60px;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.hero-banner {
  text-align: center;
  padding: 40px 20px 50px;
  max-width: 900px;
  margin: 0 auto 40px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-gold);
  border-radius: 30px;
  color: var(--gold-glow);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.hero-banner h2 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
}
.hero-banner h2 span.gradient {
  background: linear-gradient(135deg, #f59e0b, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-banner p {
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* Tab Panels */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cards & Grid */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  margin-bottom: 28px;
}
.gold-edge {
  border-color: var(--border-gold);
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

/* Form Controls */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(7, 10, 20, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

/* SVG Chart Visualizers */
.chart-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}
.kundali-svg {
  width: 100%;
  max-width: 440px;
  height: auto;
  filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.15));
}
.chart-toggle-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}
.chart-toggle-btn {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: 16px;
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 600;
}
.chart-toggle-btn.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--gold-primary);
  color: #fff;
}

/* Tables */
.astro-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.astro-table th {
  text-align: left;
  padding: 12px 14px;
  color: var(--gold-glow);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.astro-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.astro-table tr:hover td {
  background: rgba(245, 158, 11, 0.04);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-gold { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-green { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.badge-red { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-cyan { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }

/* Dasha Timeline */
.dasha-bar {
  display: flex;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  margin: 16px 0;
  border: 1px solid var(--border-subtle);
}
.dasha-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  transition: opacity 0.2s;
}

/* 3D LOGO EMBLEM & COSMIC BRANDING */
.brand-logo-frame {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #fbbf24;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.45);
  transition: transform 0.4s ease;
}
.brand-logo-frame:hover .brand-logo-img {
  transform: rotate(15deg) scale(1.08);
}
.brand-logo-ring {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px dashed rgba(251, 191, 36, 0.5);
  animation: spinSlow 20s linear infinite;
  pointer-events: none;
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* HERO 3D EMBLEM SHOWCASE */
.hero-3d-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
}
.hero-3d-stage {
  position: relative;
  width: 140px;
  height: 140px;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-3d-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fbbf24;
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.6);
  animation: floatEmblem 4s ease-in-out infinite alternate;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}
@keyframes floatEmblem {
  0% { transform: translateY(0px) rotateY(-5deg); }
  100% { transform: translateY(-8px) rotateY(5deg); }
}
.hero-3d-orbit-ring {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1.5px dashed rgba(251, 191, 36, 0.6);
  animation: spinSlow 25s linear infinite;
  pointer-events: none;
}
.hero-3d-orbit-ring-outer {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 1px dotted rgba(56, 189, 248, 0.4);
  animation: spinSlow 35s linear infinite reverse;
  pointer-events: none;
}

/* LANGUAGE SWITCHER BUTTON */
.lang-switch-btn {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-gold);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}
.lang-switch-btn:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #fbbf24;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
  transform: translateY(-1px);
}
.lang-switch-btn .flag {
  font-size: 1.1rem;
}

/* PRESET SAMPLES BAR */
.preset-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.preset-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.preset-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--border-gold);
  color: #fff;
}

/* FUTURE PREDICTOR SYSTEM (सटीक ज्योतिषीय भविष्यवक्ता) */
.future-hero-card {
  background: linear-gradient(135deg, rgba(23, 33, 61, 0.8) 0%, rgba(11, 17, 34, 0.95) 100%);
  border: 1.5px solid var(--border-gold);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  margin-bottom: 24px;
}
.sade-sati-badge-box {
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid var(--border-gold);
}
.sade-sati-badge-box.caution {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.35);
}
.sade-sati-badge-box.favorable {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.35);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.pillar-card {
  background: rgba(18, 26, 48, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 22px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.18);
}
.pillar-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.pillar-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.pillar-meter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}
.meter-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
.meter-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  transition: width 1s ease-out;
}
.pillar-score-text {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gold-glow);
}

/* 5-YEAR TIMELINE */
.timeline-card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}
.timeline-step {
  display: flex;
  gap: 18px;
  padding: 20px;
  background: rgba(18, 26, 48, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  transition: all 0.25s ease;
}
.timeline-step:hover {
  border-color: var(--border-gold);
  background: rgba(23, 33, 61, 0.85);
}
.timeline-year-badge {
  flex-shrink: 0;
  width: 110px;
  text-align: center;
  padding: 12px 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.timeline-year-text {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--gold-glow);
}
.timeline-content {
  flex: 1;
}

/* REMEDIAL PRESCRIPTION LAYOUT */
.remedy-prescription-card {
  background: linear-gradient(135deg, rgba(23, 33, 61, 0.9) 0%, rgba(13, 20, 38, 0.95) 100%);
  border: 1.5px solid var(--border-gold);
  border-radius: 18px;
  padding: 28px;
  margin-top: 24px;
  position: relative;
}
.remedy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.remedy-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px;
}

/* PRINT & EXPORT STYLING */
@media print {
  body { background: #fff !important; color: #000 !important; }
  header.site-header, .header-actions, .nav-tab-btn, footer.site-footer, .btn-cta, .lang-switch-btn, .preset-bar { display: none !important; }
  main.main-content { margin-top: 0 !important; padding: 0 !important; max-width: 100% !important; }
  .tab-content { display: block !important; page-break-after: always; }
  .glass-panel, .future-hero-card, .pillar-card, .timeline-step, .remedy-prescription-card {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
}

/* AI Chat Drawer / Widget */
.ai-consultation-pane {
  display: flex;
  flex-direction: column;
  height: 520px;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chat-bubble {
  max-width: 80%;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #070a14;
  font-weight: 600;
}
.chat-bubble.ai {
  align-self: flex-start;
  background: rgba(18, 26, 48, 0.9);
  border: 1px solid var(--border-gold);
  color: var(--text-main);
}
.chat-input-bar {
  display: flex;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* Footer */
footer.site-footer {
  background: #04060c;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 5%;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
footer.site-footer a {
  color: var(--gold-glow);
  text-decoration: none;
}
footer.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  header.site-header { padding: 0 4%; }
  nav.main-nav { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-banner h2 { font-size: 2.1rem; }
}
