/* ═══════════════════════════════════════
   JYOTISHA — VEDIC ASTROLOGY PLATFORM
   Spiritual, Calm, Hindu Aesthetic
   ═══════════════════════════════════════ */

:root {
  /* Cosmic Palette */
  --saffron: #D4750A;
  --saffron-light: #F0900C;
  --gold: #C9962B;
  --gold-primary: #C9962B;
  --gold-light: #E8B84B;
  --deep-navy: #0C0F1E;
  --midnight: #111428;
  --cosmic: #161A32;
  --panel: #1C2040;
  --panel-light: #232848;
  --border: rgba(201, 150, 43, 0.20);
  --border-glow: rgba(201, 150, 43, 0.45);
  --text-primary: #F0E8D5;
  --text-secondary: #B8A87A;
  --text-muted: #7A6E58;
  --white: #FFFFFF;
  --success: #4CAF84;
  --error: #C74B4B;

  /* Spacing */
  --nav-h: 68px;

  /* Typography */
  --font-display: 'Cinzel', serif;
  --font-body: 'Crimson Pro', Georgia, serif;
  --font-ui: system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

body {
  background: var(--deep-navy);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--midnight);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

/* ════════════════ NAVBAR ════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(11, 14, 30, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
  min-width: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-om {
  width: 36px;
  height: 36px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 0 8px rgba(212, 117, 10, 0.6));
}

.logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.nav-close-btn {
  display: none;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-light);
  background: rgba(201, 150, 43, 0.1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* ── Language Switcher ── */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font-ui);
  transition: border-color 0.2s;
}

.lang-btn:hover {
  border-color: var(--gold);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 150px;
  overflow: hidden;
  z-index: 200;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.lang-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font-body);
  transition: background 0.15s, color 0.15s;
  text-align: left;
}

.lang-menu button:hover {
  background: rgba(201, 150, 43, 0.12);
  color: var(--gold-light);
}

/* ── Auth Buttons ── */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-login {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  background: none;
  border: 1px solid var(--border-glow);
  padding: 7px 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-login:hover {
  background: rgba(201, 150, 43, 0.12);
  border-color: var(--gold);
}

.btn-register {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--deep-navy);
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  border: none;
  padding: 7px 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-register:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ── User Menu ── */
.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
}

.avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--deep-navy);
  font-weight: 700;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 140px;
  overflow: hidden;
  z-index: 200;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.user-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}

.user-dropdown a:hover {
  background: rgba(201, 150, 43, 0.12);
  color: var(--gold-light);
}

.user-menu {
  position: relative;
}

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
  transition: all 0.25s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ════════════════ BUTTONS ════════════════ */
.btn-primary {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--deep-navy);
  background: linear-gradient(135deg, var(--saffron-light), var(--gold));
  border: none;
  padding: 13px 28px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 117, 10, 0.4);
}

.btn-primary.full-width {
  width: 100%;
}

.btn-secondary {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  background: none;
  border: 1px solid var(--border-glow);
  padding: 12px 28px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background: rgba(201, 150, 43, 0.1);
  transform: translateY(-2px);
}

.btn-back {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-secondary);
  background: none;
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-back:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

