/* ============================================================
   Astrology — style.css  (Fixed + Upgraded)
   ============================================================ */

/* Google Fonts loaded via <link> in index.html — moving them out of
   @import here cuts ~400ms of render-blocking time because the browser
   discovers the font request immediately on HTML parse instead of
   waiting for CSS to parse first. */

:root {
  --bg-void: #03020c;
  --bg-deep: #06041a;
  --bg-mid: #0a0822;
  --bg-glass: rgba(255, 255, 255, 0.042);
  --bg-glass-hover: rgba(255, 255, 255, 0.075);

  --gold: #d4a843;
  --gold-lt: #f2cc72;
  --gold-dk: #9a7420;
  --violet: #7c52ff;
  --violet-lt: #a87fff;
  --violet-dk: #4e28cc;
  --teal: #00d4c8;
  --rose: #ff4fa7;
  --ice: #b8e4ff;

  --accent-gold: var(--gold);
  --accent-violet: var(--violet);
  --accent-cyan: var(--teal);
  --accent-rose: var(--rose);
  --accent-aurora: var(--teal);

  --glow-violet: 0 0 48px rgba(124, 82, 255, 0.45);
  --glow-gold: 0 0 36px rgba(212, 168, 67, 0.4);
  --glow-cyan: 0 0 40px rgba(0, 212, 200, 0.35);

  --text-primary: #f2ecff;
  --text-secondary: rgba(242, 236, 255, 0.9);
  --text-muted: rgba(242, 236, 255, 0.85);

  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(124, 82, 255, 0.28);
  --border-gold: rgba(212, 168, 67, 0.22);

  --font-display: "Cinzel", serif;
  --font-serif: "Cormorant Garamond", serif;
  --font-body: "Outfit", sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-pill: 999px;

  --ease-smooth: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  --nav-h: 80px;

  --shadow-card: 0 28px 64px rgba(0, 0, 0, 0.5);
  --shadow-deep: 0 24px 60px rgba(0, 0, 0, 0.45);
  --nav-bg: rgba(3, 2, 12, 0.88);
  --nav-bg-solid: #070101;
  --on-accent: #ffffff;
  --hero-grad-1: #160840;
  --hero-grad-2: #080d38;
}

:root[data-theme="light"] {
  --bg-void: #fdfaf2;
  --bg-deep: #f7efdc;
  --bg-mid: #f1e6c9;
  --bg-glass: rgba(90, 74, 42, 0.045);
  --bg-glass-hover: rgba(90, 74, 42, 0.085);

  --gold: #a3590a;
  --gold-lt: #c97c1f;
  --gold-dk: #6b3a05;
  --violet: #5a3acc;
  --violet-lt: #7b5ce0;
  --violet-dk: #3a228f;
  --teal: #007a72;
  --rose: #c2185b;
  --ice: #2a5d8f;

  --glow-violet: 0 0 28px rgba(90, 58, 204, 0.22);
  --glow-gold: 0 0 24px rgba(163, 89, 10, 0.28);
  --glow-cyan: 0 0 24px rgba(0, 122, 114, 0.22);

  --text-primary: #2b2418;
  --text-secondary: rgba(43, 36, 24, 0.82);
  --text-muted: rgba(43, 36, 24, 0.62);

  --border-glass: rgba(90, 74, 42, 0.18);
  --border-glow: rgba(90, 58, 204, 0.30);
  --border-gold: rgba(163, 89, 10, 0.35);

  --shadow-card: 0 10px 30px rgba(90, 74, 42, 0.10);
  --shadow-deep: 0 24px 60px rgba(90, 74, 42, 0.16);
  --nav-bg: rgba(253, 250, 242, 0.92);
  --nav-bg-solid: #fdfaf2;
  --hero-grad-1: #f3e8c4;
  --hero-grad-2: #ecdfb2;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: none;
  font-family: inherit;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
}

/* ── GLOBAL PARTICLE CANVAS ── fixed layer behind everything */
#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* All content above the canvas */
.navbar,
section,
footer,
.cosmic-divider {
  position: relative;
  z-index: 1;
}


.navbar {
  z-index: 1000;
  background: var(--nav-bg-solid);
}

#cursor-dot,
#cursor-ring {
  z-index: 9999;
}

#page-transition {
  z-index: 9000;
  position: fixed;
}

/* Hero: keep its own starfield too */
#hero {
  position: relative;
}

#starfield {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.hero-parallax-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* ── Cursor ── */
#cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    width 0.25s var(--ease-smooth),
    height 0.25s,
    background 0.25s;
  will-change: transform;
}

#cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(0, 212, 200, 0.42);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    width 0.4s var(--ease-smooth),
    height 0.4s,
    border-color 0.3s;
  will-change: transform;
}

body.cursor-hover #cursor-dot {
  width: 14px;
  height: 14px;
  background: var(--gold);
}

body.cursor-hover #cursor-ring {
  width: 58px;
  height: 58px;
  border-color: rgba(212, 168, 67, 0.55);
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--violet), var(--gold));
  border-radius: 99px;
}

/* ── Utilities ── */
.container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;

}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.gradient-text {
  background: linear-gradient(125deg,
      var(--gold) 0%,
      var(--violet-lt) 45%,
      var(--teal) 100%);
  background-size: 200% 200%;
  animation: grad-pan 8s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes grad-pan {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.gradient-text-warm {
  background: linear-gradient(125deg,
      #fff5d7 0%,
      var(--gold) 55%,
      #e8922a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: var(--bg-glass);
  /* backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%); */
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  transition:
    background 0.35s var(--ease-smooth),
    border-color 0.35s,
    transform 0.35s,
    box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
}

.glass-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glow);
  transform: translateY(-5px);
  box-shadow:
    var(--shadow-deep),
    var(--glow-violet);
}

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

.section-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal));
  opacity: 0.8;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.02em;
}

.section-subheading {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 34px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--violet-dk));
  color: #fff;
  box-shadow:
    0 8px 32px rgba(124, 82, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 52px rgba(124, 82, 255, 0.6);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dk));
  background: linear-gradient(135deg, var(--violet), var(--violet-dk));
  color: #fff;
  font-weight: 600;
  box-shadow:
    0 8px 32px rgba(124, 82, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-gold:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 8px 32px rgba(124, 82, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-ghost {
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  justify-content: center;
}

.btn-ghost:hover {
  border-color: var(--teal);
  box-shadow: 0 0 24px rgba(0, 212, 200, 0.28);
  transform: translateY(-2px);
  color: var(--teal);
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 5%;
  z-index: 1000;
  transition:
    background 0.5s,
    box-shadow 0.5s;
}

.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 0 1px 0 var(--border-glass);
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, var(--gold), var(--violet-lt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-flex;
  align-items: center;
}

.nav-logo img {
  height: 120px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .nav-logo img {
    height: 80px;
    max-width: 210px;
  }
}

/* Icon-only navbar logo (square, smaller than the wordmark logo) */
.nav-logo-icon img {
  height: 130px;
  width: 130px;
  max-width: 130px;
}

@media (max-width: 768px) {
  .nav-logo-icon img {
    height: 90px;
    width: 90px;
    max-width: 90px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-smooth);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  margin-left: 20px;
  padding: 9px 22px;
  font-size: 0.76rem;
  align-self: center;
  margin-top: -28px;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all 0.35s var(--ease-smooth);
}

/* Smoke Canvas */
.rock-podcast-smoke-canvas {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: 0.07;
  z-index: 9999;
  pointer-events: none;
}

/* Smoke Canvas */
/* ── Hero ── */
#hero {
  width: 100%;
  /* min-height (not height) so the hero grows to fit content on short
     screens — otherwise CTA buttons at the bottom get clipped by
     overflow: hidden when the wordmark + headline + subtitle + buttons
     exceed (100vh - navbar). */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Reserve top space for the fixed navbar + bottom breathing room
     so CTAs never sit flush against the next section. */
  padding-top: var(--nav-h);
  padding-bottom: 40px;
  box-sizing: border-box;
}

.planet {
  position: absolute;
  border-radius: 50%;
  animation: floatPlanet 8s ease-in-out infinite;
}

.planet-1 {
  width: 80px;
  height: 80px;
  top: 23%;
  right: 10%;
  background: radial-gradient(circle at 35% 35%, #9c5ce8, #18003a);
  box-shadow: 0 0 70px rgba(156, 92, 232, 0.45),
    inset -20px -10px 40px rgba(0, 0, 0, 0.6);
  animation-delay: 0s;
}

.planet-4 {
  width: 52px;
  height: 52px;
  bottom: 18%;
  right: 8%;
  background: radial-gradient(circle at 40% 30%, var(--rose), #fd3096);
  box-shadow:
    0 0 44px rgba(255, 79, 67, 0.4),
    inset -10px -5px 20px rgba(0, 0, 0, 0.5);
  animation-delay: -3s;
}

.planet-2 {
  width: 80px;
  height: 80px;
  bottom: 18%;
  left: 8%;
  background: radial-gradient(circle at 40% 30%, var(--teal), #003344);
  box-shadow:
    0 0 44px rgba(0, 212, 200, 0.4),
    inset -10px -5px 20px rgba(0, 0, 0, 0.5);
  animation-delay: -3s;
}

.planet-3 {
  width: 52px;
  height: 52px;
  top: 30%;
  left: 15%;
  background: radial-gradient(circle at 35% 30%, var(--gold), #3a1a00);
  box-shadow: 0 0 32px rgba(212, 168, 67, 0.5);
  animation-delay: -5s;
}

.ring-outer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(70deg);
  width: 500px;
  height: 500px;
  border: 1px solid rgba(124, 82, 255, 0.1);
  border-radius: 50%;
  animation: rotateSlow 60s linear infinite;
}

.ring-mid {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(70deg);
  width: 340px;
  height: 340px;
  border: 1px solid rgba(212, 168, 67, 0.09);
  border-radius: 50%;
  animation: rotateSlow 40s linear infinite reverse;
}

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

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 84px;
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  opacity: 0;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 48px;
  opacity: 0;
}

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

/* Quick-start ribbon — sits right under the hero so a first-time visitor
   has one obvious action ("Generate Free Kundli") without scrolling
   through marketing copy first. */
.quick-start-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 22px 28px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(212, 168, 67, 0.10), rgba(124, 82, 255, 0.10)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 168, 67, 0.25);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.quick-start-text {
  flex: 1;
  min-width: 260px;
}

.quick-start-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 6px;
  font-weight: 500;
}

.quick-start-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 6px;
  color: var(--text-primary);
}

