/* ==========================================================================
   SATISH VAID ASTRO -- Screen Layouts & Responsive Styles
   Adheres to all Part 6 rules:
   - No fixed widths on word containers.
   - min-height on all containers.
   - flex/grid children min-width: 0.
   - All text wraps cleanly.
   - Responsive from 320px to 1440px.
   - Clear bold vs quiet visual hierarchy on every screen.
   ========================================================================== */

/* App Wrapper & Layout Shell */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  min-width: 0;
  background-color: var(--color-bg);
}

/* Accessible Screen-Reader Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Header & Brand Banner: Ultra-Compact Aerospace HUD Bar (Height: 42px) */
.app-header {
  background: rgba(7, 11, 20, 0.9) !important;
  color: var(--color-text-inverse);
  border-bottom: 1.5px solid rgba(0, 240, 255, 0.35) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 240, 255, 0.12);
  padding: 0 1.25rem !important;
  width: 100%;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 0.75rem !important;
  position: relative;
  z-index: 101;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex-shrink: 0;
}

.brand-symbol {
  width: 26px !important;
  height: 26px !important;
  background: radial-gradient(circle, #F59E0B 0%, #B45309 100%) !important;
  border: 1.5px solid #FDE68A !important;
  border-radius: 6px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
  white-space: nowrap;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 0.98rem !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  margin: 0;
  line-height: 1;
}

.brand-tagline {
  font-family: monospace;
  font-size: 0.68rem !important;
  color: #94A3B8;
  letter-spacing: 0.02em;
  display: inline-block;
  opacity: 0.85;
}

.header-ephem-badge {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34D399;
  font-family: monospace;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.header-status-area {
  display: flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0;
}

/* Compact Language Switch Capsule */
.lang-switch-capsule {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  padding: 2px;
  border-radius: 6px;
  border: 1px solid rgba(255, 215, 0, 0.4);
  gap: 2px;
}

.lang-pill-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  height: 24px;
  min-height: 24px !important;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-switch-capsule .app-btn-gold,
.lang-pill-btn.active {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
  color: #0F172A !important;
  font-weight: 900 !important;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.lang-switch-capsule .app-btn-secondary {
  background: transparent !important;
  color: #94A3B8 !important;
}

.lang-pill-btn:hover:not(.active):not(.app-btn-gold) {
  color: #FDE047;
  background: rgba(255, 215, 0, 0.15) !important;
}

/* Sleek Icon Buttons in Header */
.header-icon-btn {
  width: 30px;
  height: 30px;
  min-height: 30px !important;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(0, 240, 255, 0.4) !important;
  color: #F8FAFC;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.header-icon-btn:hover {
  background: rgba(0, 240, 255, 0.25) !important;
  border-color: #00F0FF !important;
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
  transform: translateY(-1px);
}

/* Navigation Bar: Ultra-Compact Slim Rail (Height: 34px) */
.app-nav {
  background: rgba(10, 16, 30, 0.88) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25) !important;
  padding: 0 0.75rem !important;
  width: 100%;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  display: flex !important;
  align-items: center !important;
  position: sticky;
  top: 42px;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.nav-track {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.25rem;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-track::-webkit-scrollbar {
  display: none;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  padding: 0.15rem 0.55rem !important;
  height: 26px !important;
  min-height: 26px !important;
  font-family: var(--font-sans);
  font-size: 0.75rem !important;
  font-weight: 600;
  color: #94A3B8 !important;
  background: rgba(15, 23, 42, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 5px !important;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  flex: 0 1 auto;
}

.nav-btn:hover {
  background: rgba(30, 41, 59, 0.85) !important;
  border-color: rgba(0, 240, 255, 0.45) !important;
  color: #00F0FF !important;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
  transform: translateY(-1px);
}

.nav-btn.active {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  border-color: #FFD700 !important;
  color: #FDE047 !important;
  box-shadow: 0 0 12px rgba(253, 224, 71, 0.3), inset 0 0 6px rgba(253, 224, 71, 0.15) !important;
}

.nav-btn span:first-child {
  font-size: 0.82rem;
}
  background: #FFFFFF;
  color: var(--color-accent-gold);
  border: 1px solid var(--color-border);
  border-bottom: 2.5px solid var(--color-accent-gold);
  font-weight: 700;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.04);
}



/* Main Content Container */
.app-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 87.5rem; /* 1400px */
  margin: 0 auto;
  padding: 1.5rem 1rem;
  min-width: 0;
}

/* Screen Shell */
.screen-panel {
  display: none;
  width: 100%;
  min-width: 0;
}

.screen-panel.active {
  display: block;
}

.screen-header-block {
  margin-bottom: 1.5rem;
  border-bottom: 1.5px solid var(--color-border-subtle);
  padding-bottom: 1rem;
  min-width: 0;
}

.screen-title {
  font-family: var(--font-serif);
  font-size: var(--font-size-3xl);
  color: var(--color-primary);
  margin-bottom: 0.375rem;
}

.screen-desc {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  max-width: 60rem;
}

/* Grid Layouts for Screens */
.screen-grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 1.5rem;
  width: 100%;
  min-width: 0;
  align-items: start;
}

.screen-grid-3col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
  width: 100%;
  min-width: 0;
}

