/* ==========================================================================
   VESPER VEDIC KUNDALI — EDITORIAL LUXURY DESIGN SYSTEM
   ========================================================================== */

:root {
  --bg: #F4F1FB;
  --bg2: #FBF9FF;
  --ink: #241F3D;
  --ink-soft: #4A4470;
  --gold: #C9973E;
  --gold-soft: #E3C588;
  --rose: #B4677A;
  --mute: #8079A0;
  --line: rgba(36, 31, 61, 0.12);
  --line-light: rgba(36, 31, 61, 0.06);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-card: 0 30px 60px -30px rgba(36, 31, 61, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

a { color: inherit; }
::selection { background: var(--gold); color: #fff; }
:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 4px; }

/* ---------- Ambient Background & Bokeh ---------- */
#bokeh { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.sky-wash {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 10%, rgba(227,197,136,0.28), transparent 60%),
    radial-gradient(55% 45% at 15% 85%, rgba(180,103,122,0.14), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg) 40%);
}

/* ---------- Header ---------- */
header {
  position: relative; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 64px);
  gap: 16px;
}
.brand { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--ink); font-weight: 500; }
nav.links { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); font-size: 14px; }
nav.links a { text-decoration: none; color: var(--ink-soft); transition: color .25s ease; }
nav.links a:hover { color: var(--ink); }
.link-gold { color: var(--gold) !important; font-weight: 500; }
@media (max-width: 640px) { nav.links { display: none; } }

/* ---------- Hero Section ---------- */
.hero {
  position: relative; z-index: 2;
  min-height: 88svh;
  display: flex; align-items: center;
  padding: 40px clamp(20px, 6vw, 90px) 60px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { align-items: center !important; order: 2; }
  .character-stage { order: 1; }
}

.hero-copy {
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  max-width: 500px;
}
.kicker {
  font-size: 13px; color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
  opacity: 0; transform: translateY(10px);
  animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: .2s;
}
h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(42px, 5.8vw, 72px); line-height: 1.02; letter-spacing: -0.01em;
  color: var(--ink);
  opacity: 0; transform: translateY(16px);
  animation: rise 1s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: .35s;
}
h1 em { font-style: italic; color: var(--gold); }
.hero p {
  font-size: 16.5px; line-height: 1.65; color: var(--ink-soft); max-width: 440px;
  opacity: 0; transform: translateY(14px);
  animation: rise 1s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: .5s;
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.cta {
  margin-top: 6px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans); font-size: 14px; letter-spacing: 0.02em;
  cursor: pointer; text-decoration: none;
  transition: background .35s ease, color .35s ease, transform .35s ease;
  opacity: 0; transform: translateY(14px);
  animation: rise 1s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: .65s;
}
.cta:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }

/* ---------- Character Stage ---------- */
.character-stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 440px;
}
.halo {
  position: absolute; width: min(70vw, 440px); height: min(70vw, 440px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227,197,136,0.35), rgba(227,197,136,0) 65%);
  filter: blur(6px);
  animation: haloPulse 6s ease-in-out infinite;
}
@keyframes haloPulse { 0%,100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.08); opacity: 1; } }

.char-svg { position: relative; width: min(62vw, 360px); height: auto; z-index: 2; }
#charBob { animation: bob 4.5s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

#robeSway { animation: sway 6.5s ease-in-out infinite; transform-origin: 50% 8%; }
@keyframes sway { 0%,100% { transform: skewX(-1.6deg); } 50% { transform: skewX(1.6deg); } }

#orbPulse { animation: orbPulse 3.4s ease-in-out infinite; transform-origin: center; }
@keyframes orbPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }

#ringSpin { animation: ringSpin 9s linear infinite; transform-origin: center; }
@keyframes ringSpin { to { transform: rotate(360deg); } }

.eye { animation: blink 4.8s ease-in-out infinite; transform-origin: center; }
.eye.two { animation-delay: 0.05s; }
@keyframes blink { 0%,92%,100% { transform: scaleY(1); } 96% { transform: scaleY(0.12); } }

