/* ✦ Stellaria — fairy-tale, nocturnal, elegant ✦ */
:root {
  --night: #0b0820;
  --night-2: #120d2e;
  --violet: #1d1545;
  --violet-2: #2a1f5e;
  --line: rgba(232, 201, 138, 0.22);
  --gold: #e8c98a;
  --gold-2: #b88a3e;
  --gold-soft: rgba(232, 201, 138, 0.12);
  --lilac: #c8b6ff;
  --rose: #ff9fcf;
  --text: #ece7f7;
  --muted: #a99fd0;
  --dim: #6e64a0;
  --radius: 22px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --caps: 'Cinzel', 'Cormorant Garamond', serif;
  --glyph: 'Noto Sans Symbols', 'Segoe UI Symbol', 'Apple Symbols', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font-family: var(--serif); font-size: 19px; line-height: 1.6;
  background: radial-gradient(1200px 700px at 15% -10%, #2b1d5c 0%, transparent 60%),
              radial-gradient(900px 600px at 100% 20%, #251447 0%, transparent 55%),
              radial-gradient(800px 800px at 50% 120%, #1c1050 0%, transparent 60%), var(--night);
  background-attachment: fixed; overflow-x: hidden;
}
#sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
a { color: var(--gold); text-decoration: none; }
h1, h2, h3 { font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(44px, 7vw, 84px); font-weight: 400; }
h2 { font-size: clamp(34px, 4.5vw, 52px); font-weight: 400; }
h3 { font-size: 26px; }
.caps { font-family: var(--caps); letter-spacing: .28em; text-transform: uppercase; font-size: 12px; color: var(--gold); }
.muted { color: var(--muted); }
.italic { font-style: italic; }
.gold { color: var(--gold); }
.glyph { font-family: var(--glyph); }
.shine {
  background: linear-gradient(100deg, #fff6df 0%, var(--gold) 30%, #fff 50%, var(--gold) 70%, #b88a3e 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 8s ease-in-out infinite;
}
@keyframes shine { 0%,100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

/* Layout */
.wrap { width: min(1160px, 92vw); margin: 0 auto; }
section { padding: 110px 0; position: relative; }
.center { text-align: center; }
.grid { display: grid; gap: 26px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } section { padding: 80px 0; } }

/* Nav */
nav.top { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: linear-gradient(to bottom, rgba(11,8,32,.85), rgba(11,8,32,.4)); border-bottom: 1px solid rgba(232,201,138,.08); }
nav.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { font-family: var(--caps); letter-spacing: .32em; font-size: 18px; color: var(--gold); display: flex; align-items: center; gap: 10px; }
.logo .star { display: inline-block; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
nav.top .links { display: flex; gap: 30px; align-items: center; font-size: 17px; }
nav.top .links a:not(.btn) { color: var(--muted); transition: color .3s; }
nav.top .links a:not(.btn):hover { color: var(--gold); }
@media (max-width: 760px) { nav.top .links a.hide-m { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; border: 0;
  font-family: var(--caps); letter-spacing: .16em; text-transform: uppercase; font-size: 13px;
  padding: 16px 30px; border-radius: 999px; color: #1a1235;
  background: linear-gradient(135deg, #f6e2b3, var(--gold) 40%, var(--gold-2));
  box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset, 0 10px 40px -10px rgba(232,201,138,.55);
  transition: transform .3s, box-shadow .3s; position: relative; overflow: hidden;
}
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 16px 50px -10px rgba(232,201,138,.75); }
.btn:hover::after { transform: translateX(120%); }
.btn.ghost { background: transparent; color: var(--gold); box-shadow: 0 0 0 1px var(--line) inset; }
.btn.ghost:hover { background: var(--gold-soft); }
.btn.small { padding: 11px 20px; font-size: 11px; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* Card */
.card {
  position: relative; border-radius: var(--radius); padding: 36px;
  background: linear-gradient(160deg, rgba(42,31,94,.55), rgba(18,13,46,.75));
  border: 1px solid var(--line); box-shadow: 0 30px 80px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset;
  backdrop-filter: blur(6px);
}
.card.glow::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--a, 0deg), transparent 0 70%, var(--gold) 80%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: orbit 6s linear infinite;
}
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes orbit { to { --a: 360deg; } }
.ornament { display: flex; align-items: center; gap: 14px; justify-content: center; color: var(--gold); margin: 14px 0 22px; }
.ornament::before, .ornament::after { content: ''; height: 1px; width: 70px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { transform: scaleX(-1); }

/* Hero */
.hero { min-height: calc(100vh - 74px); display: grid; place-items: center; text-align: center; padding: 40px 0 80px; }
.hero .wheel-bg { position: absolute; left: 50%; top: 50%; width: min(860px, 120vw); aspect-ratio: 1; transform: translate(-50%, -50%); opacity: .22; pointer-events: none; animation: spin 240s linear infinite; }
.hero p.lead { font-size: 23px; color: var(--muted); max-width: 640px; margin: 0 auto 40px; font-style: italic; }
.reveal-form { display: inline-flex; gap: 12px; padding: 8px; border-radius: 999px; background: rgba(18,13,46,.7); border: 1px solid var(--line); justify-content: center; }
.reveal-form input { width: 230px; }
@media (max-width: 600px) { .reveal-form { flex-direction: column; border-radius: 28px; width: 100%; } .reveal-form input { width: 100%; } }
.reveal-form input { background: transparent; border: 0; color: var(--text); font-family: var(--serif); font-size: 20px; padding: 0 18px; min-height: 50px; color-scheme: dark; }
.reveal-form input:focus { outline: none; }

/* Form */
label { display: block; font-family: var(--caps); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
input, select { width: 100%; background: rgba(11,8,32,.6); border: 1px solid var(--line); color: var(--text); border-radius: 14px; padding: 14px 16px; font-family: var(--serif); font-size: 19px; color-scheme: dark; transition: border-color .3s, box-shadow .3s; }
input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: 16px; color: var(--muted); }
.check input { width: auto; margin-top: 5px; accent-color: var(--gold); }
.error { color: #ff9fae; min-height: 1.4em; font-size: 16px; margin-top: 12px; }
.ok { color: #9fe8c3; }

/* Sign reveal */
.sign-card { text-align: center; max-width: 760px; margin: 0 auto; animation: rise 1s cubic-bezier(.2,.8,.2,1); }
.sign-card .big-glyph { font-family: var(--glyph); font-size: 110px; line-height: 1; color: var(--gold); text-shadow: 0 0 40px rgba(232,201,138,.6); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes rise { from { opacity: 0; transform: translateY(30px); filter: blur(6px); } }
.tags { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 14px 0 24px; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 15px; color: var(--muted); }
.traits { text-align: left; list-style: none; padding: 0; margin: 0; }
.traits li { padding: 14px 0 14px 34px; position: relative; border-bottom: 1px solid rgba(232,201,138,.08); }
.traits li::before { content: '✦'; position: absolute; left: 4px; top: 15px; color: var(--gold); }

/* Locks / paywall */
.locked { position: relative; overflow: hidden; }
.locked .veil { filter: blur(7px); user-select: none; pointer-events: none; opacity: .7; }
.locked .lock-cta { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; background: radial-gradient(circle at 50% 50%, rgba(11,8,32,.55), rgba(11,8,32,.85)); }
.lock-cta .lock { font-size: 34px; margin-bottom: 6px; filter: drop-shadow(0 0 12px rgba(232,201,138,.6)); }

/* Features */
.feature .icon { font-size: 40px; color: var(--gold); margin-bottom: 14px; font-family: var(--glyph); display: inline-block; text-shadow: 0 0 22px rgba(232,201,138,.5); }
.feature p { color: var(--muted); margin: 0; }
.pill { display: inline-block; font-family: var(--caps); font-size: 10px; letter-spacing: .2em; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--gold); margin-bottom: 14px; }

/* Pricing */
.price { font-size: 72px; line-height: 1; margin: 10px 0; }
.price small { font-size: 22px; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 30px; }
.plan li { padding: 9px 0 9px 30px; position: relative; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); }
.plan li.no { color: var(--dim); }
.plan li.no::before { content: '·'; color: var(--dim); }
.plan.featured { transform: scale(1.03); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; font-size: 22px; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: '✦'; color: var(--gold); transition: transform .4s; }
details[open] summary::after { transform: rotate(135deg); }
details p { color: var(--muted); margin: 12px 0 0; }

/* Footer */
footer { padding: 60px 0; border-top: 1px solid rgba(232,201,138,.1); color: var(--dim); font-size: 15px; text-align: center; }

/* Entrance animations */
.appear { opacity: 0; transform: translateY(30px); transition: opacity 1.1s, transform 1.1s cubic-bezier(.2,.8,.2,1); }
.appear.in { opacity: 1; transform: none; }

/* Account area */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 30px 0 40px; }
.tabs button { background: transparent; border: 1px solid transparent; color: var(--muted); font-family: var(--caps); letter-spacing: .16em; text-transform: uppercase; font-size: 12px; padding: 12px 20px; border-radius: 999px; cursor: pointer; transition: all .3s; }
.tabs button:hover { color: var(--gold); }
.tabs button.active { color: var(--gold); border-color: var(--line); background: var(--gold-soft); }
.tab { display: none; animation: rise .7s cubic-bezier(.2,.8,.2,1); }
.tab.active { display: block; }
.big3 .card { text-align: center; }
.big3 .g { font-family: var(--glyph); font-size: 56px; color: var(--gold); line-height: 1.1; }
.planet-row { display: grid; grid-template-columns: 54px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(232,201,138,.08); }
.planet-row .pg { font-family: var(--glyph); font-size: 30px; color: var(--gold); text-align: center; }
.planet-row h4 { margin: 0 0 4px; font-size: 21px; font-weight: 500; }
.planet-row p { margin: 0; color: var(--muted); }
.bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lilac), var(--gold)); width: 0; transition: width 1.6s cubic-bezier(.2,.8,.2,1); }
.compat { display: grid; grid-template-columns: 34px 110px 1fr 46px; gap: 12px; align-items: center; padding: 6px 0; font-size: 17px; }
.compat .glyph { color: var(--gold); font-size: 22px; }
.stars { color: var(--gold); letter-spacing: 3px; }
.stars .off { color: #3b2f6b; }
.timeline { border-left: 1px solid var(--line); margin-left: 8px; padding-left: 26px; }
.timeline .ev { position: relative; padding: 10px 0; }
.timeline .ev::before { content: ''; position: absolute; left: -32px; top: 18px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.timeline .ev.strong::before { background: var(--rose); box-shadow: 0 0 18px var(--rose); }

/* Natal wheel */
#wheel { width: 100%; max-width: 620px; display: block; margin: 0 auto; }
#wheel text { font-family: var(--glyph); }
#wheel .planet-dot { transition: opacity .4s; }

/* Map */
#map { height: 600px; border-radius: var(--radius); border: 1px solid var(--line); background: #070514; overflow: hidden; }
.leaflet-container { font-family: var(--serif) !important; background: #070514 !important; }
.leaflet-popup-content-wrapper, .leaflet-tooltip { background: rgba(18,13,46,.95) !important; color: var(--text) !important; border: 1px solid var(--line); border-radius: 14px !important; box-shadow: 0 10px 40px rgba(0,0,0,.6) !important; }
.leaflet-popup-tip { background: rgba(18,13,46,.95) !important; }
.leaflet-popup-content { font-size: 16px; line-height: 1.5; margin: 14px 18px !important; }
.leaflet-tooltip::before { display: none; }
.leaflet-control-attribution { background: rgba(11,8,32,.6) !important; color: var(--dim) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-bar a { background: var(--night-2) !important; color: var(--gold) !important; border-color: var(--line) !important; }
.astro-line { stroke-linecap: round; filter: drop-shadow(0 0 6px currentColor); }
.astro-flow { stroke-dasharray: 2 14; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.city-pin { position: relative; width: 18px; height: 18px; }
.city-pin i { position: absolute; inset: 4px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor, 0 0 30px currentColor; }
.city-pin::before, .city-pin::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid currentColor; animation: ping 2.4s ease-out infinite; }
.city-pin::after { animation-delay: 1.2s; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
.map-tools { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 18px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 16px; color: var(--muted); font-size: 16px; }
.legend span::before { content: ''; display: inline-block; width: 22px; height: 3px; border-radius: 3px; background: var(--c); margin-right: 8px; vertical-align: middle; box-shadow: 0 0 8px var(--c); }
.place { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(232,201,138,.08); cursor: pointer; transition: background .3s; }
.place:hover { background: var(--gold-soft); }
.place .n { font-family: var(--caps); color: var(--gold); }
.place small { color: var(--muted); display: block; font-size: 15px; }

/* Toast */
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(140%); background: var(--night-2); border: 1px solid var(--line); padding: 16px 26px; border-radius: 999px; z-index: 999; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.toast.show { transform: translateX(-50%) translateY(0); }

/* Loader */
.loader { display: grid; place-items: center; min-height: 50vh; color: var(--gold); font-family: var(--caps); letter-spacing: .3em; font-size: 12px; }
.loader .orb { width: 70px; height: 70px; border-radius: 50%; border: 1px solid var(--line); border-top-color: var(--gold); animation: spin 1.4s linear infinite; margin-bottom: 18px; }