.form-grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1rem;
  width: 100%;
  min-width: 0;
}

/* ==========================================================================
   SCREEN 1: KUNDALI & HOROSCOPE
   Bold Focal Point: The Sacred D1 Kundali Chart SVG & Planetary Position Matrix
   Side-by-side workspace: Input form & indicators on Left, Kundali Chart on Right
   ========================================================================== */
.kundali-main-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 1.25rem;
  align-items: start;
  width: 100%;
}

@media (max-width: 1080px) {
  .kundali-main-grid {
    grid-template-columns: 360px 1fr;
  }
}

@media (max-width: 880px) {
  .kundali-main-grid {
    grid-template-columns: 1fr;
  }
}

.kundali-left-pane {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kundali-right-pane {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kundali-right-pane .app-card {
  height: auto;
}

.chart-highlight-pulse {
  animation: chartPulse 0.8s ease-out;
}

@keyframes chartPulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7); }
  70% { box-shadow: 0 0 0 14px rgba(217, 119, 6, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

.quick-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.summary-pill {
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.625rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.summary-pill .pill-label {
  font-size: 0.725rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.summary-pill .pill-val {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-view-box {
  background-color: var(--color-surface);
  border: 2px solid var(--color-accent-gold);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  min-width: 0;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

[data-theme="dark"] .chart-view-box {
  background-color: #0c1322;
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.15);
}

.chart-svg-container {
  width: 100%;
  max-width: 420px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-svg {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
}

/* Interactive Vedic House Polygons */
.chart-house-poly {
  cursor: pointer;
  transition: fill 0.2s ease, stroke 0.2s ease, filter 0.2s ease;
}

.chart-house-poly:hover,
.chart-house-poly.inspected-active {
  fill: rgba(245, 158, 11, 0.42) !important;
  stroke: #D97706 !important;
  stroke-width: 2.5px !important;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
}

.chart-planet-pill,
.chart-rashi-tag {
  pointer-events: none; /* Mouse events pass smoothly to the house polygon beneath */
}

/* Dark theme Kundali SVG overrides */
[data-theme="dark"] .chart-base-rect {
  fill: #0B1120;
}
[data-theme="dark"] .chart-border-outer {
  stroke: #F59E0B;
}
[data-theme="dark"] .chart-line {
  stroke: #475569;
}
[data-theme="dark"] .house-neutral {
  fill: rgba(15, 23, 42, 0.75);
}
[data-theme="dark"] .house-lagna {
  fill: rgba(245, 158, 11, 0.28);
}
[data-theme="dark"] .house-kendra {
  fill: rgba(245, 158, 11, 0.16);
}
[data-theme="dark"] .house-trikona {
  fill: rgba(251, 146, 60, 0.20);
}
[data-theme="dark"] .chart-rashi-tag circle {
  fill: #1E293B;
  stroke: #64748B;
}
[data-theme="dark"] .chart-rashi-tag text {
  fill: #F8FAFC;
}

/* House Inspector Display Box */
.chart-inspector-box {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.625rem 0.875rem;
  background: var(--color-surface-subtle);
  border: 1.5px solid var(--color-accent-gold);
  border-radius: var(--radius-md);
  min-height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  transition: all var(--transition-fast);
}

[data-theme="dark"] .chart-inspector-box {
  background: rgba(30, 41, 59, 0.75);
  border-color: #F59E0B;
}

.inspector-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}

.inspector-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  animation: fadeInInspector 0.2s ease-out;
}

@keyframes fadeInInspector {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

.inspector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.inspector-badge {
  font-size: 0.8125rem;
  font-weight: 800;
  color: #92400E;
  background: #FEF3C7;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid #F59E0B;
}

[data-theme="dark"] .inspector-badge {
  background: #451A03;
  color: #FCD34D;
  border-color: #D97706;
}

.inspector-rashi {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-accent-gold);
}

.inspector-desc {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  line-height: 1.35;
}

.inspector-planets {
  font-size: 0.75rem;
  color: var(--color-text-main);
  background: rgba(245, 158, 11, 0.08);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

/* Sarvashtakavarga (SAV) Heatmap Cards */
.sav-card-meter {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.625rem 0.875rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sav-card-meter:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent-gold);
}

.sav-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sav-house-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.sav-points-badge {
  font-size: 0.8125rem;
  font-weight: 800;
}

.sav-meter-track {
  width: 100%;
  height: 7px;
  background: var(--color-surface-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
}

.sav-meter-bar {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.6s ease;
}

.sav-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.725rem;
  color: var(--color-text-muted);
}

.chart-dasha-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}

.dasha-progress-bar {
  width: 100%;
  height: 0.875rem;
  background-color: var(--color-surface-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.dasha-progress-fill {
  height: 100%;
  background-color: var(--color-accent-gold);
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}

/* ==========================================================================
   SCREEN 2: KUNDLI MILAN (MATCHMAKING)
   Bold Focal Point: The Ashtakoot 36-Gunas Scoreboard & Manglik Verdict Badge
   Why: Prospective couples and astrologers prioritize the 36-guna tally first.
   ========================================================================== */
.milan-score-banner {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 2px solid var(--color-accent-gold);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  width: 100%;
  min-width: 0;
}

.milan-big-score {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-accent-gold);
  line-height: 1;
}

.guna-item-card {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  background: var(--color-surface);
  min-width: 0;
}

/* ==========================================================================
   SCREEN 3: PRASHNA KUNDALI (HORARY ASTROLOGY)
   Bold Focal Point: Instant Query Moment Verdict & Horary Probability Gauge
   Why: Horary clients need immediate clarity on their specific question.
   ========================================================================== */
.prashna-oracle-banner {
  background-color: var(--color-surface-subtle);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  min-width: 0;
}

.prashna-probability-gauge {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
}

/* ==========================================================================
   SCREEN 4: VOICE LEARNING HUB
   Bold Focal Point: Interactive Audio Console & Wave Frequency Visualizer
   Why: Students need audible, step-by-step guidance that feels like a teacher.
   ========================================================================== */
.voice-master-console {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-accent-gold);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  min-width: 0;
}

.voice-console-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.voice-text-viewer {
  background-color: var(--color-surface);
  color: var(--color-text-main);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  min-height: 18rem;
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  width: 100%;
  min-width: 0;
}

.voice-highlight-active {
  background-color: var(--color-accent-gold-light);
  color: var(--color-text-gold);
  font-weight: 700;
  padding: 0.125rem 0.25rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   SCREEN 5: E-BOOK LIBRARY & WATERMARKED PDF GENERATOR
   Bold Focal Point: Official Download & Reading Portal with SATISH VAID ASTRO Watermark
   Why: Preserves intellectual property while delivering instant offline manuals.
   ========================================================================== */
.ebook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
  width: 100%;
  min-width: 0;
}

.ebook-cover-banner {
  background: var(--color-primary-dark);
  color: #FFFFFF;
  padding: 1.5rem;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: 3px solid var(--color-accent-gold);
  min-height: 7rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ebook-badge-author {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-accent-gold);
  text-transform: uppercase;
  font-weight: 700;
}

/* Full Reader Modal for E-Books */
.ebook-reader-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.85);
  z-index: 1000;
  padding: 1rem;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
}

.ebook-reader-modal.active {
  display: flex;
}

.ebook-reader-dialog {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 54rem; /* ~864px */
  width: 100%;
  min-height: 80vh;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* Watermark Overlay for E-Book Reader & Print */
.watermark-container {
  position: relative;
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 2.5rem;
  background-color: #FFFFFF;
}

.watermark-backdrop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-35deg);
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 900;
  color: rgba(15, 23, 42, 0.05);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  text-align: center;
  letter-spacing: 0.08em;
}