.dust { animation: dustRise linear infinite; }
@keyframes dustRise {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 0.9; }
  85% { opacity: 0.4; }
  100% { transform: translateY(-70px); opacity: 0; }
}

/* ---------- Section Container ---------- */
.section-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.form-section, .report-section {
  position: relative; z-index: 2;
  padding: 60px 0;
}

.section-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(30px, 4vw, 44px); line-height: 1.12; margin-bottom: 8px;
  color: var(--ink);
}

.section-intro {
  color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; max-width: 580px; margin-bottom: 32px;
}

/* ---------- Vesper Card Style ---------- */
.card {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg2);
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
}

.card-title {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

.card-sub {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.sub-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin: 24px 0 12px 0;
}

/* ---------- Form Controls ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full {
  grid-column: 1 / -1;
}

label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

input, select {
  width: 100%;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14.5px;
  transition: border-color .25s ease, box-shadow .25s ease;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 151, 62, 0.15);
}

.place-field-wrap {
  position: relative;
}

.input-icon-box {
  position: relative;
}

.pin-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-icon-box input {
  padding-left: 36px;
}

.autocomplete-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(36, 31, 61, 0.12);
  z-index: 100;
  max-height: 220px;
  overflow-y: auto;
  margin-top: 4px;
}

.autocomplete-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line-light);
}

.autocomplete-item:hover {
  background: var(--bg);
  color: var(--gold);
}

.autocomplete-item .subtext {
  font-size: 12px;
  color: var(--mute);
  margin-left: 6px;
}

.autocomplete-item.disabled { color: var(--mute); cursor: default; }

.location-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 151, 62, 0.12);
  border: 1px solid rgba(201, 151, 62, 0.3);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  color: var(--gold);
  margin-top: 12px;
}

.btn-clear-pill {
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
}

.adv-drawer {
  margin-top: 12px;
}

.btn-adv-toggle {
  background: transparent;
  border: none;
  color: var(--ink-soft);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  font-family: var(--sans);
}

.btn-adv-toggle:hover { color: var(--gold); }

.adv-drawer-body {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 16px;
  margin-top: 10px;
}

.cta-submit {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.35s ease;
  width: 100%;
}

.cta-submit:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.error-card {
  background: rgba(180, 103, 122, 0.12);
  border: 1px solid rgba(180, 103, 122, 0.3);
  color: var(--rose);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 14px;
}

/* ==========================================================================
   Hero Patrika Header Card
   ========================================================================== */

.hero-patrika-card {
  border-left: 3px solid var(--gold);
}

.card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.patrika-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 500;
  color: var(--ink);
}

.meta-pill {
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 100px;
}

.meta-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.meta-tile {
  display: flex;
  flex-direction: column;
}

