:root {
  --black: #050008;
  --purple: #3b0a63;
  --deep-purple: #170024;
  --gold: #d6a84f;
  --red: #8e102c;
  --white: #f8efff;
  --muted: #c9b7d6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--white);
  background: radial-gradient(circle at top, #3b0a63 0%, #170024 35%, #050008 78%);
  overflow-x: hidden;
}

.stars {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(#fff 1px, transparent 1px),
    radial-gradient(var(--gold) 1px, transparent 1px);
  background-size: 90px 90px, 140px 140px;
  background-position: 0 0, 50px 80px;
  opacity: .22;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 7%;
  background: rgba(5, 0, 8, .76);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(214, 168, 79, .22);
}

.logo, nav a {
  color: var(--white);
  text-decoration: none;
}
.logo {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  color: var(--gold);
  font-weight: 700;
}
nav { display: flex; flex-wrap: wrap; gap: 18px; }
nav a { color: var(--muted); font-size: .95rem; }
nav a:hover { color: var(--gold); }

.astro-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1120px, 86%);
  margin: -40px auto 90px;
}

.astro-strip article {
  padding: 24px;
  border: 1px solid rgba(214,168,79,.24);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(0,0,0,.5), rgba(59,10,99,.34));
  box-shadow: 0 20px 70px rgba(0,0,0,.3);
}

.astro-strip span {
  display: grid;
  width: 50px;
  aspect-ratio: 1;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(214,168,79,.32);
  border-radius: 50%;
  margin-bottom: 12px;
}

.astro-strip b {
  display: block;
  color: var(--white);
  font-family: 'Cinzel', serif;
  margin-bottom: 6px;
}

.astro-strip p {
  margin: 0;
  font-size: .95rem;
}

.hero {
  min-height: 86vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 90px 7% 70px;
  position: relative;
}
.hero h1, h2 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  margin: 0 0 20px;
  text-shadow: 0 0 28px rgba(214, 168, 79, .25);
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: .95;
  max-width: 1000px;
}
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { color: var(--gold); font-family: 'Cinzel', serif; }
p { color: var(--muted); line-height: 1.8; font-size: 1.05rem; }
.hero-text { max-width: 660px; margin: 0 auto 34px; font-size: 1.25rem; }
.eyebrow {
  color: #ffccd6;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .78rem;
  font-weight: 700;
}
.button, .birth-form button {
  display: inline-block;
  border: 1px solid rgba(214, 168, 79, .75);
  background: linear-gradient(135deg, var(--red), var(--purple));
  color: var(--white);
  padding: 15px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 0 30px rgba(142, 16, 44, .5);
  cursor: pointer;
}
.button:hover, .birth-form button:hover { transform: translateY(-2px); }
.moon {
  position: absolute;
  right: 9%;
  bottom: 8%;
  font-size: 10rem;
  color: rgba(214, 168, 79, .18);
}

.section {
  position: relative;
  z-index: 1;
  width: min(1120px, 86%);
  margin: 0 auto 90px;
  padding: 58px;
  background: linear-gradient(145deg, rgba(59, 10, 99, .42), rgba(5, 0, 8, .72));
  border: 1px solid rgba(214, 168, 79, .22);
  border-radius: 30px;
  box-shadow: 0 20px 80px rgba(0,0,0,.35);
}
.section-heading { max-width: 780px; }
.oracle-card, .ritual-box {
  margin-top: 30px;
  padding: 28px;
  background: rgba(0,0,0,.32);
  border: 1px solid rgba(214, 168, 79, .24);
  border-radius: 22px;
}
.split {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 34px;
  align-items: center;
}
.ritual-box span { font-size: 3rem; color: var(--gold); }
.love { border-color: rgba(142, 16, 44, .6); }
.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
}
.zodiac-grid button {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(214, 168, 79, .25);
  background: rgba(0,0,0,.38);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
}
.zodiac-grid button:hover {
  background: linear-gradient(135deg, rgba(142,16,44,.62), rgba(59,10,99,.75));
  color: var(--gold);
}
.birth-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 30px;
}
.birth-form input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(214,168,79,.3);
  background: rgba(0,0,0,.45);
  color: var(--white);
  outline: none;
}
.birth-form button { grid-column: 1 / -1; }
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 38px 7%;
  border-top: 1px solid rgba(214,168,79,.18);
}
footer p { color: var(--gold); font-family: 'Cinzel', serif; }

@media (max-width: 850px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .split, .birth-form, .astro-strip { grid-template-columns: 1fr; }
  .zodiac-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 34px; width: 92%; }
  .astro-strip { width: 92%; margin: -30px auto 60px; }
  .moon { display: none; }
}