.watermark-content-body {
  position: relative;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text-main);
}

.watermark-content-body h2,
.watermark-content-body h3 {
  color: var(--color-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.watermark-content-body p {
  margin-bottom: 1rem;
}

/* ==========================================================================
   SCREEN 6: PREMIUM SERVICES & SIMULATED CHECKOUT GATEWAY
   Bold Focal Point: Official Checkout Modal with UPI QR & Watermarked GST Invoice
   Why: Customers need absolute clarity and confidence during payment.
   ========================================================================== */
.pricing-card {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast);
}

.pricing-card:hover {
  border-color: var(--color-accent-gold);
}

.pricing-price-box {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary);
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin: 0.75rem 0;
}

.qr-display-frame {
  width: 170px;
  height: 170px;
  background-color: #FFFFFF;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
}

/* Official Invoice Layout */
.invoice-sheet {
  background-color: #FFFFFF;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  width: 100%;
  min-width: 0;
}

/* Print Stylesheet for E-Books & Invoices */
@media print {
  body {
    background-color: #FFFFFF;
    color: #000000;
  }
  .app-header,
  .app-nav,
  .app-footer,
  .app-btn,
  .nav-btn,
  .no-print {
    display: none !important;
  }
  .ebook-reader-modal {
    position: static;
    background: transparent;
    padding: 0;
  }
  .ebook-reader-dialog {
    max-width: 100%;
    max-height: none;
    box-shadow: none;
    border: none;
  }
  .watermark-container {
    padding: 0;
    overflow: visible;
  }
  .watermark-backdrop {
    color: rgba(0, 0, 0, 0.08) !important;
  }
}