/* ════════════════ PAGES ════════════════ */
.page {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

.page.active {
  display: block;
}

.page.hidden {
  display: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-hero {
  background: linear-gradient(180deg, var(--midnight) 0%, var(--cosmic) 100%);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 40px;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 40px);
  color: var(--gold-light);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.page-hero p {
  font-size: 16px;
  color: var(--text-secondary);
  font-style: italic;
}

.page-body {
  padding: 48px 24px;
}

/* ════════════════ HERO SECTION ════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #1A1E3A 0%, var(--deep-navy) 70%);
}

.stars-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: white;
  animation: twinkle var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes twinkle {

  0%,
  100% {
    opacity: var(--min-op, 0.2);
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

.hero-mandala {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: min(600px, 80vw);
  height: min(600px, 80vw);
  background: conic-gradient(from 0deg at 50% 50%,
      transparent 0deg, rgba(201, 150, 43, 0.04) 15deg, transparent 30deg,
      transparent 30deg, rgba(201, 150, 43, 0.04) 45deg, transparent 60deg,
      transparent 60deg, rgba(201, 150, 43, 0.04) 75deg, transparent 90deg,
      transparent 90deg, rgba(201, 150, 43, 0.04) 105deg, transparent 120deg,
      transparent 120deg, rgba(201, 150, 43, 0.04) 135deg, transparent 150deg,
      transparent 150deg, rgba(201, 150, 43, 0.04) 165deg, transparent 180deg,
      transparent 180deg, rgba(201, 150, 43, 0.04) 195deg, transparent 210deg,
      transparent 210deg, rgba(201, 150, 43, 0.04) 225deg, transparent 240deg,
      transparent 240deg, rgba(201, 150, 43, 0.04) 255deg, transparent 270deg,
      transparent 270deg, rgba(201, 150, 43, 0.04) 285deg, transparent 300deg,
      transparent 300deg, rgba(201, 150, 43, 0.04) 315deg, transparent 330deg,
      transparent 330deg, rgba(201, 150, 43, 0.04) 345deg, transparent 360deg);
  border-radius: 50%;
  border: 1px solid rgba(201, 150, 43, 0.08);
  animation: rotate 120s linear infinite;
}

@keyframes rotate {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 720px;
}

.hero-om {
  width: 140px;
  height: 140px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 20px rgba(212, 117, 10, 0.5));
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    filter: drop-shadow(0 0 20px rgba(212, 117, 10, 0.5));
  }

  50% {
    filter: drop-shadow(0 0 40px rgba(212, 117, 10, 0.9));
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 52px);
  color: var(--text-primary);
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ════════════════ FEATURES SECTION ════════════════ */
.features-section {
  padding: 100px 24px;
  background: var(--midnight);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 34px);
  color: var(--gold-light);
  text-align: center;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.section-sub {
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
  font-size: 16px;
  margin-bottom: 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
  opacity: 1;
}

.feat-icon {
  font-size: 42px;
  margin-bottom: 20px;
  color: var(--saffron);
  display: block;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* ════════════════ RASI SECTION ════════════════ */
.rasi-section {
  padding: 100px 24px;
  background: var(--cosmic);
}

.rasi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
  gap: 16px;
}

.rasi-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
}

.rasi-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  background: var(--panel-light);
}

.rasi-symbol {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
}

.rasi-name {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  display: block;
  margin-bottom: 4px;
}

.rasi-sanskrit {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ════════════════ TRUST SECTION ════════════════ */
.trust-section {
  padding: 60px 24px;
  background: var(--midnight);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.trust-num {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}

.trust-item span:last-child {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ════════════════ FOOTER ════════════════ */
.footer,
.site-footer {
  padding: 48px 24px;
  text-align: center;
  background: var(--deep-navy);
  border-top: 1px solid var(--border);
}

.site-footer .footer-contact h3 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--gold-light);
  letter-spacing: 0.08em;
}

.site-footer .footer-contact p {
  margin-bottom: 6px;
  font-size: 15px;
  color: var(--text-secondary);
}

.site-footer .footer-contact a {
  color: var(--gold-primary);
  text-decoration: none;
}

.site-footer .footer-contact a:hover {
  text-decoration: underline;
}

.footer-om {
  width: 64px;
  height: 64px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: block;
}

.footer p {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
}

.footer-small {
  font-size: 13px !important;
  color: var(--text-muted) !important;
  font-family: var(--font-body) !important;
  font-style: italic;
  margin-top: 6px;
}

/* ════════════════ HOROSCOPE PAGE ════════════════ */
.tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-x: auto;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 40px;
}

.tab {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 10px 28px;
  background: var(--panel);
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  border-right: 1px solid var(--border);
}

.tab:last-child {
  border-right: none;
}

.tab.active,
.tab:hover {
  background: rgba(201, 150, 43, 0.15);
  color: var(--gold-light);
}

.selector-label {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-style: italic;
}

.rasi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.rasi-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  color: var(--text-secondary);
}

.rasi-chip:hover,
.rasi-chip.active {
  border-color: var(--gold);
  background: rgba(201, 150, 43, 0.12);
  color: var(--gold-light);
}

