@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400&family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --primary: #818cf8;
  --secondary: #fbbf24;
  --accent-gold: #f59e0b;
  --cosmic-bg: #0a0515;
  --cosmic-field: #130b2b;
  --cosmic-deep: #080313;
  --cosmic-line: rgba(129, 140, 248, .22);
  --cosmic-line-soft: rgba(129, 140, 248, .12);
  --cosmic-card: rgba(255, 255, 255, .05);
  --text: #e0e7ff;
  --text-muted: rgba(224, 231, 255, .70);
  --text-soft: rgba(224, 231, 255, .50);
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(0, 0, 0, .42);
  --max: 1280px;
  --serif: 'Playfair Display', ui-serif, Georgia, serif;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cosmic-bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.hidden { display: none !important; }
.text-center { text-align: center; }

.cosmic-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  background:
    radial-gradient(circle at 88% -10%, rgba(67, 56, 202, .30), transparent 34rem),
    radial-gradient(circle at 0% 68%, rgba(88, 28, 135, .20), transparent 36rem),
    var(--cosmic-bg);
}
.star-pattern {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: radial-gradient(circle at center, #818cf8 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .12;
  pointer-events: none;
}
.nebula-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .25;
  z-index: -2;
  pointer-events: none;
}
.nebula-one { width: 550px; height: 550px; top: -15%; right: -5%; background: #312e81; opacity: .34; }
.nebula-two { width: 450px; height: 450px; bottom: 20%; left: -10%; background: rgba(88, 28, 135, .40); }

.glass-card {
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow);
}