/* Responsive Breakpoints & Sizing Guarantees */
@media (max-width: 768px) {
  .app-header {
    padding: 0.875rem 1rem;
  }
  .brand-title {
    font-size: 1.125rem;
  }
  .app-main {
    padding: 1rem 0.75rem;
  }
  .milan-big-score {
    font-size: 2.25rem;
  }
  .watermark-container {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .brand-symbol {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.25rem;
  }
  .app-card-header,
  .app-card-body,
  .app-card-footer {
    padding: 1rem;
  }
}


/* ==========================================================================
   ASTROYOGI-INSPIRED HOME DASHBOARD & COURSES STYLES
   ========================================================================== */

/* 1. Home Dashboard Hero & Panchang */
.home-welcome-hero {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.95) 100%);
  border: 1.5px solid rgba(217, 119, 6, 0.4);
  border-radius: var(--radius-lg, 16px);
  padding: 1.75rem;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3);
  position: relative;
  overflow: hidden;
}

.home-welcome-hero::after {
  content: 'ॐ';
  position: absolute;
  right: -1rem;
  bottom: -2rem;
  font-size: 10rem;
  font-family: var(--font-serif);
  color: rgba(217, 119, 6, 0.06);
  pointer-events: none;
}

.home-panchang-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: var(--radius-md, 12px);
  padding: 0.75rem 1.25rem;
  margin-top: 1.25rem;
}

.panchang-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F8FAFC;
}

.panchang-pill.gold {
  border-color: rgba(217, 119, 6, 0.6);
  color: #FDE68A;
  font-weight: 700;
}

/* 2. Astrologer Verified Consultant Profile Card */
.verified-astrologer-card {
  background: var(--color-surface, #FFFFFF);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg, 16px);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.astrologer-profile-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.astrologer-avatar-box {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  color: #FFFFFF;
  border: 3px solid #FEF3C7;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
  flex-shrink: 0;
  position: relative;
}

.verified-badge-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #047857;
  color: #FFFFFF;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border: 2px solid #FFFFFF;
}

.astrologer-info h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.35rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.astrologer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.astrologer-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text-secondary);
}

/* 3. Astroyogi-Style Quick Action Grid */
.home-quick-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.quick-action-card {
  background: var(--color-surface, #FFFFFF);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg, 16px);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.quick-action-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent-gold);
  box-shadow: 0 12px 28px -6px rgba(217, 119, 6, 0.22);
}

.quick-action-card.featured-card {
  border-color: rgba(217, 119, 6, 0.5);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF9 100%);
}