.horo-display {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 300px;
  padding: 40px;
}

.horo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 220px;
  gap: 16px;
  color: var(--text-muted);
}

.placeholder-icon {
  font-size: 48px;
  opacity: 0.4;
}

/* Horoscope Card */
.horo-card {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.horo-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.horo-rasi-symbol {
  font-size: 44px;
  line-height: 1;
}

.horo-rasi-info h2 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold-light);
  letter-spacing: 0.06em;
}

.horo-rasi-info p {
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
}

.horo-date-range {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
}

.guidance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 20px;
}

.guidance-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}

.guidance-area {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guidance-text {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.75;
}

.horo-nakshatra {
  margin-top: 24px;
  padding: 18px 24px;
  background: rgba(201, 150, 43, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
  text-align: center;
}

/* ════════════════ KUNDLI PAGE ════════════════ */
.kundli-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  align-items: start;
}

/* Form */
.kundli-form-section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.kundli-form-section h2 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.birth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form-group label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-display);
}

.form-input {
  background: var(--midnight);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 11px 14px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s;
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
}

.form-input option {
  background: var(--midnight);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group.half {
  margin: 0;
}

/* City Dropdown */
.city-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  z-index: 50;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.city-option {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s;
}

.city-option:hover {
  background: rgba(201, 150, 43, 0.1);
  color: var(--gold-light);
}

/* ── South Indian Rasi Chart ── */
.kundli-result-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.chart-header h2 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold-light);
  letter-spacing: 0.06em;
}

.south-indian-chart,
.north-indian-chart {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  justify-content: center;
}

.charts-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.chart-box {
  flex: 1;
  min-width: min(320px, 100%);
  max-width: 500px;
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chart-title {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201, 150, 43, 0.1);
  width: 100%;
}

.chart-style-toggle {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.style-btn {
  background: var(--panel);
  border: none;
  border-right: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.style-btn:last-child {
  border-right: none;
}

.style-btn.active {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: var(--deep-navy);
}

.ni-svg {
  width: 100%;
  height: auto;
  max-width: 400px;
  stroke: var(--gold);
  stroke-width: 1.5;
  fill: none;
}

.ni-house-num {
  fill: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-display);
}

.ni-planet {
  fill: var(--gold-light);
  font-size: 11px;
  font-family: var(--font-display);
}

.ni-lagna {
  fill: var(--saffron);
}

.si-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  width: min(460px, calc(100vw - 48px));
  height: min(460px, calc(100vw - 48px));
  border: 2px solid var(--gold);
  border-radius: 4px;
  overflow: hidden;
}

.si-cell {
  border: 1px solid rgba(201, 150, 43, 0.3);
  padding: 8px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.2s;
  position: relative;
}

.si-cell.center {
  background: rgba(201, 150, 43, 0.04);
  pointer-events: none;
}

.si-cell.lagna-cell {
  background: rgba(212, 117, 10, 0.12);
}

.si-cell.lagna-cell::after {
  content: 'Lagna';
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 8px;
  color: var(--saffron);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

.si-rasi-num {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  position: absolute;
  top: 5px;
  left: 6px;
}

.si-rasi-name {
  font-family: var(--font-display);
  font-size: 10.5px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-align: center;
}

.si-planets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
}

.si-planet {
  font-size: 10px;
  color: var(--gold-light);
  background: rgba(201, 150, 43, 0.15);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

/* ── Planet Info Table ── */
.planet-info {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.planet-info h3 {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.planet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.planet-table th {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.planet-table td {
  padding: 10px 12px;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.planet-table td:first-child {
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 13px;
}

/* ── Life Overview ── */
.life-overview {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
}

.life-overview h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 20px;
}

.overview-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 20px;
}

.overview-area {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.overview-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Ascendant Banner */
.asc-banner {
  background: linear-gradient(135deg, rgba(212, 117, 10, 0.15), rgba(201, 150, 43, 0.1));
  border: 1px solid rgba(212, 117, 10, 0.3);
  border-radius: 10px;
  padding: 20px 24px;
  text-align: center;
  margin-bottom: 24px;
}

.asc-banner .asc-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 6px;
}

.asc-banner .asc-value {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold-light);
  letter-spacing: 0.06em;
}

.asc-banner .asc-sub {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 4px;
}

/* ════════════════ DASHBOARD ════════════════ */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 28px;
}

.dash-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.dash-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.empty-state {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding: 20px 0;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 14px;
}

.profile-row:last-child {
  border-bottom: none;
}

.profile-label {
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-display);
}

