/* ==========================================================================
   KaraKundali — Cosmic Vedic Gold Theme (Ultra-Premium Midnight & Gold)
   Theme identifier: data-theme="cosmic"
   ========================================================================== */

:root[data-theme="cosmic"],
:root[data-theme="vedic-gold"] {
  --bg: #101026;
  --bg-soft: #171732;
  --bg-card: #1f1f3a;
  --cream: #fffbf5;
  --cream-muted: #e8e0d5;
  --gold: #c8a46a;
  --gold-deep: #b68d4a;
  --gold-glow: hsla(37, 46%, 60%, 0.35);
  --saffron: #ff8a3d;
  --border: rgba(255, 251, 245, 0.12);
  --border-subtle: rgba(255, 251, 245, 0.07);
  --text-muted: #9a94b2;
  --card-glass: rgba(255, 251, 245, 0.07);
  --card-glass-hover: rgba(255, 251, 245, 0.10);

  /* KaraKundali global token mapping */
  --kk-bg: #101026;
  --kk-surface: #171732;
  --kk-surface-alt: #1f1f3a;
  --kk-border: rgba(255, 251, 245, 0.12);
  --kk-border-subtle: rgba(255, 251, 245, 0.08);
  --kk-ink-1: #fffbf5;
  --kk-ink-2: #e8e0d5;
  --kk-ink-3: #9a94b2;
  --kk-muted: #9a94b2;
  --kk-primary: #c8a46a;
  --kk-primary-hover: #b68d4a;
  --kk-forest: #171732;
  --kk-forest-soft: #232348;
  --kk-success: #34d399;
  --kk-warning: #ff8a3d;
  --kk-error: #f0715d;
  --kk-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --kk-radius: 14px;
  --kk-gold: #c8a46a;
  --kk-line: rgba(255, 251, 245, 0.10);

  --discovery-bg: #101026;
  --discovery-ink: #fffbf5;
  --discovery-sub: #e8e0d5;
  --discovery-muted: #9a94b2;
  --discovery-border: rgba(255, 251, 245, 0.12);
  --discovery-panel: #171732;
  --discovery-gold: #c8a46a;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */

.serif {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
}

.gold-gradient {
  background: linear-gradient(100deg, #e9c78e, #c8a46a 22%, #ffd9a0 48%, #b68d4a 86%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grid-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 251, 245, 0.06) 1px, transparent 0);
  background-size: 24px 24px;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(-1.6deg); }
  50% { transform: translateY(-8px) rotate(-0.8deg); }
}

@keyframes floatSlow2 {
  0%, 100% { transform: translateY(0px) rotate(2deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}

@keyframes floatSlow3 {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50% { transform: translateY(-6px) rotate(-1deg); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 hsla(37, 46%, 60%, 0); }
  50% { box-shadow: 0 0 40px 0 hsla(37, 46%, 60%, 0.22); }
}

/* ==========================================================================
   Cosmic Theme Global Surface & Masthead Overrides
   ========================================================================== */

html[data-theme="cosmic"],
body[data-theme="cosmic"],
html[data-theme="cosmic"] body {
  background-color: #101026 !important;
  color: #fffbf5 !important;
}

/* Masthead in Cosmic Theme */
html[data-theme="cosmic"] .app-masthead {
  background: rgba(16, 16, 38, 0.75) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border-bottom: 1px solid rgba(255, 251, 245, 0.08) !important;
}

html[data-theme="cosmic"] .app-masthead .logo-light {
  display: none !important;
}

html[data-theme="cosmic"] .app-masthead .logo-dark {
  display: block !important;
}

html[data-theme="cosmic"] .top-tab {
  color: rgba(255, 251, 245, 0.65) !important;
}

html[data-theme="cosmic"] .top-tab:hover {
  color: #fffbf5 !important;
  background: rgba(255, 251, 245, 0.08) !important;
}

html[data-theme="cosmic"] .top-tab.active {
  background: #fffbf5 !important;
  color: #101026 !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

html[data-theme="cosmic"] .util-btn {
  background: rgba(255, 251, 245, 0.06) !important;
  border: 1px solid rgba(255, 251, 245, 0.1) !important;
  color: #fffbf5 !important;
}

html[data-theme="cosmic"] .util-btn:hover {
  background: rgba(255, 251, 245, 0.12) !important;
}

html[data-theme="cosmic"] #signInBtn {
  background: #fffbf5 !important;
  color: #101026 !important;
  border: none !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 6px 20px rgba(255, 251, 245, 0.15) !important;
}

/* ==========================================================================
   Cosmic Ambient Aura & Background Backdrop
   ========================================================================== */

html[data-theme="cosmic"] .cosmic-ambient-backdrop {
  display: block;
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
}

html:not([data-theme="cosmic"]) .cosmic-ambient-backdrop {
  display: none !important;
}

.cosmic-orb {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
}

.cosmic-orb-purple {
  top: -25%;
  left: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(120, 90, 255, 0.18), transparent 70%);
  filter: blur(40px);
}

.cosmic-orb-gold {
  top: 10%;
  right: -15%;
  width: 55%;
  height: 55%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(200, 164, 106, 0.26), transparent 70%);
  filter: blur(35px);
}

.cosmic-orb-saffron {
  bottom: -15%;
  left: 20%;
  width: 55%;
  height: 55%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 138, 61, 0.13), transparent 70%);
  filter: blur(48px);
}