.quick-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.quick-card-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease;
}

.quick-action-card:hover .quick-card-icon-wrap {
  transform: scale(1.08);
}

.quick-card-icon-wrap.gold {
  background: #FEF3C7;
  border-color: #FDE68A;
}

.quick-card-icon-wrap.blue {
  background: #EFF6FF;
  border-color: #BFDBFE;
}

.quick-card-icon-wrap.green {
  background: #ECFDF5;
  border-color: #A7F3D0;
}

.quick-card-icon-wrap.purple {
  background: #FAF5FF;
  border-color: #E9D5FF;
}

.quick-card-body h4 {
  margin: 0 0 0.4rem 0;
  font-size: 1.15rem;
  color: var(--color-primary);
  font-weight: 700;
}

.quick-card-body p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.quick-card-footer {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent-gold);
}

/* 4. Courses Academy Styles */
.courses-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.courses-filter-btn {
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.courses-filter-btn:hover {
  border-color: var(--color-accent-gold);
  color: var(--color-accent-gold);
}

.courses-filter-btn.active {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.course-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent-gold);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.course-card-top {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #1E293B, #0F172A);
  color: #FFFFFF;
  position: relative;
}

.course-category-badge {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(217, 119, 6, 0.9);
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.course-card-top h3 {
  margin: 0;
  font-size: 1.2rem;
  font-family: var(--font-serif);
  color: #FEF3C7;
}

.course-card-body {
  padding: 1.25rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course-syllabus-preview {
  margin: 0.75rem 0;
  padding: 0.75rem;
  background: var(--color-surface-subtle);
  border-radius: 8px;
  font-size: 0.8125rem;
  border-left: 3px solid var(--color-accent-gold);
}

.course-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 0.875rem;
  margin-top: 0.875rem;
}

.course-actions-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}


/* ==========================================================================
   MINIMALIST SLEEK UI & CLEAN CARDS (ASTROYOGI SIMPLICITY)
   ========================================================================== */

/* Slim Panchang & Welcome Strip */
.home-clean-strip {
  background: #FFFDF5;
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 10px;
  padding: 0.6rem 1.15rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* 8 Clean Modern Action Cards */
.clean-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.clean-service-card {
  background: var(--color-surface, #FFFFFF);
  border: 1.2px solid var(--color-border);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  position: relative;
  min-height: 145px;
}

.clean-service-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent-gold);
  box-shadow: 0 8px 20px -4px rgba(217, 119, 6, 0.18);
}

.clean-service-card.featured {
  border-color: rgba(217, 119, 6, 0.4);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF7 100%);
}

.clean-card-icon-wrap {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.clean-card-icon-wrap.gold {
  background: #FEF3C7;
  color: #92400E;
}

.clean-card-icon-wrap.blue {
  background: #EFF6FF;
  color: #1E40AF;
}

.clean-card-icon-wrap.green {
  background: #ECFDF5;
  color: #065F46;
}

.clean-card-icon-wrap.purple {
  background: #FAF5FF;
  color: #6B21A8;
}

.clean-card-content h3 {
  margin: 0 0 0.3rem 0;
  font-size: 1.05rem;
  font-family: var(--font-serif);
  color: var(--color-primary);
  font-weight: 700;
}

.clean-card-content p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.clean-card-arrow {
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-accent-gold);
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.clean-service-card:hover .clean-card-arrow {
  transform: translateX(4px);
}


/* ==========================================================================
   GOOGLE-STYLE LIVE CITY AUTOCOMPLETE DROPDOWN
   ========================================================================== */
.city-autocomplete-wrapper {
  position: relative;
  width: 100%;
}

.city-pin-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
  opacity: 0.7;
}

.city-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  background: var(--color-surface, #FFFFFF);
  border: 1.5px solid var(--color-accent-gold);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
  z-index: 1000;
}

