/* ==========================================================================
   SATHYAPRIYA JYOTIRVIGNANA - COSMIC VEDIC MARGADARSHANAM STYLESHEET
   Melooha-Inspired Luxury Dark Cosmic Palette, Sacred Geometry, Glassmorphism
   ========================================================================== */

:root {
  --bg-deep: #08040f;
  --bg-surface: #10081d;
  --bg-card: rgba(22, 12, 38, 0.75);
  --bg-card-hover: rgba(35, 18, 58, 0.9);
  --border-subtle: rgba(245, 158, 11, 0.18);
  --border-glow: rgba(245, 158, 11, 0.45);
  --border-orchid: rgba(224, 86, 158, 0.35);
  
  --gold-primary: #f59e0b;
  --gold-light: #fbbf24;
  --gold-gradient: linear-gradient(135deg, #fde68a 0%, #f59e0b 50%, #b45309 100%);
  --cosmic-orchid: #e0569e;
  --orchid-gradient: linear-gradient(135deg, #f472b6 0%, #e0569e 50%, #9333ea 100%);
  --mystic-violet: #8b5cf6;
  --divine-emerald: #10b981;
  
  --text-pure: #ffffff;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-subtle: #6b7280;
  
  --font-serif: 'Cinzel', 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-kannada: 'Noto Sans Kannada', var(--font-sans);
  
  --sidebar-width: 270px;
  --header-height: 74px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Cosmic Nebula & Stars */
.cosmic-canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 50% 12%, rgba(224, 86, 158, 0.14) 0%, transparent 55%),
    radial-gradient(circle at 85% 65%, rgba(139, 92, 246, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 15% 75%, rgba(245, 158, 11, 0.1) 0%, transparent 40%),
    linear-gradient(180deg, #090412 0%, #06020c 100%);
}

.cosmic-canvas-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 140px 180px, #ffd166, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 280px 90px, #f472b6, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 450px 350px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 620px 220px, #fcd34d, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 780px 480px, #a78bfa, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 920px 140px, #ffffff, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 1000px 600px;
  opacity: 0.45;
}

/* App Shell Layout */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* -------------------------------------------------------------
   LEFT SIDEBAR (Melooha Inspired with 3X BIGGER LOGO)
   ------------------------------------------------------------- */
.sidebar {
  width: var(--sidebar-width);
  background: rgba(14, 8, 26, 0.88);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: var(--transition-smooth);
}

.sidebar-header {
  padding: 26px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* 3X BIGGER LOGO EMBLEM (140px) */
.brand-emblem-box {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 4px;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.5), 0 0 50px rgba(224, 86, 158, 0.25);
  flex-shrink: 0;
  position: relative;
  transition: var(--transition-smooth);
}

.brand-emblem-box::after {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(251, 191, 36, 0.6);
  animation: slowHaloSpin 40s linear infinite;
  pointer-events: none;
}

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

.brand-emblem-box:hover {
  transform: scale(1.04);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.7), 0 0 70px rgba(224, 86, 158, 0.4);
}

.brand-emblem {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #1a0f2e;
}

.brand-text-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-pure);
  letter-spacing: 0.5px;
  line-height: 1.25;
}

.brand-kannada {
  font-family: var(--font-kannada);
  font-size: 0.82rem;
  color: var(--gold-light);
  opacity: 0.95;
  letter-spacing: 0.3px;
  margin-top: 3px;
}

.sidebar-nav {
  padding: 16px 12px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-section-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-subtle);
  letter-spacing: 1.2px;
  padding: 12px 14px 4px;
  font-weight: 700;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-item:hover {
  color: var(--text-pure);
  background: rgba(224, 86, 158, 0.12);
  border-color: rgba(224, 86, 158, 0.25);
}

.nav-item.active {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(224, 86, 158, 0.22) 0%, rgba(245, 158, 11, 0.12) 100%);
  border: 1px solid var(--border-glow);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.18);
}

.nav-item .icon {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
}

/* Sidebar Astrologer Desk Highlight Card */
.sidebar-astrologer-card {
  margin: 10px 4px 6px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(224, 86, 158, 0.1) 100%);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.sidebar-astrologer-card:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(224, 86, 158, 0.18) 100%);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.3);
}

.sac-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

.sac-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: #ffffff;
  margin-top: 4px;
  font-weight: 600;
}

.sac-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 3px;
}

.sidebar-footer {
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.quick-action-btn {
  width: 100%;
  padding: 10px 16px;
  background: var(--gold-gradient);
  border: none;
  border-radius: 8px;
  color: #1a0b02;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
  transition: var(--transition-smooth);
}

.quick-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* -------------------------------------------------------------
   MAIN CONTENT AREA & TOP NAVBAR
   ------------------------------------------------------------- */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-navbar {
  height: var(--header-height);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 7, 21, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 90;
}

.top-brand-mobile {
  display: none;
  align-items: center;
  gap: 10px;
}

.top-nav-stats {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.stat-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--divine-emerald);
  box-shadow: 0 0 8px var(--divine-emerald);
  display: inline-block;
}

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