.profile-value {
  color: var(--text-primary);
}

/* ════════════════ MODALS ════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 900;
  backdrop-filter: blur(4px);
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background: var(--panel);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 48px 40px;
  width: min(460px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: modal-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translate(-50%, -52%) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.modal-om {
  width: 64px;
  height: 64px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: block;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.modal-header p {
  font-size: 15px;
  color: var(--text-secondary);
  font-style: italic;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-switch {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.modal-switch a {
  color: var(--gold-light);
  text-decoration: none;
}

.modal-switch a:hover {
  text-decoration: underline;
}

.modal-error {
  background: rgba(199, 75, 75, 0.12);
  border: 1px solid rgba(199, 75, 75, 0.3);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  color: #E57373;
}

.modal-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 8px;
}

/* Loading Modal */
#modal-loading {
  text-align: center;
  padding: 60px 40px;
  background: var(--panel);
  border-radius: 16px;
}

.loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.chakra-spinner {
  font-size: 52px;
  color: var(--saffron);
  animation: spin 2s linear infinite;
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#modal-loading p {
  font-size: 16px;
  color: var(--text-secondary);
  font-style: italic;
}

/* ════════════════ UTILITIES ════════════════ */
.hidden {
  display: none;
}

/* ════════════════ RESPONSIVE ════════════════ */
@media (max-width: 900px) {
  .kundli-layout {
    grid-template-columns: 1fr;
  }

  .kundli-form-section {
    position: relative;
    top: 0;
  }
}

@media (max-width: 700px) {

  .hero-mandala {
    display: none !important;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    gap: 28px;
  }

  .modal {
    padding: 36px 24px;
  }

  .horo-display {
    padding: 24px 16px;
  }

  .guidance-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .rasi-chips {
    gap: 8px;
  }

  .si-cell {
    padding: 4px;
    min-height: 60px;
  }

  .si-rasi-name {
    font-size: 9px;
  }

  .si-planet {
    font-size: 9px;
    padding: 1px 4px;
  }
}

/* ════════════════ DATE INPUT STYLE FIX ════════════════ */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7) sepia(1) hue-rotate(20deg);
  cursor: pointer;
}

/* ════════════════ PAGE HERO BANNER ════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--deep-navy) 0%, rgba(20, 20, 50, 0.95) 100%);
  padding: 64px 24px 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-top: var(--nav-h);
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 46px);
  color: var(--gold-light);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.page-hero-sub {
  font-size: 16px;
  color: var(--text-secondary);
  font-style: italic;
  max-width: 560px;
  margin: 0 auto;
}

/* ════════════════ POOJAS PAGE ════════════════ */
.poojas-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pooja-day-section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.pooja-day-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-left: 4px solid var(--saffron);
}

.pooja-day-header.monday {
  border-color: #7c8cf8;
  background: rgba(124, 140, 248, 0.08);
}

.pooja-day-header.tuesday {
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.08);
}

.pooja-day-header.wednesday {
  border-color: #34d399;
  background: rgba(52, 211, 153, 0.08);
}

.pooja-day-header.thursday {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
}

.pooja-day-header.friday {
  border-color: #f472b6;
  background: rgba(244, 114, 182, 0.08);
}

.pooja-day-header.saturday {
  border-color: #a78bfa;
  background: rgba(167, 139, 250, 0.08);
}

.pooja-day-header.sunday {
  border-color: #fb923c;
  background: rgba(251, 146, 60, 0.08);
}

.day-icon {
  font-size: 32px;
}

.pooja-day-header h2 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}

.pooja-day-header p {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
}

.pooja-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 1px;
  background: var(--border);
}

.pooja-card {
  background: var(--panel);
  padding: 20px;
  transition: background 0.2s;
}