.cosmic-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 251, 245, 0.06) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 20%, black 40%, transparent 90%);
  mask-image: radial-gradient(80% 70% at 50% 20%, black 40%, transparent 90%);
}

.cosmic-astronomical-rings {
  position: absolute;
  right: -8%;
  top: 15%;
  width: 680px;
  height: 680px;
  max-width: 90vw;
  opacity: 0.08;
}

/* ==========================================================================
   Discovery Hub Cosmic Overrides (Panchang, Starter Tabs, Cards)
   ========================================================================== */

html[data-theme="cosmic"] .discovery .top-panchang-strip {
  background: rgba(23, 23, 50, 0.6) !important;
  backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 251, 245, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="cosmic"] .discovery .reading-starter {
  background: rgba(23, 23, 50, 0.65) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 251, 245, 0.12) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="cosmic"] .discovery .starter-tabs button {
  background: rgba(255, 251, 245, 0.04) !important;
  border: 1px solid rgba(255, 251, 245, 0.08) !important;
  color: rgba(255, 251, 245, 0.7) !important;
}

html[data-theme="cosmic"] .discovery .starter-tabs button:hover {
  background: rgba(255, 251, 245, 0.08) !important;
  color: #fffbf5 !important;
}

html[data-theme="cosmic"] .discovery .starter-tabs button[aria-selected="true"] {
  background: rgba(200, 164, 106, 0.15) !important;
  border-color: rgba(200, 164, 106, 0.4) !important;
  color: #e9c78e !important;
}

html[data-theme="cosmic"] .discovery .form-field-group input,
html[data-theme="cosmic"] .discovery .form-field-group select {
  background: rgba(255, 251, 245, 0.06) !important;
  border: 1px solid rgba(255, 251, 245, 0.12) !important;
  color: #fffbf5 !important;
}

html[data-theme="cosmic"] .discovery .form-field-group input:focus,
html[data-theme="cosmic"] .discovery .form-field-group select:focus {
  border-color: rgba(200, 164, 106, 0.6) !important;
  background: rgba(255, 251, 245, 0.09) !important;
}

html[data-theme="cosmic"] .discovery .starter-submit {
  background: #fffbf5 !important;
  color: #101026 !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 10px 30px rgba(255, 251, 245, 0.18) !important;
}

html[data-theme="cosmic"] .discovery .starter-submit:hover {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 16px 40px rgba(255, 251, 245, 0.28) !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   Cosmic Hero 2-Column Grid & Kundali Visual Component
   ========================================================================== */

/* Header Titles: toggle between regular and cosmic */
html[data-theme="cosmic"] .hero-title-regular {
  display: none !important;
}

html[data-theme="cosmic"] .hero-title-cosmic {
  display: inline-block !important;
}

html:not([data-theme="cosmic"]) .hero-title-cosmic {
  display: none !important;
}

/* 2-Column Responsive Layout */
@media (min-width: 1024px) {
  html[data-theme="cosmic"] .landing-first-screen.cosmic-hero-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.95fr) !important;
    gap: 2.5rem !important;
    align-items: flex-start !important;
  }
}

/* Hide cosmic kundali card when not in cosmic theme */
html:not([data-theme="cosmic"]) .cosmic-kundali-card {
  display: none !important;
}

/* Cosmic Kundali Card Visual in Right Column */
html[data-theme="cosmic"] .cosmic-kundali-card {
  display: flex !important;
  position: relative !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 460px !important;
  margin: 1rem auto 0 !important;
  padding: 20px 10px 40px !important;
  user-select: none !important;
  overflow: visible !important;
}

.cosmic-chart-glow-orb {
  position: absolute;
  inset: -20px;
  border-radius: 9999px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(200, 164, 106, 0.22), transparent 70%);
  filter: blur(16px);
  pointer-events: none;
}

