/* Crystal Astrology — shared styles */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Manrope:wght@200;300;400;500;600&display=swap');

:root {
  --bg-deep:        #06040f;
  --bg-indigo:      #0d0a24;
  --bg-violet:      #1a0f33;
  --moonstone:      #e8e6f0;
  --lavender:       #c9a4d4;
  --pale-gold:      #f4d35e;
  --soft-gold:      #d4a94a;
  --starlight:      #9fd8e0;
  --amethyst:       #8e6fa3;
  --rose-quartz:    #f0c2d8;
  --glass-border:   rgba(232, 230, 240, 0.15);
  --glass-bg:       rgba(20, 15, 40, 0.35);
  --text-primary:   #e8e6f0;
  --text-muted:     rgba(232, 230, 240, 0.65);
  --text-faint:     rgba(232, 230, 240, 0.4);
}

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

html, body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Manrope', sans-serif;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(ellipse at 15% 10%,  rgba(142, 111, 163, 0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 25%,  rgba(159, 216, 224, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%,  rgba(244, 211, 94, 0.06)  0%, transparent 55%),
    radial-gradient(ellipse at 30% 95%,  rgba(201, 164, 212, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-indigo) 50%, var(--bg-deep) 100%);
  background-attachment: fixed;
}

#starfield {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}

main, header, footer { position: relative; z-index: 1; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: 'Cinzel', serif; font-weight: 400; letter-spacing: 0.04em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.1; }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.2; }
h3 { font-size: 1.3rem; }
.serif { font-family: 'Cormorant Garamond', serif; font-weight: 300; }
.eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--pale-gold);
  opacity: 0.85;
}

a { color: var(--starlight); text-decoration: none; transition: color 0.6s ease; }
a:hover { color: var(--pale-gold); }

/* ---------- Header / nav ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem clamp(1.4rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  background: rgba(6, 4, 15, 0.55);
  position: sticky; top: 0; z-index: 50;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: 'Cinzel', serif; font-size: 1.05rem; letter-spacing: 0.18em;
  color: var(--moonstone); text-transform: uppercase;
}
.brand-mark {
  width: 28px;
  height: 28px;
  display: inline-block;
  object-fit: contain;
  vertical-align: middle;
}
.nav-links { display: flex; gap: 2.2rem; }
.nav-links a {
  font-family: 'Cinzel', serif; font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 0.4rem 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--moonstone); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 50%; bottom: -4px;
  width: 4px; height: 4px; transform: translateX(-50%) rotate(45deg);
  background: var(--pale-gold);
  box-shadow: 0 0 8px var(--pale-gold);
}
@media (max-width: 720px) {
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: 0.7rem; letter-spacing: 0.12em; }
}

/* ---------- Layout ---------- */
.container {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.4rem, 4vw, 3.5rem);
}
.narrow { max-width: 820px; }

/* ---------- Hero ---------- */
.hero {
  text-align: center; padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: 3rem;
}
.hero h1 { margin: 1.4rem auto 1.6rem; max-width: 22ch; }
.hero p.lede {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-style: italic; font-weight: 300;
  max-width: 56ch; margin: 0 auto 2.6rem;
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.95rem 2.2rem;
  font-family: 'Cinzel', serif; font-size: 0.78rem; letter-spacing: 0.22em;
  text-transform: uppercase; cursor: pointer; border: none;
  transition: all 0.6s cubic-bezier(.2,.7,.3,1);
  position: relative; overflow: hidden;
}
.btn-primary {
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--pale-gold) 0%, var(--soft-gold) 50%, var(--rose-quartz) 100%);
  box-shadow: 0 0 0 1px rgba(244, 211, 94, 0.25), 0 8px 32px rgba(244, 211, 94, 0.15);
}
.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(244, 211, 94, 0.5), 0 12px 48px rgba(244, 211, 94, 0.3);
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--moonstone);
  background: transparent;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--pale-gold);
  color: var(--pale-gold);
  box-shadow: 0 0 24px rgba(244, 211, 94, 0.15);
}

/* ---------- Glass panel ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-radius: 2px;
  position: relative;
}
.glass::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(232,230,240,0.06) 0%, transparent 40%, transparent 60%, rgba(244,211,94,0.04) 100%);
}

/* ---------- Section ---------- */
section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head h2 { margin-top: 0.8rem; }
.divider {
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--pale-gold), transparent);
  margin: 1.5rem auto;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 3rem clamp(1.4rem, 4vw, 3.5rem) 2rem;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.82rem; letter-spacing: 0.08em;
  margin-top: 6rem;
}
.site-footer .divider { margin: 0 auto 1.5rem; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.2rem; }
.field label {
  font-family: 'Cinzel', serif; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted);
}
.field input {
  background: rgba(6, 4, 15, 0.6);
  border: 1px solid var(--glass-border);
  color: var(--moonstone);
  padding: 0.85rem 1rem;
  font-family: 'Manrope', sans-serif; font-size: 1rem;
  letter-spacing: 0.02em;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  border-radius: 1px;
}
.field input:focus {
  outline: none;
  border-color: var(--pale-gold);
  box-shadow: 0 0 16px rgba(244, 211, 94, 0.15);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Sigil rotation ---------- */
@keyframes slowSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spin-slow { animation: slowSpin 240s linear infinite; }
.spin-slower { animation: slowSpin 480s linear infinite reverse; }

/* ---------- Fade in on scroll ---------- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 1.2s ease, transform 1.2s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- Tier badges ---------- */
.tier-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  font-family: 'Cinzel', serif; font-size: 0.65rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  border: 1px solid var(--glass-border);
  border-radius: 1px;
}
.tier-free { color: var(--starlight); border-color: rgba(159, 216, 224, 0.4); }
.tier-paid {
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--pale-gold), var(--rose-quartz));
  border-color: transparent;
}

