:root {
  --bg: #0f1020;
  --bg2: #17182e;
  --card: #1e1f3a;
  --card2: #262850;
  --accent: #7c5cff;
  --accent2: #00d4b4;
  --text: #eef0ff;
  --muted: #a4a8c8;
  --line: #2e3160;
  --danger: #ff6b7a;
  --ok: #00d4b4;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(0,0,0,.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: radial-gradient(1200px 800px at 50% -10%, #23244a 0%, var(--bg) 55%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

.app {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 16px 60px;
  min-height: 100vh;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; margin-bottom: 18px;
}
.brand .dot { width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); }

.card {
  background: linear-gradient(180deg, var(--card) 0%, var(--bg2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  animation: rise .35s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(12px);} to {opacity:1; transform:none;} }

h1 { font-size: 24px; line-height: 1.25; margin-bottom: 12px; }
h2 { font-size: 20px; line-height: 1.3; margin-bottom: 10px; }
h3 { font-size: 16px; margin: 16px 0 8px; color: var(--accent2); }
p  { color: var(--muted); line-height: 1.6; font-size: 15px; }
.lead { font-size: 16px; color: var(--text); }

.hero-emoji { font-size: 46px; margin-bottom: 8px; }

.btn {
  display: block; width: 100%; border: none; cursor: pointer;
  padding: 16px; border-radius: 14px; font-size: 16px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, var(--accent), #9b7bff);
  margin-top: 16px; transition: transform .1s ease, filter .2s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.secondary { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.pay { background: linear-gradient(135deg, #00d4b4, #14b8a6); font-size: 18px; }

.progress { height: 6px; background: var(--card2); border-radius: 6px; overflow: hidden; margin-bottom: 18px; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .3s ease; }
.step-meta { color: var(--muted); font-size: 13px; margin-bottom: 6px; }

.options { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.option {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px;
  cursor: pointer; transition: all .15s ease; background: var(--bg2);
  display: flex; align-items: center; gap: 12px; font-size: 15px;
}
.option:hover { border-color: var(--accent); }
.option.selected { border-color: var(--accent); background: var(--card2); box-shadow: inset 0 0 0 1px var(--accent); }
.option .check { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line); flex: 0 0 auto; }
.option.selected .check { background: var(--accent); border-color: var(--accent); }

.field { margin-top: 14px; }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
textarea, input[type="text"], input[type="date"], input[type="time"] {
  width: 100%; background: var(--bg2); border: 1px solid var(--line);
  color: var(--text); border-radius: 12px; padding: 13px; font-size: 15px; font-family: inherit;
}
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #6d719a; }

.voice-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.mic {
  border: 1px solid var(--line); background: var(--bg2); color: var(--text);
  border-radius: 12px; padding: 10px 14px; cursor: pointer; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.mic.rec { border-color: var(--danger); color: var(--danger); animation: pulse 1s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.5;} }
.mic .icon { font-size: 16px; }
.voice-note { font-size: 12px; color: var(--muted); }

.nav { display: flex; gap: 10px; margin-top: 18px; }
.nav .btn { margin-top: 0; }

.consent-box { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 6px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.consent-box input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--accent); }
.consent-box label { font-size: 13px; color: var(--muted); line-height: 1.5; }
.consent-box a { color: var(--accent2); }

.badge { display: inline-block; background: var(--card2); border: 1px solid var(--line);
  color: var(--accent2); font-size: 12px; padding: 4px 10px; border-radius: 20px; margin-bottom: 10px; }

.result-top { background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(0,212,180,.12));
  border: 1px solid var(--accent); border-radius: 14px; padding: 18px; margin: 8px 0 16px; }
ul.steps { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
ul.steps li { display: flex; gap: 10px; font-size: 15px; color: var(--text); line-height: 1.5; }
ul.steps li .n { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: none; }
.kv b { color: var(--accent2); font-weight: 600; }

.matrix-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 14px; }
.arcana { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.arcana span { background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 13px; }

.niches { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.niche { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .15s ease; }
.niche.picked { border-color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); }
.niche-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px; cursor: pointer; }
.niche-title { font-size: 15px; font-weight: 600; }
.niche-toggle { color: var(--muted); font-size: 14px; }
.niche-body { padding: 0 14px 14px; border-top: 1px solid var(--line); }
.niche-body .kv { padding: 8px 0; }
.niche-body .btn { margin-top: 12px; }
.niche-chosen { background: rgba(0,212,180,.12); border: 1px solid var(--ok); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; color: var(--text); margin-bottom: 10px; }
.niche-chosen b { color: var(--ok); }

.paywall { text-align: center; margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); }
.price { font-size: 34px; font-weight: 800; color: var(--accent2); margin: 6px 0; }
.paywall ul { list-style: none; text-align: left; display: inline-block; margin: 8px auto; }
.paywall ul li { padding: 5px 0; color: var(--text); font-size: 14px; }
.paywall ul li::before { content: "✓ "; color: var(--ok); font-weight: 700; }

.alt { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 10px; }
.alt h4 { font-size: 15px; margin-bottom: 4px; }
.alt p { font-size: 13px; }

.week { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 12px; }
.week .wt { color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.script { background: var(--card2); border-radius: 10px; padding: 12px; margin-top: 10px; font-size: 14px; }
.script b { color: var(--accent2); }

.offer { background: linear-gradient(135deg, rgba(124,92,255,.16), rgba(0,212,180,.10));
  border: 1px solid var(--accent); border-radius: 14px; padding: 18px; margin-top: 16px; }
.offer .btn { background: linear-gradient(135deg, var(--accent), #9b7bff); text-decoration: none; text-align: center; }

.accountability-cta { background: rgba(255,107,122,.10); border: 1px solid #ff6b7a55;
  border-radius: 14px; padding: 18px; margin-top: 18px; }
.acc-message { background: var(--bg2); border-left: 3px solid var(--danger); border-radius: 10px;
  padding: 14px; color: var(--text); line-height: 1.6; font-size: 15px; margin-bottom: 14px; }
.acc-stats { display: flex; gap: 10px; margin: 6px 0 16px; }
.acc-stats > div { flex: 1; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.acc-stats b { font-size: 22px; color: var(--accent2); }
.acc-stats span { font-size: 11px; color: var(--muted); }
.acc-goal { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 14px;
  margin-bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.acc-goal span { font-size: 12px; color: var(--muted); }
.acc-goal b { font-size: 16px; color: var(--text); }

.spinner { width: 42px; height: 42px; border: 4px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 1s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg);} }

.error { color: var(--danger); font-size: 14px; margin-top: 10px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 24px; }
.foot a { color: var(--accent2); }
.hidden { display: none !important; }
.test-note { background: rgba(255,193,7,.12); border:1px solid #ffc10744; color:#ffd75e;
  font-size:12px; padding:8px 12px; border-radius:10px; margin-top:12px; }