.top-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 5, 21, .80);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(49, 46, 129, .40);
}
.header-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--white);
  padding: 0;
  text-align: left;
}
.brand-orb {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(79, 70, 229, .20);
  border: 1px solid rgba(99, 102, 241, .30);
  color: var(--secondary);
  box-shadow: inset 0 2px 20px rgba(255,255,255,.05);
  transition: transform .5s ease, background .5s ease;
}
.brand:hover .brand-orb { transform: rotate(12deg); background: rgba(79, 70, 229, .40); }
.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
  transition: color .25s ease;
}
.brand:hover strong { color: var(--primary); }
.brand small {
  display: block;
  margin-top: 2px;
  color: var(--secondary);
  font-family: var(--serif);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: rgba(199, 210, 254, .80);
  font-size: .875rem;
  font-weight: 700;
}
.nav-tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: rgba(199, 210, 254, .60);
  padding: 0 0 4px;
  transition: color .2s ease, border-color .2s ease;
}
.nav-tab:hover,
.nav-tab.active { color: var(--white); border-bottom-color: var(--secondary); }
.account-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(129, 140, 248, .30);
  background: #4f46e5;
  color: var(--white);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  box-shadow: 0 14px 30px rgba(23, 16, 76, .42);
  transition: transform .15s ease, background .2s ease;
}
.account-pill:hover { background: #6366f1; }
.account-pill:active { transform: scale(.95); }
.icon-user::before { content: '◉'; font-size: 13px; }

.main-area {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 96px;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.hero-intro {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 0 76px;
  text-align: center;
}
.cosmic-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 191, 36, .10);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, .20);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .18em;
}
.pulse-soft { animation: pulseSoft 2s ease-in-out infinite; }
@keyframes pulseSoft { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
.hero-intro h1 {
  margin: 26px 0 20px;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: .98;
  font-weight: 900;
  letter-spacing: -.045em;
  color: transparent;
  background: linear-gradient(90deg, #fff, #e0e7ff 52%, #fde68a);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-intro p {
  max-width: 680px;
  margin: 0 auto;
  color: rgba(199, 210, 254, .70);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.7;
}
.setup-warning {
  max-width: 900px;
  margin: -38px auto 48px;
  padding: 16px 18px;
  border: 1px solid rgba(251, 191, 36, .25);
  background: rgba(251, 191, 36, .08);
  color: rgba(255,255,255,.86);
  border-radius: 18px;
  text-align: center;
}
.setup-warning code { font-family: var(--mono); color: #fde68a; }
.path-grid {
  max-width: 1024px;
  margin: 0 auto 96px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.path-card {
  min-height: 348px;
  padding: clamp(32px, 5vw, 40px);
  border-radius: 30px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(129, 140, 248, .20);
  box-shadow: 0 26px 58px rgba(0,0,0,.28);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .5s ease, background .5s ease, box-shadow .5s ease;
  outline: none;
}
.path-card:hover,
.path-card:focus-visible {
  transform: translateY(-6px);
  background: rgba(255,255,255,.10);
  box-shadow: 0 32px 80px rgba(79, 70, 229, .12);
}
.path-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin-bottom: 24px;
  transition: transform .3s ease;
  font-weight: 900;
  font-size: 25px;
}
.path-card:hover .path-icon { transform: scale(1.10); }
.path-icon.indigo { background: rgba(79, 70, 229, .20); border: 1px solid rgba(99, 102, 241, .30); color: #c7d2fe; }
.path-icon.amber { background: rgba(251, 191, 36, .10); border: 1px solid rgba(251, 191, 36, .20); color: #fcd34d; }
.path-card h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 900;
  line-height: 1.08;
  transition: color .2s ease;
}
.path-card:hover h2 { color: var(--primary); }
.path-card p {
  margin: 0;
  color: rgba(199, 210, 254, .70);
  font-size: .9rem;
  line-height: 1.65;
}
.path-action {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  font-weight: 900;
  font-size: .9rem;
  transition: gap .25s ease;
}
.path-card:hover .path-action { gap: 13px; }
.path-action b { font-size: 1.4rem; line-height: 1; }

.result-section {
  max-width: 850px;
  margin: 0 auto 86px;
  padding-top: 48px;
  border-top: 1px solid rgba(129,140,248,.16);
  scroll-margin-top: 96px;
}
.result-heading { text-align: center; margin-bottom: 40px; }
.result-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--primary);
}
.result-heading p {
  font-family: var(--mono);
  color: rgba(199,210,254,.55);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11px;
}
.chart-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 32px;
  border: 1px solid rgba(129,140,248,.20);
  box-shadow: 0 30px 84px rgba(0,0,0,.48);
}
.chart-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, #818cf8 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .12;
  z-index: -1;
}
.chart-card::after {
  content: '';
  position: absolute;
  right: -48px;
  top: -48px;
  width: 128px;
  height: 128px;
  border-radius: 999px;
  background: rgba(251, 191, 36, .10);
  filter: blur(22px);
}
.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid rgba(49,46,129,.50);
  padding-bottom: 24px;
}
.chart-label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(99,102,241,.20);
  border: 1px solid rgba(99,102,241,.30);
  color: #c7d2fe;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.chart-name {
  margin: 12px 0 6px;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 5.2rem);
  line-height: .95;
  font-weight: 900;
  letter-spacing: -.05em;
  color: transparent;
  background: linear-gradient(90deg, #fff, #e0e7ff 50%, #fde68a);
  -webkit-background-clip: text;
  background-clip: text;
}
.zodiac-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  font-family: var(--serif);
  font-weight: 700;
  font-size: .95rem;
}
.ping-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  animation: ping 1.3s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
.rating-box {
  min-width: 170px;
  text-align: center;
  background: rgba(49, 46, 129, .28);
  border: 1px solid rgba(129, 140, 248, .20);
  border-radius: 22px;
  padding: 16px 22px;
  box-shadow: inset 0 10px 30px rgba(0,0,0,.16);
}
.rating-box small {
  display: block;
  color: rgba(199,210,254,.80);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
  font-weight: 900;
}
.rating-box strong {
  display: block;
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--secondary);
}
.rating-box span { color: #34d399; font-family: var(--mono); font-size: 10px; font-weight: 800; }
.info-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(49,46,129,.50);
}
.info-tile {
  border-radius: 20px;
  padding: 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(129,140,248,.10);
}
.info-tile span {
  display: block;
  color: rgba(199,210,254,.60);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
  font-weight: 900;
}
.info-tile strong {
  display: block;
  color: #fff;
  font-size: .9rem;
  line-height: 1.45;
  margin-top: 5px;
}
.meaning-block { padding: 24px 0; }
.meaning-block h3 {
  margin: 0 0 14px;
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.4rem;
}
.meaning-block p {
  color: rgba(199,210,254,.80);
  line-height: 1.75;
  font-size: .92rem;
}
.advice-box {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(251,191,36,.20);
  background: rgba(251,191,36,.05);
}
.advice-box h4 { margin: 0 0 8px; font-family: var(--serif); color: #fcd34d; font-size: .98rem; }
.advice-box p { margin: 0; color: rgba(224,231,255,.82); font-size: .82rem; line-height: 1.65; font-style: italic; }
.suggestions-panel {
  margin: 24px 0 0;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(129,140,248,.15);
  background: rgba(255,255,255,.035);
}
.suggestions-panel h3 { margin: 0 0 8px; font-family: var(--serif); color: #fff; }
.suggestions-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 15px; }
.suggestion-item { border: 1px solid rgba(129,140,248,.14); background: rgba(10,5,21,.42); border-radius: 18px; padding: 14px; }
.suggestion-item.recommended { border-color: rgba(251,191,36,.44); background: rgba(251,191,36,.06); }
.suggestion-item small { color: var(--secondary); font-weight: 900; text-transform: uppercase; font-size: 9px; letter-spacing: .12em; }
.suggestion-item strong { display: block; font-family: var(--serif); color: #fff; font-size: 1.25rem; margin: 4px 0; }
.suggestion-item p { margin: 0; color: rgba(199,210,254,.70); font-size: .78rem; line-height: 1.5; }
.share-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(49,46,129,.50);
}
.share-actions p { display: flex; align-items: center; gap: 7px; margin: 0; color: rgba(199,210,254,.60); font-size: .78rem; }
.share-buttons { display: flex; gap: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 14px;
  border: 0;
  font-size: .8rem;
  font-weight: 900;
  padding: 12px 18px;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: scale(.96); }
.btn-outline { background: transparent; border: 1px solid rgba(129,140,248,.30); color: #c7d2fe; }
.btn-outline:hover { background: rgba(99,102,241,.12); color: white; }
.btn-green { background: #059669; color: white; }
.btn-green:hover { background: #10b981; }
.btn-amber { background: var(--secondary); color: #020617; }
.btn-amber:hover { background: #fcd34d; }
.premium-callout {
  margin-top: 32px;
  padding: 2px;
  border-radius: 30px;
  background: linear-gradient(90deg, var(--secondary), #6366f1, #9333ea);
  box-shadow: 0 28px 80px rgba(0,0,0,.45);
}
.premium-inner {
  background: #0a0515;
  border-radius: 28px;
  padding: 28px;
  border: 1px solid rgba(129,140,248,.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.premium-inner h3 { margin: 10px 0; font-family: var(--serif); font-size: 2rem; color: #fff; line-height: 1.1; }
.premium-inner p { margin: 0; max-width: 560px; color: rgba(199,210,254,.70); font-size: .85rem; line-height: 1.65; }

.species-section {
  padding: 64px 0 0;
  border-top: 1px solid rgba(129,140,248,.16);
}
.species-section > h2 {
  margin: 0 0 12px;
  text-align: center;
  color: var(--primary);
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 900;
}
.species-section > p {
  margin: 0 auto 48px;
  max-width: 450px;
  text-align: center;
  color: rgba(199,210,254,.55);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.species-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, 290px);
  gap: 16px;
}
.species-card,
.quote-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.species-large { grid-column: span 2; grid-row: span 2; }
.species-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s ease;
}
.species-card:hover img { transform: scale(1.05); }
.species-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: 16px;
  background: linear-gradient(to top, rgba(79,70,229,.78), transparent);
}
.species-overlay.big { padding: 32px; background: linear-gradient(to top, rgba(79,70,229,.90), rgba(79,70,229,.20), transparent); }
.species-overlay span { color: var(--accent-gold); font-family: var(--serif); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.species-overlay h3 { margin: 8px 0 4px; color: white; font-family: var(--serif); font-size: 2rem; line-height: 1.04; }
.species-overlay p { margin: 0; max-width: 520px; color: rgba(255,255,255,.76); font-size: .78rem; line-height: 1.5; }
.quote-card {
  grid-column: span 2;
  background: white;
  color: #312e81;
  padding: 32px;
  display: grid;
  place-items: center;
  text-align: center;
  background-image: radial-gradient(circle at center, rgba(122,117,127,.08) 1px, transparent 1px);
  background-size: 30px 30px;
}
.quote-card span { color: var(--secondary); font-size: 28px; }
.quote-card blockquote { margin: 12px auto 18px; max-width: 540px; font-family: var(--serif); font-style: italic; font-weight: 900; font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1.25; }
.quote-card i { width: 48px; height: 2px; background: var(--secondary); border-radius: 999px; display: block; }

.admin-panel {
  max-width: 980px;
  margin: 70px auto;
  padding: 40px;
  border-radius: 30px;
}
.admin-panel h2 { font-family: var(--serif); font-size: 2.5rem; margin: 16px 0 12px; color: #fff; }
.admin-panel p { color: var(--text-muted); line-height: 1.7; }
.admin-panel code { color: #fde68a; font-family: var(--mono); }
.diagnostic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.diagnostic-grid div { padding: 18px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(129,140,248,.14); }
.diagnostic-grid strong { display: block; color: #fff; margin-bottom: 5px; }
.diagnostic-grid span { color: rgba(199,210,254,.65); font-size: .78rem; }
.diagnostics-preview { margin-top: 20px; max-height: 420px; overflow: auto; background: #050211; border: 1px solid rgba(129,140,248,.18); border-radius: 18px; padding: 18px; color: #dbeafe; white-space: pre-wrap; }

.site-footer {
  border-top: 1px solid rgba(129,140,248,.10);
  background: rgba(49,46,129,.20);
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  width: 100%;
}
.site-footer > * { width: min(var(--max), calc(100% - 48px)); }
.site-footer div { margin-left: auto; }
.site-footer nav { margin-right: auto; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 20px; }
.site-footer h3 { margin: 0 0 16px; font-family: var(--serif); color: #fff; font-size: 1.6rem; }
.site-footer p { max-width: 560px; color: rgba(199,210,254,.50); font-size: .78rem; line-height: 1.65; margin: 0; }
.site-footer a { color: rgba(199,210,254,.50); font-size: .78rem; transition: color .2s ease; }
.site-footer a:hover { color: var(--secondary); }

.cosmic-form-modal,
.payment-modal,
.app-modal,
.cosmic-loading {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.payment-modal { z-index: 100; }
.app-modal { z-index: 120; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 5, 21, .80);
  backdrop-filter: blur(12px);
}
.cosmic-form-card,
.payment-card,
.app-modal-card {
  position: relative;
  width: min(672px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 30px;
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid rgba(129,140,248,.20);
  animation: fadeIn .18s ease both;
  outline: none;
}
.payment-card { width: min(448px, 100%); border-radius: 24px; }
.app-modal-card { width: min(560px, 100%); border-radius: 24px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #c7d2fe;
  font-size: 25px;
  transition: background .2s ease, color .2s ease;
  z-index: 2;
}
.modal-close:hover { background: rgba(255,255,255,.10); color: #fff; }
.form-heading { text-align: center; margin-bottom: 32px; }
.form-heading h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 2rem; font-weight: 900; color: white; }
.form-heading p { margin: 0; color: rgba(199,210,254,.70); font-size: .78rem; }
.form-heading i { display: block; width: 64px; height: 4px; margin: 12px auto 0; border-radius: 99px; background: linear-gradient(90deg, var(--secondary), #6366f1); }
.cosmic-form { display: grid; gap: 24px; }
.form-grid { display: grid; gap: 16px; }
.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cosmic-form label { display: grid; gap: 8px; }
.cosmic-form label span,
.option-title,
.payment-input span {
  display: block;
  padding-left: 4px;
  color: rgba(199,210,254,.80);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.cosmic-form input,
.cosmic-form select,
.cosmic-form textarea,
.payment-input input {
  width: 100%;
  border: 1px solid rgba(129,140,248,.20);
  background: #130b2b;
  color: #fff;
  border-radius: 14px;
  padding: 16px;
  outline: none;
  transition: border .2s ease, box-shadow .2s ease;
  font-size: .9rem;
  font-weight: 700;
}
.cosmic-form textarea { resize: vertical; min-height: 72px; font-size: .82rem; }
.cosmic-form input::placeholder,
.cosmic-form textarea::placeholder,
.payment-input input::placeholder { color: rgba(165,180,252,.40); }
.cosmic-form input:focus,
.cosmic-form select:focus,
.cosmic-form textarea:focus,
.payment-input input:focus { border-color: var(--secondary); box-shadow: 0 0 0 2px rgba(251,191,36,.25); }
.cosmic-form option { background: #130b2b; color: #e0e7ff; }
.option-block { display: grid; gap: 12px; }
.pill-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-choice,
.tile-choice {
  border: 1px solid rgba(129,140,248,.20);
  background: transparent;
  color: #c7d2fe;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: .75rem;
  font-weight: 800;
  text-transform: capitalize;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.pill-choice:hover,
.tile-choice:hover { border-color: rgba(251,191,36,.45); background: rgba(251,191,36,.05); }
.pill-choice.active,
.tile-choice.active { background: var(--secondary); color: #020617; border-color: var(--secondary); box-shadow: 0 0 14px rgba(251,191,36,.28); font-weight: 900; }
.tile-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tile-choice { border-radius: 14px; padding: 14px 8px; text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; }
.oracle-button {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(90deg, var(--secondary), #6366f1, #9333ea);
  color: white;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 18px 38px rgba(0,0,0,.28);
  transition: transform .15s ease, filter .2s ease;
}
.oracle-button span { color: var(--secondary); }
.oracle-button:hover { filter: brightness(1.08); }
.oracle-button:active { transform: scale(.98); }
.oracle-button[disabled] { opacity: .72; cursor: wait; }
.loading-state::after { content: ''; display: inline-block; width: 1em; text-align: left; animation: dots 1.2s steps(4, end) infinite; }
@keyframes dots { 0%, 20% { content: ''; } 40% { content: '.'; } 60% { content: '..'; } 80%, 100% { content: '...'; } }
.form-feedback {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(251,191,36,.08);
  border: 1px solid rgba(251,191,36,.20);
  color: #fde68a;
  line-height: 1.5;
  font-size: .82rem;
}
.form-feedback strong { display: block; color: #fff; margin-bottom: 4px; }
.form-feedback ul { margin: 8px 0 0; padding-left: 20px; color: rgba(224,231,255,.82); }
.form-feedback-error { background: rgba(239,68,68,.08); border-color: rgba(248,113,113,.22); color: #fecaca; }
.form-feedback-warning { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.22); color: #fde68a; }
.form-feedback-success { background: rgba(16,185,129,.08); border-color: rgba(52,211,153,.22); color: #bbf7d0; }

.cosmic-loading {
  z-index: 99;
  flex-direction: column;
  gap: 16px;
  background: rgba(10, 5, 21, .90);
  backdrop-filter: blur(12px);
  text-align: center;
}
.loading-orb {
  width: 80px;
  height: 80px;
  position: relative;
  display: grid;
  place-items: center;
  margin: 0 auto;
}
.loading-orb::before,
.loading-orb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 4px solid rgba(251,191,36,.20);
}
.loading-orb::after { border-top-color: var(--secondary); animation: spin 1s linear infinite; }
.loading-orb span { color: var(--secondary); font-size: 34px; animation: float 1.2s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-8px); } }
.cosmic-loading p { margin: 0; color: white; font-family: var(--serif); font-size: clamp(1.6rem, 5vw, 2.3rem); font-weight: 900; animation: pulseSoft 1.5s ease-in-out infinite; }
.cosmic-loading small { color: rgba(199,210,254,.82); }

.payment-line { position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--secondary), #6366f1, #9333ea); }
.payment-content { display: grid; gap: 22px; padding-top: 10px; }
.payment-content h2 { margin: 14px 0 6px; font-family: var(--serif); color: white; font-size: 2rem; font-weight: 900; }
.payment-content p { margin: 0; color: rgba(199,210,254,.70); font-size: .82rem; line-height: 1.55; }
.price-box {
  border-radius: 22px;
  background: rgba(49,46,129,.40);
  border: 1px solid rgba(129,140,248,.20);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.price-box strong { display: block; color: rgba(199,210,254,.80); font-size: .82rem; }
.price-box span { color: rgba(165,180,252,.60); font-size: .72rem; }
.price-box b { font-family: var(--serif); color: white; font-size: 1.9rem; }
.price-box small { display: block; color: #34d399; font-family: var(--mono); font-weight: 900; font-size: .64rem; text-transform: uppercase; }
.payment-input { display: grid; gap: 8px; }
.payment-methods { display: grid; gap: 12px; }
.payment-methods > p { text-align: center; color: rgba(199,210,254,.60); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 900; }
.paypal-container { min-height: 0; }
.mp-button {
  height: 56px;
  border: 0;
  border-radius: 14px;
  background: #00aae4;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 1.1rem;
  font-weight: 700;
  transition: background .2s ease, transform .15s ease;
}
.mp-button:hover { background: #0096cc; }
.mp-button:active { transform: scale(.96); }
.mp-button b { background: white; color: #00aae4; border-radius: 5px; padding: 2px 7px; }
.secure-note { text-align: center; color: rgba(165,180,252,.60); font-size: .66rem; }

.app-modal-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(251,191,36,.10);
  border: 1px solid rgba(251,191,36,.20);
  color: #fcd34d;
  font-size: 28px;
  margin-bottom: 18px;
}
.app-modal-kicker { margin: 0 0 8px; color: #c7d2fe; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 900; }
.app-modal-card h2 { margin: 0 0 14px; font-family: var(--serif); color: white; font-size: 2rem; font-weight: 900; }
.app-modal-card p { margin: 0; color: rgba(199,210,254,.75); line-height: 1.65; }
.app-modal-actions { margin-top: 18px; padding: 16px; border-radius: 18px; background: rgba(99,102,241,.10); border: 1px solid rgba(129,140,248,.20); }
.app-modal-actions ul { margin: 0; padding-left: 22px; color: rgba(224,231,255,.80); line-height: 1.6; }
.app-modal-details { margin-top: 18px; border-radius: 14px; background: rgba(5,2,17,.72); border: 1px solid rgba(129,140,248,.14); overflow: hidden; }
.app-modal-details summary { padding: 13px 14px; cursor: pointer; color: white; font-weight: 900; }
.app-modal-details pre { margin: 0; padding: 0 14px 14px; color: #dbeafe; white-space: pre-wrap; max-height: 220px; overflow: auto; font-size: .75rem; }
.app-modal-buttons { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.app-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(30px);
  opacity: 0;
  z-index: 150;
  padding: 12px 18px;
  border-radius: 999px;
  background: #0f172a;
  color: white;
  box-shadow: 0 18px 50px rgba(0,0,0,.38);
  font-weight: 900;
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.app-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.app-toast-success { background: #047857; }
.app-toast-info { background: #4f46e5; }
.app-toast-error { background: #b91c1c; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #312e81; border-radius: 10px; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .path-grid { grid-template-columns: 1fr; }
  .species-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .species-large, .quote-card { grid-column: auto; grid-row: auto; }
  .species-card { min-height: 220px; }
  .species-large { min-height: 420px; }
  .quote-card { min-height: 220px; }
  .chart-head, .premium-inner, .share-actions, .site-footer { flex-direction: column; display: flex; text-align: center; }
  .zodiac-line, .share-actions p { justify-content: center; }
  .site-footer nav { justify-content: center; }
  .site-footer div, .site-footer nav { margin: 0 auto; }
  .diagnostic-grid, .info-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-inner, .main-area { width: min(100% - 28px, var(--max)); }
  .brand strong { font-size: 1.22rem; }
  .account-pill { padding: 9px 14px; }
  .account-pill span:last-child { display: none; }
  .hero-intro { padding: 48px 0 56px; }
  .path-card { min-height: auto; }
  .two-cols, .tile-picker, .suggestions-grid { grid-template-columns: 1fr; }
  .chart-card { padding: 24px 18px; }
  .share-buttons { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
  .premium-inner { padding: 22px; }
  .cosmic-form-modal, .payment-modal, .app-modal { align-items: flex-end; padding: 12px; }
  .cosmic-form-card, .payment-card, .app-modal-card { border-radius: 24px; padding: 24px 18px; }
}


/* v7 voting and single-name UX */
.btn-purple {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white;
  border-color: rgba(168,85,247,.35);
  box-shadow: 0 12px 32px rgba(124,58,237,.22);
}
.btn-purple:hover { filter: brightness(1.08); }

.poll-share-box {
  display: grid;
  gap: 12px;
}
.poll-share-box input {
  width: 100%;
  border: 1px solid rgba(129,140,248,.25);
  background: rgba(8,3,19,.72);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: .82rem;
}
.poll-share-box > div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.poll-share-box .btn {
  min-height: 42px;
}

.poll-main {
  width: min(980px, calc(100% - 32px));
  margin: 80px auto 120px;
}
.poll-card {
  border-radius: 34px;
  padding: clamp(24px, 5vw, 48px);
  overflow: hidden;
  position: relative;
}
.poll-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at 18% 8%, rgba(251,191,36,.16), transparent 18rem),
              radial-gradient(circle at 88% 2%, rgba(129,140,248,.18), transparent 18rem);
  pointer-events: none;
}
.poll-card > * { position: relative; }
.poll-card h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: .98;
  margin: 16px 0;
  color: white;
}
.poll-card p {
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 720px;
}
.poll-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}
.poll-meta span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(224,231,255,.82);
  font-size: .86rem;
}
.poll-options {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}
.poll-option {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 74px;
  text-align: left;
  color: white;
  background: rgba(10,5,21,.58);
  border: 1px solid rgba(129,140,248,.20);
  border-radius: 22px;
  padding: 18px 18px;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.poll-option:hover {
  transform: translateY(-2px);
  border-color: rgba(251,191,36,.48);
  background: rgba(255,255,255,.075);
}
.poll-option.selected {
  border-color: rgba(251,191,36,.72);
  box-shadow: 0 0 0 1px rgba(251,191,36,.18), 0 18px 52px rgba(251,191,36,.10);
}
.poll-option i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), #a855f7);
  border-radius: 0 999px 999px 0;
  transition: width .25s ease;
}
.poll-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: .01em;
}
.poll-votes {
  color: rgba(224,231,255,.72);
  font-size: .92rem;
  white-space: nowrap;
}
.poll-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.poll-actions .btn {
  min-height: 46px;
}
@media (max-width: 760px) {
  .share-actions {
    align-items: stretch;
  }
  .share-buttons {
    flex-direction: column;
    width: 100%;
  }
  .share-buttons .btn {
    width: 100%;
  }
  .poll-option {
    grid-template-columns: 1fr;
  }
  .poll-votes {
    white-space: normal;
  }
}