.quick-start-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.quick-start-cta {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .quick-start-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 20px 22px;
  }

  .quick-start-cta .btn {
    width: 100%;
  }
}

.hero-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* common icon style */
.icon {
  position: absolute;
  pointer-events: none;
}

.icon img {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

/* ───────── ICON 1 (slow float + rotate) ───────── */
.icon-1 {
  top: 15%;
  left: 5%;
  animation: float1 6s ease-in-out infinite;
}

@keyframes float1 {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(8deg);
  }
}

/* ───────── ICON 2 (side wave motion) ───────── */
.icon-2 {
  top: 15%;
  right: 5%;
  animation: float2 8s ease-in-out infinite;
}

@keyframes float2 {

  0%,
  100% {
    transform: translateX(0px);
  }

  50% {
    transform: translateX(-25px);
  }
}

/* ───────── ICON 3 (diagonal + scale) ───────── */
.icon-3 {
  bottom: 10%;
  right: 15%;
  animation: float3 7s ease-in-out infinite;
}

.icon-4 {
  bottom: 10%;
  left: 15%;
  animation: float3 7s ease-in-out infinite;
}

.icon-4 img {
  width: 120px;
  height: 120px;
}

@keyframes float3 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(20px, -20px) scale(1.1);
  }
}

/* ── Sections ── */
.section {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 72px;
  text-align: center;
}

.section-header .section-label {
  margin-bottom: 16px;
  justify-content: center;
}

.section-header .section-heading {
  margin-bottom: 16px;
}

/* ── Features ── */
#features {
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(295px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 36px 32px;
  transition:
    transform 0.4s var(--ease-smooth),
    box-shadow 0.4s;
  cursor: default;
}

.feature-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--teal));
  opacity: 0;
  transition: opacity 0.4s;
  border-radius: 2px 2px 0 0;
}

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

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  /* width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
  background: linear-gradient(
    135deg,
    rgba(124, 82, 255, 0.18),
    rgba(0, 212, 200, 0.08)
  );
  border: 1px solid rgba(124, 82, 255, 0.22); */
  margin-bottom: 24px;
  width: fit-content;
  transition:
    transform 0.35s var(--ease-spring),
    box-shadow 0.35s;
}

.tarot-card img {
  width: 100px;
  height: 100px;
}

.feature-card:hover .feature-icon {
  transform: scale(1.12) rotate(-5deg);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

/* ── Zodiac ── */
#zodiac {
  position: relative;
  overflow: hidden;
}

.zodiac-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.zodiac-wheel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

#zodiac-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  max-width: 480px;
  filter: drop-shadow(0 0 60px rgba(124, 82, 255, 0.28));
}

.zodiac-info-panel {
  padding: 48px 40px;
}

.zodiac-sign-display {
  margin-top: 32px;
}

.sign-symbol {
  font-size: 5rem;
  margin-bottom: 12px;
  text-shadow: 0 0 40px rgba(212, 168, 67, 0.6);
  transition: all 0.4s var(--ease-smooth);
}

.zp-sign-emoji img {
  width: 70px;
  height: 70px;
}

.sign-name {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 8px;
}

.sign-dates {
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.sign-desc {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.82;
  margin-bottom: 28px;
}

.sign-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trait-pill {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(124, 82, 255, 0.12);
  border: 1px solid rgba(124, 82, 255, 0.28);
  color: var(--violet-lt);
}

/* ── Horoscope ── */
#horoscope {
  background: linear-gradient(180deg,
      transparent 0%,
      rgba(124, 82, 255, 0.04) 50%,
      transparent 100%);
}

.horoscope-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 48px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 6px;
  width: fit-content;
}

.h-tab {
  padding: 10px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: all 0.3s;
  cursor: none;
}

.h-tab.active {
  background: linear-gradient(135deg, var(--violet), var(--violet-dk));
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 82, 255, 0.4);
}

.h-tab:not(.active):hover {
  color: var(--text-primary);
}

.horoscope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.horo-card {
  padding: 28px 24px;
  transition: all 0.4s var(--ease-smooth);
  cursor: default;
}

.horo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.horo-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.horo-emoji {
  font-size: 2rem;
}

.horo-sign-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.horo-dates {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.horo-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.72;
  margin-bottom: 20px;
}

.horo-score-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.score-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  width: 60px;
}

.score-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--violet), var(--teal));
  width: 0;
  transition: width 1.4s var(--ease-smooth);
}

/* ── Tarot ── */
#tarot {
  position: relative;
}

.tarot-deck {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  perspective: 1200px;
}

.tarot-card {
  width: 160px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease-smooth);
  position: relative;
}

.tarot-card.flipped {
  transform: rotateY(0deg);
}

.tarot-face,
.tarot-back {
  position: absolute;
  width: 100%;
  border-radius: var(--radius-md);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.tarot-back {
  height: 260px;
  background: linear-gradient(155deg, var(--hero-grad-1), var(--hero-grad-2));
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transform: rotateY(0deg);
  box-shadow: var(--shadow-deep);
}

.tarot-back-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg,
      rgba(124, 82, 255, 0.07) 0px,
      rgba(124, 82, 255, 0.07) 1px,
      transparent 1px,
      transparent 12px);
}

.tarot-face {
  height: 260px;
  background: linear-gradient(160deg, var(--hero-grad-1), var(--hero-grad-2));
  border: 1px solid var(--border-gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transform: rotateY(180deg);
  padding: 20px;
  box-shadow: 0 0 32px rgba(212, 168, 67, 0.22);
}

.tarot-icon {
  font-size: 2.8rem;
}

.tarot-name {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-align: center;
  color: var(--gold);
}

.tarot-meaning {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-align: center;
}

.tarot-prompt {
  text-align: center;
  margin-top: 40px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-secondary);
}

.tarot-reveal-btn {
  margin: 20px auto 0;
  display: block;
}

/* ── Compatibility ── */
.compat-tool {
  max-width: 700px;
  margin: 0 auto;
  padding: 48px 40px;
  text-align: center;
}

.compat-selectors {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 40px 0;
}

.compat-select-wrap {
  flex: 1;
  min-width: 180px;
}

.compat-select-wrap label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.compat-select {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  appearance: none;
  cursor: none;
  transition: border-color 0.3s;
  outline: none;
}

.compat-select:focus {
  border-color: var(--violet);
}

option {
  background: #08062a;
}

.compat-divider {
  font-size: 1.6rem;
  color: var(--rose);
  flex-shrink: 0;
}

.compat-result {
  margin-top: 32px;
  display: none;
}

.compat-result.visible {
  display: block;
}

.compat-percentage {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 8px;
}

.compat-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.compat-arc {
  width: 200px;
  height: 100px;
  margin: 0 auto 24px;
  position: relative;
  overflow: hidden;
}

.compat-arc svg {
  width: 100%;
}

/* ── AI Chat ── */
.chat-container {
  max-width: 720px;
  margin: 0 auto;
}

.chat-window {
  height: 420px;
  overflow-y: auto;
  padding: 24px;
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  background: rgba(3, 2, 12, 0.65);
  border: 1px solid var(--border-glass);
  scroll-behavior: smooth;
}

.chat-window::-webkit-scrollbar {
  width: 3px;
}

.chat-window::-webkit-scrollbar-thumb {
  background: var(--violet);
  border-radius: 99px;
}

.chat-message {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.chat-message.user {
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.ai-avatar {
  background: linear-gradient(135deg, var(--violet), #1a0040);
  border: 1px solid var(--violet);
}

.user-avatar {
  background: linear-gradient(135deg, var(--gold), #5c3900);
  border: 1px solid var(--gold);
}

.chat-bubble {
  max-width: 75%;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 0.88rem;
  line-height: 1.65;
}

.ai-bubble {
  background: rgba(124, 82, 255, 0.12);
  border: 1px solid rgba(124, 82, 255, 0.22);
  border-bottom-left-radius: 4px;
}

.user-bubble {
  background: rgba(212, 168, 67, 0.12);
  border: 1px solid rgba(212, 168, 67, 0.22);
  border-bottom-right-radius: 4px;
}

.chat-input-row {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
}

.chat-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 4px 8px;
}

.chat-input::placeholder {
  color: var(--text-muted);
}

.chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--violet-dk));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(124, 82, 255, 0.4);
  transition: all 0.3s var(--ease-smooth);
  cursor: none;
}

.chat-send-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(124, 82, 255, 0.65);
}

/* ── Booking CTA ── */
#booking-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg,
      rgba(124, 82, 255, 0.07) 0%,
      rgba(0, 212, 200, 0.04) 100%);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.booking-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse,
      rgba(124, 82, 255, 0.13) 0%,
      transparent 70%);
  pointer-events: none;
}

.booking-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.booking-inner .section-heading {
  margin-bottom: 20px;
}

.booking-inner .section-subheading {
  margin-bottom: 48px;
}

/* ── Footer ── */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-glass);
  background: var(--bg-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .nav-logo {
  display: inline-block;
  font-size: 1.6rem;
  margin-bottom: 15px;

}


.footer-brand .nav-logo img {
  height: 80px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 260px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 20px;
  margin-left: 25px;
  margin-top: 50px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  line-height: normal;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-glass);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 16px;

}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.social-icon:hover {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(124, 82, 255, 0.4);
}

/* ── Page hero ── */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  background: linear-gradient(180deg,
      rgba(124, 82, 255, 0.07) 0%,
      transparent 100%);
}

.page-hero .section-label {
  justify-content: center;
  margin-bottom: 20px;
}

.page-hero .section-heading {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

/* ── Cosmic Divider ── */
.cosmic-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      var(--violet) 25%,
      var(--teal) 50%,
      var(--gold) 75%,
      transparent 100%);
  opacity: 0.25;
}

/* ════════════════════════════════════════════════════════════
   SCROLL REVEAL — FIXED
   Bug: JS was adding .revealed but old CSS had wrong transition.
   Fix: Explicit opacity/transform for both states.
   ════════════════════════════════════════════════════════════ */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition:
    opacity 0.85s var(--ease-smooth),
    transform 0.85s var(--ease-smooth);
}

.reveal {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1 !important;
  transform: none !important;
}

[data-stagger]>* {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease-smooth),
    transform 0.7s var(--ease-smooth);
}