/* ---------- Tooltip ---------- */
#tooltip {
  position: fixed; pointer-events: none;
  background: rgba(6, 4, 15, 0.92);
  border: 1px solid var(--glass-border);
  padding: 0.7rem 0.9rem;
  font-size: 0.82rem; color: var(--moonstone);
  backdrop-filter: blur(8px);
  opacity: 0; transition: opacity 0.3s ease;
  z-index: 100; border-radius: 1px;
  max-width: 240px;
}
#tooltip.visible { opacity: 1; }
#tooltip .tt-title {
  font-family: 'Cinzel', serif; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--pale-gold); margin-bottom: 0.3rem;
}

/* ---------- City autocomplete dropdown ---------- */
.city-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: rgba(10, 7, 22, 0.96);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-radius: 1px;
  z-index: 40;
  max-height: 340px;
  overflow-y: auto;
  display: none;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(244,211,94,0.05);
}
.city-dropdown.open { display: block; }
.city-dropdown::-webkit-scrollbar { width: 6px; }
.city-dropdown::-webkit-scrollbar-track { background: transparent; }
.city-dropdown::-webkit-scrollbar-thumb { background: rgba(244,211,94,0.25); border-radius: 3px; }

.city-option {
  padding: 0.75rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  border-bottom: 1px solid rgba(232,230,240,0.06);
  transition: background 0.25s ease, padding 0.25s ease;
  position: relative;
}
.city-option:last-child { border-bottom: none; }
.city-option:hover, .city-option.active {
  background: linear-gradient(90deg, rgba(244,211,94,0.08), rgba(201,164,212,0.04));
  padding-left: 1.3rem;
}
.city-option.active::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--pale-gold), transparent);
  box-shadow: 0 0 8px var(--pale-gold);
}
.city-flag {
  color: var(--pale-gold);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0.85;
  text-shadow: 0 0 6px rgba(244,211,94,0.5);
}
.city-primary {
  color: var(--moonstone);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 400;
  flex-shrink: 0;
}
.city-secondary {
  color: var(--text-faint);
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.city-empty {
  padding: 1rem 1.2rem;
  color: var(--text-faint);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
}

/* details summary marker */
details summary { list-style: none; outline: none; }
details summary::-webkit-details-marker { display: none; }
details summary::before {
  content: '+'; display: inline-block;
  margin-right: 0.6rem; color: var(--pale-gold);
  transition: transform 0.4s ease;
}
details[open] summary::before { content: '−'; }

/* ==================== INNER TEMPLE ==================== */

.temple-section-head {
  text-align: center;
  margin: clamp(3.5rem, 7vw, 6rem) 0 2.6rem;
}
.temple-section-head .ornament {
  font-size: 1.4rem;
  color: var(--pale-gold);
  margin-bottom: 0.8rem;
  opacity: 0.7;
  text-shadow: 0 0 16px rgba(244, 211, 94, 0.4);
}
.temple-section-head h2 {
  margin: 0.6rem 0 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

/* --- Stone cards --- */
.stone-card {
  padding: 2rem;
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  transition: transform 0.6s ease;
}
.stone-card:hover { transform: translateY(-2px); }
.stone-illustration {
  flex: 0 0 160px;
  width: 160px;
  height: 160px;
  filter: drop-shadow(0 0 20px rgba(244, 211, 94, 0.2));
}
.stone-illustration.small { flex: 0 0 80px; width: 80px; height: 80px; }
.stone-body { flex: 1; min-width: 0; }
.stone-name {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--pale-gold);
  margin-top: 0.4rem;
  text-shadow: 0 0 24px rgba(244, 211, 94, 0.25);
}
.stone-name.small { font-size: 1.15rem; }
.stone-source {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
  text-transform: uppercase;
}
.stone-alt { padding: 1.4rem; gap: 1rem; }

@media (max-width: 880px) {
  #stone-grid { grid-template-columns: 1fr !important; }
  .stone-illustration { flex: 0 0 120px; width: 120px; height: 120px; }
}

/* --- Simples cards --- */
.simples-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.card-corner-mark {
  position: absolute;
  top: 1rem; right: 1.4rem;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--pale-gold);
  opacity: 0.4;
}
.herb-block { margin: 1rem 0; }
.herb-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}
.herb-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.herb-pill {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  background: rgba(20, 15, 40, 0.5);
  border: 1px solid var(--glass-border);
  color: var(--moonstone);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-style: italic;
  border-radius: 1px;
  transition: all 0.4s ease;
}
.herb-pill:hover {
  border-color: rgba(244, 211, 94, 0.4);
  color: var(--pale-gold);
  background: rgba(244, 211, 94, 0.04);
}
.herb-pill.modern {
  font-family: 'Manrope', sans-serif;
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--starlight);
  border-color: rgba(159, 216, 224, 0.2);
}
.herb-pill.modern:hover {
  color: var(--starlight);
  border-color: rgba(159, 216, 224, 0.5);
  background: rgba(159, 216, 224, 0.05);
}
.card-attribution {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-style: italic;
}