@media (max-width: 520px) {
  nav { gap: 10px; }
  nav a { font-size: .85rem; }
  .zodiac-grid { grid-template-columns: 1fr; }
}

.birth-form label {
  display: grid;
  gap: 8px;
}

.birth-form label span {
  color: var(--gold);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.result, .sign-preview {
  margin-top: 34px;
  padding: 30px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(214,168,79,.18), transparent 34%),
    linear-gradient(145deg, rgba(0,0,0,.52), rgba(59,10,99,.36));
  border: 1px solid rgba(214,168,79,.36);
  box-shadow: 0 0 40px rgba(142,16,44,.18);
}

.hidden { display: none; }

.result-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}

.astro-profile {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
}

.astro-profile div {
  padding: 16px;
  border: 1px solid rgba(214,168,79,.18);
  border-radius: 18px;
  background: rgba(0,0,0,.28);
}

.astro-profile span {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.astro-profile b {
  color: var(--gold);
  font-family: 'Cinzel', serif;
}

.big-sign {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--gold);
  font-size: 3.4rem;
  background: linear-gradient(135deg, rgba(142,16,44,.66), rgba(59,10,99,.7));
  border: 1px solid rgba(214,168,79,.45);
  box-shadow: 0 0 30px rgba(214,168,79,.16);
}

.result h3, .sign-preview h3 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.reading-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.reading-grid div {
  padding: 20px;
  border-radius: 18px;
  background: rgba(0,0,0,.32);
  border: 1px solid rgba(214,168,79,.18);
}

.reading-grid strong {
  display: block;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  margin-bottom: 8px;
}

.reading-grid p { margin: 0; }

.mantra {
  margin-top: 18px;
  padding: 20px;
  border-left: 3px solid var(--gold);
  background: rgba(142,16,44,.2);
  border-radius: 16px;
  color: var(--white);
  font-size: 1.15rem;
}

.mantra span {
  display: block;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  margin-bottom: 6px;
}

.error {
  padding: 18px;
  border-radius: 18px;
  background: rgba(142,16,44,.28);
  border: 1px solid rgba(255,204,214,.36);
  color: var(--white);
}

@media (max-width: 700px) {
  .result-header { align-items: flex-start; flex-direction: column; }
  .reading-grid { grid-template-columns: 1fr; }
  .big-sign { width: 74px; height: 74px; font-size: 2.8rem; }
}

.cosmic-summary, .oracle-message, .ritual-advice {
  margin: 22px 0;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(214,168,79,.12), rgba(142,16,44,.18));
  border: 1px solid rgba(214,168,79,.25);
}

.cosmic-summary h4, .oracle-message h4 {
  margin: 0 0 10px;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
}

.reading-grid.extended {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ritual-advice span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-weight: 700;
}

.ritual-advice p, .oracle-message p, .cosmic-summary p { margin-bottom: 0; }

@media (max-width: 700px) {
  .reading-grid.extended, .astro-profile { grid-template-columns: 1fr; }
}

/* V3: rustige dashboard-layout */
.site-header {
  padding: 18px clamp(18px, 6vw, 86px);
}

.header-link {
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(214,168,79,.34);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(214,168,79,.07);
  font-weight: 700;
}

.hero.hero-reading {
  width: min(1320px, 88%);
  min-height: auto;
  margin: 34px auto 18px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, .72fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
  padding: clamp(34px, 5vw, 70px);
  text-align: left;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 18%, rgba(214,168,79,.16), transparent 18rem),
    linear-gradient(145deg, rgba(59,10,99,.52), rgba(5,0,8,.84));
  border: 1px solid rgba(214,168,79,.24);
  border-radius: 34px;
  box-shadow: 0 28px 110px rgba(0,0,0,.38);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero.hero-reading h1 {
  max-width: 760px;
  font-size: clamp(3rem, 6vw, 5.9rem);
}

