/* ============================================================
   MyStars V2 — Landing Page Design System
   Aesthetic: Celestial Intimacy — deep cosmos + warm gold
   ============================================================ */

/* Fonts imported here so every page picks them up without editing each <head>. */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:wght@400;500;600&display=swap');

/* ── Google Fonts (loaded in HTML) ─────────────────────────── */
/* Cormorant Garamond — elegant high-contrast serif for headings
   DM Sans — clean geometric sans for body text */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --color-bg:            #060613;
  --color-bg-deep:       #03030a;
  --color-surface:       #0e0e20;
  --color-surface-light: #151530;
  --color-accent:        #d4a55a;
  --color-accent-soft:   #d4a55a33;
  --color-accent-glow:   #d4a55a22;
  --color-accent-hover:  #e8bd74;
  --color-text:          #e8e0d4;
  --color-text-muted:    #8a8298;
  --color-text-dim:      #5c5572;
  --color-border:        #1e1e38;
  --color-border-accent: #d4a55a30;

  --color-error:            #e74c3c;
  --color-success:          #27ae60;
  --color-teal:             #4a90a4;
  --color-purple:           #7a5fa0;

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --font-serif:   var(--font-display);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-pill: 100px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

/* ── Base ──────────────────────────────────────────────────── */
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-accent-hover);
}

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.4s, backdrop-filter 0.4s;
}

.nav.scrolled {
  background-color: rgba(6, 6, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}

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

.nav-links a {
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-links a.active {
  color: var(--color-accent);
}

.nav-cta {
  background: var(--color-accent);
  color: var(--color-bg) !important;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  transition: background-color 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--color-accent-hover);
  color: var(--color-bg) !important;
  transform: translateY(-1px);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

/* Background image layer */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../hero-bg.png') center center / cover no-repeat;
  opacity: 0.55;
  z-index: 0;
}

/* Gradient overlay for text readability and bottom fade */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, transparent 0%, var(--color-bg) 100%),
    linear-gradient(to bottom, transparent 60%, var(--color-bg) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.2s forwards;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.4s forwards;
}

.hero-headline em {
  font-style: italic;
  color: var(--color-accent);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.6s forwards;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.8s forwards;
}

/* ── Primary Button ────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 0 0 0 var(--color-accent-soft);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--color-accent-soft);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  color: var(--color-text);
  border-color: var(--color-text-dim);
}

.hero-note {
  font-size: 13px;
  color: var(--color-text-dim);
}

/* ── Star field (CSS-only decorative dots) ─────────────────── */
.stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.stars span {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0%   { opacity: 0.15; }
  100% { opacity: 0.7; }
}

/* ── Section Layout ────────────────────────────────────────── */
.section {
  padding: 96px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ── Divider ───────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-border), transparent);
  max-width: 1080px;
  margin: 0 auto;
}

/* ── Feature Cards ─────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg-deep) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-glow);
  border: 1px solid var(--color-border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ── Sample Reading Showcase ───────────────────────────────── */
.showcase {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.showcase-card {
  position: relative;
  background: linear-gradient(160deg, var(--color-surface-light) 0%, var(--color-surface) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  overflow: hidden;
}

/* Decorative glow behind the card */
.showcase-card::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(ellipse at 30% 30%, var(--color-accent-glow) 0%, transparent 60%);
  pointer-events: none;
}

.showcase-quote-mark {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.25;
  position: absolute;
  top: 20px;
  left: 32px;
  pointer-events: none;
  user-select: none;
}

.showcase-text {
  position: relative;
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  line-height: 1.9;
  color: var(--color-text);
}

.showcase-caption {
  position: relative;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.showcase-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.5;
}

/* ── Pricing ───────────────────────────────────────────────── */
.pricing-section {
  text-align: center;
}

.pricing-card {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  background: linear-gradient(160deg, var(--color-surface-light) 0%, var(--color-surface) 100%);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  overflow: hidden;
}

/* Subtle top glow */
.pricing-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--color-accent), transparent);
  border-radius: 2px;
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 4px;
}

.pricing-amount span {
  font-size: 22px;
  color: var(--color-text-muted);
  font-weight: 300;
}