.pooja-card:hover {
  background: rgba(212, 117, 10, 0.06);
}

.pooja-name {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.pooja-benefits {
  font-size: 12px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.5;
}

/* ════════════════ HOMAMS PAGE ════════════════ */
.homams-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}

.homam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}

.homam-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.homam-card:hover {
  transform: translateY(-4px);
  border-color: var(--saffron);
  box-shadow: 0 8px 28px rgba(212, 117, 10, 0.15);
}

.homam-icon {
  font-size: 32px;
}

.homam-name {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}

a.homam-name-link {
  display: block;
  text-decoration: none;
  color: var(--gold-light);
  transition: color 0.2s, text-decoration 0.2s;
}

a.homam-name-link:hover {
  color: var(--saffron-light);
  text-decoration: underline;
  text-underline-offset: 4px;
}

a.homam-card-detail {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.homam-card-detail:hover .homam-name {
  color: var(--saffron-light);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.homam-benefits {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
}


.required {
  color: #f87171;
}

.form-error {
  color: #f87171;
  font-size: 13px;
  padding: 10px 14px;
  background: rgba(248, 113, 113, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(248, 113, 113, 0.25);
  margin-bottom: 12px;
}

.sacred-success {
  text-align: center;
  padding: 32px 24px;
}

.sacred-success .success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.sacred-success h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.sacred-success p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.6;
}

/* ════════════════ CONSULT PAGE ════════════════ */
.consult-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  text-align: center;
}

.consult-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 20px;
}

.consult-topic-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.consult-topic-card:hover {
  transform: translateY(-4px);
  border-color: var(--saffron);
}

.topic-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.topic-name {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.consult-topic-card p {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
}

.consult-cta-banner {
  background: linear-gradient(135deg, rgba(37, 99, 55, 0.5), rgba(21, 77, 44, 0.7));
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 16px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-text h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: #34d399;
  margin-bottom: 8px;
}

.cta-text p {
  font-size: 14px;
  color: var(--text-secondary);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}

.btn-whatsapp:hover {
  background: #1eb858;
  transform: translateY(-2px);
}

.consult-form-section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}

.consult-textarea {
  min-height: 120px;
  resize: vertical;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .jathakam-form-card,
  .consult-form-section {
    padding: 24px 16px;
  }

  .consult-cta-banner {
    flex-direction: column;
    text-align: center;
  }

  .pooja-cards-grid {
    grid-template-columns: 1fr;
  }

  .homam-grid {
    grid-template-columns: 1fr;
  }

  .consult-topics-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ════════════════ DEITY ICON ════════════════ */
.deity-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.deity-icon svg,
.deity-icon .p-icon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold-light);
  box-shadow: 0 0 15px rgba(212, 117, 10, 0.2);
}

/* ════════════════ POOJA PRICE + ADD TO CART ════════════════ */
.pooja-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pooja-price {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  margin-top: auto;
  padding-top: 8px;
}

.btn-add-cart {
  margin-top: 10px;
  background: linear-gradient(135deg, rgba(212, 117, 10, 0.15), rgba(212, 117, 10, 0.05));
  border: 1px solid rgba(212, 117, 10, 0.35);
  color: var(--gold-light);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  width: 100%;
}

.btn-add-cart:hover {
  background: rgba(212, 117, 10, 0.25);
  border-color: var(--saffron);
  transform: translateY(-1px);
}

.btn-add-cart:active {
  transform: scale(0.97);
}

/* ════════════════ HOMAM PRICE + QTY ════════════════ */
.homam-price {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold-light);
  margin-top: 4px;
}

.per-person {
  font-size: 11px;
  color: var(--text-secondary);
  font-family: sans-serif;
  font-style: italic;
}

.homam-qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.homam-qty-row label {
  font-size: 12px;
  color: var(--text-secondary);
}

.homam-qty {
  width: 70px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  padding: 5px 10px;
  font-size: 14px;
}

.homam-note {
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  background: rgba(212, 117, 10, 0.06);
  border: 1px solid rgba(212, 117, 10, 0.18);
  border-radius: 10px;
  padding: 14px 20px;
}