.hero-text {
  max-width: 720px;
  margin: 0 0 24px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-points span,
.quick-nav a {
  color: #160010;
  background: linear-gradient(135deg, #ffe2a0, var(--gold));
  border: 1px solid rgba(255,236,178,.65);
  border-radius: 999px;
  box-shadow: 0 0 28px rgba(214,168,79,.18);
  font-weight: 800;
}

.hero-points span {
  padding: 10px 14px;
}

.hero-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: clamp(18px, 3vw, 30px);
  background: rgba(3,0,8,.62);
  border: 1px solid rgba(214,168,79,.26);
  border-radius: 26px;
  box-shadow: inset 0 0 60px rgba(255,255,255,.025), 0 18px 80px rgba(0,0,0,.28);
}

.hero-form .eyebrow,
.hero-form h2,
.hero-form button {
  grid-column: 1 / -1;
}

.hero-form h2 {
  margin-bottom: 4px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.hero-form label {
  margin: 0;
}

.hero-form input {
  min-height: 56px;
}

.hero-form button {
  margin-top: 4px;
  color: #160010;
  background: linear-gradient(90deg, #ffe2a0, #f3bf62, #9d4dff);
}

.quick-nav {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  width: min(1120px, 88%);
  margin: 0 auto 30px;
}

.quick-nav a {
  padding: 12px 18px;
  text-decoration: none;
}

.quick-nav a:hover,
.header-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.reading-output {
  width: min(1320px, 88%);
  margin: 0 auto 24px;
}

.reading-output .result {
  margin-top: 0;
}

.astro-strip {
  width: min(1320px, 88%);
  margin: 0 auto 34px;
}

.section {
  width: min(1320px, 88%);
  margin-bottom: 34px;
  padding: clamp(26px, 4vw, 44px);
  border-radius: 24px;
}

.section h2 {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
}

.card-section {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(280px, .42fr);
  gap: 24px;
  align-items: center;
}

.card-section .oracle-card {
  margin-top: 0;
}

footer {
  margin-top: 40px;
}

@media (max-width: 980px) {
  .hero.hero-reading,
  .card-section,
  .love {
    grid-template-columns: 1fr;
  }

  .hero-form {
    grid-template-columns: 1fr;
  }

  .hero.hero-reading,
  .section,
  .astro-strip,
  .quick-nav,
  .reading-output {
    width: min(100% - 24px, 1320px);
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-link {
    width: 100%;
    text-align: center;
  }

  .quick-nav a {
    flex: 1 1 42%;
    text-align: center;
  }
}

.reading-grid .member-wide{
 grid-column:1 / -1;
 padding:0;
 border:0;
 background:transparent;
 box-shadow:none;
}

.hor-member-gate{
 position:relative;
 overflow:hidden;
 padding:clamp(20px,3vw,30px);
 border:1px solid rgba(214,168,79,.5);
 border-radius:22px;
 background:
   linear-gradient(135deg,rgba(214,168,79,.12),rgba(141,44,255,.14),rgba(147,26,68,.18)),
   rgba(3,0,8,.72);
 box-shadow:inset 0 0 50px rgba(214,168,79,.06),0 18px 70px rgba(0,0,0,.24);
}

.hor-member-gate > span{
 width:42px;
 height:42px;
 display:grid;
 place-items:center;
 margin-bottom:12px;
 border-radius:50%;
 color:#170010;
 background:linear-gradient(135deg,#ffe6a7,#d6a84f,#9d4dff);
 font-weight:900;
 box-shadow:0 0 26px rgba(214,168,79,.2);
}

.hor-member-gate strong{
 display:block;
 color:var(--gold);
 font-family:Cinzel,serif;
 letter-spacing:.08em;
 text-transform:uppercase;
 font-size:1.08rem;
}

.hor-member-gate p{
 max-width:780px;
 margin:10px 0 0;
 color:rgba(255,248,231,.82);
 line-height:1.65;
}

.hor-member-actions{
 display:flex;
 flex-wrap:wrap;
 gap:12px;
 margin-top:18px;
}

.hor-member-actions a{
 min-height:46px;
 display:inline-flex;
 align-items:center;
 justify-content:center;
 padding:11px 16px;
 border:1px solid rgba(214,168,79,.62);
 border-radius:999px;
 text-decoration:none;
 color:var(--gold);
 background:rgba(0,0,0,.22);
 font-weight:900;
}

.hor-member-actions a.primary{
 color:#170010;
 background:linear-gradient(135deg,#ffe6a7,#d6a84f);
}

/* V6: kosmische kamer */
.hero.hero-reading h1 {
  font-size: clamp(2.6rem, 5.1vw, 5.1rem);
  line-height: 1.02;
}

.cosmic-room {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.44fr) minmax(0, 0.72fr) minmax(320px, 0.64fr);
  gap: 18px;
  width: min(1320px, 88%);
  margin: 0 auto 26px;
  align-items: stretch;
}

.zodiac-wheel,
.cosmic-personal-card,
.cosmic-tabs-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 12%, rgba(214,168,79,.16), transparent 13rem),
    linear-gradient(145deg, rgba(18,0,30,.86), rgba(59,10,99,.4), rgba(5,0,8,.78));
  border: 1px solid rgba(214,168,79,.26);
  border-radius: 24px;
  box-shadow: 0 28px 90px rgba(0,0,0,.32), inset 0 0 70px rgba(214,168,79,.035);
  backdrop-filter: blur(14px);
}

.zodiac-wheel {
  min-height: 430px;
  display: grid;
  place-items: center;
}

.wheel-ring {
  position: relative;
  width: min(330px, 70vw);
  aspect-ratio: 1;
  border: 1px solid rgba(214,168,79,.36);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(214,168,79,.11), inset 0 0 45px rgba(141,44,255,.16);
  animation: horWheelDrift 18s linear infinite;
}

.wheel-ring::before,
.wheel-ring::after {
  position: absolute;
  inset: 12%;
  content: "";
  border: 1px solid rgba(214,168,79,.16);
  border-radius: 50%;
}

.wheel-ring::after {
  inset: 28%;
  border-style: dashed;
}

.wheel-ring span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 2.2rem;
  margin: -1.1rem 0 0 -1.1rem;
  aspect-ratio: 1;
  place-items: center;
  color: var(--gold);
  font-size: 1.55rem;
  text-shadow: 0 0 18px rgba(214,168,79,.28);
  transform: rotate(calc((var(--i, 0) * 30deg))) translate(9.4rem) rotate(calc((var(--i, 0) * -30deg)));
}

.wheel-ring span:nth-child(1) { --i: 0; }
.wheel-ring span:nth-child(2) { --i: 1; }
.wheel-ring span:nth-child(3) { --i: 2; }
.wheel-ring span:nth-child(4) { --i: 3; }
.wheel-ring span:nth-child(5) { --i: 4; }
.wheel-ring span:nth-child(6) { --i: 5; }
.wheel-ring span:nth-child(7) { --i: 6; }
.wheel-ring span:nth-child(8) { --i: 7; }
.wheel-ring span:nth-child(9) { --i: 8; }
.wheel-ring span:nth-child(10) { --i: 9; }
.wheel-ring span:nth-child(11) { --i: 10; }
.wheel-ring span:nth-child(12) { --i: 11; }

.wheel-center {
  position: absolute;
  display: grid;
  width: 8.6rem;
  aspect-ratio: 1;
  place-items: center;
  color: #160010;
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,.82), transparent 18%),
    linear-gradient(135deg, #ffe6a7, #d6a84f, #9d4dff);
  border-radius: 50%;
  font-size: 4rem;
  box-shadow: 0 0 64px rgba(214,168,79,.24);
}

.cosmic-personal-card,
.cosmic-tabs-card {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(22px, 3vw, 34px);
}

.cosmic-personal-card h2 {
  margin-bottom: 0;
  font-size: clamp(1.85rem, 3vw, 3rem);
}

.cosmic-stat-grid,
.cosmic-member-extra {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cosmic-stat-grid div,
.cosmic-shadow-card,
.cosmic-member-extra div {
  padding: 14px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(214,168,79,.16);
  border-radius: 16px;
}

.cosmic-stat-grid span,
.cosmic-shadow-card span,
.cosmic-member-extra span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cosmic-stat-grid b,
.cosmic-member-extra b {
  color: var(--white);
  line-height: 1.45;
}

.cosmic-shadow-card p {
  margin: 0;
}

.cosmic-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cosmic-tab-button {
  min-height: 42px;
  padding: 9px 12px;
  color: var(--gold);
  background: rgba(0,0,0,.26);
  border: 1px solid rgba(214,168,79,.24);
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.cosmic-tab-button:hover,
.cosmic-tab-button.is-active {
  color: #160010;
  background: linear-gradient(135deg, #ffe6a7, var(--gold));
}

.cosmic-tab-panel {
  padding: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(214,168,79,.12), transparent 10rem),
    rgba(0,0,0,.3);
  border: 1px solid rgba(214,168,79,.14);
  border-radius: 18px;
}

.cosmic-tab-panel[hidden] {
  display: none;
}

.cosmic-tab-panel h3 {
  margin: 0 0 8px;
}

.cosmic-tab-panel p {
  margin: 0;
}

.cosmic-room.is-opened .wheel-center {
  animation: horCenterPulse 1.2s ease;
}

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

@keyframes horCenterPulse {
  45% { filter: brightness(1.25); box-shadow: 0 0 90px rgba(214,168,79,.42), 0 0 120px rgba(157,77,255,.28); }
}

@media (max-width: 1120px) {
  .cosmic-room {
    grid-template-columns: 1fr;
  }

  .zodiac-wheel {
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  .cosmic-stat-grid,
  .cosmic-member-extra {
    grid-template-columns: 1fr;
  }

  .wheel-ring {
    width: min(280px, 82vw);
  }

  .wheel-ring span {
    transform: rotate(calc((var(--i, 0) * 30deg))) translate(7.9rem) rotate(calc((var(--i, 0) * -30deg)));
  }
}
