/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface2: #263548;
  --border: #334155;
  --border-light: #475569;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: rgba(59,130,246,0.15);
  --accent: #60a5fa;
  --text: #f1f5f9;
  --text2: #94a3b8;
  --text3: #64748b;
  --success: #10b981;
  --success-bg: rgba(16,185,129,0.15);
  --warning: #f59e0b;
  --warning-bg: rgba(245,158,11,0.15);
  --danger: #ef4444;
  --danger-bg: rgba(239,68,68,0.15);
  --critical: #dc2626;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* =============================================
   LAYOUT
   ============================================= */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
}

.app-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
}

.app-header .logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.header-badge {
  font-size: 11px;
  color: var(--text3);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
}

.main-content {
  padding-top: 60px;
  min-height: 100vh;
}

/* =============================================
   WELCOME SCREEN
   ============================================= */
.welcome-screen {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}

.welcome-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(59,130,246,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(139,92,246,0.08) 0%, transparent 60%);
}

.welcome-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.welcome-card {
  position: relative;
  max-width: 680px;
  width: 100%;
  text-align: center;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  border: 1px solid rgba(59,130,246,0.4);
  color: #bfdbfe;
  font-size: 22px;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 20px;
  margin-bottom: 24px;
  margin-top: -40px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.welcome-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #f1f5f9 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-title span {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-desc {
  font-size: 16px;
  color: var(--text2);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.welcome-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.welcome-stat {
  text-align: center;
}

.welcome-stat .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.welcome-stat .label {
  font-size: 12px;
  color: var(--text3);
  margin-top: 2px;
}

.welcome-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 40px;
  text-align: left;
}

.welcome-features .welcome-feature:last-child {
  grid-column: 2;
}

.welcome-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.welcome-feature .icon {
  width: 36px;
  height: 36px;
  background: var(--primary-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.welcome-feature h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.welcome-feature p {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.5;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(59,130,246,0.3); }

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--surface); border-color: var(--border-light); }

.btn-ghost {
  background: transparent;
  color: var(--text2);
  padding: 10px 16px;
  font-size: 14px;
}

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

.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: 10px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* =============================================
   PROFILE SCREEN
   ============================================= */
.profile-screen {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 24px;
}

.screen-header {
  text-align: center;
  margin-bottom: 40px;
}

.screen-header h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.screen-header p {
  color: var(--text2);
  font-size: 15px;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 16px;
}

.form-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full { grid-column: 1 / -1; }

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
}

.required { color: var(--danger); margin-left: 2px; }

input[type="text"],
input[type="email"],
select,
textarea {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  width: 100%;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

select option { background: #1e293b; }

/* =============================================
   QUESTIONNAIRE SCREEN
   ============================================= */
.questionnaire-screen {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

.progress-bar-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  height: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #60a5fa);
  border-radius: 100px;
  transition: width 0.5s ease;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.progress-text {
  font-size: 13px;
  color: var(--text3);
}

.progress-pct {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

/* Domain pills */
.domain-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.domain-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text3);
  transition: all var(--transition);
}

.domain-pill.active {
  color: white;
  border-color: transparent;
}

.domain-pill.done {
  color: var(--success);
  border-color: rgba(16,185,129,0.3);
  background: rgba(16,185,129,0.1);
}

.domain-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

/* Question card */
.question-wrapper {
  animation: slideIn 0.3s ease;
}

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

.domain-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.question-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.question-number {
  font-size: 12px;
  color: var(--text3);
  font-weight: 600;
  margin-bottom: 8px;
}

.question-text {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 12px;
}

.question-hint {
  font-size: 13px;
  color: var(--text3);
  background: var(--surface2);
  border-left: 3px solid var(--primary);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Answer options */
.yesno-group {
  display: flex;
  gap: 12px;
}

.yesno-btn {
  flex: 1;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--surface2);
  color: var(--text2);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.yesno-btn:hover {
  border-color: var(--border-light);
  color: var(--text);
  background: var(--surface);
}

.yesno-btn.selected-yes {
  border-color: var(--success);
  background: var(--success-bg);
  color: var(--success);
}

.yesno-btn.selected-no {
  border-color: var(--danger);
  background: var(--danger-bg);
  color: var(--danger);
}

.choice-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choice-btn {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--surface2);
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
}

.choice-btn:hover { border-color: var(--primary); color: var(--text); background: var(--primary-light); }

.choice-btn.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--accent);
  font-weight: 600;
}

.choice-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.choice-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  display: none;
}

.choice-btn.selected .choice-radio::after { display: block; }

/* Multiselect */
.multiselect-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.multiselect-hint {
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 4px;
}

.multiselect-btn {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--surface2);
  color: var(--text2);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.multiselect-btn.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--accent);
}

.multiselect-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
}

/* Navigation */
.question-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.nav-hint {
  font-size: 12px;
  color: var(--text3);
  text-align: center;
}

/* =============================================
   DOMAIN INTRO
   ============================================= */
.domain-intro-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  margin-bottom: 24px;
  animation: slideIn 0.3s ease;
}

.domain-intro-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
}

.domain-intro-card h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}

.domain-intro-card p {
  color: var(--text2);
  font-size: 15px;
  max-width: 480px;
  margin: 0 auto 28px;
}

.domain-intro-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 28px;
}

.domain-intro-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* =============================================
   RESULTS SCREEN
   ============================================= */