[data-stagger]>*.revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .zodiac-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  #zodiac-canvas {
    max-width: 380px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 0px;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Mobile menu — slides down from top when hamburger is active.
     Background + divider use theme tokens so the panel reads correctly
     on both themes (was hardcoded near-black; text vanished on cream). */
  .nav-links.active {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--nav-bg-solid);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 90px 28px 40px;
    margin: 0;
    list-style: none;
    z-index: 1000;
    overflow-y: auto;
    gap: 8px;
  }

  .nav-links.active li {
    width: 100%;
    border-bottom: 1px solid var(--border-glass);
  }

  /* Theme toggle inside the navbar bar on mobile: drop the desktop's
     negative top margin (which was lifting it above the bar) and put a
     little breathing room before the hamburger. */
  .theme-toggle {
    margin-top: 0;
    margin-right: 8px;
  }

  .nav-links.active li:last-child {
    border-bottom: none;
  }

  .nav-links.active a {
    display: block;
    padding: 18px 4px;
    font-size: 1.05rem;
    width: 100%;
  }

  /* Hamburger above menu + animate to X when open */
  .nav-hamburger {
    position: relative;
    z-index: 1001;
  }

  .nav-hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

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

  .nav-hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-hamburger span {
    transition: all 0.25s ease;
  }

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

  .horoscope-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-brand {
    grid-column: 1 / -1;
    padding-bottom: 24px;

  }

  .compat-selectors {
    flex-direction: column;
  }

  .zodiac-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .zodiac-info-panel {
    padding: 28px 20px;
  }

  .compat-divider {
    transform: rotate(90deg);
  }
}

@media (max-width: 480px) {
  :root {
    --nav-h: 64px;
  }

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

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

  .zodiac-layout {
    gap: 24px;
  }

  .zodiac-wheel-wrap {
    max-width: 100%;
  }

  #zodiac-canvas {
    max-width: min(300px, 100%);
  }

  .tarot-deck {
    gap: 12px;
  }

  .tarot-card {
    width: 130px;
  }

  .tarot-back,
  .tarot-face {
    height: 210px;
  }
}

/* ════════════════════════════════════════════════════════════
   TAROT SECTION — FIXED (no overlap, proper flip, clear layout)
   ════════════════════════════════════════════════════════════ */

/* Position labels row */
.tarot-positions {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 16px;
}

.tarot-positions span {
  max-width: 240px;
  width: 100%;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Deck row — flex, no overlap */
.tarot-deck {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-end;
  /* cards align at bottom */
  flex-wrap: nowrap;
  padding-bottom: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Base card — fixed dimensions, NO position:relative overlap */
.tarot-card {
  max-width: 220px;
  width: 100%;
  height: 260px;
  flex-shrink: 0;
  cursor: pointer;
  /* was 'none' — users need a click affordance */
  perspective: 900px;
  /* Remove float-card animation from tarot cards */
}

/* Center card is taller */
.tarot-card--center {
  width: 200px;
  height: 285px;
}

/* Inner flip container */
.tarot-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 16px;
  box-shadow: var(--shadow-deep);
}

.tarot-card.flipped .tarot-inner {
  transform: rotateY(180deg);
}

.tarot-card:hover:not(.flipped) .tarot-inner {
  transform: translateY(-8px) rotateY(8deg);
}

/* Back face */
.tarot-back {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(160deg, #18094e 0%, #0b1245 50%, #050830 100%);
  border: 1px solid rgba(124, 82, 255, 0.25);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tarot-back-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg,
      rgba(124, 82, 255, 0.07) 0px,
      rgba(124, 82, 255, 0.07) 1px,
      transparent 1px,
      transparent 14px);
}

/* Decorative inner border on back */
.tarot-back::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212, 168, 67, 0.15);
  border-radius: 10px;
  pointer-events: none;
}

.tarot-back-icon {
  font-size: 2.6rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 16px rgba(124, 82, 255, 0.7));
}

/* Front face */
.tarot-face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(165deg, #120040 0%, #080f38 60%, #020820 100%);
  border: 1px solid var(--border-gold);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 16px;
  box-shadow: none;
}

.tarot-face-num {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: rgba(212, 168, 67, 1);
  margin-bottom: -4px;
}

.tarot-icon {
  font-size: 2.6rem;
  filter: drop-shadow(0 0 10px rgba(212, 168, 67, 0.5));
}

.tarot-name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-align: center;
}

.tarot-meaning {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
}

/* Float animation only on unflipped cards */
.tarot-card:not(.flipped) {
  animation: cardFloat 6s ease-in-out infinite;
}

.tarot-card:nth-child(1):not(.flipped) {
  animation-delay: 0s;
}

.tarot-card:nth-child(2):not(.flipped) {
  animation-delay: -1.2s;
}

.tarot-card:nth-child(3):not(.flipped) {
  animation-delay: -2.4s;
}

.tarot-card:nth-child(4):not(.flipped) {
  animation-delay: -0.6s;
}

.tarot-card:nth-child(5):not(.flipped) {
  animation-delay: -3s;
}

/* Footer — prompt + buttons */
.tarot-footer {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.tarot-prompt {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--text-secondary);
}

.tarot-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════════
   COMPATIBILITY — FIXED (full-width, dropdown icons, result panel)
   ════════════════════════════════════════════════════════════ */

.compat-tool {
  max-width: 860px;
  margin: 0 auto;
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.compat-selectors {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: end;
  width: 100%;
  margin-bottom: 36px;
}

.compat-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compat-select-wrap label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

/* Select wrapper with icon */
.compat-select-inner {
  position: relative;
  display: flex;
  align-items: center;
}

.compat-select-icon {
  position: absolute;
  left: 16px;
  font-size: 1.1rem;
  pointer-events: none;
  z-index: 1;
  color: var(--gold);
  opacity: 0.7;
  transition: opacity 0.3s;
}

.compat-select {
  width: 100%;
  padding: 14px 20px 14px 46px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 300;
  appearance: none;
  cursor: none;
  outline: none;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    background 0.3s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='rgba(242,236,255,0.35)' stroke-width='1.5' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.compat-select:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 82, 255, 0.15);
  background-color: rgba(124, 82, 255, 0.06);
}

.compat-select:focus+.compat-select-icon,
.compat-select-inner:focus-within .compat-select-icon {
  opacity: 1;
}

option {
  background: #08062a;
}

/* Heart divider */
.compat-heart-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 14px;
}

.compat-heart-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 79, 167, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 79, 167, 0.08);
  box-shadow: 0 0 20px rgba(255, 79, 167, 0.2);
  animation: pulseGlow 3s ease-in-out infinite;
  --glow-color: rgba(255, 79, 167, 0.3);
}

.compat-divider {
  font-size: 1.3rem;
  color: var(--rose);
  filter: drop-shadow(0 0 8px var(--rose));
  flex-shrink: 0;
}

/* CTA button */
.compat-cta {
  margin: 0 auto;
  display: block;
  min-width: 280px;
}

/* Result panel */
.compat-result {
  width: 100%;
  margin-top: 40px;
  display: none;
  animation: fadeInUp 0.5s var(--ease-smooth);
}

.compat-result.visible {
  display: block;
}

.compat-result-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: center;
  padding: 36px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}

/* Score ring */
.compat-score-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

.compat-ring-svg {
  width: 100%;
  height: 100%;
}

.compat-score-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.compat-percentage {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1;
}

.compat-score-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Stats side */
.compat-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compat-verdict {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.compat-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cbar-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cbar-row span {
  width: 70px;
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.cbar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 99px;
  overflow: hidden;
}

.cbar-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--violet), var(--teal));
  transition: width 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Responsive */
@media (max-width: 768px) {
  .tarot-positions span {
    width: 130px;
  }

  .tarot-card {
    width: 130px;
    height: 210px;
  }

  .tarot-card--center {
    width: 145px;
    height: 230px;
  }

  .compat-tool {
    padding: 36px 24px;
  }

  .compat-selectors {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .compat-heart-wrap {
    padding-bottom: 0;
    justify-content: flex-start;
  }

  .compat-result-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    justify-items: center;
  }

  .compat-score-wrap {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 480px) {
  .tarot-deck {
    gap: 10px;
  }

  .tarot-card {
    width: 110px;
    height: 180px;
  }

  .tarot-card--center {
    width: 124px;
    height: 200px;
  }

  .tarot-positions {
    display: none;
  }

  .compat-tool {
    padding: 28px 16px;
  }
}

/* ════════════════════════════════════════════════════════════
   HERO — Modern Upgrades
   ════════════════════════════════════════════════════════════ */

/* Grid overlay for modern depth */
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(124, 82, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 82, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%,
      black 10%,
      transparent 80%);
  pointer-events: none;
}

/* Vignette */
#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 90% 80% at 50% 50%,
      transparent 55%,
      rgba(3, 2, 12, 0.7) 100%);
  pointer-events: none;
}

/* Eyebrow pill */
.hero-eyebrow-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: -16px;
  min-height: 150px;
  /* reserve space → prevents CLS while image loads */
}

@media (max-width: 768px) {
  .hero-eyebrow-wrap {
    min-height: 105px;
  }
}

.hero-eyebrow-dot {
  display: none;
}

.hero-eyebrow-dot:last-child {
  animation-delay: 1s;
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.25);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0 !important;
  opacity: 1 !important;
  /* override hero-eyebrow opacity:0 for pill version */
}

/* Hero eyebrow as branded image (textcosmo.png) — replaces the pill text */
.hero-eyebrow-img {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  height: 150px;
  width: auto;
  max-width: min(680px, 86vw);
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 28px rgba(212, 168, 67, 0.28));
}

@media (max-width: 768px) {
  .hero-eyebrow-img {
    height: 105px;
    max-width: 92vw;
  }
}

/* Hero title line 2 — slightly dimmed primary, lighter weight */
.hero-line-2 {
  color: var(--text-secondary);
  font-weight: 400;
}

/* Stats bar */
.hero-stats-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 40px;
  padding: 18px 28px;
  background: rgba(255, 255, 255, 0.042);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0 24px;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.04em;
}

.hero-stat-label {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .hero-stats-bar {
    flex-wrap: wrap;
    border-radius: 16px;
    gap: 12px;
    padding: 14px 20px;
  }

  .hero-stat-divider {
    display: none;
  }
}

/* ════════════════════════════════════════════════════════════
   ZODIAC INFO PANEL — Enhanced
   ════════════════════════════════════════════════════════════ */