.pricing-tagline {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.pricing-list {
  list-style: none;
  text-align: left;
  margin-bottom: 36px;
}

.pricing-list li {
  padding: 8px 0;
  font-size: 15px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent-glow);
  border: 1px solid var(--color-border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
  font-size: 12px;
}

.pricing-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pricing-cta-wrap .btn-primary {
  width: 100%;
  justify-content: center;
}

.pricing-cta-note {
  font-size: 13px;
  color: var(--color-text-dim);
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-dim);
  border-top: 1px solid var(--color-border);
}

.footer a {
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--color-accent);
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .section {
    padding: 64px 20px;
  }

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

  .feature-card {
    padding: 24px 20px;
  }

  .showcase-card {
    padding: 32px 24px;
  }

  .showcase-text {
    font-size: 17px;
  }

  .pricing-card {
    padding: 36px 24px;
  }

  .pricing-amount {
    font-size: 40px;
  }

  .hero {
    padding: 100px 20px 64px;
  }

  .hero-sub {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 36px;
  }

  .btn-primary {
    padding: 12px 28px;
    font-size: 15px;
  }
}


/* ============================================================
   App Pages — Shared Components
   (cards, forms, banners, badges, reading content, etc.)
   ============================================================ */

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
}

main {
  flex: 1;
  padding-top: 80px;
  padding-bottom: 40px;
}

/* ── Card ─────────────────────────────────────────────────── */
.card {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg-deep) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

/* ── Form Elements ────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"] {
  width: 100%;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="number"]:focus {
  border-color: var(--color-accent);
  outline: none;
}

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.help-text {
  font-size: 13px;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: 6px;
  line-height: 1.6;
}

.form-group.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-group.checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--color-accent);
  flex-shrink: 0;
  cursor: pointer;
}

.form-group.checkbox label {
  display: inline;
  margin-bottom: 0;
  font-size: 14px;
  color: var(--color-text);
  letter-spacing: normal;
  cursor: pointer;
  line-height: 1.5;
}

.form-group.checkbox label a {
  color: var(--color-accent);
}

/* ── Button Variants ──────────────────────────────────────── */
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary-lg {
  height: 52px;
  font-size: 18px;
  padding: 0 36px;
  display: inline-flex;
  align-items: center;
}

.btn-full {
  width: 100%;
  display: block;
  text-align: center;
}

.btn-danger {
  background: transparent;
  border: 1px solid var(--color-error);
  color: var(--color-error);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font-body);
  transition: opacity 0.2s;
}

.btn-danger:hover {
  opacity: 0.8;
}

.btn-subtle {
  background: transparent;
  color: var(--color-text-muted);
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font-body);
  text-decoration: underline;
  padding: 0;
  transition: color 0.2s;
}

.btn-subtle:hover {
  color: var(--color-text);
}

/* ── Messages ─────────────────────────────────────────────── */
.error-message {
  color: var(--color-error);
  font-size: 14px;
  display: none;
  margin-bottom: 12px;
}

.error-message.visible {
  display: block;
}

.success-message {
  color: var(--color-success);
  font-size: 14px;
}

/* ── Banner ───────────────────────────────────────────────── */
.banner {
  background: var(--color-surface);
  border-left: 3px solid var(--color-accent);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.banner-dismiss {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  padding: 0;
  transition: color 0.2s;
}

.banner-dismiss:hover {
  color: var(--color-text);
}

/* ── Reading Content ──────────────────────────────────────── */
.reading-content {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-text);
}

.reading-content h2 {
  font-size: 22px;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--color-accent);
}

.reading-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.reading-content li {
  margin-bottom: 6px;
}

.reading-content p {
  margin-bottom: 16px;
}

.reading-content strong {
  font-weight: 600;
}

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-teaser {
  background-color: var(--color-text-muted);
  color: var(--color-bg);
}

.badge-natal {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

.badge-weekly {
  background-color: var(--color-teal);
  color: #fff;
}

.badge-monthly {
  background-color: var(--color-purple);
  color: #fff;
}

/* ── Loading Pulse ────────────────────────────────────────── */
@keyframes pulse {
  0%   { opacity: 0.4; }
  50%  { opacity: 1;   }
  100% { opacity: 0.4; }
}

.loading-pulse {
  animation: pulse 1.5s ease-in-out infinite;
}

/* ── HR ───────────────────────────────────────────────────── */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 32px 0;
}

/* ── Typography Helpers ───────────────────────────────────── */
.page-heading {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--color-accent);
  line-height: 1.4;
  margin-bottom: 8px;
  font-weight: 400;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--color-accent);
  line-height: 1.4;
  margin-bottom: 24px;
  font-weight: 400;
}

