:root {
  --bg: #07111f;
  --bg-soft: rgba(15, 26, 45, 0.88);
  --panel: rgba(16, 25, 42, 0.82);
  --panel-strong: rgba(10, 18, 32, 0.94);
  --panel-light: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --gold: #f1c56b;
  --gold-strong: #e8b34a;
  --purple: #8b6dff;
  --purple-strong: #6e53f5;
  --white: #f7f4ee;
  --muted: #c9c2dc;
  --success: #74d7b3;
  --danger: #ff8f9c;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at top left, rgba(139, 109, 255, 0.16), transparent 32%),
    radial-gradient(circle at 90% 15%, rgba(241, 197, 107, 0.09), transparent 24%),
    linear-gradient(180deg, #060f1c 0%, #081220 34%, #0b1525 100%);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.page-shell { position: relative; overflow: clip; }
.aurora, .starfield { position: fixed; pointer-events: none; z-index: 0; }
.aurora {
  width: 420px; height: 420px; filter: blur(70px); opacity: 0.32;
}
.aurora-1 { left: -90px; top: -90px; background: rgba(139, 109, 255, 0.45); }
.aurora-2 { right: -120px; top: 120px; background: rgba(241, 197, 107, 0.22); }
.starfield {
  inset: 0;
  opacity: .45;
  background-image:
    radial-gradient(circle at 20% 26%, rgba(255,255,255,.85) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 20%, rgba(255,255,255,.6) 0 1px, transparent 1.5px),
    radial-gradient(circle at 82% 70%, rgba(255,255,255,.45) 0 1px, transparent 1.5px),
    radial-gradient(circle at 44% 78%, rgba(255,255,255,.65) 0 1px, transparent 1.5px),
    radial-gradient(circle at 14% 72%, rgba(255,255,255,.42) 0 1px, transparent 1.5px);
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.brand { display: inline-flex; gap: 14px; align-items: center; }
.brand strong,
.hero h1,
.section-heading h2,
.calculator-copy h2,
.result-header h2,
.checkout-card h3,
.unlock-card h3,
.deep-dive-card h3,
.pricing-card h3,
.admin-table-wrap h3 {
  font-family: 'Cinzel', serif;
}
.brand small { display: block; color: var(--muted); margin-top: 4px; font-size: .82rem; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
  color: var(--gold);
  background: linear-gradient(145deg, rgba(241,197,107,.18), rgba(139,109,255,.16));
  border: 1px solid rgba(241,197,107,.28);
  box-shadow: var(--shadow);
}
.top-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.top-nav a { color: var(--muted); font-weight: 600; }
.top-nav a:hover { color: var(--white); }

.btn, .mode-chip {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}
.btn {
  gap: 10px; padding: 14px 22px; border: 1px solid transparent;
}
.btn-primary {
  color: #0b1120;
  font-weight: 800;
  background: linear-gradient(135deg, #f8dda4 0%, #e8b34a 100%);
  box-shadow: 0 12px 32px rgba(232, 179, 74, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(232, 179, 74, 0.38); }
.btn-secondary {
  border-color: var(--border); background: rgba(255,255,255,.03); color: var(--white);
}
.btn-secondary:hover { transform: translateY(-2px); border-color: rgba(241,197,107,.36); }
.btn-full { width: 100%; }

.hero {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center;
  padding: 36px 0 40px;
}
.eyebrow {
  display: inline-block; color: var(--gold); letter-spacing: .12em; text-transform: uppercase;
  font-size: .76rem; font-weight: 700; margin-bottom: 14px;
}
.hero h1 {
  margin: 0; line-height: 1.04;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
}
.hero-subheadline,
.section-heading p,
.calculator-copy p,
.info-card p,
.pricing-card ul,
.result-card p,
.checkout-card p,
.unlock-card p,
.owner-note span,
.disclaimer,
.form-note,
.field-group small,
.result-summary p,
.admin-table-wrap,
.deep-dive-card p {
  color: var(--muted);
}
.hero-subheadline { margin: 20px 0 0; font-size: 1.04rem; max-width: 65ch; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-metrics,
.info-grid,
.pricing-grid,
.admin-grid,
.score-row,
.result-grid,
.pill-grid,
.future-pills,
.keyword-list,
.locked-grid,
.package-list,
.unlock-meta,
.meta-pills {
  display: grid; gap: 16px;
}
.hero-metrics { grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.hero-metrics article,
.info-card,
.pricing-card,
.admin-stat,
.result-card,
.checkout-card,
.unlock-card,
.admin-table-wrap,
.hero-card,
.calculator-shell,
.result-hero-card,
.deep-dive-card,
.score-stat,
.mode-switch,
.quiz-card,
.couple-block,
.owner-note {
  background: linear-gradient(180deg, rgba(17, 27, 46, 0.84), rgba(10, 18, 32, 0.92));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.hero-metrics article,
.admin-stat,
.score-stat { border-radius: 20px; padding: 18px; }
.hero-metrics strong,
.admin-stat strong,
.score-stat strong,
.pricing-card h3 { font-size: 1.5rem; display: block; }
.hero-metrics span,
.admin-stat span,
.score-stat span { color: var(--muted); font-size: .95rem; }

.hero-card { border-radius: 32px; padding: 20px; }
.orbital-card {
  border-radius: 26px; padding: 24px;
  border: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}
.orbital-top,
.card-top,
.result-actions-top,
.table-header-row,
.field-row,
.mode-switch,
.unlock-meta { display: flex; gap: 12px; align-items: center; }
.orbital-top, .table-header-row { justify-content: space-between; }
.badge, .pill, .price-tag {
  border-radius: 999px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05); font-size: .84rem;
}
.price-tag { color: var(--gold); display: inline-block; margin-bottom: 14px; }
.muted { color: var(--muted); font-size: .92rem; }
.score-stack { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0; }
.score-card {
  border-radius: 22px; padding: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
}
.score-card strong { display: block; font-size: 2.4rem; margin: 8px 0 4px; font-family: 'Cinzel', serif; }
.glow-gold { box-shadow: inset 0 0 0 1px rgba(241,197,107,.16); }
.glow-purple { box-shadow: inset 0 0 0 1px rgba(139,109,255,.2); }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mini-grid article {
  border-radius: 18px; padding: 16px; border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.03);
}
.mini-grid span { display: block; color: var(--muted); font-size: .84rem; margin-bottom: 6px; }

.section { padding: 44px 0; }
.section-heading { margin-bottom: 24px; }
.section-heading h2 { margin: 0 0 10px; font-size: clamp(1.85rem, 4vw, 2.8rem); }
.section-heading.compact { margin-bottom: 18px; }
.info-grid.three-col, .pricing-grid { grid-template-columns: repeat(3, 1fr); }
.info-card, .pricing-card, .result-card, .checkout-card, .unlock-card, .admin-table-wrap { border-radius: 24px; padding: 22px; }
.info-card .icon, .result-card .icon {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(145deg, rgba(241,197,107,.16), rgba(139,109,255,.16)); color: var(--gold);
}
.info-card h3, .result-card h3 { margin: 14px 0 8px; }
.feature-band { padding-top: 10px; }
.pill-grid, .future-pills { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.pill-grid .pill, .future-pills .pill { text-align: center; }

.calculator-shell {
  border-radius: 30px; padding: 28px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px;
}
.calculator-form { display: grid; gap: 18px; }
.mode-switch {
  width: fit-content; padding: 8px; border-radius: 999px; margin-top: 24px;
}
.mode-chip {
  border: none; background: transparent; color: var(--muted); padding: 11px 18px; font-weight: 700;
}
.mode-chip.active {
  color: #0d1220; background: linear-gradient(135deg, #f8dda4 0%, #e8b34a 100%);
}
.field-group { display: grid; gap: 8px; flex: 1; }
.field-row { justify-content: stretch; }
.three-col-row { align-items: stretch; }
label { font-weight: 700; }
.optional { color: var(--muted); font-weight: 500; }
input, select {
  width: 100%; border-radius: 16px; padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(3,10,20,.56); color: var(--white);
  outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus { border-color: rgba(241,197,107,.52); box-shadow: 0 0 0 4px rgba(241,197,107,.12); }
.block-title { font-weight: 800; margin-bottom: 12px; }
.quiz-card, .couple-block, .owner-note { border-radius: 22px; padding: 18px; }
.hidden { display: none !important; }

.preview-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start;
}
.preview-main { display: grid; gap: 20px; }
.result-header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 18px; }
.result-header h2 { margin: 0 0 8px; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.result-hero-card {
  display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 24px; border-radius: 28px;
}
.result-number-wrap { display: grid; place-items: center; text-align: center; gap: 12px; }
.result-label, .result-keyword { color: var(--gold); font-weight: 700; }
.result-number {
  width: 150px; height: 150px; border-radius: 999px; display: grid; place-items: center;
  background: radial-gradient(circle at top, #fff6da, #e8b34a 60%, #946013 100%);
  color: #231403; font-family: 'Cinzel', serif; font-size: 4rem; font-weight: 700;
  box-shadow: 0 0 50px rgba(232, 179, 74, 0.24);
}
.result-keyword { letter-spacing: .08em; text-transform: uppercase; }
.keyword-list { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 12px 0 6px; }
.keyword-list .pill { text-align: center; }
.score-row { grid-template-columns: repeat(3, 1fr); }
.result-grid { grid-template-columns: repeat(2, 1fr); }
.locked-grid { grid-template-columns: repeat(2, 1fr); }
.locked-card {
  padding: 18px; border-radius: 22px; background: rgba(255,255,255,.03); border: 1px dashed rgba(241,197,107,.32);
}
.locked-card strong { display: block; margin-bottom: 6px; }
.preview-sidebar { display: grid; gap: 18px; }
.package-list { grid-template-columns: 1fr; }
.package-option {
  border-radius: 20px; padding: 18px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03); display: grid; gap: 12px;
}
.package-option.active { border-color: rgba(241,197,107,.38); box-shadow: inset 0 0 0 1px rgba(241,197,107,.18); }
.package-option h4 { margin: 0; font-size: 1.08rem; }
.package-option .package-price { color: var(--gold); font-size: 1.32rem; font-weight: 800; }
.package-option ul { margin: 0; padding-left: 18px; color: var(--muted); }
.owner-note { display: grid; gap: 6px; margin-top: 16px; }
.unlock-meta { flex-wrap: wrap; }

.pricing-grid { grid-template-columns: repeat(4, 1fr); }
.pricing-card.featured { box-shadow: inset 0 0 0 1px rgba(241,197,107,.18), var(--shadow); }
.pricing-card ul { padding-left: 20px; margin: 0; display: grid; gap: 10px; }
.admin-grid { grid-template-columns: repeat(4, 1fr); }
.admin-stat strong { margin-top: 6px; }
.table-scroller { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; }
th { color: var(--gold); font-size: .9rem; }
.future-ready .deep-dive-card { display: grid; grid-template-columns: 1fr .9fr; gap: 20px; align-items: center; }
.deep-dive-card { border-radius: 28px; padding: 24px; }
.disclaimer { text-align: center; margin-top: 18px; font-size: .92rem; }

.status-paid { color: var(--success); }
.status-pending { color: var(--gold); }
.status-ready { color: var(--success); }
.status-not-downloaded { color: var(--muted); }
.status-sent { color: var(--success); }
.status-queued { color: var(--gold); }

.reveal { opacity: 0; transform: translateY(20px); animation: fadeUp .72s ease forwards; }
.delay-1 { animation-delay: .08s; }
.delay-2 { animation-delay: .16s; }
.delay-3 { animation-delay: .24s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1080px) {
  .hero, .calculator-shell, .preview-layout, .future-ready .deep-dive-card, .pricing-grid {
    grid-template-columns: 1fr;
  }
  .admin-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .site-header, .result-header { flex-direction: column; align-items: stretch; }
  .hero-metrics, .info-grid.three-col, .score-row, .result-grid, .locked-grid {
    grid-template-columns: 1fr 1fr;
  }
  .result-hero-card { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .hero, .calculator-shell, .result-hero-card { gap: 24px; }
  .hero h1 { font-size: clamp(2rem, 11vw, 3rem); }
  .hero-actions, .result-actions-top, .field-row, .three-col-row, .top-nav {
    flex-direction: column;
  }
  .top-nav { gap: 10px; }
  .btn { width: 100%; }
  .hero-metrics, .info-grid.three-col, .pricing-grid, .admin-grid, .score-row, .result-grid, .locked-grid, .keyword-list, .mini-grid {
    grid-template-columns: 1fr;
  }
  .mode-switch { width: 100%; }
  .mode-chip { flex: 1; }
  .result-number { width: 128px; height: 128px; font-size: 3.2rem; }
  .section { padding: 34px 0; }
}