.city-suggestion-item {
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  border-bottom: 1px solid var(--color-border-subtle, #F1F5F9);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: background 0.15s ease;
  text-align: left;
}

.city-suggestion-item:last-child {
  border-bottom: none;
}

.city-suggestion-item:hover,
.city-suggestion-item.active {
  background: #FEF3C7;
}

.city-suggestion-item strong {
  color: var(--color-primary, #0F172A);
  font-size: 0.875rem;
}

.city-suggestion-item .suggestion-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted, #64748B);
}

.city-coords-badge {
  font-size: 0.75rem;
  color: #047857;
  font-weight: 600;
  margin-top: 0.35rem;
  min-height: 1.1rem;
}


/* ==========================================================================
   ASTROYOGI-STYLE HOME ENHANCEMENTS: MUHURAT, 12 RASHIS, CONSULTANT BANNER
   ========================================================================== */
.muhurat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}

.muhurat-card {
  background: var(--color-surface, #FFFFFF);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.muhurat-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent-gold);
}

.muhurat-card.auspicious {
  border-left: 4px solid #059669;
}

.muhurat-card.inauspicious {
  border-left: 4px solid #DC2626;
}

.muhurat-card.solar {
  border-left: 4px solid #D97706;
}

.muhurat-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.muhurat-info h4 {
  margin: 0.2rem 0;
  font-size: 0.9rem;
  color: var(--color-primary);
  font-family: var(--font-serif);
}

.muhurat-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  display: inline-block;
}

.muhurat-tag.success { background: #DCFCE7; color: #166534; }
.muhurat-tag.danger { background: #FEE2E2; color: #991B1B; }
.muhurat-tag.neutral { background: #FEF3C7; color: #92400E; }

.muhurat-time {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.2rem;
}

.muhurat-info p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* 12 RASHIS GRID */
.rashi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.75rem;
}

.rashi-card {
  background: var(--color-surface, #FFFFFF);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.85rem 0.9rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rashi-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent-gold);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.12);
}

.rashi-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.rashi-symbol {
  font-size: 1.35rem;
}

.rashi-name {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-primary);
}

.rashi-score {
  font-size: 0.75rem;
  font-weight: 700;
  color: #059669;
}

.rashi-preview {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
  margin: 0 0 0.5rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rashi-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  border-top: 1px dashed var(--color-border-subtle, #F1F5F9);
  padding-top: 0.35rem;
}

/* CONSULTANT BANNER */
.home-consultant-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border: 1.5px solid var(--color-accent-gold);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.12);
  margin-top: 2rem;
}

.consultant-left-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 650px;
}

.consultant-avatar-box {
  width: 52px;
  height: 52px;
  background: radial-gradient(circle, #FDE68A 0%, #D97706 100%);
  color: #78350F;
  font-size: 1.75rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(253, 230, 138, 0.3);
}

.consultant-right-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

@media (max-width: 768px) {
  .consultant-right-actions {
    align-items: flex-start;
  }
}

/* ==========================================================================
   ULTRA-PREMIUM SCIENTIFIC OBSERVATORY & TELEMETRY UI (MODERN & NON-BUSY)
   ========================================================================== */

/* Scientific Hero Section */
.scientific-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 27, 75, 0.85) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  padding: 2.25rem 2rem;
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25), 0 0 20px rgba(212, 175, 55, 0.08);
}

.scientific-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0) 70%);
  pointer-events: none;
}

.hero-telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #fcd34d;
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-main-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 0.85rem 0;
  background: linear-gradient(135deg, #ffffff 0%, #fef3c7 60%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub-text {
  font-size: 0.95rem;
  color: #cbd5e1;
  max-width: 820px;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}

.hero-actions-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hero-btn-primary {
  background: linear-gradient(135deg, #d4af37 0%, #b45309 100%);
  color: #0f172a;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
  transition: all 0.2s ease;
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #f59e0b;
  transform: translateY(-2px);
}

/* Live Planetary Telemetry Board */
.telemetry-board {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
}

.telemetry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 0.65rem;
}

.telemetry-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: #fcd34d;
  margin: 0;
}

.telemetry-live-tag {
  font-size: 0.7rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #34d399;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-weight: 700;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.telemetry-pill {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: all 0.2s ease;
}

.telemetry-pill:hover {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(30, 41, 59, 0.9);
  transform: translateY(-2px);
}

.telemetry-pill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f8fafc;
}

.telemetry-pill-coord {
  font-size: 0.725rem;
  color: #cbd5e1;
  font-family: monospace;
}