/* ── Nav Hamburger (app pages) ────────────────────────────── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  font-size: 22px;
  padding: 4px;
  align-items: center;
  justify-content: center;
}

/* ── App Pages Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }

  .nav.mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(6, 6, 19, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 8px 24px;
    border-bottom: 1px solid var(--color-border);
    gap: 0;
  }

  .nav.mobile-open .nav-links li {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
  }

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

  .nav.mobile-open .nav-links .nav-cta {
    display: inline-block;
    text-align: center;
    margin-top: 4px;
  }

  .btn-primary-lg {
    width: 100%;
    justify-content: center;
  }
}

/* ── Natal chart visualizer ─────────────────────────────────── */

.chart-container {
  max-width: 1280px !important;
}

/* The chart is the first thing under the fixed nav; main already pads 80px
   on top, so the section's default 96px top padding is excessive. */
.section:has(> .chart-container) {
  padding-top: 32px;
}

.chart-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.chart-wrap {
  position: relative;
  width: min(100%, calc(100vh - 220px));
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

#chart-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.55;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 10;
  max-width: 280px;
  white-space: nowrap;
}

.chart-tooltip strong {
  color: var(--color-accent);
  font-weight: 500;
}

.chart-sign-glyph {
  font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols', 'Noto Sans Symbols 2', 'Symbola', 'DejaVu Sans', sans-serif;
  font-size: 30px;
  fill: var(--color-accent);
  opacity: 0.85;
  cursor: pointer;
  transition: opacity 0.2s;
}

.chart-sign-glyph:hover {
  opacity: 1;
}

.chart-sign-wedge {
  cursor: pointer;
  pointer-events: all;
  transition: fill 0.2s;
}

.chart-sign-wedge:hover {
  fill: var(--color-accent-glow) !important;
}

.chart-house-number {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  fill: var(--color-text-muted);
  pointer-events: none;
  opacity: 0.85;
}

.chart-house-wedge {
  cursor: pointer;
  pointer-events: all;
  transition: fill 0.2s;
}

.chart-house-wedge:hover {
  fill: var(--color-accent-glow) !important;
}

.chart-planet-glyph {
  font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols', 'Noto Sans Symbols 2', 'Symbola', 'DejaVu Sans', sans-serif;
  font-size: 28px;
  fill: var(--color-text);
  pointer-events: none;
  transition: opacity 0.2s;
}

.chart-planet-hit {
  cursor: pointer;
  pointer-events: all;
}

.chart-planet-hit:hover {
  fill: var(--color-accent-glow);
}

.chart-planet-retro {
  font-family: var(--font-body);
  font-size: 12px;
  fill: var(--color-accent);
  pointer-events: none;
}

.chart-axis-label {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
  fill: var(--color-accent);
  pointer-events: none;
}

.chart-axis-hit {
  cursor: pointer;
  pointer-events: all;
}

.chart-aspect {
  cursor: pointer;
  pointer-events: all;
  transition: opacity 0.2s, stroke-width 0.2s;
}

.chart-controls {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  width: 100%;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px 36px;
}

.chart-control-section h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.chart-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text);
  padding: 4px 0;
  cursor: pointer;
}

.chart-controls input[type="checkbox"] {
  accent-color: var(--color-accent);
}

.chart-controls input[type="range"] {
  width: 100%;
  accent-color: var(--color-accent);
}

.aspect-swatch {
  display: inline-block;
  width: 18px;
  height: 2px;
  vertical-align: middle;
}

.aspect-conjunction { background: #d4a55a; }
.aspect-opposition  { background: #e74c3c; }
.aspect-trine       { background: #4a90a4; }
.aspect-square      { background: #e07b5a; }
.aspect-sextile     { background: #7a5fa0; }
.aspect-minor       { background: #8a8298; border-top: 1px dashed #8a8298; height: 0; }

@media (max-width: 800px) {
  .chart-wrap {
    width: 100%;
  }
}

/* ── V2 utilities ─────────────────────────────────────────────
   The [hidden] attribute is how V2 pages toggle visibility in JS.
   Forced here so it wins over component display rules (e.g. flex). */
[hidden] { display: none !important; }

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -2px;
}

@keyframes spin { to { transform: rotate(360deg); } }