.results-screen {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.results-header {
  text-align: center;
  margin-bottom: 40px;
}

.results-header h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.results-header p {
  color: var(--text2);
}

/* Risk gauge */
.risk-gauge-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.gauge-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.gauge-circle {
  position: relative;
  width: 180px;
  height: 180px;
  flex-shrink: 0;
}

.gauge-svg {
  width: 180px;
  height: 180px;
  transform: rotate(-90deg);
}

.gauge-track { fill: none; stroke: var(--surface2); stroke-width: 14; }
.gauge-fill { fill: none; stroke-width: 14; stroke-linecap: round; transition: stroke-dasharray 1s ease; }

.gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gauge-score {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
}

.gauge-label {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.risk-summary {
  text-align: left;
  max-width: 340px;
}

.risk-level-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.risk-summary h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}

.risk-summary p {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.7;
}

.risk-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.risk-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text3);
}

.risk-meta-item strong { color: var(--text2); }

/* Domain scores */
.section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.domain-scores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.domain-score-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.domain-score-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.domain-score-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.domain-score-pct {
  font-size: 16px;
  font-weight: 800;
}

.domain-score-bar {
  height: 6px;
  background: var(--surface2);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 6px;
}

.domain-score-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 1s ease;
}

.domain-score-desc {
  font-size: 11px;
  color: var(--text3);
}

/* Product recommendations */
.recommendations-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.priority-section {
  margin-bottom: 28px;
}

.priority-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.priority-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.priority-badge.critical { background: var(--danger-bg); color: var(--danger); }
.priority-badge.high { background: var(--warning-bg); color: var(--warning); }
.priority-badge.medium { background: var(--primary-light); color: var(--accent); }

.priority-count { font-size: 12px; color: var(--text3); }

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color var(--transition);
}

.product-card:hover { border-color: var(--border-light); }

.product-priority-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.product-info { flex: 1; min-width: 0; }

.product-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.product-category {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.product-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 6px;
}

.product-examples {
  font-size: 11px;
  color: var(--text3);
}

.product-examples strong { color: var(--text3); }

/* Summary table */
.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.summary-row:last-child { border-bottom: none; }
.summary-row .label { color: var(--text2); }
.summary-row .value { font-weight: 600; color: var(--text); }

/* Actions */
.results-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* =============================================
   RISK COLORS
   ============================================= */
.risk-low { color: var(--success); }
.risk-medium-low { color: #84cc16; }
.risk-medium { color: var(--warning); }
.risk-high { color: #f97316; }
.risk-critical { color: var(--danger); }

.bg-risk-low { background: var(--success); }
.bg-risk-medium-low { background: #84cc16; }
.bg-risk-medium { background: var(--warning); }
.bg-risk-high { background: #f97316; }
.bg-risk-critical { background: var(--danger); }

/* =============================================
   UTILITIES
   ============================================= */
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mb-24 { margin-bottom: 24px; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text3);
}

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text3);
  font-weight: 600;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.step.active .step-num {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.step.done .step-num {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.step.active { color: var(--text); }
.step.done { color: var(--success); }

.step-sep {
  width: 24px;
  height: 1px;
  background: var(--border);
}

/* =============================================
   PRODUCT RISK BOX
   ============================================= */
.product-risk-box {
  background: rgba(239,68,68,0.07);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-risk-label {
  font-size: 11px;
  font-weight: 700;
  color: #f87171;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-risk-text {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}

.product-risk-stat {
  font-size: 12px;
  color: var(--text3);
  font-style: italic;
}

/* =============================================
   PACKAGES
   ============================================= */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.package-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition);
}

.package-card:hover { border-color: var(--border-light); }

.package-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  width: fit-content;
}

.package-name {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}

.package-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1;
}

.package-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.package-items li {
  font-size: 13px;
  color: var(--text2);
  display: flex;
  gap: 6px;
}

.package-items li::before { display: none; }

/* =============================================
   NEXT STEPS
   ============================================= */
.next-steps-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}

.next-steps-urgency {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  margin-bottom: 28px;
}

.next-steps-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.next-step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.next-step-num {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}

.next-step-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.next-step-item p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  margin: 0;
}

/* =============================================
   RECORDS TABLE
   ============================================= */
.records-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.records-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.records-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.records-table tr:last-child td { border-bottom: none; }

.records-table tr:hover td { background: var(--surface2); }

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
  body { background: white; color: black; }
  .app-header, .results-actions, .btn { display: none !important; }
  .results-screen { padding: 0; max-width: 100%; }
  .risk-gauge-card, .domain-score-card, .product-card, .summary-card {
    background: white !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
  }
  :root {
    --text: #111;
    --text2: #444;
    --text3: #666;
    --surface: white;
    --surface2: #f5f5f5;
    --border: #ddd;
    --bg: white;
  }
  .gauge-score { color: #111 !important; }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 480px) {
  .welcome-features { grid-template-columns: 1fr 1fr; }
  .welcome-features .welcome-feature:last-child { grid-column: auto; }
}

@media (max-width: 640px) {
  .welcome-stats { gap: 20px; }
  .yesno-group { flex-direction: column; }
  .gauge-wrapper { flex-direction: column; gap: 24px; }
  .risk-summary { text-align: center; }
  .domain-pills { display: none; }
  .question-nav { flex-wrap: wrap; gap: 8px; }
}

/* =============================================
   LOADING / COMPLETION ANIMATION
   ============================================= */
.completion-screen {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.completion-card {
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.completion-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 24px;
  animation: popIn 0.5s ease;
}

@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.completion-card h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.completion-card p { color: var(--text2); font-size: 15px; margin-bottom: 28px; }

.analyzing-animation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text3);
  font-size: 14px;
  margin-bottom: 28px;
}

.dot-pulse {
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 1.2s ease-in-out infinite;
}
.dot-pulse:nth-child(2) { animation-delay: 0.2s; }
.dot-pulse:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
  0%, 100% { transform: scale(0.7); opacity: 0.4; }
  50% { transform: scale(1.1); opacity: 1; }
}