@media (max-width: 760px) {
  #simples-grid { grid-template-columns: 1fr !important; }
  #stone-grid { grid-template-columns: 1fr !important; }
}

/* --- Smoke cards --- */
.smoke-card {
  padding: 2rem 1.8rem;
  position: relative;
  overflow: hidden;
  text-align: center;
  --smoke-tint: var(--pale-gold);
}
.smoke-spiral {
  position: absolute;
  top: -20px; right: -20px;
  width: 110px; height: 110px;
  color: var(--smoke-tint);
  opacity: 0.18;
  pointer-events: none;
}
.smoke-glyph {
  font-family: serif;
  font-size: 2.6rem;
  margin: 1rem 0 0.4rem;
  text-shadow: 0 0 32px currentColor;
}
.smoke-name {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--moonstone);
  margin: 0.3rem 0 0.6rem;
}
.smoke-personal {
  border-color: rgba(244, 211, 94, 0.3);
  background: linear-gradient(135deg, rgba(244, 211, 94, 0.05), rgba(201, 164, 212, 0.04));
}
.smoke-alts { margin-top: 1rem; }
.smoke-alts .herb-list { justify-content: center; }

/* --- Sacred Calendar --- */
.calendar-row {
  padding: 1.4rem 1.8rem;
  display: flex;
  gap: 1.6rem;
  align-items: center;
  transition: all 0.5s ease;
}
.calendar-row:hover {
  border-color: rgba(244, 211, 94, 0.3);
  transform: translateX(4px);
}
.calendar-row.is-open {
  border-color: rgba(244, 211, 94, 0.5);
  background: linear-gradient(90deg, rgba(244, 211, 94, 0.06), rgba(20, 15, 40, 0.35));
  box-shadow: 0 0 40px rgba(244, 211, 94, 0.08);
}
.calendar-row.special {
  border-color: rgba(244, 211, 94, 0.4);
  background: linear-gradient(90deg, rgba(244, 211, 94, 0.04), rgba(201, 164, 212, 0.04));
}
.cal-house {
  flex: 0 0 56px;
  height: 56px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 4, 15, 0.6);
}
.cal-house-num {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: var(--pale-gold);
  letter-spacing: 0.04em;
}
.cal-body { flex: 1; min-width: 0; }
.cal-title {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--moonstone);
  margin: 0 0 0.3rem;
  display: inline-block;
}
.cal-tone {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0.1rem 0 0.5rem;
  line-height: 1.5;
}
.cal-meta {
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}
.cal-status {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--glass-border);
  border-radius: 1px;
}
.cal-status.open {
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--pale-gold), var(--rose-quartz));
  border-color: transparent;
  box-shadow: 0 0 16px rgba(244, 211, 94, 0.3);
}

@media (max-width: 720px) {
  .calendar-row { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
}

/* --- Explainer (practical + esoteric dual panel) --- */
.explainer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 auto 2.5rem;
  max-width: 920px;
  background: rgba(20, 15, 40, 0.3);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.explainer::before {
  content: '';
  position: absolute;
  top: 10%; bottom: 10%;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--glass-border) 20%, var(--glass-border) 80%, transparent);
}
.explainer-half {
  padding: 1.5rem 1.8rem;
  position: relative;
}
.explainer-half.practical { background: linear-gradient(135deg, rgba(159, 216, 224, 0.04), transparent); }
.explainer-half.esoteric  { background: linear-gradient(135deg, transparent, rgba(244, 211, 94, 0.04)); }
.explainer-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.explainer-label.practical { color: var(--starlight); }
.explainer-label.esoteric  { color: var(--pale-gold); }
.explainer-glyph {
  font-family: serif;
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.9;
}
.explainer-half p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
  letter-spacing: 0.005em;
}
@media (max-width: 680px) {
  .explainer { grid-template-columns: 1fr; }
  .explainer::before { display: none; }
  .explainer-half.practical { border-bottom: 1px solid var(--glass-border); }
}