/* ════════════════ CART BUTTON IN NAVBAR ════════════════ */
.cart-btn {
  position: relative;
  background: rgba(212, 117, 10, 0.12);
  border: 1px solid rgba(212, 117, 10, 0.3);
  color: var(--gold-light);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.cart-btn:hover {
  background: rgba(212, 117, 10, 0.25);
  border-color: var(--saffron);
}

.cart-count {
  background: var(--saffron);
  color: #0b0e1e;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ════════════════ CART OVERLAY ════════════════ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1500;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* ════════════════ CART SIDEBAR ════════════════ */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 95vw;
  height: 100vh;
  background: rgba(14, 17, 36, 0.98);
  border-left: 1px solid var(--border);
  z-index: 1600;
  display: flex;
  flex-direction: column;
  transform: translateX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-sidebar.hidden {
  transform: translateX(100%);
  display: flex !important;
}

.cart-overlay.hidden {
  display: none;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.cart-header h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold-light);
}

.cart-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s;
}

.cart-close-btn:hover {
  color: #f87171;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-empty {
  margin: auto;
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
}

.cart-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-item-name {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-primary);
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-qty-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.cart-qty-btn:hover {
  background: rgba(212, 117, 10, 0.2);
}

.cart-qty-num {
  font-size: 14px;
  color: var(--gold-light);
  min-width: 24px;
  text-align: center;
}

.cart-item-subtotal {
  font-size: 14px;
  color: var(--saffron);
  font-family: var(--font-display);
}

.cart-item-remove {
  background: none;
  border: none;
  color: #f87171;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.15s;
}

.cart-item-remove:hover {
  background: rgba(248, 113, 113, 0.12);
}

.cart-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4px;
}

.cart-total-row span:first-child {
  font-size: 15px;
  color: var(--text-secondary);
}

.cart-total-amt {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold-light);
}

/* ════════════════ PAYMENT STYLES ════════════════ */
.payment-methods {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-payment {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-ui);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  font-size: 15px;
}

.payment-icon {
  height: 20px;
  width: auto;
}

.payment-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 15px 0;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.payment-divider::before,
.payment-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.payment-divider:not(:empty)::before { margin-right: .5em; }
.payment-divider:not(:empty)::after { margin-left: .5em; }

.processing-view {
  text-align: center;
  padding: 40px 20px;
}

.processing-spinner {
  font-size: 50px;
  margin-bottom: 20px;
  display: inline-block;
  animation: rotate 2s linear infinite;
}

.payment-success-view {
  text-align: center;
  padding: 40px 20px;
}

.success-tick {
  font-size: 60px;
  color: var(--success);
  margin-bottom: 20px;
  display: block;
}

/* ════════════════ BOOKING FORM ════════════════ */
.booking-form-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
}

.booking-summary {
  margin-bottom: 32px;
}

.booking-summary-card {
  background: linear-gradient(135deg, rgba(212, 117, 10, 0.12), rgba(201, 150, 43, 0.06));
  border: 1px solid rgba(212, 117, 10, 0.3);
  border-radius: 14px;
  padding: 24px 28px;
  text-align: center;
}

.booking-type-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--saffron);
  background: rgba(212, 117, 10, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.booking-summary-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.booking-price {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--saffron);
}

.booking-date-section {
  margin-bottom: 28px;
  padding: 0 2px;
}

.booking-date-section .form-group {
  margin-bottom: 0;
}

.booking-date-hint {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 8px;
  line-height: 1.45;
}

.participant-section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 24px;
  transition: border-color 0.2s;
}

.participant-section:hover {
  border-color: rgba(201, 150, 43, 0.4);
}

.participant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.participant-label {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--gold-light);
}

.participant-label strong {
  color: var(--saffron);
  font-size: 12px;
  margin-left: 4px;
}

.btn-remove-participant {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #f87171;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.btn-remove-participant:hover {
  background: rgba(248, 113, 113, 0.25);
}

.participant-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.add-participant-container {
  margin-bottom: 24px;
}

