/* ═══════════════════════════════════════════════════════
   DIVA-5 ADHD Test — Premium Design System
   ═══════════════════════════════════════════════════════ */

/* ─── CSS Variables ──────────────────────────────────── */
:root {
  /* Primary palette — calming purple */
  --primary-50: #f3e8ff;
  --primary-100: #e9d5ff;
  --primary-200: #d8b4fe;
  --primary-300: #c084fc;
  --primary-400: #a855f7;
  --primary-500: #9333ea;
  --primary-600: #7c3aed;
  --primary-700: #6d28d9;
  --primary-800: #5b21b6;
  --primary-900: #4c1d95;

  /* Accent — warm rose */
  --accent-400: #f472b6;
  --accent-500: #ec4899;
  --accent-600: #db2777;

  /* Neutrals */
  --gray-50: #fafafa;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  --gray-300: #d4d4d8;
  --gray-400: #a1a1aa;
  --gray-500: #71717a;
  --gray-600: #52525b;
  --gray-700: #3f3f46;
  --gray-800: #27272a;
  --gray-900: #18181b;

  /* Semantic */
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  /* Surface */
  --bg-primary: #0f0a1a;
  --bg-secondary: #1a1229;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
  --gradient-card: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(236, 72, 153, 0.05) 100%);
  --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(147, 51, 234, 0.3) 0%, transparent 60%);

  /* Layout */
  --max-width: 680px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(147, 51, 234, 0.3);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition-normal: 300ms var(--ease-out);
  --transition-slow: 500ms var(--ease-out);
}


/* ─── Reset & Base ───────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background ambient glow */
body::before {
  content: '';
  position: fixed;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 60%;
  background: var(--gradient-glow);
  pointer-events: none;
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}


/* ─── Typography ─────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--primary-300);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--primary-200);
  text-decoration: underline;
}


/* ─── Glass Card ─────────────────────────────────────── */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}


/* ═══════════════════════════════════════════════════════
   LANDING VIEW
   ═══════════════════════════════════════════════════════ */