/* ==================== DETAILED NATAL DISPLAY ==================== */

.natal-wheel-frame {
  max-width: 720px;
  margin: 0 auto 3.5rem;
  padding: 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-radius: 2px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.natal-wheel-frame svg {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
}

.natal-section-head {
  text-align: center;
  margin: 3rem auto 1.8rem;
  max-width: 760px;
}
.natal-section-head h3 {
  font-family: 'Cinzel', serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  margin: 0.5rem 0 0.8rem;
  color: var(--moonstone);
}
.natal-section-explainer {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 62ch;
  margin: 0 auto;
}

/* Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.pillar-card {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
}
.pillar-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}
.pillar-glyph {
  font-family: serif;
  font-size: 2.4rem;
  line-height: 1;
  text-shadow: 0 0 20px currentColor;
  flex-shrink: 0;
}
.pillar-meta { flex: 1; min-width: 0; }
.pillar-value {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--moonstone);
  margin-top: 0.25rem;
}
.pillar-role {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}
.pillar-sign-note {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
  color: var(--moonstone);
  font-size: 0.88rem;
  line-height: 1.6;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}
.pillar-sign-note strong { color: var(--pale-gold); font-style: normal; font-weight: 400; }
.pillar-sign-note em { color: var(--lavender); font-style: italic; }

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

/* Sect card */
.sect-card { padding: 0; margin-bottom: 2rem; }
.sect-row {
  display: grid;
  grid-template-columns: 160px 160px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.3rem 1.8rem;
  border-bottom: 1px solid var(--glass-border);
}
.sect-row:last-child { border-bottom: none; }
.sect-label {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--pale-gold);
}
.sect-value {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--moonstone);
}
.sect-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
@media (max-width: 780px) {
  .sect-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 1.2rem 1.4rem;
  }
}

/* Aspects */
.aspects-card { padding: 1.8rem 2rem; margin-bottom: 2rem; }
.aspect-key-row {
  display: grid;
  grid-template-columns: 32px 110px 60px 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(232, 230, 240, 0.06);
}
.aspect-key-row:last-child { border-bottom: none; }
.aspect-key-symbol {
  font-family: serif;
  font-size: 1.3rem;
  text-align: center;
  text-shadow: 0 0 10px currentColor;
}
.aspect-key-name {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
}
.aspect-key-angle {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  color: var(--text-faint);
}
.aspect-key-desc {
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.55;
}

.aspects-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border) 20%, var(--glass-border) 80%, transparent);
  margin: 1.5rem 0;
}

.aspect-row {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(232, 230, 240, 0.06);
}
.aspect-row:last-child { border-bottom: none; }
.aspect-row-planets {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.aspect-planet-glyph {
  font-family: serif;
  font-size: 1.3rem;
  text-shadow: 0 0 8px currentColor;
}
.aspect-planet-name {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--moonstone);
}
.aspect-symbol {
  font-family: serif;
  font-size: 1.2rem;
  margin: 0 0.3rem;
  text-shadow: 0 0 8px currentColor;
}
.aspect-name {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.aspect-exactness {
  margin-left: auto;
  font-family: 'Manrope', sans-serif;
  font-size: 0.76rem;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}
.aspect-row-desc {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
  padding-left: 0.2rem;
}
.no-aspects {
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  padding: 1.5rem;
}

@media (max-width: 680px) {
  .aspect-key-row { grid-template-columns: 28px 1fr; }
  .aspect-key-angle { display: none; }
  .aspect-key-desc { grid-column: 1 / -1; color: var(--text-muted); font-size: 0.82rem; margin-top: 0.3rem; padding-left: 2.3rem; }
  .aspect-exactness { margin-left: 0; width: 100%; margin-top: 0.2rem; }
}

/* Placements */
.placements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.placement-card { padding: 1.4rem 1.6rem; }
.placement-top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--glass-border);
}
.placement-glyph {
  font-family: serif;
  font-size: 2rem;
  line-height: 1;
  text-shadow: 0 0 12px currentColor;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}
.placement-meta { flex: 1; min-width: 0; }
.placement-pos {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--moonstone);
  margin-top: 0.15rem;
}
.placement-house {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-top: 0.2rem;
  font-style: italic;
}
.placement-role {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0;
}
/* ==================== INTERPRETATION PAGE ==================== */

/* Simple definition list used for the Twelve Houses */
.interp-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
}
.interp-list dt {
  font-family: 'Cinzel', serif;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--moonstone);
  padding: 0.9rem 0 0.2rem;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}
.interp-list dd {
  margin: 0 0 0.1rem 3rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--glass-border);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.interp-list dt:last-of-type + dd { border-bottom: none; padding-bottom: 0; }
.interp-num {
  display: inline-block;
  width: 2.2rem;
  font-family: 'Cinzel', serif;
  color: var(--pale-gold);
  text-align: right;
  flex-shrink: 0;
}