.zodiac-info-panel {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Header area */
.zp-header {
  margin-bottom: 4px;
}

.zp-header .section-label {
  margin-bottom: 10px;
}

.zp-header .section-heading {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  margin-bottom: 8px;
}

.zp-header .section-subheading {
  font-size: 0.9rem;
}

/* Sign hero block */
.zp-sign-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;

}

.zp-sign-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
      rgba(124, 82, 255, 0.06) 0%,
      transparent 60%);
}

.zp-sign-emoji-wrap {
  position: relative;
  flex-shrink: 0;
}

.zp-sign-emoji {
  font-size: 3.2rem;
  line-height: 1;
  position: relative;
  z-index: 1;
  /* filter: drop-shadow(0 0 16px rgba(212, 168, 67, 0.55)); */
  padding: 10px 10px;
  transition: all 0.4s ease;
}

.zp-sign-glow {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(212, 168, 67, 0.2) 0%,
      transparent 70%);
  animation: pulseGlow 3s ease-in-out infinite;
  --glow-color: rgba(212, 168, 67, 0.25);
}

.zp-sign-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold);
  line-height: 1;
  transition: all 0.4s ease;
}

.zp-sign-dates {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
  transition: all 0.4s ease;
}

/* Description */
.zp-desc {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
  padding: 0 2px;
}

/* Energy meters */
.zp-meters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}

.zp-meter-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.zp-meter-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  width: 64px;
  flex-shrink: 0;
}

.zp-meter-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 99px;
  overflow: hidden;
}

.zp-meter-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--violet), var(--teal));
  transition: width 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.zp-meter-val {
  font-size: 0.7rem;
  color: var(--teal);
  font-weight: 500;
  width: 24px;
  text-align: right;
}

/* Compatible signs */
.zp-compat {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.zp-compat-label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}

.zp-compat-signs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.zp-compat-sign {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.22);
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* CTA */
.zp-cta {
  width: 100%;
  justify-content: center;
}

/* Override old sign-symbol selector since we renamed */
.sign-symbol {
  display: none;
}

/* old class, new one is .zp-sign-emoji */

/* ════════════════════════════════════════════════════════════
   ZODIAC CANVAS — Fix text clipping
   ════════════════════════════════════════════════════════════ */
.zodiac-wheel-wrap {
  /* Extra padding so outer labels don't clip */
  padding: 16px;
  box-sizing: border-box;
}

/* ════════════════════════════════════════════════════════════
   PAGE: HOROSCOPE
   ════════════════════════════════════════════════════════════ */
.sign-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.sign-filter-btn {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s;
  cursor: none;
  font-family: var(--font-body);
}

.sign-filter-btn:hover,
.sign-filter-btn.active {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 77, 255, 0.4);
}

.full-horo-card {
  padding: 36px;
  margin-bottom: 24px;
}

.full-horo-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.big-emoji {
  font-size: 3.5rem;
  line-height: 1;
}

.horo-title-group h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.horo-title-group .sign-dates-small {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.element-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(124, 77, 255, 0.15);
  border: 1px solid rgba(124, 77, 255, 0.3);
  color: var(--violet-lt);
  margin-top: 8px;
}

.element-badge.fire {
  background: rgba(255, 107, 53, 0.12);
  border-color: rgba(255, 107, 53, 0.3);
  color: #ff7b72;
}

.element-badge.earth {
  background: rgba(139, 195, 74, 0.12);
  border-color: rgba(139, 195, 74, 0.3);
  color: #a9e34b;
}

.element-badge.air {
  background: rgba(100, 181, 246, 0.12);
  border-color: rgba(100, 181, 246, 0.3);
  color: #74c0fc;
}

.element-badge.water {
  background: rgba(124, 82, 255, 0.15);
  border-color: rgba(124, 82, 255, 0.3);
  color: var(--violet-lt);
}

.horo-body {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.horo-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.horo-stat {
  text-align: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.horo-stat .stat-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1;
}

.horo-stat .stat-key {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}

.lucky-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--border-glass);
}

.lucky-item {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.lucky-item strong {
  color: var(--text-primary);
  font-weight: 500;
}

.horo-energy-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.horo-ebar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.horo-ebar-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: 60px;
  flex-shrink: 0;
}

.horo-ebar-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 99px;
  overflow: hidden;
}

.horo-ebar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--violet), var(--teal));
  transition: width 1.2s var(--ease-smooth);
}

.horo-ebar-val {
  font-size: 0.72rem;
  color: var(--teal);
  font-weight: 500;
  width: 32px;
  text-align: right;
}

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

.kundli-form {
  padding: 40px;
}

.kundli-chart {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.3s;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 82, 255, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  appearance: none;
  cursor: none;
}

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

.kundli-preview {
  width: 300px;
  height: 300px;
  position: relative;
}

.planet-table {
  width: 100%;
  border-collapse: collapse;
}

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

.planet-table td {
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.planet-table td:first-child {
  color: var(--text-primary);
  font-weight: 500;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.analysis-card {
  padding: 20px;
}

.analysis-card h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.analysis-card p {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

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

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

/* ════════════════════════════════════════════════════════════
   PAGE: COMPATIBILITY
   ════════════════════════════════════════════════════════════ */
.compat-hero-tool {
  max-width: 820px;
  margin: 0 auto;
  padding: 52px 48px;
}

.big-selectors {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: end;
  margin: 40px 0;
}

.sign-select-group label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.sign-select-big {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  appearance: none;
  cursor: none;
  transition: border-color 0.3s;
  outline: none;
}

.sign-select-big:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 82, 255, 0.12);
}

.heart-divider {
  font-size: 2.8rem;
  color: var(--rose);
  text-align: center;
  padding-bottom: 8px;
  filter: drop-shadow(0 0 12px rgba(255, 79, 167, 0.5));
  animation: floatPlanet 3s ease-in-out infinite;
}

.result-panel {
  display: none;
  padding: 48px;
  margin-top: 0;
}

.result-panel.visible {
  display: block;
}

.pair-display {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.pair-sign {
  text-align: center;
}

.pair-symbol {
  font-size: 4rem;
  line-height: 1;
  filter: drop-shadow(0 0 16px rgba(212, 168, 67, 0.4));
}

.pair-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  margin-top: 8px;
}

.pair-plus {
  font-size: 2rem;
  color: var(--text-muted);
}

.score-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto 24px;
  background: conic-gradient(var(--violet) 0deg,
      var(--teal) var(--deg, 0deg),
      rgba(255, 255, 255, 0.06) var(--deg, 0deg));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(124, 82, 255, 0.3);
  transition: --deg 1.4s ease;
}

.score-circle-inner {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.score-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}

.score-label-small {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.match-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-style: italic;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.compat-dimensions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.dim-card {
  padding: 20px;
}

.dim-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.dim-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 6px;
}

.dim-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--violet), var(--teal));
  transition: width 1.2s var(--ease-smooth);
}

.dim-score {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
}

.compat-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-top: 8px;
}

.compat-grid-section {
  margin-top: 80px;
  overflow-x: auto;
}

.compat-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.compat-table th,
.compat-table td {
  padding: 8px 10px;
  text-align: center;
  font-size: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.compat-table th {
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.02);
}

.score-high {
  background: rgba(124, 82, 255, 0.25);
  color: var(--violet-lt);
  font-weight: 600;
}

.score-mid {
  background: rgba(212, 168, 67, 0.12);
  color: var(--gold);
}

.score-low {
  background: rgba(255, 79, 167, 0.1);
  color: var(--rose);
}

@media (max-width: 700px) {
  .big-selectors {
    grid-template-columns: 1fr;
  }

  .compat-dimensions {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════════════════════════
   PAGE: BOOKING
   ════════════════════════════════════════════════════════════ */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}

.service-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-card {
  padding: 24px 28px;
  transition: all 0.35s var(--ease-smooth);
  cursor: none;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
}

.service-card.selected,
.service-card:hover {
  border-color: var(--violet);
  background: rgba(124, 82, 255, 0.1);
  transform: translateX(4px);
}

.svc-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.svc-icon {
  font-size: 1.8rem;
}

.svc-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.svc-price {
  font-size: 0.88rem;
  color: var(--gold);
  font-weight: 500;
  margin-top: 2px;
}

.svc-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.svc-duration {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}

.booking-form-card {
  padding: 44px;
}

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

.astrologer-row,
.astrologer-cards {
  display: grid;
  gap: 14px;
  margin: 4px 0 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.astrologer-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  cursor: none;
  transition: all 0.3s;
  flex: 1;
  min-width: 140px;
  cursor: default;
}

.astrologer-card.selected,
.astrologer-card:hover {
  border-color: var(--gold);
  background: rgba(212, 168, 67, 0.08);
}

.astro-avatar {
  font-size: 1.6rem;
}

.astro-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.astro-spec {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.astro-rating {
  font-size: 0.72rem;
  color: var(--gold);
  margin-top: 2px;
}

.summary-box {
  padding: 32px;
  position: sticky;
  top: 100px;


}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.88rem;
}

.summary-row:last-of-type {
  border-bottom: none;
}

.summary-row span:first-child {
  color: var(--text-muted);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-glow);
}

.summary-total .label {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.summary-total .amount {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
}

.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 2, 12, 0.96);
  backdrop-filter: blur(24px);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

.success-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.success-icon {
  font-size: 5rem;
  animation: fadeInUp 0.6s ease;
}

@media (max-width: 900px) {
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .summary-box {
    position: static;
  }
}

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

@media (max-width:1199px) {
  .icon img {
    width: 70px;
    height: 70px;
  }
}

@media (max-width:991px) {
  .icon img {
    display: none;
  }
}

/* ════════════════════════════════════════════════════════════
   PAGE: TAROT (inner page)
   ════════════════════════════════════════════════════════════ */
.spread-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.spread-btn {
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s;
  cursor: none;
  font-family: var(--font-body);
}

.spread-btn.active,
.spread-btn:hover {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 77, 255, 0.4);
}

.spread-positions {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 14px;
}