.cosmic-chart-diamond-wrap {
  position: relative;
  width: 360px;
  height: 360px;
  animation: floatSlow 6.5s ease-in-out infinite;
}

@media (min-width: 640px) {
  .cosmic-chart-diamond-wrap {
    width: 400px;
    height: 400px;
  }
}

.cosmic-chart-diamond {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: #fffbf5;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  border: 1px solid rgba(255, 255, 255, 0.6);
  overflow: hidden;
  transform: rotate(-1.6deg);
}

.chart-noise-texture {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.cosmic-chart-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cosmic-chart-center-seal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 34%;
  height: 34%;
  border-radius: 14px;
  background: #fffbf5;
  border: 1px solid rgba(200, 164, 106, 0.25);
  box-shadow: 0 0 0 1px rgba(200, 164, 106, 0.08) inset, 0 8px 24px rgba(16, 16, 38, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.seal-inner {
  transform: rotate(-45deg);
  text-align: center;
}

.seal-brand {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #b68d4a;
}

.seal-sub {
  font-size: 13px;
  font-weight: 500;
  color: #101026;
  margin-top: 2px;
}

.seal-gold-divider {
  margin: 5px auto 0;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c8a46a, transparent);
  opacity: 0.6;
}

/* Planetary Badges */
.cosmic-planet-badge {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.house-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(16, 16, 38, 0.35);
}

.house-num.accent {
  color: #b68d4a;
}

.planet-pill {
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(16, 16, 38, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  font-size: 11px;
  font-weight: 600;
  color: #101026;
  white-space: nowrap;
}

.planet-pill.accent {
  background: #101026;
  color: #fffbf5;
  border-color: #101026;
  box-shadow: 0 4px 14px rgba(16, 16, 38, 0.25);
}

.planet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.planet-dot.bg-gold {
  background: #c8a46a;
}

.planet-dot.bg-saffron {
  background: #ff8a3d;
}

.planet-name {
  font-size: 11px;
  font-weight: 600;
}

.planet-sign {
  font-size: 10px;
  opacity: 0.75;
}

/* Corner Orbs */
.corner-orb {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(200, 164, 106, 0.7);
}
.corner-tl { top: 14px; left: 14px; }
.corner-tr { top: 14px; right: 14px; }
.corner-bl { bottom: 14px; left: 14px; }
.corner-br { bottom: 14px; right: 14px; }

/* Floating Cards */
.cosmic-float-card {
  position: absolute;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 20;
}

.float-card-lagna {
  top: -12px;
  right: -10px;
  width: 196px;
  background: #fffbf5;
  border: 1px solid #ffffff;
  box-shadow: 0 18px 40px rgba(16, 16, 38, 0.2), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  padding: 14px;
  transform: rotate(2deg);
  animation: floatSlow2 6.5s ease-in-out infinite;
  color: #101026;
}

.float-card-lagna:hover {
  transform: rotate(0deg) scale(1.02);
}

.float-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.float-card-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.float-card-glyph {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #101026;
  color: #fffbf5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.float-card-glyph.moon-glyph {
  background: #fffbf5;
  color: #101026;
}

.float-card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(16, 16, 38, 0.6);
}

.float-badge-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(200, 164, 106, 0.18);
  color: #b68d4a;
}

.float-card-headline {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #101026;
  line-height: 1.25;
}

.float-card-sub {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(16, 16, 38, 0.6);
  display: flex;
  align-items: center;
  gap: 5px;
}

.sub-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c8a46a;
}

.float-progress-track {
  margin-top: 10px;
  height: 6px;
  width: 100%;
  border-radius: 999px;
  background: rgba(16, 16, 38, 0.08);
  overflow: hidden;
}