/* ==================== ACCOUNT / AUTH ==================== */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--glass-border);
}
.auth-tab {
  flex: 1;
  padding: 0.9rem 0.4rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.4s ease, border-color 0.4s ease;
  margin-bottom: -1px;
}
.auth-tab:hover { color: var(--moonstone); }
.auth-tab.active {
  color: var(--pale-gold);
  border-bottom-color: var(--pale-gold);
}
.auth-form .field { margin-bottom: 1rem; }
.auth-error {
  min-height: 1.2em;
  color: #e07a5f;
  font-size: 0.88rem;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  margin-top: 0.4rem;
}
.auth-success {
  min-height: 1.2em;
  color: var(--pale-gold);
  font-size: 0.88rem;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  margin-top: 0.4rem;
}

/* ==================== ZODIAC + PLANET GLYPH RENDERING ==================== */
/* Force Unicode astrological symbols to render as text glyphs, never emoji.
   iOS, Android, and some browsers default to colorful emoji presentation
   for these characters. Three layers of defense:
     1. data files append U+FE0E (text variation selector) after each glyph
     2. font stack starts with serif fonts that have proper text glyphs
     3. font-variant-emoji: text tells browsers explicitly */

html, body {
  font-variant-emoji: text;
}

[style*="font-family:serif"],
[style*="font-family: serif"] {
  font-family: 'Cormorant Garamond', 'Times New Roman', 'Noto Serif',
               'DejaVu Serif', serif !important;
  font-variant-emoji: text;
}

svg text {
  font-variant-emoji: text;
}

.zodiac-glyph,
[data-zodiac-glyph] {
  font-family: 'Cormorant Garamond', 'Times New Roman', 'Noto Serif', serif;
  font-variant-emoji: text;
  font-style: normal;
  font-weight: 400;
  display: inline-block;
  line-height: 1;
}

/* ==================== CAST FOR SOMEONE ELSE BUTTON ==================== */
/* Button now lives at the top of the chart section, right-aligned via flex.
   Naturally responsive — no special mobile handling needed. */

/* ==================== INTERPRETATION — ACCORDION TABS ==================== */
.interp-tab {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: 2px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
.interp-tab[open] {
  border-color: rgba(244, 211, 94, 0.35);
  box-shadow: 0 0 30px rgba(244, 211, 94, 0.06);
}
.interp-tab:hover {
  border-color: rgba(244, 211, 94, 0.25);
}

.interp-tab summary {
  padding: 1.3rem clamp(1.3rem, 3vw, 2.2rem);
  cursor: pointer;
  list-style: none;
  outline: none;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  position: relative;
  transition: background 0.5s ease;
}
.interp-tab summary::-webkit-details-marker,
.interp-tab summary::marker { display: none; }
.interp-tab summary::before { content: none; } /* override the global details summary::before */

.interp-tab summary:hover {
  background: linear-gradient(90deg, rgba(244, 211, 94, 0.04), transparent);
}

.interp-tab .tab-label {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pale-gold);
  flex-shrink: 0;
  opacity: 0.9;
  white-space: nowrap;
}
.interp-tab .tab-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--moonstone);
  flex: 1;
  line-height: 1.3;
}
.interp-tab .tab-chevron {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-right: 1.5px solid var(--pale-gold);
  border-bottom: 1.5px solid var(--pale-gold);
  transform: rotate(45deg);
  transition: transform 0.5s cubic-bezier(.4, 0, .2, 1);
  margin-left: 0.4rem;
  margin-bottom: 4px;
  opacity: 0.75;
}
.interp-tab[open] .tab-chevron {
  transform: rotate(225deg);
  margin-bottom: -2px;
  opacity: 1;
}

.interp-tab .tab-body {
  padding: 0 clamp(1.3rem, 3vw, 2.2rem) clamp(1.5rem, 3vw, 2.2rem);
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
  margin-top: 0.1rem;
}

.interp-tab .tab-body h3 {
  font-family: 'Cinzel', serif;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

/* When stacked on small screens, the tab label and title stack vertically */
@media (max-width: 600px) {
  .interp-tab summary {
    flex-wrap: wrap;
    gap: 0.3rem 1rem;
  }
  .interp-tab .tab-title { flex: 1 1 100%; }
  .interp-tab .tab-chevron {
    position: absolute;
    top: 1.5rem;
    right: 1.3rem;
  }
}

/* ==================== INNER CIRCLE — TWO-TIER TABS ==================== */

/* Top-level tabs: "Your Chart" | "Your Gifts" — big, commanding, obviously interactive */
.circle-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 880px;
  margin: 0 auto 3rem;
}
.circle-tab {
  background: rgba(10, 7, 22, 0.55);
  border: 2px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: 3px;
  padding: 1.6rem 1.8rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.45s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  font-family: inherit;
}
/* Shimmer sweep on hover */
.circle-tab::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(244, 211, 94, 0.08), transparent);
  transition: left 0.8s ease;
  pointer-events: none;
}
.circle-tab:hover {
  border-color: rgba(244, 211, 94, 0.55);
  color: var(--moonstone);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(244, 211, 94, 0.12), 0 0 0 1px rgba(244, 211, 94, 0.2);
}
.circle-tab:hover::after { left: 100%; }
.circle-tab.active {
  border-color: var(--pale-gold);
  background: linear-gradient(135deg, rgba(244, 211, 94, 0.12), rgba(201, 164, 212, 0.06));
  color: var(--moonstone);
  box-shadow: 0 0 50px rgba(244, 211, 94, 0.18), 0 0 0 1px rgba(244, 211, 94, 0.3), inset 0 0 30px rgba(244, 211, 94, 0.04);
}