/* Prominent Astrologer Desk Button in Navbar */
.btn-astrologer-portal {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(224, 86, 158, 0.15) 100%);
  border: 1px solid var(--gold-light);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
  transition: var(--transition-smooth);
}

.btn-astrologer-portal:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35) 0%, rgba(224, 86, 158, 0.25) 100%);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
}

.badge-inquiry-counter {
  background: #ef4444;
  color: #fff;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
}

.btn-secondary-glow {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-pure);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.btn-secondary-glow:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.btn-primary-gradient {
  background: var(--orchid-gradient);
  border: none;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(224, 86, 158, 0.35);
  transition: var(--transition-smooth);
}

.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(224, 86, 158, 0.55);
}

/* -------------------------------------------------------------
   MELOOHA-INSPIRED HERO SECTION
   ------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 55px 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Rotating Astrological Zodiac Mandala in background */
.zodiac-wheel-mandala {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 580px;
  height: 580px;
  pointer-events: none;
  opacity: 0.18;
  animation: slowSpin 140s linear infinite;
  z-index: 0;
}

@keyframes slowSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  width: 100%;
}

.hero-subtitle-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(224, 86, 158, 0.12);
  border: 1px solid rgba(224, 86, 158, 0.3);
  color: #f472b6;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.85rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-pure);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

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

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* Melooha Style Rich Inquirer / Search Box */
.melooha-inquirer-card {
  background: rgba(24, 13, 41, 0.75);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(224, 86, 158, 0.25);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(224, 86, 158, 0.15);
  text-align: left;
  position: relative;
}

.inquirer-textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-pure);
  font-family: var(--font-sans);
  font-size: 1.15rem;
  resize: none;
  height: 80px;
  outline: none;
  line-height: 1.5;
}

.inquirer-textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 300;
}

.inquirer-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 12px;
}

.inquirer-topics {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.topic-chip {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.topic-chip:hover {
  background: rgba(224, 86, 158, 0.15);
  color: var(--text-pure);
  border-color: rgba(224, 86, 158, 0.3);
}

.topic-chip.active {
  background: var(--orchid-gradient);
  color: #ffffff;
  border-color: transparent;
  font-weight: 600;
}

.inquirer-action-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-ask-submit {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orchid-gradient);
  border: none;
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(224, 86, 158, 0.4);
  transition: var(--transition-smooth);
}

.btn-ask-submit:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(224, 86, 158, 0.6);
}

/* Suggestion Grid (Melooha Style) */
.melooha-suggestion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
  width: 100%;
}

.suggestion-pill-card {
  background: rgba(22, 12, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.suggestion-pill-card:hover {
  background: rgba(35, 18, 60, 0.85);
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.suggestion-text {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.4;
}

.suggestion-pill-card:hover .suggestion-text {
  color: var(--gold-light);
}

.suggestion-arrow {
  color: var(--text-subtle);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.suggestion-pill-card:hover .suggestion-arrow {
  color: var(--gold-light);
  transform: translateX(3px);
}

/* -------------------------------------------------------------
   ANIMATED FOGGY SMOKE SANCTUM WITH CLEANED DIVINE SCULPTURE
   ------------------------------------------------------------- */
.divine-smoke-sanctum {
  padding: 10px 32px 40px;
  position: relative;
}

.smoke-canvas-container {
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(28, 14, 46, 0.85) 0%, rgba(10, 5, 18, 0.95) 100%);
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  padding: 40px 32px;
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7), inset 0 0 40px rgba(245, 158, 11, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 40px;
  flex-wrap: wrap;
}

/* Canvas for dynamic moving smoke particles */
#smokeCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Layered misty fog clouds drifting */
.smoke-fog-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.4;
}

.fog-layer-1 {
  background: radial-gradient(ellipse at 30% 60%, rgba(139, 92, 246, 0.2) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 40%, rgba(224, 86, 158, 0.15) 0%, transparent 50%);
  animation: driftSmoke1 22s ease-in-out infinite alternate;
}

.fog-layer-2 {
  background: radial-gradient(ellipse at 60% 70%, rgba(245, 158, 11, 0.18) 0%, transparent 55%),
              radial-gradient(ellipse at 20% 30%, rgba(168, 85, 247, 0.12) 0%, transparent 45%);
  animation: driftSmoke2 32s linear infinite;
  opacity: 0.3;
}

@keyframes driftSmoke1 {
  0% { transform: translateX(0) scale(1); }
  50% { transform: translateX(-15%) scale(1.08); }
  100% { transform: translateX(-30%) scale(1); }
}

@keyframes driftSmoke2 {
  0% { transform: translateX(-30%) translateY(0); }
  50% { transform: translateX(-10%) translateY(-10px); }
  100% { transform: translateX(0) translateY(0); }
}

.sculpture-presentation-frame {
  position: relative;
  z-index: 3;
  width: 260px;
  height: 260px;
  flex-shrink: 0;
  border-radius: 20px;
  padding: 6px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.7) 0%, rgba(224, 86, 158, 0.6) 100%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.35);
}