.spread-positions span {
  text-align: center;
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tarot-spread-area {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: nowrap;
  align-items: flex-end;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  min-height: 300px;
  scrollbar-width: thin;
}

.tarot-pos-label {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 4px;
}

/* Mobile: shrink cards + enable horizontal swipe so 5-card and 7-card
   spreads remain fully reachable (they were getting clipped before).
   The .spread-positions header strip is hidden — each card already
   carries its own .tarot-pos-label, so no info is lost. */
@media (max-width: 768px) {
  .spread-positions {
    display: none;
  }

  .tarot-spread-area {
    justify-content: flex-start;
    gap: 14px;
    padding-left: 16px;
    padding-right: 16px;
    scroll-snap-type: x mandatory;
    scroll-padding: 16px;
  }

  .tarot-spread-area>.tarot-card {
    max-width: 160px;
    height: 230px;
    scroll-snap-align: center;
  }
}

@media (max-width: 420px) {
  .tarot-spread-area>.tarot-card {
    max-width: 140px;
    height: 205px;
  }
}

.tarot-reading-area {
  max-width: 700px;
  margin: 56px auto 0;
  display: none;
  padding: 30px 30px;
}

.tarot-reading-area.visible {
  display: block;
}

.reading-card {
  padding: 28px;
  margin-bottom: 16px;
}

.reading-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.reading-card p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.suits-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 60px;
}

.suit-card {
  padding: 24px;
  text-align: center;
  min-width: 160px;
  cursor: none;
  transition: transform 0.3s;
}

.suit-card:hover {
  transform: translateY(-6px);
}

.suit-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.suit-name {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.suit-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* blog page css start */
.blog-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 80px) 20px 80px;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 82, 255, 0.22) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(212, 168, 67, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.blog-hero-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: var(--radius-pill);
  padding: 6px 20px;
  margin-bottom: 20px;
}

.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 18px;
}

.blog-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* Filter Bar */
.blog-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 20px 60px;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 8px 22px;
  cursor: none;
  transition: all 0.25s var(--ease-smooth);
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--gold);
  border-color: rgba(212, 168, 67, 0.4);
  background: rgba(212, 168, 67, 0.08);
}

/* ── Blog Grid ── */
.blog-section {
  padding: 0 0 100px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Featured card (first card = full width) */
.blog-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease-smooth), border-color 0.3s;
  align-items: center;
}

.blog-card-featured:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

@media (max-width: 768px) {
  .blog-card-featured {
    grid-template-columns: 1fr;
  }
}

.blog-card-featured .card-img {
  position: relative;
  min-height: 340px;
  overflow: hidden;
}

.blog-card-featured .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.blog-card-featured:hover .card-img img {
  transform: scale(1.04);
}

.blog-card-featured .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 44px;
}

/* Standard card */
.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease-smooth), border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
}

.blog-card .card-img {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.blog-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s var(--ease-smooth);
}

.blog-card:hover .card-img img {
  transform: scale(1.06);
}

.blog-card .card-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Shared card body styles */
.card-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.card-tag.violet {
  color: var(--violet-lt);
}

.card-tag.teal {
  color: var(--teal);
}

.card-tag.rose {
  color: var(--rose);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.42rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.blog-card-featured .card-title {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
}

.card-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.78rem;
  color: rgba(242, 236, 255, 0.5);
}

.card-meta-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gold);
  margin-top: 20px;
  transition: gap 0.2s;
}

.card-read-more:hover {
  gap: 10px;
}

.card-read-more svg {
  width: 14px;
  height: 14px;
}

/* Overlay badge on featured */
.featured-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, var(--violet), var(--gold));
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}

/* ── Newsletter strip ── */
.blog-newsletter {
  margin: 60px 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(124, 82, 255, 0.18) 0%, rgba(212, 168, 67, 0.1) 100%);
  border: 1px solid var(--border-glow);
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-newsletter::before {
  content: '✦';
  position: absolute;
  font-size: 14rem;
  opacity: 0.03;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
}

.blog-newsletter h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.blog-newsletter p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 14px 22px;
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.25s;
}

.newsletter-form input::placeholder {
  color: rgba(242, 236, 255, 0.35);
}

.newsletter-form input:focus {
  border-color: rgba(124, 82, 255, 0.5);
}

@media (max-width: 540px) {
  .newsletter-form {
    flex-direction: column;
  }

  .blog-newsletter {
    padding: 40px 24px;
  }
}

/* Pagination */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 60px;
}

.page-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.25s;
  cursor: none;
}

.page-btn:hover,
.page-btn.active {
  border-color: rgba(212, 168, 67, 0.4);
  color: var(--gold);
  background: rgba(212, 168, 67, 0.08);
}

.page-btn.prev,
.page-btn.next {
  width: auto;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* Cosmic divider reuse */
.cosmic-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), var(--border-gold), var(--border-glow), transparent);
  margin: 0;
}

/* single blog css  */
.post-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 40px) 0 0;
  overflow: hidden;
}

.post-hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.post-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.post-hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(3, 2, 12, 0.2) 0%, rgba(3, 2, 12, 0.85) 70%, var(--bg-void) 100%);
}

.post-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 80px 0 60px;
}

.post-hero-content .container {
  max-width: 820px;
  text-align: center;
  max-width: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(242, 236, 255, 0.45);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: rgba(242, 236, 255, 0.45);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb span {
  color: rgba(242, 236, 255, 0.25);
}

.post-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet-lt);
  border: 1px solid rgba(168, 127, 255, 0.3);
  border-radius: var(--radius-pill);
  padding: 5px 16px;
  margin-bottom: 20px;
}

.post-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.22;
  margin-bottom: 24px;
}

.post-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.82rem;
  color: rgba(242, 236, 255, 0.5);
  justify-content: center;
}

.meta-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.meta-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-author-name {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 0.85rem;
}

.meta-divider {
  color: rgba(242, 236, 255, 0.2);
}

/* ── Content Layout ── */
.post-layout {
  padding: 80px 0 100px;
}

/* minmax(0, 1fr) instead of just 1fr — without the 0 floor, a single
       unbreakable string (long URL, Sanskrit phrase, etc.) inflates the
       grid column past the container and the whole page scrolls sideways.
       The 0 minimum lets grid honour the parent's max-width. */
.post-layout .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 64px;
  align-items: start;
}

@media (max-width: 1024px) {
  .post-layout .container {
    grid-template-columns: minmax(0, 1fr);
    gap: 60px;
  }
}

/* ── Article Body ──
       Tighter rhythm than the original — 1.9 line-height + 1.5em paragraph
       gap made even a 600-word post feel like a scroll-fest. Aim for a
       Notion / Medium-style density: ~1.6 leading, ~1em between paragraphs,
       ~0.4em between list items. Still comfortable, not cramped. */
.post-body {
  font-family: var(--font-serif);
  font-size: 1.13rem;
  line-height: 1.6;
  color: rgba(242, 236, 255, 0.88);
  max-width: 760px;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.post-body img,
.post-body table,
.post-body pre {
  max-width: 100%;
  height: auto;
}

/* Inline images placed in the body via the editor. Rounded to match the
   hero/.post-img treatment, with breathing room above/below. The editor
   may set an inline `width` (resize handles) — that wins, capped by the
   max-width:100% above so it can never overflow the reading column. */
.post-body img {
  border-radius: var(--radius-md);
  display: block;
  margin: 1.8em auto;
}

/* Editor alignment classes (left / center / right). Center is the default
   above; left/right pull the image to a side so text isn't orphaned. */
.post-body img.img-align-left  { margin-left: 0;  margin-right: auto; }
.post-body img.img-align-right { margin-left: auto; margin-right: 0; }
.post-body img.img-align-center{ margin-left: auto; margin-right: auto; }

/* A row of images, side by side instead of stacked. Authored in the editor
   as <div class="blog-img-row"> with 2+ <img> children. Equal widths via
   flex so any mix of portraits/screenshots lines up cleanly; wraps to a
   stack on narrow phones. */
.post-body .blog-img-row {
  display: flex;
  gap: 14px;
  margin: 1.8em 0;
  align-items: flex-start;
}

.post-body .blog-img-row img {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  margin: 0;
  border-radius: var(--radius-md);
}

@media (max-width: 640px) {
  .post-body .blog-img-row {
    flex-wrap: wrap;
  }
  .post-body .blog-img-row img {
    flex-basis: 100%;
  }
}

.post-body p {
  margin: 0 0 0.7em;
}

.post-body ul,
.post-body ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

.post-body li {
  margin-bottom: 0.4em;
}

.post-body li:last-child {
  margin-bottom: 0;
}

/* Rich-text editors wrap list-item text in a <p> (<li><p>text</p></li>).
   Strip that paragraph's margin so lists stay tight instead of double-spaced. */
.post-body li > p {
  margin: 0;
}

.post-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 1.05em 0 0.4em;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.post-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--gold);
  margin: 0.85em 0 0.3em;
  line-height: 1.35;
  letter-spacing: 0.05em;
}

/* First heading of the body shouldn't push down from above by 1.6em
       — there's already padding from the post-layout above it. */
.post-body> :first-child {
  margin-top: 0;
}

.post-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.post-body em {
  font-style: italic;
  color: var(--violet-lt);
}

/* Pull quote */
.post-pull-quote {
  border-left: 3px solid var(--gold);
  padding: 20px 28px;
  margin: 2em 0;
  background: rgba(212, 168, 67, 0.06);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.post-pull-quote p {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gold-lt);
  margin: 0;
  line-height: 1.6;
}

/* Highlight box */
.post-highlight {
  background: rgba(124, 82, 255, 0.1);
  border: 1px solid rgba(124, 82, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin: 2em 0;
}

.post-highlight h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--violet-lt);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.post-highlight ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-highlight ul li {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}

.post-highlight ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--violet-lt);
  font-size: 0.6rem;
  top: 5px;
}

/* Image in article */
.post-img {
  margin: 2.5em 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.post-img img {
  width: 100%;
  display: block;
}

.post-img figcaption {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(242, 236, 255, 0.4);
  text-align: center;
  padding: 12px 20px;
  background: var(--bg-glass);
}

/* Tags & Share */
.post-footer-bar {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.post-tag-pill {
  font-size: 0.75rem;
  font-family: var(--font-body);
  color: var(--text-muted);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  transition: all 0.2s;
}

.post-tag-pill:hover {
  border-color: var(--border-gold);
  color: var(--gold);
}

.share-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(242, 236, 255, 0.4);
}

.share-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  color: var(--text-muted);
  transition: all 0.25s;
  font-size: 0.75rem;
  cursor: none;
}

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

/* ── Sidebar ── */
.post-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  backdrop-filter: blur(12px);
}

.sidebar-card h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-gold);
}