.float-progress-bar {
  height: 100%;
  width: 78%;
  border-radius: 999px;
  background: linear-gradient(90deg, #c8a46a, #e9c78e);
}

/* Moon Sign Card */
.float-card-moon {
  bottom: -20px;
  left: -12px;
  width: 196px;
  background: rgba(16, 16, 38, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 251, 245, 0.12);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  padding: 14px;
  transform: rotate(-2deg);
  animation: floatSlow3 7s ease-in-out infinite;
  color: #fffbf5;
}

.float-card-moon:hover {
  transform: rotate(0deg) scale(1.02);
}

.float-card-moon .float-card-tag {
  color: rgba(255, 251, 245, 0.45);
}

.float-card-title-val {
  font-size: 13px;
  font-weight: 600;
  color: #fffbf5;
}

.float-card-grid-3 {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mini-chip {
  padding: 5px 4px;
  border-radius: 8px;
  background: rgba(255, 251, 245, 0.06);
  border: 1px solid rgba(255, 251, 245, 0.08);
  font-size: 10px;
  text-align: center;
  color: rgba(255, 251, 245, 0.65);
  line-height: 1.2;
}

.mini-chip strong {
  display: block;
  color: #fffbf5;
  font-weight: 600;
}

.mini-chip.gold-chip {
  background: rgba(200, 164, 106, 0.2);
  border-color: rgba(200, 164, 106, 0.3);
  color: #e9c78e;
}

.mini-chip.gold-chip strong {
  color: #e9c78e;
}

/* Dasha Chip */
.float-card-dasha {
  top: 46%;
  right: -16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #101026;
  border: 1px solid rgba(255, 251, 245, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  transform: rotate(3deg);
  animation: floatSlow2 5.5s ease-in-out infinite;
  color: #fffbf5;
}

.float-card-dasha:hover {
  transform: rotate(0deg);
}

.dasha-glow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff8a3d;
  box-shadow: 0 0 10px #ff8a3d;
}

.dasha-label {
  font-size: 11px;
  color: rgba(255, 251, 245, 0.7);
}

.dasha-val {
  font-size: 11px;
  font-weight: 600;
  color: #fffbf5;
}

.dasha-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.08);
  color: rgba(255, 251, 245, 0.6);
}

/* Dashed Orbital Arcs */
.cosmic-orbital-arcs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -5;
}

/* Bottom Verification Strip */
html:not([data-theme="cosmic"]) .cosmic-trust-banner {
  display: none !important;
}

html[data-theme="cosmic"] .cosmic-trust-banner {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 3rem auto 1rem;
  max-width: 840px;
  padding: 10px 24px;
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.04);
  border: 1px solid rgba(255, 251, 245, 0.08);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255, 251, 245, 0.45);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cosmic-trust-banner .verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #34d399;
}

.cosmic-trust-banner .verified-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.cosmic-trust-banner .banner-divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 251, 245, 0.12);
}

.cosmic-trust-banner .seekers-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e9c78e;
}
/* Shared Ganesha hero language for the main web landing page. */
html[data-theme="cosmic"] .cosmic-kundali-card {
  min-height: 478px !important;
  padding: 0 !important;
  overflow: visible !important;
}
html[data-theme="cosmic"] .cosmic-kundali-card .cosmic-chart-diamond-wrap {
  display: none !important;
}
html[data-theme="cosmic"] .web-ganesha-hero {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  min-height: 478px;
  pointer-events: none;
  isolation: isolate;
}
html[data-theme="cosmic"] .web-ganesha-halo {
  position: absolute;
  width: min(440px, 92%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(55, 94, 128, .32), rgba(200, 164, 106, .08) 42%, transparent 72%);
  filter: blur(12px);
  opacity: .95;
  z-index: -1;
}
html[data-theme="cosmic"] .web-ganesha-image {
  width: min(455px, 94%);
  height: auto;
  max-height: 445px;
  object-fit: contain;
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .42));
  animation: floatSlow 7.2s ease-in-out infinite;
}
html[data-theme="cosmic"] .web-ganesha-badge {
  position: absolute;
  top: 24px;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  transform: translateX(-50%);
  border: 1px solid rgba(200, 164, 106, .34);
  border-radius: 999px;
  color: #edc77e;
  background: rgba(16, 16, 38, .76);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}
