/* ==========================================================================
   AstroNames – Custom Styles
   Color scheme: 70% warm white/cream, 20% saffron/purple highlights, 10% buttons
   ========================================================================== */

:root {
  /* 70% – background / surface colours */
  --bg-page: #fffbf5;
  --bg-card: rgba(255, 255, 255, 0.07);   /* dark-mode card surface */
  --bg-body: rgba(255, 255, 255, 0.04);   /* dark-mode subtler surface */
  --bg-subtle: #fff3e0;
  --bg-input: rgba(255, 255, 255, 0.06);  /* dark-mode input fill */
  --border-color: rgba(255, 255, 255, 0.12); /* dark-mode border */
  --accent: #c49aff;                      /* dark-mode accent alias */

  /* 20% – highlight / accent colours */
  --accent-primary: #e67e22;
  /* saffron */
  --accent-secondary: #8e44ad;
  /* deep violet */
  --accent-light: #fdebd0;
  /* light saffron wash */
  --accent-border: #f0a500;
  /* golden border */
  --text-accent: #c0392b;
  /* deep red for special labels */

  /* 10% – interactive / button colours */
  --btn-primary: #e67e22;
  --btn-primary-hover: #cf6d17;
  --btn-secondary: #8e44ad;
  --btn-secondary-hover: #7d3c98;
  --btn-text: #ffffff;

  /* Typography */
  --text-dark: rgba(255, 255, 255, 0.95);
  --text-body: rgba(255, 255, 255, 0.85);
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-white: #ffffff;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .07);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, .10);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, .14);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #0a0a1a;
  color: var(--text-body);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   3D Solar System Background Canvas
   -------------------------------------------------------------------------- */
#solar-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* All content sits above the canvas */
.site-header,
.tabs-wrapper,
.main-container,
.site-footer {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  background: linear-gradient(-45deg, #7d1f8d, #e67e22, #9b59b6, #f39c12);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: var(--text-white);
  padding: 2rem 1rem 1.6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: "🕉";
  position: absolute;
  font-size: 12rem;
  opacity: .05;
  top: -2rem;
  left: -2rem;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.site-header h1.header-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 6vw, 2.8rem) !important;
  font-weight: 700;
  margin: 0 0 .5rem;
  letter-spacing: .05em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  color: #ffffff !important;
  line-height: 1.2;
  display: block;
}

.site-header .header-subtitle {
  font-size: clamp(.8rem, 2.5vw, 1.05rem);
  opacity: .95;
  margin: 0;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* --------------------------------------------------------------------------
   Tabs
   -------------------------------------------------------------------------- */
.tabs-wrapper {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-tabs-custom {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: center;
  gap: 0;
}

.nav-tabs-custom::-webkit-scrollbar {
  display: none;
}

.nav-tabs-custom li {
  flex: 1;
  min-width: 0;
}

.nav-tabs-custom a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .7rem 1rem;
  width: 100%;
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  border-radius: 8px 8px 0 0;
  transition: color .2s, border-color .2s, background .2s;
  box-sizing: border-box;
}

.nav-tabs-custom .tab-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  opacity: 0.45;
  transition: opacity .2s;
}

.nav-tabs-custom .tab-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .06rem;
  min-width: 0;
}

.nav-tabs-custom .tab-title {
  font-weight: 600;
  font-size: .87rem;
  white-space: nowrap;
  letter-spacing: .01em;
  line-height: 1.2;
}

.nav-tabs-custom .tab-sub {
  font-size: .6rem;
  font-weight: 400;
  white-space: nowrap;
  letter-spacing: .01em;
  color: rgba(255, 255, 255, 0.28);
  transition: color .2s;
  line-height: 1.3;
}

.nav-tabs-custom a:hover {
  color: var(--accent-primary);
  background: rgba(196, 154, 255, 0.09);
}

.nav-tabs-custom a:hover .tab-icon {
  opacity: 1;
}

.nav-tabs-custom a:hover .tab-sub {
  color: rgba(196, 154, 255, 0.58);
}

.nav-tabs-custom a.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
  background: rgba(196, 154, 255, 0.07);
}

.nav-tabs-custom a.active .tab-icon {
  opacity: 1;
}

.nav-tabs-custom a.active .tab-sub {
  color: rgba(196, 154, 255, 0.62);
}

/* --------------------------------------------------------------------------
   Main layout
   -------------------------------------------------------------------------- */
.main-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card-astro {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform .3s ease, box-shadow .3s ease;
}

.card-astro:hover {
  box-shadow: 0 15px 40px rgba(142, 68, 173, 0.2);
  transform: translateY(-4px);
}

.card-astro .card-title {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #c49aff;
  margin: 0 0 1.2rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* --------------------------------------------------------------------------
   Form controls
   -------------------------------------------------------------------------- */
.form-section {
  margin-bottom: 2rem;
}

.form-section h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  color: var(--text-dark);
  margin: 0 0 1.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: .03em;
  text-transform: uppercase;
}

.form-control {
  padding: .85rem 1.2rem;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  font-family: 'Poppins', sans-serif;
  font-size: .95rem;
  color: #ffffff;
  transition: border-color .3s ease, box-shadow .3s ease;
  outline: none;
  width: 100%;
}

/* Select elements need explicit bg+color so browser doesn't override */
select.form-control {
  background-color: rgba(18, 8, 38, 0.95);
  color: #e8d5ff;
}
select.form-control option {
  background-color: #160a2c;
  color: #e8d5ff;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(230, 126, 34, .25);
}

/* Custom Native Picker Overlay Details */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .form-control {
  padding-right: 48px;
  /* Room for icon */
}

.input-with-icon .picker-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.3rem;
  padding: 0;
  margin: 0;
  cursor: pointer;
  z-index: 10;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  /* Let clicks pass through to the native picker */
}

.input-with-icon .native-picker-overlay {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  opacity: 0;
  z-index: 20;
  cursor: pointer;
  padding: 0;
  margin: 0;
  border: none;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Autocomplete dropdown
   -------------------------------------------------------------------------- */
.autocomplete-wrap {
  position: relative;
}

.suggestions-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: rgba(20, 20, 40, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 200;
  max-height: 220px;
  overflow-y: auto;
  display: none;
}

.suggestions-dropdown.open {
  display: block;
}

.suggestion-item {
  padding: .65rem 1rem;
  font-size: .88rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background .15s;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: rgba(230, 126, 34, 0.2);
}

/* Small resolved-coordinates hint shown below the Place of Birth field */
.coords-display {
  font-size: .78rem;
  color: rgba(255, 255, 255, 0.5);
  min-height: 1.1em;
  letter-spacing: .01em;
}

.coords-display:not(:empty) {
  margin-top: .3rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 2.2rem;
  border-radius: 50px;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  transition: all .3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
}

.btn:active {
  transform: translateY(2px) scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--btn-primary), #f39c12);
  color: var(--btn-text);
  box-shadow: 0 8px 20px rgba(230, 126, 34, .35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f39c12, var(--btn-primary));
  box-shadow: 0 10px 25px rgba(230, 126, 34, .45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--btn-secondary), #9b59b6);
  color: var(--btn-text);
  box-shadow: 0 8px 20px rgba(142, 68, 173, .3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #9b59b6, var(--btn-secondary));
  box-shadow: 0 10px 25px rgba(142, 68, 173, .4);
  transform: translateY(-2px);
}

/* Larger zodiac sign icons in the All 12 Rashis tab */
.rashi-icon {
  font-size: 1.1rem;
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* --------------------------------------------------------------------------
   Loading spinner
   -------------------------------------------------------------------------- */
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}

.btn.loading .spinner {
  display: inline-block;
}

.btn.loading .btn-text {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   Result – birth letter highlight
   -------------------------------------------------------------------------- */
.result-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: radial-gradient(ellipse at center, rgba(142, 68, 173, 0.15) 0%, rgba(230, 126, 34, 0.08) 100%);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  box-shadow: inset 0 0 30px rgba(142, 68, 173, 0.1);
  border: 1px solid rgba(142, 68, 173, 0.2);
}

.birth-letter-big {
  font-family: 'Cinzel', serif;
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 700;
  color: #c49aff;
  line-height: 1;
  margin: 0;
  text-shadow: 0 0 20px rgba(142, 68, 173, 0.4);
}

.birth-letter-transliterated {
  font-size: 1.3rem;
  color: #ffaa66;
  margin: .3rem 0 0;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Result meta grid  (nakshatra / rashi)
   -------------------------------------------------------------------------- */
.result-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .9rem;
  margin-bottom: 1.4rem;
}

.meta-chip {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: .9rem 1rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-chip .chip-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: .25rem;
}

.meta-chip .chip-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #c49aff;
}