.landing-container {
  width: 100%;
  max-width: var(--max-width);
  padding: 2rem 1.5rem 3rem;
  margin: 0 auto;
  animation: fadeInUp 0.6s var(--ease-out);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero */
.hero-section {
  text-align: center;
  padding: 3rem 0 2rem;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.logo-icon {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-title {
  font-size: 2.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Info Cards */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 2rem 0;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.2rem 0.8rem;
  text-align: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.info-card:hover {
  transform: translateY(-2px);
  border-color: rgba(147, 51, 234, 0.3);
}

.info-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.info-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.info-text strong {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.info-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Disclaimer */
.disclaimer-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 1.5rem 0;
}

.disclaimer-compact {
  margin: 1rem 0;
  padding: 1rem;
}

.disclaimer-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.disclaimer-content strong {
  display: block;
  color: var(--warning);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.disclaimer-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 2rem 0;
}

/* Landing Footer */
.landing-footer {
  text-align: center;
  padding-top: 1rem;
}

.landing-footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* ═══════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: var(--radius-xl);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background var(--transition-fast);
  pointer-events: none;
}

.btn:hover::after {
  background: rgba(255, 255, 255, 0.08);
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn:disabled::after {
  display: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(147, 51, 234, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(147, 51, 234, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  font-size: 1.1em;
}

.btn-icon-only {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon-only:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}


/* ═══════════════════════════════════════════════════════
   QUESTIONNAIRE VIEW
   ═══════════════════════════════════════════════════════ */
.questionnaire-container {
  width: 100%;
  max-width: var(--max-width);
  padding: 1.25rem 1.5rem 3rem;
  margin: 0 auto;
  animation: fadeInUp 0.4s var(--ease-out);
}

/* Header */
.q-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.q-progress-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.q-counter {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.q-timer {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Progress Bar */
.progress-bar-container {
  position: relative;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 10px;
  transition: width 0.5s var(--ease-out);
  position: relative;
}

.progress-glow {
  position: absolute;
  right: 0;
  top: -4px;
  width: 20px;
  height: 14px;
  background: rgba(147, 51, 234, 0.6);
  filter: blur(6px);
  border-radius: 50%;
}

.progress-label {
  position: absolute;
  right: 0;
  top: -22px;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Part Badge */
.q-part-badge {
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #93bbfd;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-orange {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Question Card */
.q-card {
  padding: 2rem 1.75rem;
  margin-bottom: 1.5rem;
}

.q-criterion-id {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.q-question {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.q-phase-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.q-phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: rgba(147, 51, 234, 0.1);
  border: 1px solid rgba(147, 51, 234, 0.15);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary-300);
  flex-shrink: 0;
}

.q-phase-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
  font-style: italic;
  line-height: 1.4;
}

.q-examples {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.q-examples li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.q-examples li:last-child {
  border-bottom: none;
}

.q-examples li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  background: var(--primary-400);
  border-radius: 50%;
  opacity: 0.6;
}

.q-prompt {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
}

/* Answer Buttons */
.q-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.btn-answer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

/* Yes button — always green-tinted */
.btn-answer.yes {
  background: rgba(34, 197, 94, 0.08);
  border: 2px solid rgba(34, 197, 94, 0.32);
  color: #86efac;
}
.btn-answer.yes:hover {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.6);
  color: #4ade80;
}

/* No button — always red-tinted */
.btn-answer.no {
  background: rgba(239, 68, 68, 0.08);
  border: 2px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}
.btn-answer.no:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.58);
  color: #f87171;
}

/* Selected states — brighter */
.btn-answer.yes.selected {
  background: rgba(34, 197, 94, 0.22);
  border-color: rgba(34, 197, 94, 0.75);
  color: #4ade80;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.btn-answer.no.selected {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.65);
  color: #f87171;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.answer-check {
  font-size: 1.2rem;
  opacity: 0.8;
}

.btn-answer.selected .answer-check {
  opacity: 1;
}

/* Navigation */
.q-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* ═══════════════════════════════════════════════════════
   EMAIL VIEW
   ═══════════════════════════════════════════════════════ */
.email-container {
  width: 100%;
  max-width: var(--max-width);
  padding: 2rem 1.5rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  animation: fadeInUp 0.5s var(--ease-out);
}

.email-card {
  width: 100%;
  padding: 2.5rem 2rem;
  text-align: center;
}

.email-icon-wrap {
  margin-bottom: 1.5rem;
}

.email-icon {
  font-size: 3rem;
  animation: float 3s ease-in-out infinite;
}

.email-card h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.email-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Input */
.input-group {
  position: relative;
  margin-bottom: 1rem;
}

.input-field {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.input-field::placeholder {
  color: var(--text-muted);
}

.input-field:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
}

.input-label {
  position: absolute;
  top: -8px;
  left: 12px;
  background: var(--bg-secondary);
  padding: 0 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.email-note {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 1.5rem !important;
}

/* ─── Demographics ──────────────────────────────────── */
.demographics-form {
  margin: 1.5rem 0;
  text-align: left;
}

.demo-field {
  margin-bottom: 1.75rem;
}

.demo-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  text-align: center;
}

/* Gender cards */
.demo-gender-options {
  display: flex;
  gap: 0.75rem;
}

.demo-gender-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: inherit;
}

.demo-gender-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}

.demo-gender-btn.active {
  background: rgba(147, 51, 234, 0.12);
  border-color: var(--primary-400);
  color: var(--text-primary);
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.2);
}

.demo-gender-icon {
  font-size: 2rem;
  line-height: 1;
}

.demo-gender-btn.active .demo-gender-icon {
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.5));
}

.demo-gender-text {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Age input */
.demo-age-input-wrap {
  text-align: center;
}

.demo-age-input {
  width: 120px;
  text-align: center;
  font-size: 2.25rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
  appearance: textfield;
  -moz-appearance: textfield;
}

.demo-age-input::-webkit-outer-spin-button,
.demo-age-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.demo-age-input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
}


/* ═══════════════════════════════════════════════════════
   RESULTS VIEW
   ═══════════════════════════════════════════════════════ */
.results-container {
  width: 100%;
  max-width: var(--max-width);
  padding: 2rem 1.5rem 3rem;
  margin: 0 auto;
  animation: fadeInUp 0.5s var(--ease-out);
}

.results-header {
  text-align: center;
  margin-bottom: 2rem;
}

.results-header h1 {
  font-size: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.results-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Result Type Card */
.result-type-card {
  text-align: center;
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
}

.result-type-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.result-type-label {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.result-type-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Type-specific colors */
.result-green {
  border-color: rgba(34, 197, 94, 0.2);
  background: rgba(34, 197, 94, 0.05);
}
.result-green .result-type-label { color: #4ade80; }

.result-blue {
  border-color: rgba(59, 130, 246, 0.2);
  background: rgba(59, 130, 246, 0.05);
}
.result-blue .result-type-label { color: #60a5fa; }

.result-orange {
  border-color: rgba(245, 158, 11, 0.2);
  background: rgba(245, 158, 11, 0.05);
}
.result-orange .result-type-label { color: #fbbf24; }

.result-purple {
  border-color: rgba(147, 51, 234, 0.2);
  background: rgba(147, 51, 234, 0.05);
}
.result-purple .result-type-label { color: var(--primary-300); }

/* Score Cards */
.scores-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.score-card {
  padding: 1.5rem;
}

.score-card h3 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-family: 'Outfit', sans-serif;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.score-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 65px;
}

.score-bar-wrap {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
}

.score-bar {
  height: 100%;
  border-radius: 10px;
  transition: width 1s var(--ease-out);
  min-width: 2px;
}

.score-bar-blue {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.score-bar-blue-light {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.5), rgba(96, 165, 250, 0.5));
}

.score-bar-orange {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.score-bar-orange-light {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.5), rgba(251, 191, 36, 0.5));
}

.score-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  min-width: 30px;
  text-align: right;
}

.score-high {
  color: var(--accent-400) !important;
}

.score-threshold {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Results Actions */
.results-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.results-footer {
  text-align: center;
}

.results-footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .info-cards {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .info-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    padding: 0.9rem 1rem;
  }

  .info-icon {
    margin-bottom: 0;
    font-size: 1.3rem;
  }

  .q-card {
    padding: 1.5rem 1.25rem;
  }

  .q-question {
    font-size: 1.05rem;
  }

  .email-card {
    padding: 2rem 1.25rem;
  }

  .result-type-card {
    padding: 1.5rem 1rem;
  }

  .result-type-label {
    font-size: 1.1rem;
  }
}

@media (min-width: 768px) {
  .info-cards {
    gap: 1rem;
  }

  .scores-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* ═══════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════ */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* Subtle entrance animation for question cards */
.q-card {
  animation: cardEnter 0.3s var(--ease-out);
}

@keyframes cardEnter {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Button answer click ripple */
.btn-answer:active {
  transform: scale(0.96);
}

/* Score bar animation on results page */
.score-bar {
  animation: growBar 1.2s var(--ease-out);
}

@keyframes growBar {
  from { width: 0 !important; }
}

/* ─── Part 3 & New Styles ──────────────────────────────── */

/* Badge purple for Part 3 */
.badge-purple {
  background: rgba(155, 109, 215, 0.15);
  color: #9B6DD7;
  border-color: rgba(155, 109, 215, 0.3);
}

/* Result type card — yellow/subclinical */
.result-yellow {
  border-color: rgba(234, 179, 8, 0.3);
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.05), rgba(234, 179, 8, 0.02));
}
.result-yellow .result-type-label { color: #ca8a04; }

/* Footnote under examples list */
.q-examples-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  padding: 0 0.25rem;
  line-height: 1.5;
}

/* Life area cards (Criterion C) */
.life-areas-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.life-area-card {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.875rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  background: rgba(255,255,255,0.03);
}

.life-area-card:hover {
  border-color: rgba(155, 109, 215, 0.4);
  background: rgba(155, 109, 215, 0.04);
}

.life-area-card.selected {
  border-color: rgba(155, 109, 215, 0.85);
  background: rgba(155, 109, 215, 0.16);
  box-shadow: 0 0 0 3px rgba(155, 109, 215, 0.22);
}

.life-area-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.life-area-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.life-area-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.15s;
  flex-shrink: 0;
}

.life-area-check.checked {
  background: #9B6DD7;
  border-color: #9B6DD7;
  color: white;
}

.life-area-examples {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.life-area-examples li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
  line-height: 1.45;
}

.life-area-examples li::before {
  content: '·';
  position: absolute;
  left: 0.25rem;
  color: var(--text-muted);
}

/* Criterion C counter badge */
.criterion-c-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.875rem;
  border-radius: 8px;
  font-size: 0.82rem;
  background: rgba(100, 116, 139, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(100, 116, 139, 0.2);
  margin-bottom: 0.75rem;
  transition: all 0.2s;
}

.criterion-c-counter.met {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}

/* Criteria checklist in Results */
.criteria-checklist {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.criteria-checklist h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.criterion-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.criterion-item:last-child { border-bottom: none; }

.criterion-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.criterion-detail {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.criterion-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.criterion-item.met .criterion-detail { color: var(--text-primary); }
.criterion-item.not-met .criterion-detail { color: var(--text-secondary); }

/* ═══════════════════════════════════════════════════════
   CENTERED DESIGN UPDATES
   ═══════════════════════════════════════════════════════ */
.q-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.q-question {
  text-align: center;
}

.q-examples {
  text-align: left;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 1.5rem auto;
}

.q-answers {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.q-phase-header {
  justify-content: center;
}

.q-header {
  justify-content: center;
  gap: 1.5rem;
}

.q-navigation {
  justify-content: center;
  gap: 1.5rem;
}

.results-header, .score-card {
  text-align: center;
}

.score-row {
  justify-content: center;
}

.criteria-checklist {
  text-align: center;
}

.criterion-item {
  justify-content: center;
  text-align: center;
}

.criterion-detail {
  align-items: center;
}

.life-area-label {
  justify-content: center;
}