.m-label {
  font-size: 11px;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.m-value {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
}

.m-desc {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.highlight-gold .m-value { color: var(--gold); }
.highlight-rose .m-value { color: var(--rose); }

/* ==========================================================================
   Interactive Chart Viewer
   ========================================================================== */

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.chart-pill-selector {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.v-pill {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 6px 14px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.v-pill.active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.chart-viewer-box {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 24px;
  text-align: center;
}

.chart-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 13.5px;
  color: var(--ink);
}

.tag-gold {
  color: var(--gold);
  font-size: 12.5px;
}

.svg-frame {
  max-width: 420px;
  margin: 0 auto;
}

.kundali-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Panchanga Mosaics & Tables
   ========================================================================== */

.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.mosaic-tile {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}

.t-label {
  font-size: 11px;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.t-value {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  margin: 3px 0 2px 0;
}

.t-desc {
  font-size: 12px;
  color: var(--ink-soft);
}

.table-container {
  overflow-x: auto;
}

.editorial-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.editorial-table th, .editorial-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.editorial-table th {
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lagna-highlight-row {
  background: rgba(201, 151, 62, 0.06);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 500;
}

.badge-exalted { background: rgba(16, 185, 129, 0.12); color: #059669; }
.badge-debilitated { background: rgba(180, 103, 122, 0.15); color: var(--rose); }
.badge-own { background: rgba(201, 151, 62, 0.15); color: var(--gold); }
.badge-neutral { background: var(--bg); color: var(--ink-soft); border: 1px solid var(--line); }
.badge-combust { background: rgba(227, 197, 136, 0.35); color: #92400e; }
.badge-retro { background: rgba(180, 103, 122, 0.2); color: var(--rose); font-weight: 600; }
.badge-direct { color: var(--mute); }
.badge-accent { background: rgba(36, 31, 61, 0.08); color: var(--ink); }

/* ==========================================================================
   Ashtakavarga & Bhavas
   ========================================================================== */

.ashtaka-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.ash-tile {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.ash-h-label { font-size: 11px; color: var(--mute); font-weight: 500; }
.ash-points { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--ink); margin: 2px 0; }
.ash-unit { font-size: 10.5px; color: var(--mute); text-transform: uppercase; }

.ash-tile.high-score { border-color: var(--gold); background: rgba(201, 151, 62, 0.08); }
.ash-tile.high-score .ash-points { color: var(--gold); }

.ash-tile.low-score { border-color: var(--rose); background: rgba(180, 103, 122, 0.08); }
.ash-tile.low-score .ash-points { color: var(--rose); }

.bhava-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.bhava-tile {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 14px 16px;
}

.bhava-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.bhava-tag { font-size: 11.5px; font-weight: 600; color: var(--gold); }
.bhava-name { font-size: 13.5px; color: var(--ink); }
.bhava-body p { font-size: 13px; color: var(--ink-soft); margin-bottom: 4px; line-height: 1.45; }
.bhava-signif { font-size: 12px; color: var(--mute); margin-top: 6px !important; }

/* ==========================================================================
   Shani Sade Sati & Yogas
   ========================================================================== */

.sadesati-banner {
  padding: 18px 20px;
  border: 1px solid transparent;
  margin-bottom: 16px;
}

.sadesati-banner.dosha-active { background: rgba(180, 103, 122, 0.12); border-color: rgba(180, 103, 122, 0.35); color: var(--rose); }
.sadesati-banner.affliction-active { background: rgba(201, 151, 62, 0.12); border-color: rgba(201, 151, 62, 0.35); color: var(--gold); }
.sadesati-banner.yoga-active { background: rgba(16, 185, 129, 0.10); border-color: rgba(16, 185, 129, 0.3); color: #059669; }

.banner-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.banner-title { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 4px 0 2px 0; }
.banner-desc { font-size: 13px; opacity: 0.9; }

.yoga-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yoga-tile {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 14px 16px;
}

.yoga-tile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.yoga-name { font-size: 14.5px; color: var(--ink); }
.yoga-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

.yoga-tag { font-size: 11.5px; font-weight: 500; padding: 2px 8px; border-radius: 100px; }
.type-yoga .yoga-tag { background: rgba(201, 151, 62, 0.15); color: var(--gold); }
.type-dosha .yoga-tag { background: rgba(180, 103, 122, 0.15); color: var(--rose); }
.type-affliction .yoga-tag { background: rgba(227, 197, 136, 0.4); color: #92400e; }
.type-inactive { opacity: 0.6; }
.type-inactive .yoga-tag { background: var(--bg); color: var(--mute); }

/* ==========================================================================
   Dasha & Life Readings
   ========================================================================== */

.dasha-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dasha-item {
  background: #ffffff;
  border: 1px solid var(--line);
}

.dasha-head {
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  user-select: none;
}

.dasha-lord { color: var(--ink); }
.dasha-duration { font-size: 12px; color: var(--mute); margin-left: 8px; }
.dasha-dates { font-size: 13px; color: var(--gold); }
.dasha-body { padding: 14px 18px; border-top: 1px solid var(--line); background: var(--bg2); }

.readings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.reading-card {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 18px;
}

.reading-card h4 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.reading-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ==========================================================================
   Zodiac Grid (From Vesper Template)
   ========================================================================== */

#signs {
  position: relative; z-index: 2;
  padding: 80px 0;
}

.zodiac-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
@media (max-width: 820px) { .zodiac-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .zodiac-grid { grid-template-columns: repeat(3, 1fr); } }

.sign {
  background: var(--bg2); aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; position: relative;
  transition: background .4s ease;
}
.sign:hover { background: #fff; }
.sign .glyph {
  font-family: var(--serif); font-size: clamp(26px, 4vw, 34px); color: var(--ink-soft);
  transition: color .4s ease, transform .4s ease;
}
.sign:hover .glyph { color: var(--gold); transform: translateY(-4px); }
.sign .name { font-size: 11px; letter-spacing: 0.03em; color: var(--ink-soft); opacity: 0; transition: opacity .35s ease; }
.sign:hover .name { opacity: 1; }
.sign .dates { position: absolute; bottom: 14px; font-size: 10px; color: var(--gold); opacity: 0; transition: opacity .35s ease; }
.sign:hover .dates { opacity: 1; }

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  position: relative; z-index: 2;
  padding: 50px clamp(20px, 6vw, 90px) 40px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-soft);
}
footer .brand { font-size: 18px; }

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
  .readings-grid { grid-template-columns: 1fr; }
  .card-header-flex { flex-direction: column; align-items: flex-start; }
}

@media print {
  body { background: #fff !important; color: #000 !important; }
  .no-print, #bokeh, .sky-wash { display: none !important; }
  .card { box-shadow: none !important; border: 1px solid #ccc !important; page-break-inside: avoid; }
  .chart-display { display: block !important; }
}

/* ==========================================================================
   KUNDLIPLANET HEADER & FOOTER LOGO — ALIGNMENT + RESPONSIVE SIZING
   ========================================================================== */

.brand-link, .logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  line-height: 0;         /* stops the img's inline baseline gap from nudging it off-center */
}

header .brand-link {
  flex-shrink: 0;          /* logo never gets squeezed if nav wraps on tight widths */
}

.header-logo-img, .nav-logo-img {
  width: 5px !important;
  height: 5px !important;
  max-width: 5px !important;
  border-radius: 50%;
  object-fit: contain;
  background: var(--bg2);
  border: 1px solid rgba(201, 151, 62, 0.4);
  box-shadow: 0 0 10px rgba(201, 151, 62, 0.25);
  display: block;
  flex-shrink: 0;
}

.header-logo-img:hover, .nav-logo-img:hover {
  transform: scale(1.06);
  border-color: var(--gold);
}

.footer-logo-img {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  border-radius: 50% !important;
  object-fit: contain !important;
  display: inline-block !important;
  vertical-align: middle;
}

footer .brand-link {
  gap: 12px;
}

/* Scale down slightly on tablets/phones so it stays proportionate to the shorter header */
@media (max-width: 640px) {
  header { padding: 18px clamp(16px, 5vw, 64px); }
  .header-logo-img, .nav-logo-img { width: 32px; height: 32px; }
}

@media (max-width: 420px) {
  .header-logo-img, .nav-logo-img { width: 28px; height: 28px; }
  .footer-logo-img { width: 26px; height: 26px; }
}

/* ==========================================================================
   LANGUAGE TOGGLE (EN <-> HINDI) & CLEAN TRANSLATE OVERLAY
   ========================================================================== */

.lang-pill-btn {
  background: rgba(201, 151, 62, 0.12);
  border: 1px solid rgba(201, 151, 62, 0.35);
  color: var(--gold);
  padding: 6px 14px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.lang-pill-btn:hover {
  background: var(--gold);
  color: var(--bg-deep, #140A28);
  border-color: var(--gold);
}

/* Hide Google's default intrusive banners and toolbars */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0px !important;
  position: static !important;
}

.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.skiptranslate iframe {
  display: none !important;
}

/* ==========================================================================
   FLOATING CELESTIAL BUTTON & PORTAL TRANSITION ANIMATION
   ========================================================================== */

/* Floating Animated Button (Mobile & Desktop) */


/* Return button variation on horoscope.php */
.floating-celestial-btn.return-btn {
  background: linear-gradient(135deg, #1E1038 0%, #2A1748 100%);
  border-color: rgba(232, 200, 136, 0.7);
}

.btn-sparkle {
  font-size: 15px;
  display: inline-block;
  animation: sparkleSpin 6s linear infinite;
}

.btn-arrow {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.floating-celestial-btn:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: #E8C888;
  box-shadow: 0 14px 30px -4px rgba(36, 31, 61, 0.5), 0 0 25px rgba(201, 151, 62, 0.5);
  color: #FFF7E4 !important;
}

.floating-celestial-btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Button Breathing Pulse Keyframe */
@keyframes floatPulse {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 10px 25px -4px rgba(36, 31, 61, 0.4), 0 0 15px rgba(201, 151, 62, 0.25);
  }
  50% {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px -4px rgba(36, 31, 61, 0.5), 0 0 22px rgba(201, 151, 62, 0.45);
  }
}

@keyframes sparkleSpin {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg); }
}

/* Cosmic Portal Fullscreen Overlay Wipe */
.portal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  background: radial-gradient(circle at center, #2A1748 0%, #140A28 65%, #0B0418 100%);
  opacity: 0;
  transition: opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Mobile Placement */
@media (max-width: 640px) {
  .floating-celestial-btn {
    bottom: 18px;
    right: 18px;
    padding: 10px 16px;
    font-size: 12.5px;
  }
}

/* ==========================================================================
   WHATSAPP & NAVIGATION FLOATING BUTTON ALIGNMENT
   ========================================================================== */

.floating-whatsapp-btn:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6), 0 0 22px rgba(37, 211, 102, 0.5) !important;
}

/* Mobile responsive padding so buttons never overlap */
@media (max-width: 640px) {
  .floating-whatsapp-btn {
    bottom: 18px !important;
    left: 16px !important;
    width: 46px !important;
    height: 46px !important;
  }
  
  .floating-celestial-btn {
    bottom: 18px !important;
    right: 16px !important;
    padding: 10px 16px !important;
    font-size: 12.5px !important;
  }
}
/* ==========================================================================
   OFFICIAL WHATSAPP FLOATING WIDGET & ANIMATED POP-BADGE
   ========================================================================== */

.wa-floating-widget {
  position: fixed !important;
  bottom: 24px !important;
  left: 24px !important;
  z-index: 999999 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

/* Official WhatsApp Green Circular Button */
.wa-btn-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 16px rgba(37, 211, 102, 0.3);
  animation: waPulseCircle 3.5s ease-in-out infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}

.wa-official-svg {
  width: 30px;
  height: 30px;
}

.wa-floating-widget:hover .wa-btn-circle {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.65), 0 0 24px rgba(37, 211, 102, 0.5);
}

/* Side Pop Badge */
.wa-animated-pill {
  background: #ffffff;
  border: 1px solid rgba(37, 211, 102, 0.4);
  padding: 8px 14px;
  border-radius: 100px;
  box-shadow: 0 4px 16px rgba(36, 31, 61, 0.12), 0 0 10px rgba(37, 211, 102, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: waPillFloat 4s ease-in-out infinite;
  transition: transform 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.wa-floating-widget:hover .wa-animated-pill {
  border-color: #25D366;
  transform: translateY(-2px);
}

.wa-pill-text {
  font-family: 'Sora', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #241F3D;
  letter-spacing: 0.01em;
}

/* Glowing Green Online Status Dot */
.wa-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25D366;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  animation: waDotPulse 2s infinite;
}

/* Keyframes */
@keyframes waPulseCircle {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 16px rgba(37, 211, 102, 0.3);
  }
  50% {
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6), 0 0 24px rgba(37, 211, 102, 0.5);
  }
}

@keyframes waPillFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes waDotPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Mobile responsive layout */
@media (max-width: 640px) {
  .wa-floating-widget {
    bottom: 18px !important;
    left: 16px !important;
    gap: 6px !important;
  }
  .wa-btn-circle {
    width: 44px;
    height: 44px;
  }
  .wa-official-svg {
    width: 26px;
    height: 26px;
  }
  .wa-animated-pill {
    padding: 6px 10px;
  }
  .wa-pill-text {
    font-size: 11.5px;
  }
}