/* TOC */
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-list li a {
  display: block;
  font-size: 0.83rem;
  color: var(--text-muted);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: all 0.2s;
}

.toc-list li a:hover,
.toc-list li a.active {
  color: var(--gold);
  border-left-color: var(--gold);
  background: rgba(212, 168, 67, 0.06);
}

/* Author card */
.author-card {
  text-align: center;
}

.author-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  margin: 0 auto 14px;
}

.author-card h5 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 6px;
}

.author-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.author-card .btn {
  margin-top: 16px;
  font-size: 0.8rem;
  padding: 9px 22px;
}

/* Related posts sidebar */
.related-mini {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.related-mini-item {
  display: flex;
  gap: 14px;
  align-items: center;
}

.related-mini-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.related-mini-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-mini-title {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
  transition: color 0.2s;
}

.related-mini-item:hover .related-mini-title {
  color: var(--gold);
}

.related-mini-date {
  font-size: 0.72rem;
  color: rgba(242, 236, 255, 0.4);
  margin-top: 4px;
  display: block;
  font-family: var(--font-body);
}

/* ── Related Posts Section ── */
.related-posts {
  padding: 80px 0 100px;
  border-top: 1px solid var(--border-glass);
}

.related-posts .section-header {
  margin-bottom: 48px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

.rel-card {
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-glass);
  transition: transform 0.3s var(--ease-smooth), border-color 0.3s;
}

.rel-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

.rel-card-img {
  height: 180px;
  overflow: hidden;
}

.rel-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-smooth);
}

.rel-card:hover .rel-card-img img {
  transform: scale(1.05);
}

.rel-card-body {
  padding: 22px 22px 26px;
}

.rel-card-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}

.rel-card-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Cosmic divider */
.cosmic-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), var(--border-gold), var(--border-glow), transparent);
}

/* Progress bar */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ════════════════════════════════════════════════════════════
   KUNDLI PAGE
   ════════════════════════════════════════════════════════════ */
.kundli-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.kundli-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.kundli-form-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px;
}

/* Summary card */
.ku-summary-card {
  background: linear-gradient(135deg, rgba(124, 82, 255, 0.08), rgba(212, 168, 67, 0.05));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--glow-gold);
}

.ku-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .ku-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .ku-summary-grid {
    grid-template-columns: 1fr;
  }
}

.ku-summary-block {
  text-align: center;
  padding: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.ku-summary-block:last-child {
  border-right: none;
}

@media (max-width: 900px) {
  .ku-summary-block {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 18px;
  }
}

.ku-summary-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 500;
}

.ku-summary-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.ku-summary-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Chart toggles + container */
.ku-chart-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.ku-chart-tab-group {
  display: flex;
  gap: 8px;
}

.ku-chart-container {
  display: flex;
  justify-content: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}

.ni-chart {
  max-width: 100%;
  height: auto;
}

/* South Indian chart grid */
.si-chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 88px);
  gap: 4px;
  width: 360px;
  max-width: 100%;
  background: rgba(124, 82, 255, 0.04);
  border: 1px solid var(--border-gold);
  padding: 6px;
  border-radius: var(--radius-md);
}

@media (max-width: 480px) {
  .si-chart {
    width: 320px;
    grid-template-rows: repeat(4, 78px);
  }
}

.si-cell {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 6px;
  font-size: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.si-cell-lagna {
  border-color: var(--gold);
  background: rgba(212, 168, 67, 0.08);
  box-shadow: inset 0 0 12px rgba(212, 168, 67, 0.15);
}

.si-cell-sign {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.si-cell-num {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 500;
}

.si-cell-sign-name {
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}

.si-cell-planets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--teal);
  font-weight: 600;
}

.si-planet {
  white-space: nowrap;
}

.si-planet sup {
  color: var(--rose);
  font-size: 0.6rem;
}

/* ── South Indian — light Parashara-style theme ── */
.si-chart-light {
  background: #fdfaf2;
  border: 2px solid #d4a843;
  padding: 8px;
}

.si-cell-light {
  background: #fff8e8;
  border: 1px solid rgba(90, 74, 42, 0.25);
  color: #1a1a1a;
}

.si-cell-light.si-cell-lagna {
  background: rgba(212, 168, 67, 0.18);
  border-color: #a44a1f;
  box-shadow: inset 0 0 12px rgba(164, 74, 31, 0.15);
}

.si-cell-light .si-cell-num {
  color: #a44a1f;
  font-weight: 700;
}

.si-cell-light .si-cell-sign-name {
  color: #5a4a2a;
}

.si-cell-light .si-cell-lagna-mark {
  color: #a44a1f;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.04em;
}

.si-cell-light .si-cell-planets {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.62rem;
  font-weight: 600;
  color: #1a1a1a;
  /* base — overridden inline per planet */
}

.si-cell-light .si-planet {
  display: block;
  line-height: 1.2;
}

.si-center-light {
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.18), rgba(164, 74, 31, 0.06));
  border: 1px solid #d4a843;
}

.si-center-light .si-center-title {
  color: #a44a1f;
}

.si-center-light .si-center-sub {
  color: #6b4f1d;
}

.si-center {
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.06), rgba(124, 82, 255, 0.04));
  border: 1px solid var(--border-gold);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.si-center-title {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.si-center-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-style: italic;
}

/* Planet table */
.ku-planet-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}

.ku-planet-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.ku-planet-table th {
  background: rgba(212, 168, 67, 0.08);
  color: var(--gold);
  padding: 14px 16px;
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid var(--border-gold);
}

.ku-planet-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.92rem;
  color: var(--text-secondary);
}

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

.ku-planet-table tr:hover td {
  background: rgba(212, 168, 67, 0.04);
}

.ku-planet-name {
  font-weight: 500;
  color: var(--text-primary);
}

.ku-planet-sym {
  color: var(--gold);
  font-size: 1.1rem;
  margin-right: 6px;
}

.ku-planet-skt {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-style: italic;
}

.ku-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  margin-right: 4px;
}

/* Status flags */
.ku-tag-direct {
  background: rgba(160, 160, 175, 0.16);
  color: #b9b9c9;
}

.ku-tag-retro {
  background: rgba(255, 79, 167, 0.18);
  color: #ff7fb8;
}

.ku-tag-combust {
  background: rgba(255, 138, 0, 0.20);
  color: #ffb04a;
}

.ku-tag-vargo {
  background: rgba(124, 82, 255, 0.20);
  color: #b39bff;
}

/* Dignity ladder — 9 levels (Exalted → Debilitated, strongest to weakest) */
.ku-tag-exalt {
  background: rgba(0, 212, 200, 0.20);
  color: #5fe6dd;
}

.ku-tag-mool {
  background: rgba(0, 200, 130, 0.18);
  color: #5fe0a3;
}

.ku-tag-own {
  background: rgba(212, 168, 67, 0.20);
  color: var(--gold-lt);
}

.ku-tag-gfriend {
  background: rgba(140, 220, 90, 0.18);
  color: #b9e87a;
}

.ku-tag-friend {
  background: rgba(200, 220, 110, 0.16);
  color: #d3da8a;
}

.ku-tag-neutral {
  background: rgba(160, 160, 175, 0.16);
  color: #b9b9c9;
}

.ku-tag-enemy {
  background: rgba(255, 138, 100, 0.18);
  color: #ffae8c;
}

.ku-tag-genemy {
  background: rgba(255, 79, 79, 0.20);
  color: #ff7f7f;
}

.ku-tag-debil {
  background: rgba(255, 79, 167, 0.20);
  color: #ff7fb8;
}

/* Current Dasha box */
.ku-current-dasha {
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.12), rgba(124, 82, 255, 0.06));
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  box-shadow: var(--glow-gold);
}

.ku-dasha-active-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 500;
}

.ku-dasha-active-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 480px) {
  .ku-dasha-active-grid {
    grid-template-columns: 1fr;
  }
}

.ku-dasha-active-sub {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.ku-dasha-active-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.ku-dasha-active-dates {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Dasha table */
.ku-dasha-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.ku-dasha-table th {
  background: rgba(212, 168, 67, 0.08);
  color: var(--gold);
  padding: 12px 14px;
  text-align: left;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ku-dasha-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.ku-dasha-current-row {
  background: rgba(212, 168, 67, 0.06) !important;
}

.ku-dasha-current-row td {
  color: var(--gold-lt);
  font-weight: 500;
}

/* Doshas */
.ku-dosha-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .ku-dosha-grid {
    grid-template-columns: 1fr;
  }
}

.ku-dosha-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.ku-dosha-card.is-clear {
  border-color: rgba(0, 212, 200, 0.3);
  background: rgba(0, 212, 200, 0.04);
}

.ku-dosha-card.is-present {
  border-color: rgba(255, 79, 167, 0.3);
  background: rgba(255, 79, 167, 0.04);
}

.ku-dosha-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.ku-dosha-status {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.ku-dosha-card.is-clear .ku-dosha-status {
  color: #5fe6dd;
}

.ku-dosha-card.is-present .ku-dosha-status {
  color: #ff7fb8;
}

.ku-dosha-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Yogas */
.ku-yoga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.ku-yoga-card {
  background: linear-gradient(135deg, rgba(0, 212, 200, 0.06), rgba(212, 168, 67, 0.04));
  border: 1px solid rgba(0, 212, 200, 0.25);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all 0.3s ease;
}

.ku-yoga-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 212, 200, 0.45);
}

.ku-yoga-icon {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.ku-yoga-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold-lt);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.ku-yoga-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ════════════════════════════════════════════════════════════
   CURSOR — restore normal arrow (override custom cursor styles)
   ════════════════════════════════════════════════════════════ */
html,
body,
button,
a,
.btn,
.nav-cta,
.nav-links a,
input,
select,
textarea,
.glass-card,
.pa-tile,
.pa-muhurat-card,
.pa-tab,
.pa-format-pill,
.pa-suggest-item {
  cursor: auto !important;
}

button,
a,
.btn,
.nav-cta,
.nav-links a,
.pa-tab,
.pa-format-pill,
.pa-suggest-item,
.pa-rashi-card {
  cursor: pointer !important;
}

input,
select,
textarea {
  cursor: text !important;
}

#cursor-dot,
#cursor-ring {
  display: none !important;
}

/* ════════════════════════════════════════════════════════════
   PANCHANG PAGE
   ════════════════════════════════════════════════════════════ */
.panchang-page {
  min-height: 100vh;
}

