
/* ==========================================================================
   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:    #ffffff;
  --bg-subtle:  #fff3e0;
  --bg-input:   #fffdf9;

  /* 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 .header-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  margin: 0 0 .25rem;
  letter-spacing: .05em;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.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 auto;
  padding: 0 1rem;
  max-width: 900px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-tabs-custom::-webkit-scrollbar { display: none; }

.nav-tabs-custom li { flex-shrink: 0; }

.nav-tabs-custom a {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: 1rem 1.4rem;
  font-weight: 600;
  font-size: .92rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}

.nav-tabs-custom a:hover {
  color: var(--accent-primary);
}

.nav-tabs-custom a.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   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%;
}

.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);
}

.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); }
}

/* ==========================================================================
   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;
  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 a:hover,
body[data-theme="light"] .nav-tabs-custom a.active {
  color: #c75b00;
}

body[data-theme="light"] .nav-tabs-custom a.active {
  border-bottom-color: #c75b00;
}

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"] .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;
  }
}