:root {
  --petrol: #0b2a26;
  --petrol-light: #0f4a42;
  --black: #050b0a;
  --gold: #c9a45c;
  --gold-soft: #e6c77a;
  --cream: #f4efe6;
  --text-muted: #d8c3a0;
  --radius: 18px;
  --serif: "Georgia", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(ellipse at top, var(--petrol-light) 0%, var(--black) 65%);
  color: var(--cream);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

#cursor-light {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    220px circle at var(--lx, 50%) var(--ly, 50%),
    rgba(230, 199, 122, 0.22),
    rgba(230, 199, 122, 0.06) 45%,
    transparent 72%
  );
  mix-blend-mode: screen;
}

#cursor-light.visible {
  opacity: 1;
}

.page {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.brand-header {
  text-align: center;
  margin-bottom: 40px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: var(--gold-soft);
  margin-bottom: 8px;
}

.brand-header h1 {
  font-family: var(--serif);
  font-size: 2.4rem;
  margin: 0 0 16px;
  color: var(--cream);
}

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

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 164, 92, 0.25);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(6px);
}

#birth-form label {
  display: block;
  margin: 18px 0 6px;
  font-size: 0.9rem;
  color: var(--gold-soft);
}

#birth-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(201, 164, 92, 0.35);
  background: rgba(0, 0, 0, 0.25);
  color: var(--cream);
  font-size: 1rem;
}

#birth-form input:focus {
  outline: none;
  border-color: var(--gold);
}

button {
  margin-top: 24px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: var(--black);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

button:hover { transform: translateY(-1px); }
button:disabled { opacity: 0.6; cursor: wait; }

.error {
  color: #e6a3a3;
  min-height: 1.2em;
  margin-top: 12px;
}

.disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 18px;
}

.field-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 4px 0 0;
}

.hidden { display: none; }

.steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.step {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.step h3 {
  font-family: var(--serif);
  color: var(--gold-soft);
  margin-top: 0;
}

.step h4 {
  font-family: var(--serif);
  color: var(--gold);
  margin: 20px 0 8px;
  border-top: 1px dashed rgba(201, 164, 92, 0.3);
  padding-top: 16px;
}

.step a,
.gate-buy a {
  color: var(--gold-soft);
  text-decoration-color: rgba(201, 164, 92, 0.5);
}

.step a:hover,
.gate-buy a:hover {
  color: var(--gold);
}

.soul-guide-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--gold-soft);
}

.wheel-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.chart-wheel-container {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}

.chart-wheel {
  width: 100%;
  max-width: 420px;
}

.wheel-ring, .wheel-ring-inner {
  fill: none;
  stroke: rgba(201, 164, 92, 0.4);
  stroke-width: 1;
}

.wheel-line {
  stroke: rgba(201, 164, 92, 0.25);
  stroke-width: 1;
}

.house-line {
  stroke: rgba(244, 239, 230, 0.45);
  stroke-width: 1;
}

.house-line-axis {
  stroke: var(--gold);
  stroke-width: 2;
}

.wheel-center {
  fill: var(--gold);
}

.wheel-sign-icon {
  stroke: var(--gold-soft);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s ease, filter 0.2s ease;
}

.zodiac-sign { cursor: pointer; }

.zodiac-sign-hitarea {
  fill: transparent;
}

.zodiac-sign:hover .wheel-sign-icon {
  stroke: var(--gold);
  filter: drop-shadow(0 0 5px var(--gold));
}

.house-number {
  fill: var(--gold-soft);
  font-size: 12px;
  font-weight: 600;
  transition: fill 0.2s ease, filter 0.2s ease;
}

.house-label { cursor: pointer; }

.house-label-hitarea {
  fill: transparent;
}

.house-label:hover .house-number {
  fill: var(--gold);
  filter: drop-shadow(0 0 4px var(--gold));
}

.angle-label {
  fill: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.planet { cursor: pointer; }

.planet-dot {
  fill: rgba(11, 42, 38, 0.9);
  stroke: var(--gold);
  stroke-width: 1;
  transition: fill 0.2s ease, filter 0.2s ease;
}

.planet:hover .planet-dot {
  fill: var(--gold);
  filter: drop-shadow(0 0 6px var(--gold)) drop-shadow(0 0 14px rgba(230, 199, 122, 0.8));
}

.planet-near-cusp .planet-dot {
  stroke-dasharray: 2.5 2;
}

.planet-glyph {
  fill: var(--cream);
  font-size: 13px;
  pointer-events: none;
}

.planet:hover .planet-glyph {
  fill: var(--black);
}

.chart-tooltip {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  background: var(--black);
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--cream);
  opacity: 0;
  transition: opacity 0.15s ease;
  max-width: 240px;
  line-height: 1.4;
}

.chart-tooltip.visible {
  opacity: 1;
}

.brand-footer {
  text-align: center;
  margin-top: 64px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