/* Reveal */
.panchang-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.panchang-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Search card */
.pa-search-card {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  gap: 20px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(124, 82, 255, 0.07), rgba(212, 168, 67, 0.04));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  align-items: end;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .pa-search-card {
    grid-template-columns: 1fr;
  }
}

.pa-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pa-input-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.pa-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.pa-input:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
}

.pa-input::-webkit-calendar-picker-indicator {
  filter: invert(1) sepia(1) hue-rotate(20deg) saturate(2);
  cursor: pointer;
}

.pa-search-btn {
  height: 50px;
  padding: 0 32px;
  white-space: nowrap;
}

/* City suggestions dropdown */
.pa-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-deep);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  max-height: 280px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.pa-suggest-item {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease;
}

.pa-suggest-item:last-child {
  border-bottom: none;
}

.pa-suggest-item:hover {
  background: rgba(212, 168, 67, 0.08);
}

.pa-suggest-name {
  color: var(--text-primary);
  font-weight: 500;
}

.pa-suggest-state {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Loader */
.pa-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px;
}

.pa-loader-orb {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold), var(--violet));
  box-shadow: 0 0 40px rgba(212, 168, 67, 0.5);
  animation: pa-pulse 1.6s ease-in-out infinite;
}

@keyframes pa-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

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

/* Error */
.pa-error {
  padding: 20px 24px;
  background: rgba(255, 79, 167, 0.1);
  border: 1px solid rgba(255, 79, 167, 0.3);
  border-radius: var(--radius-md);
  color: #ff7fb8;
  text-align: center;
}

/* Hero card */
.pa-hero-card {
  background: linear-gradient(135deg, rgba(124, 82, 255, 0.08), rgba(212, 168, 67, 0.05));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 40px;
  backdrop-filter: blur(12px);
  box-shadow: var(--glow-gold);
}

.pa-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 28px;
}

.pa-hero-day {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.pa-hero-date {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.pa-hero-place {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pa-hero-sunmoon {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pa-sun-moon-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.pa-sm-icon {
  font-size: 1.6rem;
}

.pa-sm-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pa-sm-time {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold);
}

.pa-hero-bottom {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .pa-hero-bottom {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .pa-hero-bottom {
    grid-template-columns: 1fr;
  }
}

.pa-hero-stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 500;
}

.pa-hero-stat-value {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 6px;
}

.pa-hero-stat-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Section header */
.pa-section-header {
  text-align: center;
  margin-bottom: 36px;
}

.pa-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--text-primary);
  letter-spacing: 0.03em;
  margin: 8px 0 0;
}

/* Tile grid */
.pa-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .pa-tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .pa-tile-grid {
    grid-template-columns: 1fr;
  }
}

.pa-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: all 0.4s ease;
}

.pa-tile:hover {
  border-color: var(--border-gold);
  background: rgba(212, 168, 67, 0.04);
  transform: translateY(-4px);
}

.pa-tile-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.pa-tile-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 500;
}

.pa-tile-value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.pa-tile-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Muhurat grid */
.pa-muhurat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .pa-muhurat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .pa-muhurat-grid {
    grid-template-columns: 1fr;
  }
}

.pa-muhurat-card {
  border: 1px solid;
  border-radius: var(--radius-md);
  padding: 22px 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.pa-muhurat-card:hover {
  transform: translateY(-3px);
}

.pa-muhurat-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.pa-muhurat-time {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-primary);
}

/* Tabs */
.pa-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.pa-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.pa-tab.active {
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.18), rgba(124, 82, 255, 0.12));
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 24px rgba(212, 168, 67, 0.18);
}

/* Choghadiya table */
.pa-chog-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px;
}

.pa-chog-row {
  display: grid;
  grid-template-columns: 50px 1.5fr 1fr 1.4fr;
  align-items: center;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease;
}

.pa-chog-row:hover {
  transform: translateX(4px);
}

@media (max-width: 600px) {
  .pa-chog-row {
    grid-template-columns: 40px 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 4px 12px;
  }

  .pa-chog-time {
    grid-column: 2 / 4;
  }
}

.pa-chog-num {
  font-family: var(--font-display);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pa-chog-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
}

.pa-chog-nature {
  font-size: 0.82rem;
  text-transform: capitalize;
}

.pa-chog-time {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: right;
}

@media (max-width: 600px) {
  .pa-chog-time {
    text-align: left;
  }
}

/* Time format toggle (12h / 24h) */
.pa-format-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 16px;
  padding: 0 4px;
}

.pa-format-toggle-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.pa-format-toggle-pills {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 3px;
}

.pa-format-pill {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.pa-format-pill.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dk));
  color: var(--bg-deep);
  box-shadow: 0 0 14px rgba(212, 168, 67, 0.35);
}

/* Rashi (Sun Sign / Moon Sign) cards */
.pa-rashi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 700px) {
  .pa-rashi-grid {
    grid-template-columns: 1fr;
  }
}

.pa-rashi-card {
  position: relative;
  padding: 36px 32px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  text-align: center;
  background: linear-gradient(160deg, rgba(212, 168, 67, 0.08), rgba(124, 82, 255, 0.05));
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.pa-rashi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4), var(--glow-gold);
}

.pa-rashi-sun {
  background: linear-gradient(160deg, rgba(212, 168, 67, 0.14), rgba(255, 165, 80, 0.04));
}

.pa-rashi-moon {
  background: linear-gradient(160deg, rgba(124, 82, 255, 0.14), rgba(184, 228, 255, 0.04));
  border-color: rgba(124, 82, 255, 0.32);
}

.pa-rashi-icon {
  font-size: 2.6rem;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 16px currentColor);
}

.pa-rashi-sun .pa-rashi-icon {
  color: var(--gold-lt);
}

.pa-rashi-moon .pa-rashi-icon {
  color: var(--violet-lt);
}

.pa-rashi-label {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 500;
}

.pa-rashi-name {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.pa-rashi-english {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2.4rem, 9vw, 3.4rem);
    margin-top: 8px;
    margin-bottom: 18px;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .hero-ctas {
    gap: 12px;
    margin-bottom: 60px;
  }

  .hero-scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Ensure brand wordmark stays visible above the title even at narrow widths */
  .hero-eyebrow-img {
    visibility: visible !important;
    display: block !important;
  }

  .hero-eyebrow-wrap {
    margin-bottom: 4px;
  }

  #hero {
    min-height: 600px;
    padding-top: var(--nav-h);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .hero-eyebrow-img {
    height: 78px !important;
  }

  .hero-eyebrow-wrap {
    min-height: 78px !important;
  }
}

/* +++++++---KSP CSS+++ */

@media (max-width: 768px) {
  .zp-sign-name {
    font-size: 12px;
    word-break: break-word;
    text-align: center;
    width: 100%;
  }

  .zp-sign-text {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .zp-sign-hero {
    width: 100%;
  }

  .zp-sign-name {
    font-size: clamp(12px, 4vw, 24px);
    white-space: nowrap;
  }
}


@media (max-width: 768px) {
  .summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-right: 0px;
  }

  .summary-box {
    width: 200px;
    padding-left: 5px;
  }

  .summary-row span:first-child {
    min-width: 72px;
    flex-shrink: 0;
  }

  .summary-row span:last-child {
    flex: 1;
    text-align: right;
    white-space: nowrap;
    font-size: 12px;
  }

}


@media (max-width: 768px) {
  .horo-stat {
    min-width: 0;
    padding: 8px 4px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .stat-key {
    font-size: 10px;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    /* IMPORTANT */
  }
}

/* ============================================================
   LIGHT THEME OVERRIDES
   Bespoke rules where structure (not just color tokens) must
   change for the cream/parchment palette to look right.
   ============================================================ */

/* Theme toggle button (host: Navbar). Solid gold pill in both themes
   so the icon never disappears against navbar bg or inherited text color. */
.theme-toggle {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1a1208;
  background: var(--gold);
  border: 1px solid var(--gold-dk);
  border-radius: var(--radius-pill);
  cursor: none;
  transition: background 0.2s var(--ease-smooth), transform 0.2s var(--ease-smooth);
  padding: 0;
  margin-top: -28px;
  box-shadow: var(--glow-gold);
  flex-shrink: 0;
  align-self: center;
}

.theme-toggle svg {
  display: block;
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.theme-toggle:hover {
  background: var(--gold-lt);
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--gold-lt);
  outline-offset: 2px;
}

/* ──────────────────────────────────────────────────────────────────
   NAV DROPDOWN — Services menu
   These rules were dropped during the light-theme CSS rewrite, which
   made the Services dropdown render as plain block flow at the top
   of the page. Restoring them so the dropdown anchors under the
   trigger again. Background uses --nav-bg so it auto-adapts to
   whichever theme is active.
   ────────────────────────────────────────────────────────────────── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-caret {
  font-size: 0.7em;
  margin-left: 4px;
  opacity: 0.7;
  transition: transform 0.3s var(--ease-smooth);
  display: inline-block;
}
.nav-dropdown.open .nav-dropdown-caret {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 260px;
  list-style: none;
  padding: 10px;
  margin: 0;
  background: var(--nav-bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease-smooth), transform 0.25s var(--ease-smooth), visibility 0s linear 0.25s;
  z-index: 1000;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}
.nav-dropdown-menu::before {
  /* invisible hover bridge so the menu doesn't close while moving mouse to it */
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}
.nav-dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: none;
  border-radius: 8px;
  transition: background 0.2s var(--ease-smooth), color 0.2s;
}
.nav-dropdown-menu li a::after { display: none; }
.nav-dropdown-menu li a:hover {
  background: rgba(124, 82, 255, 0.12);
  color: var(--text-primary);
}
.nav-dropdown-icon { font-size: 1.2rem; }
.nav-dropdown-all {
  border-top: 1px solid var(--border-glass);
  margin-top: 6px;
  padding-top: 6px;
}
.nav-dropdown-all a {
  justify-content: center;
  color: var(--teal) !important;
  font-weight: 500;
}

/* Glass overlays on cream — most rules in this file use
   rgba(255,255,255,0.0X) for subtle white sheens that disappear
   on a light bg. Replace with sepia tints for matching subtlety. */
:root[data-theme="light"] .glass-card,
:root[data-theme="light"] .horo-card,
:root[data-theme="light"] .feature-card,
:root[data-theme="light"] .testimonial-card,
:root[data-theme="light"] .pricing-card,
:root[data-theme="light"] .stat-card {
  background: var(--bg-glass);
  border-color: var(--border-glass);
}