html[data-theme="cosmic"] .web-ganesha-badge span { color: #ffd98d; }
html[data-theme="cosmic"] .web-ganesha-caption {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  z-index: 2;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}
html[data-theme="cosmic"] .web-ganesha-caption span {
  display: block;
  margin-bottom: 5px;
  color: #d9bd7b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
}
html[data-theme="cosmic"] .web-ganesha-caption strong {
  color: #fffaf1;
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(22px, 2.1vw, 31px);
  font-weight: 500;
  line-height: 1.02;
}
@media (max-width: 1023px) {
  html[data-theme="cosmic"] .cosmic-kundali-card,
  html[data-theme="cosmic"] .web-ganesha-hero { min-height: 410px !important; }
  html[data-theme="cosmic"] .web-ganesha-image { width: min(360px, 86vw); max-height: 375px; }
  html[data-theme="cosmic"] .web-ganesha-badge { top: 18px; }
  html[data-theme="cosmic"] .web-ganesha-caption { bottom: 14px; }
}

/* The alabaster homepage uses the same hero composition with a lighter card. */
@media (min-width: 1024px) {
  html:not([data-theme="cosmic"]) .landing-first-screen.cosmic-hero-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.95fr) !important;
    gap: 28px !important;
    align-items: stretch !important;
  }
}
html:not([data-theme="cosmic"]) .cosmic-kundali-card {
  display: flex !important;
  position: relative !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 24px 22px 24px !important;
  overflow: hidden !important;
  border: 1px solid rgba(176, 132, 73, .28) !important;
  border-radius: 24px !important;
  background: radial-gradient(circle at 50% 36%, rgba(245, 228, 193, .75), rgba(255, 252, 245, .95) 58%, rgba(247, 240, 225, .98)) !important;
  box-shadow: 0 16px 45px rgba(45, 55, 43, .07), 0 2px 6px rgba(0, 0, 0, 0.02) !important;
  box-sizing: border-box !important;
}
html:not([data-theme="cosmic"]) .cosmic-kundali-card .cosmic-chart-diamond-wrap { display: none !important; }
html:not([data-theme="cosmic"]) .cosmic-kundali-card .cosmic-chart-glow-orb { display: none !important; }
html:not([data-theme="cosmic"]) .web-ganesha-hero {
  position: relative !important;
  inset: auto !important;
  z-index: 5 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  pointer-events: none !important;
  isolation: isolate !important;
}
html:not([data-theme="cosmic"]) .web-ganesha-badge {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 14px !important;
  border: 1px solid rgba(176, 132, 73, .35) !important;
  border-radius: 999px !important;
  color: #8b642e !important;
  background: rgba(255, 252, 245, .92) !important;
  box-shadow: 0 4px 14px rgba(91, 67, 31, .08) !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: .16em !important;
  margin-bottom: 8px !important;
}
html:not([data-theme="cosmic"]) .web-ganesha-badge span { color: #a8792b !important; }
html:not([data-theme="cosmic"]) .web-ganesha-art-wrap {
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 auto !important;
  margin: 6px 0 !important;
}
html:not([data-theme="cosmic"]) .web-ganesha-halo {
  position: absolute !important;
  width: min(340px, 82%) !important;
  aspect-ratio: 1 !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(227, 193, 132, .38), rgba(245, 228, 193, .22) 50%, transparent 72%) !important;
  filter: blur(14px) !important;
  z-index: 1 !important;
}
html:not([data-theme="cosmic"]) .web-ganesha-image {
  position: relative !important;
  z-index: 2 !important;
  width: min(330px, 80%) !important;
  height: auto !important;
  max-height: 310px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 18px 24px rgba(107, 75, 24, .18)) !important;
  animation: floatSlow 7.2s ease-in-out infinite !important;
}
html:not([data-theme="cosmic"]) .web-ganesha-caption {
  position: relative !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 2 !important;
  text-align: center !important;
  margin-top: 6px !important;
}
html:not([data-theme="cosmic"]) .web-ganesha-eyebrow,
html:not([data-theme="cosmic"]) .web-ganesha-caption span {
  display: block !important;
  margin-bottom: 4px !important;
  color: #a8792b !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  letter-spacing: .22em !important;
}
html:not([data-theme="cosmic"]) .web-ganesha-title,
html:not([data-theme="cosmic"]) .web-ganesha-caption strong {
  color: #0c241c !important;
  font-family: 'Newsreader', Georgia, serif !important;
  font-size: clamp(22px, 2vw, 28px) !important;
  font-weight: 500 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.01em !important;
}
@media (max-width: 1023px) {
  html:not([data-theme="cosmic"]) .cosmic-kundali-card {
    min-height: 370px !important;
    max-height: 420px !important;
    padding: 22px 18px 20px !important;
    order: 2 !important;
  }
  html:not([data-theme="cosmic"]) .reading-starter {
    order: 1 !important;
  }
  html:not([data-theme="cosmic"]) .web-ganesha-image {
    width: min(260px, 72vw) !important;
    max-height: 240px !important;
  }
  html:not([data-theme="cosmic"]) .web-ganesha-title,
  html:not([data-theme="cosmic"]) .web-ganesha-caption strong {
    font-size: 22px !important;
  }
}

/* Keep the Ganesha artwork as the focal point. Insight data remains available below the hero. */
html[data-theme="cosmic"] .cosmic-kundali-card,
html:not([data-theme="cosmic"]) .cosmic-kundali-card {
  overflow: hidden !important;
}
html[data-theme="cosmic"] .cosmic-kundali-card .cosmic-float-card,
html:not([data-theme="cosmic"]) .cosmic-kundali-card .cosmic-float-card,
html[data-theme="cosmic"] .cosmic-kundali-card .cosmic-orbital-arcs,
html:not([data-theme="cosmic"]) .cosmic-kundali-card .cosmic-orbital-arcs {
  display: none !important;
}