/* Text block */
.circle-tab-text { flex: 1; min-width: 0; }
.circle-tab-label {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: inherit;
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.circle-tab.active .circle-tab-label {
  color: var(--pale-gold);
  text-shadow: 0 0 20px rgba(244, 211, 94, 0.4);
}
.circle-tab-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  line-height: 1.4;
  display: block;
}
.circle-tab:hover .circle-tab-sub,
.circle-tab.active .circle-tab-sub { color: var(--text-muted); }

/* Chevron indicator on the right — rotates/animates to show interactivity */
.circle-tab-arrow {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.4;
  transition: all 0.4s ease;
  margin-right: 0.4rem;
}
.circle-tab:hover .circle-tab-arrow {
  opacity: 1;
  transform: rotate(-45deg) translateX(3px) translateY(-3px);
  color: var(--pale-gold);
}
.circle-tab.active .circle-tab-arrow {
  color: var(--pale-gold);
  opacity: 0.9;
  transform: rotate(45deg);
}

@media (max-width: 600px) {
  .circle-tabs { grid-template-columns: 1fr; gap: 0.7rem; }
  .circle-tab { padding: 1.3rem 1.4rem; }
  .circle-tab-label { font-size: 1rem; }
}

/* Hint text above tabs */
.circle-tabs-hint {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--text-faint);
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}

/* ---------- Sub-tabs inside the Gifts panel ---------- */
.gift-tabs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  padding: 0;
}
.gift-tab {
  background: rgba(10, 7, 22, 0.55);
  border: 2px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 3px;
  padding: 1rem 0.4rem 0.9rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.45s cubic-bezier(.4, 0, .2, 1);
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.gift-tab::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--pale-gold);
  transform: translateX(-50%);
  transition: width 0.5s ease;
  box-shadow: 0 0 8px var(--pale-gold);
}
.gift-tab:hover {
  border-color: rgba(244, 211, 94, 0.45);
  color: var(--moonstone);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(244, 211, 94, 0.1);
}
.gift-tab:hover::after { width: 60%; }
.gift-tab.active {
  background: linear-gradient(135deg, rgba(244, 211, 94, 0.14), rgba(201, 164, 212, 0.06));
  border-color: var(--pale-gold);
  color: var(--pale-gold);
  box-shadow: 0 0 30px rgba(244, 211, 94, 0.18), inset 0 0 20px rgba(244, 211, 94, 0.04);
}
.gift-tab.active::after { width: 80%; }

.gift-tab-num {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  opacity: 0.55;
  color: inherit;
  transition: all 0.4s ease;
}
.gift-tab.active .gift-tab-num {
  opacity: 1;
  color: var(--pale-gold);
  text-shadow: 0 0 10px rgba(244, 211, 94, 0.4);
}
.gift-tab-label {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.15;
}

