*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0a0a0f; --surface: #12121a; --surface2: #1a1a28; --border: #1e1e2e;
  --text: #e2e2e8; --muted: #888898; --accent: #6366f1; --green: #10b981;
  --gold: #f59e0b; --radius: 12px;
}
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; display: flex; justify-content: center; align-items: flex-start; padding: 40px 16px; }

.quiz-container { max-width: 680px; width: 100%; }

/* Progress */
.progress-bar { position: relative; height: 6px; background: var(--border); border-radius: 3px; margin-bottom: 48px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.4s ease; width: 12.5%; }
.progress-text { position: absolute; top: 14px; right: 0; font-size: 0.8rem; color: var(--muted); }

/* Slides */
.slide-container { position: relative; min-height: 400px; }
.slide { display: none; animation: fadeUp 0.3s ease; }
.slide.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.slide h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.slide p { color: var(--muted); margin-bottom: 32px; }

/* Choice cards */
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choice { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 20px; cursor: pointer; text-align: center; transition: border-color 0.2s, transform 0.15s, background 0.2s; }
.choice:hover { border-color: var(--accent); transform: translateY(-2px); }
.choice.selected { border-color: var(--accent); background: rgba(99,102,241,0.1); }
.choice-icon { font-size: 2rem; margin-bottom: 8px; display: block; }
.choice-label { font-weight: 600; font-size: 0.95rem; }
.choice-desc { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

/* Multi-select */
.multi-note { font-size: 0.8rem; color: var(--muted); margin-bottom: 16px; font-style: italic; }
.choices.multi .choice.selected { background: rgba(16,185,129,0.1); border-color: var(--green); }

/* Navigation */
.slide-nav { margin-top: 32px; display: flex; justify-content: space-between; }
.nav-btn { padding: 12px 32px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none; transition: opacity 0.2s; }
.nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.nav-back { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.nav-next { background: var(--accent); color: #fff; }
.nav-next:hover:not(:disabled) { opacity: 0.9; }

/* Results */
.results-container { animation: fadeUp 0.4s ease; }
.results-header { text-align: center; margin-bottom: 40px; }
.results-header h1 { font-size: 2rem; font-weight: 800; }
.results-sub { color: var(--muted); }

.results-bots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.result-bot { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; position: relative; }
.result-bot .match-pct { position: absolute; top: 12px; right: 12px; background: var(--green); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; }
.result-bot .bot-avatar { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; color: #fff; }
.result-bot .bot-name { font-weight: 700; margin-bottom: 4px; }
.result-bot .bot-tagline { font-size: 0.8rem; color: var(--muted); }
.result-bot .bot-price { margin-top: 8px; color: var(--green); font-weight: 700; }

.results-bundle { background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius); padding: 24px; text-align: center; margin-bottom: 32px; }
.results-bundle h3 { font-size: 1.2rem; margin-bottom: 8px; }
.results-bundle .bundle-price { font-size: 2rem; font-weight: 800; color: var(--green); }
.results-bundle .bundle-price small { font-size: 0.9rem; color: var(--muted); font-weight: 400; }
.results-bundle .bundle-savings { color: var(--gold); font-size: 0.9rem; margin-top: 4px; }
.results-bundle .bundle-bots { color: var(--muted); font-size: 0.85rem; margin-top: 8px; }

.results-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.btn { display: inline-block; padding: 12px 28px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none; text-decoration: none; transition: transform 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-ghost { background: none; color: var(--muted); border: 1px solid var(--border); }

.privacy-note { text-align: center; font-size: 0.8rem; color: var(--muted); }
.privacy-note a { color: var(--accent); }

@media (max-width: 500px) {
  .choices { grid-template-columns: 1fr; }
  .results-bots { grid-template-columns: 1fr 1fr; }
  body { padding: 20px 12px; }
}