.meta-chip .chip-sub {
  font-size: .8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: .15rem;
}

/* --------------------------------------------------------------------------
   Name cards grid
   -------------------------------------------------------------------------- */
.names-section-title {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.ai-badge {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: 99px;
}

.names-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: .85rem;
}

.name-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all .3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.name-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0;
  transition: opacity .3s ease;
}

.name-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.name-card:hover::before {
  opacity: 1;
}

.name-card .name-text {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #c49aff;
  margin: 0 0 .3rem;
}

.name-card .name-meaning {
  font-size: .8rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
  margin: 0;
}

.name-card .name-meta {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}

.tag {
  font-size: .75rem;
  font-weight: 600;
  padding: .15rem .5rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.tag-gender-m {
  background: rgba(59, 130, 246, 0.2);
  color: #93bbff;
}

.tag-gender-f {
  background: rgba(236, 72, 153, 0.2);
  color: #f9a8d4;
}

.tag-gender-u {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

.tag-origin {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

/* --------------------------------------------------------------------------
   Zodiac result card
   -------------------------------------------------------------------------- */
.zodiac-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.zodiac-symbol {
  font-size: clamp(3rem, 10vw, 4.5rem);
  line-height: 1;
}

.zodiac-titles .zodiac-name {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  color: #c49aff;
  margin: 0 0 .2rem;
}

.zodiac-titles .zodiac-hindi {
  font-size: 1.15rem;
  color: #ff9966;
  font-weight: 600;
}

.zodiac-titles .zodiac-dates {
  font-size: .85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: .2rem;
}

.trait-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1rem;
}

.trait-pill {
  background: rgba(142, 68, 173, 0.15);
  color: #c49aff;
  padding: .3rem .85rem;
  border-radius: 99px;
  font-size: .82rem;
  font-weight: 600;
  border: 1px solid rgba(142, 68, 173, 0.25);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .85rem;
  margin-top: 1.2rem;
}

.info-item {
  background: rgba(255, 255, 255, 0.05);
  padding: .9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-item .info-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: .3rem;
}

.info-item .info-value {
  font-size: .95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.compatible-list {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}

.compat-badge {
  background: rgba(230, 126, 34, 0.15);
  color: #ffaa66;
  font-size: .82rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: 99px;
  border: 1px solid rgba(230, 126, 34, 0.25);
}

/* --------------------------------------------------------------------------
   Alert / error
   -------------------------------------------------------------------------- */
.alert {
  padding: .9rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-bottom: 1.2rem;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* --------------------------------------------------------------------------
   Section divider
   -------------------------------------------------------------------------- */
.section-intro {
  text-align: center;
  padding: 1rem 0.5rem 0;
}

.section-intro h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: .5rem;
}

.section-intro p {
  font-size: .93rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 560px;
  margin: 0 auto 1.8rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, .65);
  text-align: center;
  padding: 1.4rem 1rem;
  font-size: .82rem;
  letter-spacing: .03em;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Hidden utility
   -------------------------------------------------------------------------- */
.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Skeleton loader
   -------------------------------------------------------------------------- */
.skeleton {
  background: linear-gradient(90deg, #f0e8d8 25%, #fdebd0 50%, #f0e8d8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  height: 110px;
}

.skeleton-name {
  height: 90px;
}

/* --------------------------------------------------------------------------
   Responsive tweaks
   -------------------------------------------------------------------------- */
@media (max-width: 576px) {
  .main-container {
    padding: 1.2rem .75rem 3rem;
  }

  .card-astro {
    padding: 1.2rem;
  }

  .names-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .names-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .names-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Utility – responsive two-column grid (collapses to 1 col on mobile)
   -------------------------------------------------------------------------- */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   Responsive – Tablet ≤ 768px : compact tab bar (icon + title, no subtitle)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .nav-tabs-custom {
    justify-content: flex-start; /* left-align so overflow scrolls */
  }

  .nav-tabs-custom li {
    flex: 0 0 auto; /* natural width, not stretched */
  }

  .nav-tabs-custom a {
    padding: .55rem .75rem;
    gap: .35rem;
  }

  .nav-tabs-custom .tab-icon {
    width: 20px;
    height: 20px;
  }

  .nav-tabs-custom .tab-title {
    font-size: .76rem;
  }

  .nav-tabs-custom .tab-sub {
    display: none; /* hide subtitle row */
  }

  .card-astro {
    padding: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   Responsive – Mobile ≤ 480px : icon-only tab bar, tighter cards & footer
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .nav-tabs-custom a {
    padding: .5rem .62rem;
    flex-direction: column;
    gap: .1rem;
  }

  .nav-tabs-custom .tab-title {
    display: none; /* icon only */
  }

  .nav-tabs-custom .tab-icon {
    width: 22px;
    height: 22px;
    opacity: .65;
  }

  .nav-tabs-custom a.active .tab-icon,
  .nav-tabs-custom a:hover .tab-icon {
    opacity: 1;
  }

  .card-astro {
    padding: 1rem;
    border-radius: 12px;
  }

  .site-footer {
    padding: 1rem .75rem;
    font-size: .78rem;
  }

  .result-highlight {
    padding: 1.2rem;
  }

  .birth-letter-big {
    font-size: clamp(2.5rem, 12vw, 5rem);
  }
}

/* --------------------------------------------------------------------------
   Responsive – Collapse two-column grids on small screens
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .grid-2col {
    grid-template-columns: 1fr;
  }

  /* Prev/next nakshatra nav: stack on very small screens */
  .prev-next-nav {
    flex-direction: column;
  }

  .prev-next-btn.next-btn {
    justify-content: flex-start;
    text-align: left;
  }

  /* Muhurat result info rows: stack label/value vertically */
  .muh-info-row {
    flex-direction: column;
    gap: .2rem;
  }

  /* Sound grid: allow scrolling if many sounds */
  .sound-grid {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   LIGHT THEME OVERRIDES  – plain & clean, no dynamic effects
   triggered by  data-theme="light" on <body>
   ========================================================================== */
body[data-theme="light"] {
  --text-dark: #2c3e50;
  --text-body: #4a4a4a;
  --text-muted: #7f8c8d;
  --bg-card: #ffffff;
  --bg-body: #f5f0eb;
  --bg-input: #ffffff;
  --border-color: #ebe4db;
  --accent: #8e44ad;
  background: #f5f0eb;
  color: #2c2017;
}

/* Solar system canvas – completely hidden in light mode */
body[data-theme="light"] #solar-bg {
  display: none;
}

/* Header – same gradient as dark, but static, no animation */
/* Header – same gradient as dark, but static, no animation */
body[data-theme="light"] .site-header {
  background: linear-gradient(90deg, #e67e22 0%, #a855f7 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

/* Tabs wrapper – plain white bar */
body[data-theme="light"] .tabs-wrapper {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid #e8e0d6;
  box-shadow: none;
}

body[data-theme="light"] .nav-tabs-custom a {
  color: #888078;
}

body[data-theme="light"] .nav-tabs-custom .tab-sub {
  color: #c4b8ae;
}

body[data-theme="light"] .nav-tabs-custom a:hover {
  color: #c75b00;
  background: rgba(199, 91, 0, 0.07);
}

body[data-theme="light"] .nav-tabs-custom a:hover .tab-sub {
  color: #d4845a;
}

body[data-theme="light"] .nav-tabs-custom a.active {
  color: #c75b00;
  border-bottom-color: #c75b00;
  background: rgba(199, 91, 0, 0.05);
}

body[data-theme="light"] .nav-tabs-custom a.active .tab-sub {
  color: #d4845a;
}

body[data-theme="light"] .card-astro {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid #ebe4db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body[data-theme="light"] .card-astro:hover {
  transform: none;
  /* No lifting */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  /* Slightly stronger shadow */
}

body[data-theme="light"] .card-astro .card-title {
  color: #c75b00;
}

/* Section intro */
body[data-theme="light"] .section-intro h2 {
  color: #2c2017;
}

body[data-theme="light"] .section-intro p {
  color: #6b5e52;
}

/* Form labels & inputs */
body[data-theme="light"] .form-group label {
  color: #2c2017;
}

body[data-theme="light"] .form-control {
  background: #ffffff;
  border: 1px solid #ddd5cb;
  color: #2c2017;
}
body[data-theme="light"] select.form-control {
  background-color: #ffffff;
  color: #2c2017;
}
body[data-theme="light"] select.form-control option {
  background-color: #ffffff;
  color: #2c2017;
}

body[data-theme="light"] .form-control::placeholder {
  color: #b0a89e;
}

body[data-theme="light"] .form-control:focus {
  border-color: #e08330;
  box-shadow: 0 0 0 3px rgba(224, 131, 48, .15);
}

/* Autocomplete dropdown – plain white */
body[data-theme="light"] .suggestions-dropdown {
  background: #ffffff;
  border: 1px solid #ddd5cb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-theme="light"] .suggestion-item {
  color: #2c2017;
  border-bottom-color: #f0ebe5;
}

body[data-theme="light"] .suggestion-item:hover {
  background: #faf5ef;
}

/* Coords display */
body[data-theme="light"] .coords-display {
  color: #6b5e52;
}

/* Buttons */
body[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #e08330, #e89840);
  box-shadow: 0 2px 6px rgba(224, 131, 48, .25);
}

body[data-theme="light"] .btn-primary:hover {
  background: linear-gradient(135deg, #c75b00, #e08330);
  box-shadow: 0 3px 10px rgba(199, 91, 0, .3);
  transform: none;
}

body[data-theme="light"] .btn-secondary {
  background: linear-gradient(135deg, #7b1fa2, #9c27b0);
  box-shadow: 0 2px 6px rgba(123, 31, 162, .2);
}

body[data-theme="light"] .btn-secondary:hover {
  background: linear-gradient(135deg, #6a1b9a, #7b1fa2);
  box-shadow: 0 3px 10px rgba(106, 27, 154, .3);
  transform: none;
}

/* Result highlight – plain */
body[data-theme="light"] .result-highlight {
  background: #faf5ef;
  border: 1px solid #ebe4db;
  box-shadow: none;
}

body[data-theme="light"] .birth-letter-big {
  color: #c75b00;
  text-shadow: none;
}

body[data-theme="light"] .birth-letter-transliterated {
  color: #a04800;
}

/* Meta chips */
body[data-theme="light"] .meta-chip {
  background: #faf5ef;
  border: 1px solid #ebe4db;
}

body[data-theme="light"] .meta-chip .chip-label {
  color: #6b5e52;
}

body[data-theme="light"] .meta-chip .chip-value {
  color: #c75b00;
}

body[data-theme="light"] .meta-chip .chip-sub {
  color: #8a7d72;
}

/* Name cards – plain white */
body[data-theme="light"] .names-section-title {
  color: #2c2017;
}

body[data-theme="light"] .name-card {
  background: #ffffff;
  border: 1px solid #ebe4db;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

body[data-theme="light"] .name-card::before {
  display: none;
}

body[data-theme="light"] .name-card:hover {
  transform: none;
  /* No lifting */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  /* Static shadow */
  border-color: #ddd5cb;
}

body[data-theme="light"] .name-card .name-text {
  color: #c75b00;
}

body[data-theme="light"] .name-card .name-meaning {
  color: #6b5e52;
}

/* Tags */
body[data-theme="light"] .tag-gender-m {
  background: #e8f0fe;
  color: #1a5eba;
}

body[data-theme="light"] .tag-gender-f {
  background: #fce4ec;
  color: #c2185b;
}

body[data-theme="light"] .tag-gender-u {
  background: #f0ebe5;
  color: #6b5e52;
}

body[data-theme="light"] .tag-origin {
  background: #e8f5e9;
  color: #2e7d32;
}

/* Zodiac result */
body[data-theme="light"] .zodiac-titles .zodiac-name {
  color: #c75b00;
}

body[data-theme="light"] .zodiac-titles .zodiac-hindi {
  color: #a04800;
}

body[data-theme="light"] .zodiac-titles .zodiac-dates {
  color: #8a7d72;
}

body[data-theme="light"] .trait-pill {
  background: #f3e5f5;
  color: #7b1fa2;
  border-color: #e1bee7;
}

body[data-theme="light"] .info-item {
  background: #faf5ef;
  border: 1px solid #ebe4db;
}

body[data-theme="light"] .info-item .info-label {
  color: #8a7d72;
}

body[data-theme="light"] .info-item .info-value {
  color: #2c2017;
}

body[data-theme="light"] .compat-badge {
  background: #fff3e0;
  color: #c75b00;
  border-color: #ffe0b2;
}

/* AI badge */
body[data-theme="light"] .ai-badge {
  background: linear-gradient(135deg, #7b1fa2, #ab47bc);
}

/* Alert */
body[data-theme="light"] .alert-error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

/* Skeleton – simple */
body[data-theme="light"] .skeleton {
  background: linear-gradient(90deg, #ebe4db 25%, #f5f0eb 50%, #ebe4db 75%);
  background-size: 200% 100%;
}

/* Spinner */
body[data-theme="light"] .spinner {
  border-color: rgba(199, 91, 0, .2);
  border-top-color: #c75b00;
}

/* Footer – plain */
body[data-theme="light"] .site-footer {
  background: #ebe4db;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #6b5e52;
}

body[data-theme="light"] .site-footer a {
  color: inherit;
}

/* --------------------------------------------------------------------------
   Theme Toggle Button (floating)
   -------------------------------------------------------------------------- */
.theme-toggle-wrap {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
}

.theme-toggle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: all .3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
  position: relative;
}

.theme-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}

body[data-theme="light"] .theme-toggle-btn {
  background: #ffffff;
  border-color: #ddd5cb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Default theme settings popover */
.theme-settings-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  transition: all .3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}

.theme-settings-btn:hover {
  transform: scale(1.1);
}

body[data-theme="light"] .theme-settings-btn {
  background: #ffffff;
  border-color: #ddd5cb;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Popover */
.theme-popover {
  position: absolute;
  top: 90px;
  right: 0;
  background: rgba(20, 20, 40, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  min-width: 200px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
  display: none;
  animation: popIn .2s ease;
}

.theme-popover.open {
  display: block;
}

body[data-theme="light"] .theme-popover {
  background: #ffffff;
  border: 1px solid #ddd5cb;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.theme-popover-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .5);
  margin-bottom: .7rem;
}

body[data-theme="light"] .theme-popover-title {
  color: #8d6e63;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .6rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
  font-size: .88rem;
  color: rgba(255, 255, 255, .8);
}

body[data-theme="light"] .theme-option {
  color: #3e2723;
}

.theme-option:hover {
  background: rgba(255, 255, 255, .08);
}

body[data-theme="light"] .theme-option:hover {
  background: rgba(255, 224, 178, .4);
}

.theme-option.selected {
  background: rgba(230, 126, 34, .15);
  color: #ffaa66;
  font-weight: 600;
}

body[data-theme="light"] .theme-option.selected {
  background: rgba(230, 126, 34, .1);
  color: #e65100;
}

.theme-option-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.theme-option-check {
  margin-left: auto;
  font-size: .85rem;
  opacity: 0;
}

.theme-option.selected .theme-option-check {
  opacity: 1;
}

/* Responsive – keep toggle visible on small screens */
@media (max-width: 576px) {
  .theme-toggle-btn {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }

  .theme-settings-btn {
    width: 28px;
    height: 28px;
    font-size: .7rem;
  }

  .theme-popover {
    min-width: 180px;
    right: 0;
  }
}

/* --------------------------------------------------------------------------
   FAQ Section
   -------------------------------------------------------------------------- */
.faq-item {
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}
.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.faq-summary {
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: #c49aff;
  font-family: 'Cinzel', serif;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-summary::-webkit-details-marker {
  display: none;
}
.faq-icon {
  font-size: 1.4rem;
  transition: transform 0.3s;
  color: var(--accent-primary);
}
.faq-item[open] .faq-icon {
  transform: rotate(90deg);
}
.faq-content {
  margin-top: 1.2rem;
  line-height: 1.9;
  color: var(--text-body);
  font-size: 1rem;
}
.faq-content h3 {
  color: var(--accent-primary);
  margin-top: 1.5rem;
  font-family: 'Cinzel', serif;
}

/* Light Theme Overrides for FAQ */
body[data-theme="light"] .faq-item {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid #ebe4db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
body[data-theme="light"] .faq-summary {
  color: #c75b00;
}
body[data-theme="light"] .faq-content {
  color: #4a4a4a;
}

/* ── Collapsible FAQ Section Outer Wrapper ───────────────────────────────── */
.faq-section-outer {
  border-radius: 12px;
  overflow: hidden;
}
.faq-section-toggle {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(196, 154, 255, 0.07);
  border: 1px solid rgba(196, 154, 255, 0.2);
  border-radius: 12px;
  transition: background .25s, border-color .25s;
  user-select: none;
}
.faq-section-toggle::-webkit-details-marker { display: none; }
.faq-section-toggle::marker { display: none; }
.faq-section-toggle:hover {
  background: rgba(196, 154, 255, 0.14);
  border-color: rgba(196, 154, 255, 0.38);
}
.faq-section-outer[open] > .faq-section-toggle {
  border-radius: 12px 12px 0 0;
  border-bottom-color: rgba(196, 154, 255, 0.1);
}
.faq-section-toggle-heading {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #c49aff;
  line-height: 1.35;
}
.faq-section-toggle-icon {
  font-size: 1.4rem;
  color: var(--accent-primary);
  transition: transform .3s ease;
  flex-shrink: 0;
}
.faq-section-outer[open] .faq-section-toggle-icon {
  transform: rotate(90deg);
}
.faq-section-body {
  padding: 1.5rem 0 0;
}

/* Light theme overrides for outer FAQ toggle */
body[data-theme="light"] .faq-section-toggle {
  background: #f7f1eb;
  border-color: #ddd0c5;
}
body[data-theme="light"] .faq-section-toggle:hover {
  background: #f0e6d8;
  border-color: #c49a7f;
}
body[data-theme="light"] .faq-section-toggle-heading {
  color: #8e44ad;
}

/* ── Chaldean Numerology Badge ───────────────────────────────────────────── */
.chaldean-badge {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: .75rem;
  padding: .45rem .85rem;
  background: rgba(196, 154, 255, 0.07);
  border: 1px solid rgba(196, 154, 255, 0.18);
  border-radius: 8px;
  font-size: .76rem;
}
.chaldean-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  background: linear-gradient(135deg, #c49aff 0%, #e67e22 100%);
  border-radius: 50%;
  font-weight: 700;
  font-size: .82rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(196, 154, 255, 0.35);
}
.chaldean-info {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .75rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.chaldean-label {
  font-size: .68rem;
  opacity: .65;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-right: .15rem;
}
body[data-theme="light"] .chaldean-badge {
  background: #f7f1eb;
  border-color: #ddd0c5;
}
body[data-theme="light"] .chaldean-info {
  color: #666;
}

/* ── Favorites / Shortlist ───────────────────────────────────────────────── */

/* Heart button on name cards */
.name-card    { position: relative; }
.name-card-rf { position: relative; }
.nc-name-card { position: relative; }

.fav-btn {
  position: absolute;
  top: .6rem;
  right: .6rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  color: rgba(255,255,255,0.25);
  transition: color .2s, transform .15s;
  padding: .25rem;
  border-radius: 50%;
  z-index: 1;
}
.fav-btn:hover { color: #e74c3c; transform: scale(1.2); }
.fav-btn.faved { color: #e74c3c; }
body[data-theme="light"] .fav-btn { color: rgba(0,0,0,0.18); }
body[data-theme="light"] .fav-btn:hover,
body[data-theme="light"] .fav-btn.faved { color: #c0392b; }

/* In action-bar rows (name_calculator page), override absolute positioning */
.nc-card-actions .fav-btn {
  position: static;
  font-size: .82rem;
  border-radius: 6px;
  padding: .3rem .65rem;
}
.nc-card-actions .fav-btn.faved { color: #e74c3c; }

/* ── Floating shortlist button ── */
#fav-floater {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  z-index: 9000;
}
.fav-floater-btn {
  position: relative;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  color: #fff;
  box-shadow: 0 4px 20px rgba(231,76,60,0.5);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fav-floater-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 26px rgba(231,76,60,0.65);
}
.fav-count-badge {
  position: absolute;
  top: -.3rem;
  right: -.3rem;
  min-width: 1.3rem;
  height: 1.3rem;
  background: #fff;
  color: #c0392b;
  border-radius: 50%;
  font-size: .64rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 .2rem;
  box-shadow: 0 1px 6px rgba(0,0,0,0.25);
  line-height: 1;
}

/* ── Shortlist drawer ── */
.fav-drawer {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: min(340px, calc(100vw - 2rem));
  max-height: 70vh;
  background: var(--bg-card, #1a1a2e);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 8999;
}
.fav-drawer.open { display: flex; }
.fav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem .8rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.fav-drawer-title {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: .95rem;
  font-weight: 700;
  color: #c49aff;
}
.fav-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-dim, rgba(255,255,255,0.4));
  padding: .25rem .4rem;
  border-radius: 6px;
  transition: background .2s;
  line-height: 1;
}
.fav-close-btn:hover { background: rgba(255,255,255,0.08); }
.fav-panel {
  overflow-y: auto;
  padding: .75rem 1rem 1rem;
  flex: 1;
}
.fav-empty {
  color: var(--text-dim, rgba(255,255,255,0.45));
  text-align: center;
  padding: 1.5rem 0;
  font-size: .88rem;
  line-height: 1.9;
}
.fav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.fav-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .65rem .8rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
}
.fav-item-main { flex: 1; min-width: 0; }
.fav-item-hindi {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: #c49aff;
  line-height: 1.3;
}
.fav-item-name {
  display: block;
  font-size: .78rem;
  color: var(--text-dim, rgba(255,255,255,0.5));
  margin-top: .1rem;
}
.fav-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .2rem;
  flex-shrink: 0;
}
.fav-item-meaning {
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .67rem;
  color: var(--text-dim, rgba(255,255,255,0.4));
}
.fav-item-gender { font-size: .75rem; color: var(--text-dim, rgba(255,255,255,0.4)); }
.fav-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.25);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 .1rem;
  transition: color .2s;
  flex-shrink: 0;
  align-self: center;
}
.fav-remove-btn:hover { color: #e74c3c; }
.fav-footer-btns {
  display: flex;
  gap: .5rem;
  margin-top: .85rem;
}
.fav-clear-all,
.fav-share-wa {
  flex: 1;
  padding: .55rem .4rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 600;
  transition: background .2s;
  text-align: center;
}
.fav-clear-all {
  background: rgba(231,76,60,0.08);
  border: 1px solid rgba(231,76,60,0.28);
  color: #e74c3c;
}
.fav-clear-all:hover { background: rgba(231,76,60,0.18); }
.fav-share-wa {
  background: rgba(142,68,173,0.12);
  border: 1px solid rgba(142,68,173,0.3);
  color: #c49aff;
}
.fav-share-wa:hover { background: rgba(142,68,173,0.22); }

/* Light theme overrides */
body[data-theme="light"] .fav-share-wa {
  background: rgba(142,68,173,0.08);
  border-color: rgba(142,68,173,0.25);
  color: #7d3c98;
}
body[data-theme="light"] .fav-share-wa:hover { background: rgba(142,68,173,0.14); }

/* ── Social Share Picker Popup (used on all pages) ────────────────────── */
.astro-share-popup {
  position: fixed;
  z-index: 99999;
  background: #1a0c30;
  border: 1px solid rgba(196,154,255,0.3);
  border-radius: 16px;
  padding: .8rem .85rem .9rem;
  box-shadow: 0 12px 40px rgba(0,0,0,.65);
  min-width: 230px;
  animation: astro-pop-in .18s cubic-bezier(.34,1.56,.64,1);
}
@keyframes astro-pop-in {
  from { opacity:0; transform:scale(.88) translateY(8px); }
  to   { opacity:1; transform:scale(1)   translateY(0);   }
}
.astro-share-popup-title {
  font-size: .6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: .08em;
  text-align: center;
  margin-bottom: .6rem;
}
.astro-share-popup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .38rem;
}
.astro-sp-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .18rem;
  padding: .55rem .25rem .45rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  cursor: pointer;
  transition: background .14s, transform .12s;
  color: rgba(255,255,255,0.85);
}
.astro-sp-btn:hover { background: rgba(255,255,255,0.14); transform: translateY(-1px); }
.astro-sp-btn:active { transform: translateY(0); }
.astro-sp-icon { font-size: 1.25rem; line-height: 1; display: block; }
.astro-sp-name {
  font-size: .56rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}
/* Coloured tints per platform */
.astro-sp-btn[data-pid="wa"]  { border-color: rgba(37,211,102,0.2);  }
.astro-sp-btn[data-pid="wa"]:hover  { background: rgba(37,211,102,0.14);  }
.astro-sp-btn[data-pid="tw"]  { border-color: rgba(29,161,242,0.2);  }
.astro-sp-btn[data-pid="tw"]:hover  { background: rgba(29,161,242,0.14);  }
.astro-sp-btn[data-pid="fb"]  { border-color: rgba(66,103,178,0.2);  }
.astro-sp-btn[data-pid="fb"]:hover  { background: rgba(66,103,178,0.14);  }
.astro-sp-btn[data-pid="ig"]  { border-color: rgba(225,48,108,0.2);  }
.astro-sp-btn[data-pid="ig"]:hover  { background: rgba(225,48,108,0.14);  }
.astro-sp-btn[data-pid="tg"]  { border-color: rgba(0,136,204,0.2);   }
.astro-sp-btn[data-pid="tg"]:hover  { background: rgba(0,136,204,0.14);   }
.astro-sp-btn[data-pid="li"]  { border-color: rgba(0,119,181,0.2);   }
.astro-sp-btn[data-pid="li"]:hover  { background: rgba(0,119,181,0.14);   }

/* Light theme */
body[data-theme="light"] .astro-share-popup {
  background: #fff;
  border-color: rgba(142,68,173,0.18);
  box-shadow: 0 10px 36px rgba(0,0,0,.14);
}
body[data-theme="light"] .astro-share-popup-title { color: rgba(0,0,0,0.35); }
body[data-theme="light"] .astro-sp-btn {
  background: #f5f0fa;
  border-color: rgba(142,68,173,0.12);
  color: #2c2017;
}
body[data-theme="light"] .astro-sp-btn:hover { background: #ede5f5; }
body[data-theme="light"] .astro-sp-name { color: rgba(0,0,0,0.45); }

/* Light theme overrides for shortlist */
body[data-theme="light"] .fav-drawer {
  background: #fff;
  border-color: #e0d6c8;
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}
body[data-theme="light"] .fav-drawer-header { border-bottom-color: #ebe4db; }
body[data-theme="light"] .fav-drawer-title  { color: #8e44ad; }
body[data-theme="light"] .fav-close-btn     { color: #888; }
body[data-theme="light"] .fav-close-btn:hover { background: rgba(0,0,0,0.05); }
body[data-theme="light"] .fav-item          { background: #f7f1eb; border-color: #ebe4db; }
body[data-theme="light"] .fav-item-hindi    { color: #8e44ad; }
body[data-theme="light"] .fav-item-name,
body[data-theme="light"] .fav-item-meaning,
body[data-theme="light"] .fav-item-gender   { color: #888; }
body[data-theme="light"] .fav-remove-btn    { color: rgba(0,0,0,0.2); }
body[data-theme="light"] .fav-remove-btn:hover { color: #c0392b; }
body[data-theme="light"] .fav-empty         { color: #888; }

/* --------------------------------------------------------------------------
   Geo Button
   -------------------------------------------------------------------------- */
.geo-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .55rem;
  padding: .32rem .85rem;
  border: 1px solid rgba(230,126,34,0.35);
  border-radius: 20px;
  background: transparent;
  cursor: pointer;
  font-size: .78rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: #e67e22;
  transition: all .2s;
}
.geo-btn:hover { background: rgba(230,126,34,0.1); border-color: rgba(230,126,34,0.6); }
.geo-btn:disabled { opacity: .6; cursor: not-allowed; }
.geo-btn.loading { color: rgba(255,255,255,0.4); border-color: rgba(255,255,255,0.15); }
body[data-theme="light"] .geo-btn { color: #c05000; border-color: rgba(192,80,0,0.3); }
body[data-theme="light"] .geo-btn:hover { background: rgba(192,80,0,0.06); }
body[data-theme="light"] .geo-btn.loading { color: rgba(0,0,0,0.3); border-color: rgba(0,0,0,0.1); }

/* --------------------------------------------------------------------------
   Time Presets
   -------------------------------------------------------------------------- */
.time-presets { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; align-items: center; }
.time-preset-label { font-size: .71rem; color: rgba(255,255,255,0.38); width: 100%; margin-bottom: .1rem; }
.time-preset {
  padding: .22rem .65rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  cursor: pointer;
  font-size: .74rem;
  font-family: 'Poppins', sans-serif;
  color: rgba(255,255,255,0.5);
  transition: all .18s;
}
.time-preset:hover { border-color: rgba(142,68,173,0.5); color: #c49aff; background: rgba(142,68,173,0.1); }
.time-preset.selected { border-color: #8e44ad; color: #c49aff; background: rgba(142,68,173,0.15); font-weight: 600; }
body[data-theme="light"] .time-preset-label { color: rgba(0,0,0,0.38); }
body[data-theme="light"] .time-preset { color: rgba(30,20,10,0.5); border-color: rgba(0,0,0,0.1); }
body[data-theme="light"] .time-preset:hover { border-color: rgba(142,68,173,0.4); color: #6a2496; background: rgba(142,68,173,0.07); }
body[data-theme="light"] .time-preset.selected { border-color: #8e44ad; color: #6a2496; background: rgba(142,68,173,0.08); }

/* --------------------------------------------------------------------------
   Daily Horoscope Widget
   -------------------------------------------------------------------------- */
.horoscope-widget {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(142,68,173,0.15), rgba(230,126,34,0.1));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.5rem;
}
.horoscope-widget-title {
  font-family: 'Cinzel', serif;
  font-size: .92rem;
  font-weight: 700;
  color: #c49aff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.rashi-picker { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; }
.rashi-pick-btn {
  padding: .28rem .72rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  font-size: .76rem;
  font-family: 'Poppins', sans-serif;
  color: rgba(255,255,255,0.55);
  transition: all .18s;
}
.rashi-pick-btn:hover { border-color: rgba(196,154,255,0.4); color: #c49aff; }
.rashi-pick-btn.active { border-color: #c49aff; color: #c49aff; background: rgba(142,68,173,0.2); font-weight: 600; }
.horoscope-day-label { font-size: .72rem; color: rgba(255,255,255,0.38); text-transform: uppercase; letter-spacing: .07em; margin-bottom: .5rem; }
.horoscope-message {
  font-size: .88rem;
  line-height: 1.72;
  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  padding: .9rem 1.1rem;
  border-left: 3px solid #8e44ad;
  min-height: 72px;
  transition: opacity .3s ease;
}
.horoscope-message.fading { opacity: 0; }
body[data-theme="light"] .horoscope-widget { border-color: rgba(0,0,0,0.08); background: linear-gradient(135deg, rgba(142,68,173,0.06), rgba(230,126,34,0.05)); }
body[data-theme="light"] .horoscope-widget-title { color: #6a2496; }
body[data-theme="light"] .rashi-pick-btn { color: rgba(30,20,10,0.5); border-color: rgba(0,0,0,0.1); background: rgba(0,0,0,0.02); }
body[data-theme="light"] .rashi-pick-btn:hover { color: #6a2496; border-color: rgba(106,36,150,0.3); }
body[data-theme="light"] .rashi-pick-btn.active { border-color: #8e44ad; color: #6a2496; background: rgba(142,68,173,0.08); }
body[data-theme="light"] .horoscope-message { color: #4a4040; background: rgba(0,0,0,0.02); }
body[data-theme="light"] .horoscope-day-label { color: rgba(0,0,0,0.35); }

/* --------------------------------------------------------------------------
   DOB Drum-Roll Picker Modal
   -------------------------------------------------------------------------- */

/* Overlay backdrop */
.dob-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 9000;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
  padding: 0 1rem;
}
@media (min-width: 600px) { .dob-overlay { align-items: center; } }
.dob-overlay.dob-visible { opacity: 1; pointer-events: auto; }

/* Modal panel — slides up from bottom on mobile, scales on desktop */
.dob-mpanel {
  background: #120e2e;
  border-radius: 20px 20px 0 0;
  padding: 1.5rem 1.5rem 2.5rem;
  width: 100%; max-width: 400px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.5);
  transform: translateY(50px);
  transition: transform .28s cubic-bezier(.25,.8,.25,1);
}
@media (min-width: 600px) {
  .dob-mpanel { border-radius: 20px; transform: scale(.93); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
  .dob-overlay.dob-visible .dob-mpanel { transform: scale(1); }
}
.dob-overlay.dob-visible .dob-mpanel { transform: translateY(0); }

.dob-mtitle {
  font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 700;
  color: #c49aff; margin-bottom: .25rem;
}
.dob-mhint { font-size: .75rem; color: rgba(255,255,255,0.38); margin-bottom: 1.1rem; }

/* Drum container */
.dob-drum-shell { position: relative; height: 280px; } /* 5 × 56 px */
.dob-drums { display: flex; height: 100%; position: relative; z-index: 1; }
.dob-col { flex: 1; height: 100%; }
.dob-drum {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.dob-drum::-webkit-scrollbar { display: none; }

/* Individual item */
.dob-di {
  height: 56px;
  display: flex; align-items: center; justify-content: center;
  scroll-snap-align: center;
  font-size: .92rem; font-family: 'Poppins', sans-serif;
  color: rgba(255,255,255,0.2); user-select: none; cursor: pointer;
  transition: color .1s, font-size .1s;
}
.dob-di.dob-near { color: rgba(255,255,255,0.5); font-size: .97rem; }
.dob-di.dob-sel  { color: #fff; font-size: 1.12rem; font-weight: 700; }

/* Centre highlight band */
.dob-drum-hl {
  position: absolute; left: 4%; right: 4%;
  top: 50%; height: 56px; transform: translateY(-50%);
  background: rgba(142,68,173,0.2);
  border: 1px solid rgba(196,154,255,0.25);
  border-radius: 10px; z-index: 2; pointer-events: none;
}
/* Gradient fades hide edges */
.dob-drum-fade-t, .dob-drum-fade-b {
  position: absolute; left: 0; right: 0; height: 88px;
  z-index: 3; pointer-events: none;
}
.dob-drum-fade-t { top: 0;    background: linear-gradient(to bottom, #120e2e, transparent); }
.dob-drum-fade-b { bottom: 0; background: linear-gradient(to top,   #120e2e, transparent); }

/* Column labels below drums */
.dob-dlbls { display: flex; margin-top: .45rem; }
.dob-dlbl {
  flex: 1; text-align: center;
  font-size: .67rem; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,0.32); font-weight: 600;
}

/* Footer buttons */
.dob-mfooter { display: flex; gap: .75rem; margin-top: 1.3rem; }
.dob-mbtn {
  flex: 1; padding: .85rem; border-radius: 12px;
  font-family: 'Poppins', sans-serif; font-size: .9rem; font-weight: 600;
  cursor: pointer; border: none; transition: all .2s;
}
.dob-mcancel  { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); }
.dob-mcancel:hover  { background: rgba(255,255,255,0.14); }
.dob-mconfirm { background: linear-gradient(135deg,#8e44ad,#e67e22); color:#fff; }
.dob-mconfirm:hover { opacity:.9; transform:translateY(-1px); }

/* Light theme overrides */
body[data-theme="light"] .dob-mpanel  { background: #f4f0ff; border-color: rgba(0,0,0,0.09); }
body[data-theme="light"] .dob-mtitle  { color: #6a2496; }
body[data-theme="light"] .dob-mhint   { color: rgba(0,0,0,0.38); }
body[data-theme="light"] .dob-di      { color: rgba(0,0,0,0.18); }
body[data-theme="light"] .dob-di.dob-near { color: rgba(0,0,0,0.48); }
body[data-theme="light"] .dob-di.dob-sel  { color: #1a0a30; }
body[data-theme="light"] .dob-drum-hl { background: rgba(142,68,173,0.1); border-color: rgba(142,68,173,0.22); }
body[data-theme="light"] .dob-drum-fade-t { background: linear-gradient(to bottom,#f4f0ff,transparent); }
body[data-theme="light"] .dob-drum-fade-b { background: linear-gradient(to top,   #f4f0ff,transparent); }
body[data-theme="light"] .dob-dlbl    { color: rgba(0,0,0,0.36); }
body[data-theme="light"] .dob-mcancel { background: rgba(0,0,0,0.06); color: rgba(0,0,0,0.6); }
body[data-theme="light"] .dob-mcancel:hover { background: rgba(0,0,0,0.1); }

/* --------------------------------------------------------------------------
   DOB Combo — manual text input (left 50%) + drum-picker trigger (right 50%)
   Both sit inside one shared border/background container.
   -------------------------------------------------------------------------- */
.dob-combo {
  display: flex; align-items: stretch;
  width: 100%; min-height: 52px;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  transition: border-color .2s, box-shadow .2s;
}
.dob-combo:focus-within {
  border-color: rgba(196,154,255,0.45);
  box-shadow: 0 0 0 3px rgba(142,68,173,0.12);
}

/* Left side — plain text input */
.dob-manual {
  flex: 1; min-width: 0;
  border: none !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important;
  outline: none; padding: 0 .85rem;
  font-size: .93rem; font-family: 'Poppins', sans-serif;
  color: inherit;
}
.dob-manual::placeholder { color: rgba(255,255,255,0.28); }

/* Vertical divider between the two halves */
.dob-combo-sep {
  width: 1px; flex-shrink: 0; align-self: stretch;
  background: rgba(196,154,255,0.18);
}

/* Right side — drum-picker trigger */
.dob-trigger {
  flex: 1; display: flex; align-items: center;
  min-height: 0; padding: 0 .6rem;
  gap: 0;
  cursor: pointer; user-select: none;
  background: rgba(142,68,173,0.10);
  border: none; border-radius: 0;
  transition: background .2s;
}
.dob-trigger:hover  { background: rgba(142,68,173,0.20); }
.dob-trigger:active { background: rgba(142,68,173,0.28); }
.dob-trigger:focus-visible { outline: 2px solid #c49aff; outline-offset: -2px; }

/* Three date columns inside the trigger */
.dob-tc {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: .4rem .1rem;
}
.dob-tc + .dob-tc { border-left: 1px solid rgba(196,154,255,0.15); }

.dob-tc-val {
  font-size: 1rem; font-weight: 700;
  color: #e8d5ff; line-height: 1.1;
  font-family: 'Poppins', sans-serif;
}
.dob-tc-lbl {
  font-size: .55rem; text-transform: uppercase; letter-spacing: .06em;
  color: rgba(196,154,255,0.45); margin-top: .15rem;
}
.dob-tc-empty .dob-tc-val {
  font-size: .8rem; font-weight: 400;
  color: rgba(196,154,255,0.32);
}

/* 📅 icon pill */
.dob-ti {
  flex: 0 0 auto; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  background: rgba(142,68,173,0.22);
  border-radius: 7px; margin-left: .35rem;
  transition: background .2s;
}
.dob-trigger:hover .dob-ti { background: rgba(142,68,173,0.38); }

/* Light theme */
body[data-theme="light"] .dob-combo { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.12); }
body[data-theme="light"] .dob-combo:focus-within { border-color: rgba(142,68,173,0.4); }
body[data-theme="light"] .dob-manual { color: #1a0a30; }
body[data-theme="light"] .dob-manual::placeholder { color: rgba(0,0,0,0.28); }
body[data-theme="light"] .dob-combo-sep { background: rgba(142,68,173,0.15); }
body[data-theme="light"] .dob-trigger { background: rgba(142,68,173,0.07); }
body[data-theme="light"] .dob-trigger:hover { background: rgba(142,68,173,0.14); }
body[data-theme="light"] .dob-tc-val { color: #3d1270; }
body[data-theme="light"] .dob-tc-lbl { color: rgba(100,30,170,0.42); }
body[data-theme="light"] .dob-tc + .dob-tc { border-left-color: rgba(142,68,173,0.14); }
body[data-theme="light"] .dob-tc-empty .dob-tc-val { color: rgba(100,30,170,0.28); }
body[data-theme="light"] .dob-ti { background: rgba(142,68,173,0.14); }
body[data-theme="light"] .dob-trigger:hover .dob-ti { background: rgba(142,68,173,0.26); }

/* --------------------------------------------------------------------------
   Birth Details Field Blocks  (.bd-block system)
   Gives each field (Date / Time / Place) a visually distinct section
   with numbered step badges and color accents — no hard borders.
   -------------------------------------------------------------------------- */

/* Wrapper card gets tighter horizontal padding so blocks fill it cleanly */
.card-astro.bd-card { padding: 1.6rem 1.4rem 1.8rem; }

/* Each section block */
.bd-block {
  padding: 1rem 1.1rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.028);
  position: relative;
  transition: background .22s;
}
.bd-block:hover { background: rgba(255,255,255,0.05); }

/* Gradient rule between consecutive blocks — no visible border */
.bd-block + .bd-block {
  margin-top: .3rem;
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.07) 20%,
    rgba(255,255,255,0.07) 80%,
    transparent 100%
  );
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 0;
  padding-top: 1.1rem;
}

/* Header row: step badge + label */
.bd-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .72rem;
}

/* Step number badge */
.bd-step {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: -.01em;
  flex-shrink: 0;
  font-family: 'Poppins', sans-serif;
}

/* Section label (replaces old plain label) */
.bd-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0;
  line-height: 1;
}

/* ── Color themes ──────────────────────────────────── */
/* Date → sky blue */
.bd-block.bd-date .bd-step  { background: rgba(52,152,219,.22); color: #5dade2; }
.bd-block.bd-date .bd-label { color: #5dade2; }

/* Time → amber/orange */
.bd-block.bd-time .bd-step  { background: rgba(230,126,34,.2); color: #f0a040; }
.bd-block.bd-time .bd-label { color: #f0a040; }

/* Place → violet */
.bd-block.bd-place .bd-step  { background: rgba(142,68,173,.22); color: #c49aff; }
.bd-block.bd-place .bd-label { color: #c49aff; }

/* Gender → rose (for Find Partner page) */
.bd-block.bd-gender .bd-step  { background: rgba(233,30,140,.18); color: #f48fb1; }
.bd-block.bd-gender .bd-label { color: #f06292; }

/* ── Light theme overrides ─────────────────────────── */
body[data-theme="light"] .bd-block { background: rgba(0,0,0,0.022); }
body[data-theme="light"] .bd-block:hover { background: rgba(0,0,0,0.042); }
body[data-theme="light"] .bd-block + .bd-block {
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0,0,0,0.08) 20%,
    rgba(0,0,0,0.08) 80%,
    transparent 100%
  );
}
body[data-theme="light"] .bd-block.bd-date .bd-step  { background: rgba(52,152,219,.14); color: #1a6fa8; }
body[data-theme="light"] .bd-block.bd-date .bd-label { color: #1a6fa8; }
body[data-theme="light"] .bd-block.bd-time .bd-step  { background: rgba(192,80,0,.12); color: #c05000; }
body[data-theme="light"] .bd-block.bd-time .bd-label { color: #c05000; }
body[data-theme="light"] .bd-block.bd-place .bd-step  { background: rgba(142,68,173,.12); color: #6a2496; }
body[data-theme="light"] .bd-block.bd-place .bd-label { color: #6a2496; }
body[data-theme="light"] .bd-block.bd-gender .bd-step  { background: rgba(194,24,91,.1); color: #ad1457; }
body[data-theme="light"] .bd-block.bd-gender .bd-label { color: #c2185b; }

/* Compact variant for kundali-match person cards */
.bd-block.bd-compact { padding: .8rem .85rem; }
.bd-block.bd-compact + .bd-block.bd-compact { margin-top: .2rem; padding-top: .85rem; }
.bd-block.bd-compact .bd-header { margin-bottom: .55rem; }
.bd-block.bd-compact .bd-step { width: 22px; height: 22px; font-size: .62rem; border-radius: 6px; }
.bd-block.bd-compact .bd-label { font-size: .7rem; }

/* --------------------------------------------------------------------------
   Baby Names – Name Cards
   -------------------------------------------------------------------------- */
.name-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.8rem;
  transition: all 0.25s ease;
}
.name-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
/* Primary Devanagari name */
.name-hindi {
  font-family: 'Noto Sans Devanagari', 'Mangal', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin: 0 0 0.1rem;
  line-height: 1.3;
}
/* English name subtitle (shown when Hindi differs) */
.name-english {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 0.35rem;
  letter-spacing: 0.03em;
}
/* Legacy class kept for backwards-compatibility */
.name-text {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent-primary);
  margin: 0 0 0.3rem;
}
.name-meaning {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 0.45rem;
  line-height: 1.4;
}
/* Adjective chips row */
.adj-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0 0 0.45rem;
}
.adj-chip {
  font-size: 0.68rem;
  padding: 0.12rem 0.45rem;
  border-radius: 20px;
  background: rgba(196, 154, 255, 0.12);
  color: rgba(196, 154, 255, 0.85);
  border: 1px solid rgba(196, 154, 255, 0.2);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.name-meta {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03rem;
}
.tag-gender-m { background: rgba(52, 152, 219, 0.2); color: #5dade2; }
.tag-gender-f { background: rgba(231, 76, 160, 0.2); color: #e74ca0; }
.tag-gender-u { background: rgba(155, 89, 182, 0.2); color: #bb8fce; }
.tag-origin { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.5); }

/* Light Theme Overrides for Name Cards */
body[data-theme="light"] .name-card {
  background: #ffffff;
  border: 1px solid #ebe4db;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
body[data-theme="light"] .name-english {
  color: #8a7060;
}
body[data-theme="light"] .name-meaning {
  color: #666;
}
body[data-theme="light"] .adj-chip {
  background: rgba(142, 68, 173, 0.08);
  color: #7d3c98;
  border-color: rgba(142, 68, 173, 0.2);
}
body[data-theme="light"] .tag-origin {
  background: rgba(0, 0, 0, 0.05);
  color: #888;
}

/* --------------------------------------------------------------------------
   Hamburger Menu & Mobile Navigation
   -------------------------------------------------------------------------- */
.mobile-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.3s ease;
  padding: 0;
  margin: 0 0 0 0.5rem;
  flex-shrink: 0;
  z-index: 1100;
}

.mobile-hamburger:hover {
  background: rgba(255, 255, 255, 0.14);
}

.mobile-hamburger.open {
  background: rgba(230, 126, 34, 0.15);
  border-color: rgba(230, 126, 34, 0.4);
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-origin: center;
}

.mobile-hamburger.open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-hamburger.open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(135deg, rgba(20, 15, 50, 0.98), rgba(30, 15, 60, 0.96));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 990;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}

.mobile-nav-menu.open {
  transform: translateX(0);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.9rem 1.5rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  width: 100%;
  text-align: left;
}

.mobile-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #c49aff;
  border-left-color: #e67e22;
}

.mobile-nav-item.active {
  background: rgba(230, 126, 34, 0.1);
  color: #c49aff;
  border-left-color: #e67e22;
  font-weight: 600;
}

.mobile-nav-title {
  font-family: 'Cinzel', serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #c49aff;
  line-height: 1.2;
}

.mobile-nav-item:hover .mobile-nav-title,
.mobile-nav-item.active .mobile-nav-title {
  color: #c49aff;
}

.mobile-nav-sub {
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.mobile-nav-item:hover .mobile-nav-sub {
  color: rgba(255, 255, 255, 0.55);
}

/* Mobile nav overlay backdrop */
.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 985;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.open {
  display: block;
  opacity: 1;
}

/* Light Theme Overrides for Mobile Nav */
body[data-theme="light"] .mobile-hamburger {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
}

body[data-theme="light"] .mobile-hamburger:hover {
  background: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .hamburger-line {
  background: rgba(0, 0, 0, 0.5);
}

body[data-theme="light"] .mobile-hamburger.open {
  background: rgba(192, 80, 0, 0.08);
  border-color: rgba(192, 80, 0, 0.3);
}

body[data-theme="light"] .mobile-nav-menu {
  background: linear-gradient(135deg, rgba(245, 240, 235, 0.98), rgba(250, 245, 238, 0.96));
  border-right-color: #ebe4db;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .mobile-nav-item {
  color: rgba(0, 0, 0, 0.6);
}

body[data-theme="light"] .mobile-nav-item:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #8e44ad;
  border-left-color: #c05000;
}

body[data-theme="light"] .mobile-nav-item.active {
  background: rgba(192, 80, 0, 0.06);
  color: #8e44ad;
  border-left-color: #c05000;
}

body[data-theme="light"] .mobile-nav-title {
  color: #8e44ad;
}

body[data-theme="light"] .mobile-nav-item:hover .mobile-nav-title,
body[data-theme="light"] .mobile-nav-item.active .mobile-nav-title {
  color: #8e44ad;
}

body[data-theme="light"] .mobile-nav-sub {
  color: rgba(0, 0, 0, 0.38);
}

body[data-theme="light"] .mobile-nav-item:hover .mobile-nav-sub {
  color: rgba(0, 0, 0, 0.5);
}

body[data-theme="light"] .mobile-nav-backdrop {
  background: rgba(0, 0, 0, 0.3);
}

/* Show hamburger inside tabs bar on mobile */
.tabs-wrapper--hamburger-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-hamburger {
    display: flex;
  }

  .tabs-wrapper {
    display: flex;
    align-items: center;
  }

  .tabs-wrapper--hamburger-only {
    display: flex;
    align-items: center;
    padding: 0.35rem 0;
  }

  .tabs-wrapper .nav-tabs-custom {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .mobile-hamburger {
    width: 34px;
    height: 34px;
    min-width: 34px;
    gap: 4px;
    border-radius: 8px;
    margin-left: 0.35rem;
  }

  .hamburger-line {
    width: 18px;
    height: 1.5px;
  }

  .mobile-nav-menu {
    max-width: 280px;
  }
}