.telemetry-pill-meta {
  font-size: 0.675rem;
  color: #94a3b8;
}

/* 3 Core Scientific Modules (Clean, Spacious, Uncluttered) */
.scientific-trio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.scientific-module-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.scientific-module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 18px rgba(212, 175, 55, 0.15);
}

.module-card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.module-card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 0.5rem 0;
}

.module-card-desc {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0 0 1.25rem 0;
}

.module-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #f59e0b;
}

/* Chatbot Feature Banner on Home */
.chatbot-spotlight-card {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.chatbot-spotlight-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 680px;
}

.chatbot-spotlight-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, #f59e0b 0%, #b45309 100%);
  border: 2px solid #fde68a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #0f172a;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.5);
}

.chatbot-spotlight-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.35rem 0;
}

.chatbot-spotlight-desc {
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

.chatbot-spotlight-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.chatbot-spotlight-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.45);
}

/* Nav Item AI Oracle Highlight */
.nav-btn-ai-oracle {
  position: relative;
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(212, 175, 55, 0.6) !important;
  color: #fcd34d !important;
}

.nav-btn-ai-oracle::after {
  content: "✨ AI";
  position: absolute;
  top: -6px;
  right: -4px;
  background: #f59e0b;
  color: #0f172a;
  font-size: 9px;
  font-weight: 900;
  padding: 0 4px;
  border-radius: 4px;
}

/* ==========================================================================
   CINEMATIC SCI-FI SPACE OBSERVATORY & SATELLITE COCKPIT THEME
   ========================================================================== */

/* Background Cinematic Space Video */
/* Background Cinematic Space Video (Bright, Rich & Ultra-Vivid) */
.space-cockpit-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  filter: brightness(1.04) contrast(1.1) saturate(1.18);
  transition: opacity 0.5s ease;
}

/* Background Fixed Deep Space Canvas (Softened so video is primary) */
.space-observatory-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0.22;
  transition: opacity 0.4s ease;
}

/* Ensure app-shell allows space canvas & video to shine through */
.app-shell {
  position: relative;
  z-index: 2;
  background: transparent !important;
  background-color: transparent !important;
}

/* Soft Aerospace Canopy Vignette (Crystal-Clear Center) */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(ellipse at center, rgba(5, 8, 17, 0) 65%, rgba(2, 4, 10, 0.3) 92%, rgba(2, 4, 10, 0.6) 100%);
  box-shadow: inset 0 0 60px rgba(0, 240, 255, 0.03);
}

/* Cockpit Viewport Frame & Telemetry Header Accent Glow */
.app-header {
  border-bottom: 1px solid rgba(0, 240, 255, 0.35) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 240, 255, 0.12) !important;
}

/* Sci-Fi Navigation Bar Accent */
.app-nav {
  border-bottom: 1px solid rgba(212, 175, 55, 0.25) !important;
}

/* Sci-Fi Cockpit Bridge on Home Screen */
.cockpit-bridge-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Panoramic Cockpit Viewport Card (Ultra-Transparent 88% Glass Canopy) */
.cockpit-viewport-card {
  position: relative;
  background: rgba(4, 7, 16, 0.12) !important;
  border: 1px solid rgba(0, 240, 255, 0.45) !important;
  border-radius: 18px;
  padding: 2rem 1.75rem;
  backdrop-filter: blur(2px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), inset 0 0 40px rgba(0, 240, 255, 0.08) !important;
  overflow: hidden;
}

/* Cockpit Corner Telemetry Brackets */
.cockpit-corner-bracket {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid #00f0ff;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.6));
}
.cockpit-bracket-tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.cockpit-bracket-tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.cockpit-bracket-bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.cockpit-bracket-br { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.cockpit-telemetry-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-family: monospace;
  font-size: 0.75rem;
  color: #38bdf8;
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
  padding-bottom: 0.75rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.cockpit-hud-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.5);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  color: #00f0ff;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