.btn-add-participant {
  width: 100%;
  padding: 14px 24px;
  background: rgba(201, 150, 43, 0.1);
  border: 1px dashed rgba(201, 150, 43, 0.5);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.06em;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-participant:hover {
  background: rgba(201, 150, 43, 0.2);
  border-style: solid;
  border-color: var(--saffron);
}

.btn-submit-details {
  margin-top: 8px;
  padding: 16px 28px;
  font-size: 15px;
}

/* Payment page */
.payment-page-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 24px;
}

.payment-summary-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}

.payment-summary-box h3 {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.payment-note {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
}

/* Confirmation page */
.confirmation-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px;
}

.confirmation-success {
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 36px;
}

.confirmation-success .success-icon {
  font-size: 64px;
  margin-bottom: 20px;
  display: block;
}

.confirmation-success h2 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.confirmation-id {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.confirmation-details {
  text-align: left;
  margin: 32px 0;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.confirmation-details h3,
.confirmation-details h4 {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--saffron);
  margin: 16px 0 8px;
  letter-spacing: 0.06em;
}

.confirmation-details h4 {
  margin-top: 20px;
}

.confirmation-details ul {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.confirmation-details li {
  padding: 6px 0;
  padding-left: 16px;
  border-left: 2px solid rgba(201, 150, 43, 0.3);
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text-secondary);
}

.status-paid {
  color: var(--success);
  font-weight: 600;
}

@media (max-width: 600px) {
  .booking-form-container,
  .confirmation-container {
    padding: 24px 16px;
  }

  .participant-section {
    padding: 18px 20px;
  }

  .confirmation-success {
    padding: 32px 24px;
  }
}

/* ════════════════ RESPONSIVE LAYOUT (overrides) ════════════════ */
@media (max-width: 1100px) {
  .nav-inner {
    gap: 12px;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: auto;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    background: rgba(12, 15, 30, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    gap: 4px;
    z-index: 999;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.35;
    width: 100%;
  }

  .nav-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    width: 40px;
    height: 40px;
    margin: -8px 0 2px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: transparent;
    color: var(--gold-light);
    font: 20px var(--font-ui);
    cursor: pointer;
  }

  .nav-close-btn:hover {
    background: rgba(201, 150, 43, 0.1);
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 900px) {
  .page-body,
  .poojas-container,
  .homams-container,
  .consult-container,
  .features-section,
  .rasi-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .kundli-form-section,
  .life-overview,
  .south-indian-chart,
  .north-indian-chart,
  .chart-box {
    padding: 20px 16px;
  }

  .hero {
    min-height: calc(100svh - var(--nav-h));
    padding: 32px 0 48px;
  }
}

@media (max-width: 700px) {
  .nav-inner {
    padding: 0 12px;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .logo-text {
    font-size: 15px;
    letter-spacing: 0.04em;
  }

  .lang-btn {
    padding: 6px 8px;
  }

  .cart-btn {
    padding: 7px 10px;
  }

  .hero-om {
    width: 96px;
    height: 96px;
  }

  .hero-content {
    padding: 0 16px;
  }

  .features-section,
  .rasi-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .page-hero {
    padding: 36px 16px 28px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 100%;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .btn-primary,
  .modal-actions .btn-secondary {
    width: 100%;
  }

  .profile-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .homam-qty-row {
    flex-wrap: wrap;
  }

  .btn-whatsapp {
    white-space: normal;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .auth-buttons .btn-register {
    display: none;
  }

  #currentLangCode {
    display: none;
  }

  .user-avatar-btn #userName {
    display: none;
  }

  .container {
    padding: 0 16px;
  }

  .page-body {
    padding: 32px 16px;
  }

  .consult-topics-grid {
    grid-template-columns: 1fr;
  }

  .si-grid {
    width: min(460px, calc(100vw - 32px));
    height: min(460px, calc(100vw - 32px));
  }

  .planet-table {
    font-size: 12px;
  }

  .planet-table th,
  .planet-table td {
    padding: 8px 6px;
  }

  .cart-sidebar {
    width: 100%;
    max-width: 100vw;
  }

  .feature-card {
    padding: 28px 20px;
  }
}

@media (max-width: 400px) {
  .logo-text {
    display: none;
  }

  .lang-btn svg {
    display: none;
  }

  body {
    font-size: 16px;
  }
}