.sculpture-cleared-img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  background: #0f081c;
  display: block;
  filter: contrast(1.06) brightness(1.02);
  transition: transform 0.5s ease;
}

.sculpture-presentation-frame:hover .sculpture-cleared-img {
  transform: scale(1.03);
}

.smoke-caption-box {
  position: relative;
  z-index: 3;
  max-width: 520px;
  text-align: left;
}

.sacred-subhead {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-light);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.sacred-headline {
  font-family: var(--font-serif);
  font-size: 1.95rem;
  color: var(--text-pure);
  line-height: 1.25;
  margin-bottom: 12px;
}

.sacred-caption {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

/* -------------------------------------------------------------
   SACRED PRIVACY & DATA SANCTITY BANNER
   ------------------------------------------------------------- */
.privacy-pledge-banner {
  margin: 0 32px 40px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.12) 0%, rgba(20, 10, 36, 0.75) 100%);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 16px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.privacy-shield-icon {
  font-size: 2.2rem;
  color: var(--divine-emerald);
  flex-shrink: 0;
}

.privacy-text h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #34d399;
  margin-bottom: 4px;
}

.privacy-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* -------------------------------------------------------------
   TABS VIEW SECTIONS (Jyotira, Vaastu, Hasta, Signature, Kundli)
   ------------------------------------------------------------- */
.content-tab-view {
  display: none;
  padding: 32px;
  animation: fadeIn 0.4s ease;
}

.content-tab-view.active {
  display: block;
}

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

.section-head {
  margin-bottom: 32px;
}

.section-eyebrow {
  font-size: 0.8rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.section-headline {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--text-pure);
  line-height: 1.3;
}

.section-subtext {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-top: 8px;
}

/* Feature Cards Grid */
.features-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  transition: var(--transition-smooth);
}

.feature-box:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.feature-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-box h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-pure);
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Interactive Kundli Generator Section */
.kundli-calculator-panel {
  background: rgba(20, 11, 35, 0.8);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.calc-inputs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}

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

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input, .form-select, .form-textarea {
  background: rgba(10, 5, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-pure);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  transition: var(--transition-smooth);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold-light);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.charts-display-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 32px;
}

.chart-card {
  background: rgba(12, 6, 22, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.chart-card h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.chart-svg-wrapper {
  max-width: 380px;
  margin: 0 auto;
}

.chart-svg-wrapper svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.6));
}

.kundli-planetary-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 0.88rem;
}

.kundli-planetary-table th {
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold-light);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  font-family: var(--font-serif);
}

.kundli-planetary-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

/* -------------------------------------------------------------
   INTAKE / CONSULTATION QUESTION MODAL
   ------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 2, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: #120a21;
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(245, 158, 11, 0.2);
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-group h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-pure);
}

.modal-title-group p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-body {
  padding: 24px 28px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.full-span {
  grid-column: 1 / -1;
}

.file-upload-dropzone {
  border: 2px dashed rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  background: rgba(245, 158, 11, 0.03);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.file-upload-dropzone:hover {
  border-color: var(--gold-light);
  background: rgba(245, 158, 11, 0.07);
}

.upload-icon {
  font-size: 2rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.preview-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.thumb-preview-box {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-glow);
  position: relative;
}

.thumb-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -------------------------------------------------------------
   CLIENT STATUS & ANSWER VIEWER MODAL
   ------------------------------------------------------------- */
.consultation-result-card {
  background: rgba(18, 10, 32, 0.9);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 24px;
  margin-top: 20px;
}

.status-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-badge-live.answered {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge-live.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge-live.under_review {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.answer-blessing-box {
  background: rgba(245, 158, 11, 0.05);
  border-left: 4px solid var(--gold-light);
  border-radius: 0 12px 12px 0;
  padding: 20px;
  margin: 18px 0;
}

.answer-blessing-box h5 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}

/* -------------------------------------------------------------
   ASTROLOGER ADMIN DESK
   ------------------------------------------------------------- */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.admin-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* -------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .features-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .charts-display-container {
    grid-template-columns: 1fr;
  }
  .smoke-canvas-container {
    flex-direction: column;
    text-align: center;
  }
  .smoke-caption-box {
    text-align: center;
  }
}

@media (max-width: 860px) {
  :root {
    --sidebar-width: 0px;
  }
  .sidebar {
    transform: translateX(-100%);
    width: 270px;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .main-wrapper {
    margin-left: 0;
  }
  .top-brand-mobile {
    display: flex;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .melooha-suggestion-grid {
    grid-template-columns: 1fr;
  }
  .features-grid-3 {
    grid-template-columns: 1fr;
  }
  .calc-inputs-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid-2, .form-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .calc-inputs-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .top-navbar {
    padding: 0 16px;
  }
  .hero-section {
    padding: 35px 16px 25px;
  }
  .content-tab-view {
    padding: 20px 16px;
  }
  .sculpture-presentation-frame {
    width: 200px;
    height: 200px;
  }
}