/* Camera Feed Switcher Buttons (Sleek Multi-Channel Bar) */
.cockpit-cam-switchers {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.cam-feed-tag {
  font-size: 0.7rem;
  color: #38bdf8;
  font-family: monospace;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-right: 0.15rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.cam-feed-btn {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #cbd5e1;
  font-family: monospace;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.cam-feed-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: #00f0ff;
  color: #00f0ff;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.cam-feed-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.35) 0%, rgba(14, 165, 233, 0.25) 100%);
  border-color: #00f0ff;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

/* Cockpit HUD Reticle & Crosshairs */
.cockpit-hud-reticle-area {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.25rem 0 1.5rem 0;
  position: relative;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.cockpit-reticle {
  width: 120px;
  height: 120px;
  border: 1px dashed rgba(0, 240, 255, 0.45);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cockpitReticleRotate 24s linear infinite;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.2);
}

@keyframes cockpitReticleRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cockpit-reticle::before {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255, 215, 0, 0.5);
  border-radius: 50%;
}

.cockpit-reticle::after {
  content: "+";
  color: #00f0ff;
  font-size: 1.25rem;
  font-weight: 300;
  position: absolute;
}

.cockpit-reticle-info {
  font-family: monospace;
  font-size: 0.75rem;
  color: #38bdf8;
  line-height: 1.6;
  background: rgba(8, 14, 26, 0.28) !important;
  backdrop-filter: blur(2px) !important;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 240, 255, 0.3) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cockpit-hero-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 50%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 25px rgba(56, 189, 248, 0.6), 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* Single-Line Compact Futuristic Transit Ticker (High Transparency) */
.cockpit-transit-ticker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(10, 16, 30, 0.28) !important;
  backdrop-filter: blur(2px) !important;
  border: 1px solid rgba(0, 240, 255, 0.35) !important;
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  margin-top: 1.5rem;
  overflow-x: auto;
  white-space: nowrap;
  font-family: monospace;
  font-size: 0.78rem;
  scrollbar-width: thin;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.cockpit-transit-ticker-label {
  color: #ffd700;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.cockpit-transit-items {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cockpit-transit-pill {
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(15, 23, 42, 0.4) !important;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  font-size: 0.75rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.cockpit-transit-pill b {
  color: #38bdf8;
}

.cockpit-hero-desc {
  font-size: 0.95rem;
  color: #e2e8f0;
  max-width: 840px;
  line-height: 1.6;
  margin: 0 0 1.75rem 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* Sci-Fi Holographic Warp Dock (Ultra-Transparent Glass Buttons) */
.scifi-warp-dock {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.warp-dock-btn {
  background: rgba(10, 16, 30, 0.3) !important;
  backdrop-filter: blur(3px) !important;
  border: 1px solid rgba(0, 240, 255, 0.35) !important;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.warp-dock-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: #00f0ff;
  opacity: 0.6;
  transition: opacity 0.2s ease, width 0.2s ease;
}

.warp-dock-btn:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: #00f0ff !important;
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.35), 0 0 15px rgba(0, 240, 255, 0.3) !important;
  background: rgba(15, 23, 42, 0.5) !important;
}

.warp-dock-btn:hover::before {
  opacity: 1;
  width: 5px;
  box-shadow: 0 0 10px #00f0ff;
}

.warp-dock-btn.featured {
  border-color: rgba(255, 215, 0, 0.6) !important;
  background: rgba(30, 27, 75, 0.35) !important;
}

.warp-dock-btn.featured::before {
  background: #ffd700;
}

.warp-dock-btn.featured:hover {
  border-color: #ffd700 !important;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.35) !important;
}

.warp-icon-sphere {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.warp-dock-btn.featured .warp-icon-sphere {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.25);
}

.warp-text-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
  display: block;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
}

.warp-text-sub {
  font-size: 0.72rem;
  color: #cbd5e1;
  display: block;
  margin-top: 2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* Glassmorphism for all App Cards across tabs */
.app-card {
  background: rgba(10, 16, 30, 0.85) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(0, 240, 255, 0.2) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5) !important;
  color: #f1f5f9 !important;
}

.app-card-header {
  border-bottom: 1px solid rgba(0, 240, 255, 0.15) !important;
}

/* Futuristic Form Inputs */
.app-input, .app-select, .app-textarea {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(0, 240, 255, 0.3) !important;
  color: #ffffff !important;
}

.app-input:focus, .app-select:focus, .app-textarea:focus {
  border-color: #00f0ff !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3) !important;
}

/* Futuristic Scanline Effect */
.screen-panel {
  position: relative;
}