@media (max-width: 960px) {
  .gift-tabs { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .gift-tabs { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Feature V: Transits + Feature VII: Synastry (shared aspect card) ---------- */
/* A "reading card" pattern: gold-glow aspect title at top, planet glyph
   trinity below, border-top divider, italic-serif reading body. Mirrors
   the crafted feel of .stone-card and .smoke-card. */
.transit-card {
  padding: 1.8rem 2rem 1.6rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.6s ease, border-color 0.6s ease;
}
.transit-card:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 211, 94, 0.22);
}
.transit-orb-badge {
  position: absolute;
  top: 1.2rem; right: 1.6rem;
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.transit-aspect-title {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  color: var(--pale-gold);
  text-shadow: 0 0 24px rgba(244, 211, 94, 0.25);
  margin: 0 6.5rem 0.9rem 0;
}
.transit-planets-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 0.2rem;
}
.transit-planet-block {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.transit-planet-glyph {
  font-family: serif;
  font-size: 1.8rem;
  line-height: 1;
  text-shadow: 0 0 18px currentColor;
}
.transit-planet-label {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.transit-aspect-between {
  font-family: serif;
  font-size: 1.4rem;
  line-height: 1;
  margin: 0 0.15rem;
  text-shadow: 0 0 14px currentColor;
}
.transit-reading {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}
.transit-reading-label {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.55rem;
  display: block;
}
.transit-reading p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.08rem;
  font-style: italic;
  color: var(--moonstone);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 600px) {
  .transit-card { padding: 1.5rem 1.4rem; }
  .transit-orb-badge { position: static; display: block; margin-bottom: 0.4rem; }
  .transit-aspect-title { margin-right: 0; font-size: 1.15rem; }
  .transit-planet-glyph { font-size: 1.5rem; }
}

/* ---------- Feature VI: Solar Return ---------- */
.sr-wheel-frame {
  max-width: 540px;
  margin: 0 auto 2.4rem;
  aspect-ratio: 1/1;
}
.sr-section {
  padding: 1.9rem 2rem;
  margin-bottom: 1.2rem;
  position: relative;
  overflow: hidden;
}
.sr-section h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--pale-gold);
  text-shadow: 0 0 24px rgba(244, 211, 94, 0.22);
  margin: 0 0 0.95rem;
}
.sr-section h4::before {
  content: '✦';
  color: var(--pale-gold);
  font-size: 0.85em;
  margin-right: 0.55rem;
  opacity: 0.75;
  text-shadow: 0 0 14px rgba(244, 211, 94, 0.35);
}
.sr-section p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--moonstone);
  line-height: 1.65;
  margin: 0;
}
.sr-section .sr-detail {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--glass-border);
  font-family: 'Manrope', sans-serif;
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
/* Benefic = starlight cool tint; Growth Edge = rose warm tint */
.sr-section.sr-benefic {
  border-color: rgba(159, 216, 224, 0.22);
  background: linear-gradient(135deg, rgba(159, 216, 224, 0.04), rgba(20, 15, 40, 0.3));
}
.sr-section.sr-benefic h4 {
  color: var(--starlight);
  text-shadow: 0 0 24px rgba(159, 216, 224, 0.22);
}
.sr-section.sr-benefic h4::before {
  content: '✧';
  color: var(--starlight);
  text-shadow: 0 0 14px rgba(159, 216, 224, 0.35);
}
.sr-section.sr-malefic {
  border-color: rgba(240, 194, 216, 0.22);
  background: linear-gradient(135deg, rgba(240, 194, 216, 0.04), rgba(20, 15, 40, 0.3));
}
.sr-section.sr-malefic h4 {
  color: var(--rose-quartz);
  text-shadow: 0 0 24px rgba(240, 194, 216, 0.22);
}
.sr-section.sr-malefic h4::before {
  content: '❂';
  color: var(--rose-quartz);
  text-shadow: 0 0 14px rgba(240, 194, 216, 0.35);
}
.sr-benefic-malefic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .sr-benefic-malefic { grid-template-columns: 1fr; }
}
.sr-keytransits .key-transit-row {
  padding: 1rem 0;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
  transition: padding-left 0.5s ease;
}
.sr-keytransits .key-transit-row:hover { padding-left: 0.4rem; }
.sr-keytransits .key-transit-row:last-child { border-bottom: none; padding-bottom: 0.2rem; }
.sr-keytransits .key-transit-row .kt-planets {
  font-family: serif;
  font-size: 1.5rem;
  min-width: 5rem;
  color: var(--pale-gold);
  text-shadow: 0 0 18px rgba(244, 211, 94, 0.25);
}
.sr-keytransits .key-transit-row .kt-desc {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.04rem;
  color: var(--moonstone);
  flex: 1;
  min-width: 15rem;
  line-height: 1.55;
}

/* ---------- Feature VII: Synastry (form + banner + summary) ---------- */
.syn-form-wrap {
  padding: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 2rem;
}
.syn-banner {
  padding: 1.1rem 1.6rem;
  margin-bottom: 1.8rem;
  background: linear-gradient(135deg, rgba(159, 216, 224, 0.08), rgba(20, 15, 40, 0.3));
  border: 1px solid rgba(159, 216, 224, 0.28);
  border-radius: 1px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.syn-banner-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--moonstone);
  font-size: 1.15rem;
  text-shadow: 0 0 18px rgba(232, 230, 240, 0.15);
}
.syn-privacy-note {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--text-faint);
  text-align: center;
  margin-top: 1.1rem;
}
.syn-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.6rem;
}
@media (max-width: 560px) {
  .syn-summary { grid-template-columns: 1fr; }
}
.syn-summary-cell {
  padding: 1.7rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease, border-color 0.5s ease;
}
.syn-summary-cell:hover { transform: translateY(-2px); }
.syn-summary-cell.syn-harm {
  border-color: rgba(159, 216, 224, 0.22);
  background: linear-gradient(180deg, rgba(159, 216, 224, 0.05), transparent);
}
.syn-summary-cell.syn-chal {
  border-color: rgba(240, 194, 216, 0.22);
  background: linear-gradient(180deg, rgba(240, 194, 216, 0.05), transparent);
}
.syn-summary-cell.syn-conj {
  border-color: rgba(244, 211, 94, 0.26);
  background: linear-gradient(180deg, rgba(244, 211, 94, 0.06), transparent);
}
.syn-summary-num {
  font-family: 'Cinzel', serif;
  font-size: 2.6rem;
  color: var(--pale-gold);
  display: block;
  margin-bottom: 0.35rem;
  line-height: 1;
}
.syn-summary-cell.syn-harm .syn-summary-num {
  color: var(--starlight);
  text-shadow: 0 0 28px rgba(159, 216, 224, 0.35);
}
.syn-summary-cell.syn-chal .syn-summary-num {
  color: var(--rose-quartz);
  text-shadow: 0 0 28px rgba(240, 194, 216, 0.35);
}
.syn-summary-cell.syn-conj .syn-summary-num {
  color: var(--pale-gold);
  text-shadow: 0 0 28px rgba(244, 211, 94, 0.35);
}
.syn-summary-label {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.syn-synth {
  padding: clamp(1.6rem, 3vw, 2.2rem);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.18rem;
  font-style: italic;
  color: var(--moonstone);
  line-height: 1.68;
  text-align: center;
  background: linear-gradient(180deg, rgba(244, 211, 94, 0.03), transparent);
}

/* ==================== SACRED CORRESPONDENCES (Archetype + Archangel) ==================== */
.correspondence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-bottom: 3.5rem;
}
@media (max-width: 820px) { .correspondence-grid { grid-template-columns: 1fr; } }