:root[data-theme="light"] .glass-card:hover,
:root[data-theme="light"] .horo-card:hover {
  background: var(--bg-glass-hover);
}

/* Inset button highlight: light rim on dark looks wrong on cream.
   Flip to a subtle dark inset for definition. */
:root[data-theme="light"] .btn-primary,
:root[data-theme="light"] .btn-secondary,
:root[data-theme="light"] .nav-cta {
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.08);
  color: var(--on-accent);
}

/* Gradient text — re-tune stops for legibility on cream */
:root[data-theme="light"] .gradient-text,
:root[data-theme="light"] .gradient-text-warm {
  background: linear-gradient(125deg, var(--gold-dk), var(--violet-dk), var(--gold-dk));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Tarot card faces — were deep indigo gradients. Swap to warm
   cream-to-amber for light mode so cards read on cream bg. */
:root[data-theme="light"] .tarot-back {
  background: linear-gradient(160deg, #f1e3b9 0%, #e9d59a 50%, #d6b56e 100%);
  border-color: var(--border-gold);
}

:root[data-theme="light"] .tarot-face {
  background: linear-gradient(165deg, #f7ecca 0%, #ecdaa3 60%, #d8b87a 100%);
  border-color: var(--border-gold);
}

:root[data-theme="light"] .tarot-back-pattern {
  background-image: repeating-linear-gradient(45deg,
      rgba(163, 89, 10, 0.10) 0px,
      rgba(163, 89, 10, 0.10) 1px,
      transparent 1px,
      transparent 14px);
}

/* Navbar: cream-blurred-translucent when scrolled, solid cream otherwise.
   Add subtle bottom border for definition on a cream page. */
:root[data-theme="light"] .navbar {
  border-bottom: 1px solid var(--border-glass);
}

/* Cursor dot/ring — accent colors already track tokens; nothing here. */

/* Scrollbar track inherits --bg-void via existing rules; no override. */

/* ============================================================
   RESTORED FROM PRE-MERGE COMMIT 8f927e0
   The light-theme PR rewrite (#1) dropped these blocks, which
   styled the home content boxes, the services listing/detail
   pages, the page FAQs (.service-faq*), and the .rich-text
   wrapper used by admin-rendered HTML. Without them the home
   page CMS sections rendered with default browser styling
   (dark text on dark bg, native <details> triangles, etc.).

   Rules use the project's CSS-var palette already, so they
   adapt to both themes via the tokens defined at :root.
   ============================================================ */
/* ─────────────────────────────────────────────────────────────────────
   SERVICE PAGES — /services listing + /services/:slug detail
   ────────────────────────────────────────────────────────────────── */

/* Listing grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.services-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.35s var(--ease-smooth), border-color 0.35s var(--ease-smooth);
}
.services-card:hover {
  transform: translateY(-4px);
  border-color: var(--violet);
}
.services-card-icon {
  font-size: 2.6rem;
  margin-bottom: 16px;
}
.services-card-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin: 0 0 8px;
}
.services-card-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 18px;
  flex: 1;
}
.services-card-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 16px;
}
.services-card-price {
  color: var(--gold);
  font-weight: 600;
  font-size: 1.05rem;
}
.services-card-duration {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.services-card-cta {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  border-top: 1px solid var(--border-glass);
  padding-top: 14px;
  transition: color 0.3s var(--ease-smooth);
}
.services-card:hover .services-card-cta {
  color: var(--gold);
}

/* Detail page — hero */
.service-hero-content {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.service-hero-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 24px rgba(212, 168, 67, 0.4));
}
.service-hero-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
}
.service-hero-price {
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 600;
}
.service-hero-duration {
  color: var(--text-muted);
}
.service-hero-cta {
  margin-top: 8px;
}

/* Detail page — full-content section (rich text from Quill).
   Max-width kept ~64ch (≈680px) for comfortable line length; container
   shrinks gracefully on tablet/mobile via the media queries below.
   Multiple boxes stack with consistent spacing via .service-content-stack. */
.service-content-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.service-content {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 40px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.rich-text {
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
/* Quill (and Word/Docs paste) bake inline colors like rgb(0,0,0) and a
   transparent background into every span. On our dark theme that turns
   into invisible text. Force any inline color/background to fall back to
   the theme — admins should style via bold/italic/heading, not color. */
.rich-text [style*="color"] {
  color: inherit !important;
}
.rich-text [style*="background"] {
  background-color: transparent !important;
}
.rich-text h1, .rich-text h2, .rich-text h3, .rich-text h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  letter-spacing: 0.03em;
  line-height: 1.3;
  margin: 1.4em 0 0.6em;
}
.rich-text h1 { font-size: 1.9rem; }
.rich-text h2 { font-size: 1.55rem; }
.rich-text h3 { font-size: 1.25rem; }
.rich-text h4 { font-size: 1.05rem; }
.rich-text p { margin: 0.8em 0; }
.rich-text ul, .rich-text ol { padding-left: 1.4em; margin: 0.8em 0; }
.rich-text li { margin: 0.4em 0; }
.rich-text strong { color: var(--text-primary); font-weight: 600; }
.rich-text em { color: var(--text-primary); }
.rich-text a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: rgba(0, 212, 200, 0.4);
  text-underline-offset: 3px;
}
.rich-text a:hover {
  color: var(--gold);
  text-decoration-color: currentColor;
}
.rich-text blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1em;
  font-style: italic;
  color: var(--text-secondary);
  margin: 1em 0;
}

/* Detail — benefits grid */
.service-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.service-benefit {
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.35s var(--ease-smooth);
}
.service-benefit:hover { transform: translateY(-3px); }
.service-benefit-icon { font-size: 2rem; margin-bottom: 12px; }
.service-benefit-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin: 0 0 8px;
}
.service-benefit-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

/* Detail — process steps */
.service-process {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin: 24px auto 0;
}
.service-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 28px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  transition: border-color 0.3s var(--ease-smooth);
}
.service-step:hover { border-color: var(--violet); }
.service-step-num {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--violet));
  color: #0a0820;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.service-step-title {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  color: var(--text-primary);
  font-size: 1.05rem;
  margin: 0 0 6px;
}
.service-step-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Detail — FAQs */
.service-faqs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
  margin: 24px auto 0;
}
.service-faq {
  padding: 0;
  overflow: hidden;
}
.service-faq summary {
  padding: 20px 26px;
  cursor: pointer;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  font-size: 1rem;
  color: var(--text-primary);
  list-style: none;
  position: relative;
  padding-right: 50px;
  transition: color 0.3s var(--ease-smooth);
}
.service-faq summary::-webkit-details-marker { display: none; }
.service-faq summary::after {
  content: '+';
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform 0.3s var(--ease-smooth);
}
.service-faq[open] summary::after {
  content: '−';
}
.service-faq summary:hover { color: var(--gold); }
.service-faq-answer {
  padding: 0 26px 22px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Detail — final CTA */
.service-final-cta {
  padding: 48px 36px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

/* Tablet tweaks — tighten the content card so it doesn't span the
   whole tablet viewport (text becomes too wide to read comfortably). */
@media (max-width: 900px) {
  .service-content { padding: 30px 30px; }
  .rich-text { font-size: 1rem; }
  .rich-text h1 { font-size: 1.7rem; }
  .rich-text h2 { font-size: 1.4rem; }
  .rich-text h3 { font-size: 1.15rem; }
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .services-card { padding: 24px 22px; }
  .service-hero-icon { font-size: 3rem; }
  .service-content { padding: 24px 20px; }
  .rich-text { font-size: 0.96rem; line-height: 1.65; }
  .rich-text h1 { font-size: 1.5rem; }
  .rich-text h2 { font-size: 1.25rem; }
  .rich-text h3 { font-size: 1.08rem; }
  .rich-text p { margin: 0.7em 0; }
  .service-benefits-grid { grid-template-columns: 1fr; }
  .service-step { padding: 20px 22px; gap: 14px; }
  .service-step-num { flex: 0 0 38px; height: 38px; }
  .service-faq summary { padding: 16px 22px; padding-right: 44px; }
  .service-faq-answer { padding: 0 22px 18px; }
  .service-final-cta { padding: 32px 22px; }
}

/* ─────────────────────────────────────────────────────────────────────
   NAV DROPDOWN — Services menu
   ────────────────────────────────────────────────────────────────── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-caret {
  font-size: 0.7em;
  margin-left: 4px;
  opacity: 0.7;
  transition: transform 0.3s var(--ease-smooth);
  display: inline-block;
}
.nav-dropdown.open .nav-dropdown-caret {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 260px;
  list-style: none;
  padding: 10px;
  margin: 0;
  background: rgba(8, 6, 24, 0.96);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease-smooth), transform 0.25s var(--ease-smooth), visibility 0s linear 0.25s;
  z-index: 1000;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}
.nav-dropdown-menu::before {
  /* invisible hover bridge so the menu doesn't close while moving mouse to it */
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}
.nav-dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: none;
  border-radius: 8px;
  transition: background 0.2s var(--ease-smooth), color 0.2s;
}
.nav-dropdown-menu li a::after { display: none; }
.nav-dropdown-menu li a:hover {
  background: rgba(124, 82, 255, 0.12);
  color: var(--text-primary);
}
.nav-dropdown-icon { font-size: 1.2rem; }
.nav-dropdown-all {
  border-top: 1px solid var(--border-glass);
  margin-top: 6px;
  padding-top: 6px;
}
.nav-dropdown-all a {
  justify-content: center;
  color: var(--teal) !important;
  font-weight: 500;
}

/* Mobile — dropdown becomes inline list inside the hamburger menu */
@media (max-width: 960px) {
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 8px 0 8px 16px;
    min-width: auto;
    transition: none;
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown-caret { display: none; }
}

/* ─────────────────────────────────────────────────────────────────────
   HOME PAGE — Admin-managed content boxes (between zodiac wheel + CTA)
   Reuses .rich-text for inner Quill HTML rendering + the same inline
   color override that ServiceDetail uses, so admin paste from Word
   never produces invisible black text on the dark theme.
   ────────────────────────────────────────────────────────────────── */
.home-boxes-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 32px;
}
.home-box {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 38px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .home-box { padding: 26px 26px; }
}
@media (max-width: 600px) {
  .home-box { padding: 22px 20px; }
}