.correspondence-card {
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background: linear-gradient(180deg, rgba(244, 211, 94, 0.025), rgba(20, 15, 40, 0.35));
  border-color: rgba(244, 211, 94, 0.2);
}

.correspondence-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}
.correspondence-sign {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: var(--moonstone);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Tarot card visual */
/* Archetype + Archangel display frames */
.archetype-display, .archangel-display {
  display: flex;
  justify-content: center;
  margin: 1.4rem 0;
}
.archetype-frame, .archangel-frame {
  position: relative;
  padding: 2rem 1.5rem;
  width: 100%;
  max-width: 280px;
  text-align: center;
  background: linear-gradient(180deg, rgba(244, 211, 94, 0.08), rgba(201, 164, 212, 0.04));
  border: 1px solid rgba(244, 211, 94, 0.35);
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(244, 211, 94, 0.08), inset 0 0 20px rgba(244, 211, 94, 0.04);
}
.archetype-frame::before, .archangel-frame::before,
.archetype-frame::after, .archangel-frame::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--pale-gold);
  opacity: 0.5;
}
.archetype-frame::before, .archangel-frame::before {
  top: 6px; left: 6px;
  border-right: none; border-bottom: none;
}
.archetype-frame::after, .archangel-frame::after {
  bottom: 6px; right: 6px;
  border-left: none; border-top: none;
}

/* Archetype text */
.archetype-number {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--pale-gold);
  opacity: 0.85;
  margin-bottom: 0.8rem;
}
.archetype-name {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  letter-spacing: 0.12em;
  color: var(--moonstone);
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.2;
}
.archetype-divider, .archangel-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pale-gold), transparent);
  margin: 1rem auto;
  opacity: 0.6;
}
.archetype-tagline, .archangel-epithet {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--rose-quartz);
  letter-spacing: 0.02em;
}

/* Archangel */
.archangel-label {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--pale-gold);
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.8rem;
}
.archangel-name {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 2.4vw, 1.8rem);
  letter-spacing: 0.08em;
  color: var(--moonstone);
  font-weight: 400;
  line-height: 1.1;
}
.archangel-epithet { color: var(--lavender); }

.correspondence-meaning {
  font-family: 'Cormorant Garamond', serif;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0;
}

/* ==================== PANEL HIGHLIGHT IMAGES ==================== */
/* A background image fades in when the user hovers a panel. Each panel
   with class .has-highlight contains a .panel-highlight div with a
   background-image set inline. The image sits beneath all content and
   fades in from 0 to ~35% opacity on hover. */

.has-highlight {
  position: relative;
  overflow: hidden;
  transition: border-color 0.6s ease, box-shadow 0.6s ease;
}

.has-highlight > :not(.panel-highlight) {
  position: relative;
  z-index: 2;
}

.panel-highlight {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  z-index: 1;
}

/* Dark gradient overlay layered on top of the image so text stays readable */
.panel-highlight::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg,
    rgba(10, 7, 22, 0.35) 0%,
    rgba(10, 7, 22, 0.55) 100%);
  opacity: 1;
  transition: opacity 0.8s ease;
}

.has-highlight:hover .panel-highlight {
  opacity: 0.85;
}

.has-highlight:hover {
  border-color: rgba(244, 211, 94, 0.4);
  box-shadow: 0 10px 40px rgba(244, 211, 94, 0.1);
}

/* Touch devices: show highlight on tap/focus too */
.has-highlight:focus-within .panel-highlight,
.has-highlight:active .panel-highlight {
  opacity: 0.85;
}
