/* ══════════════════════════════════════════════════════
   3. RESULTS SCREEN
   ══════════════════════════════════════════════════════ */

/* ── Results: remove nav/breadcrumb borders ────────── */
#results-screen > .app-nav {
  border-bottom: none;
}
#results-screen .breadcrumb-bar {
  border-bottom: none;
}

/* ── Results Hero Section ──────────────────────────── */
.results-hero {
  background: #fff;
  padding-top: 36px;
  padding-bottom: 36px;
}
.results-hero-title {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 20px;
}

/* Horizontal split: ring left, details right */
.results-hero-split {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 640px;
  margin: 0 auto;
}
.results-hero-left {
  flex-shrink: 0;
}
.results-hero-right {
  flex: 1;
  min-width: 0;
}
.results-hero-right,
.results-hero-right .percentile-section,
.results-hero-right .unanswered-note {
  text-align: left;
}

/* Score ring — 180 px, 24 px thick track */
.score-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color, #4361ee) var(--pct), #E5E7EB var(--pct));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.score-circle-inner {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-pct { font-size: 38px; font-weight: 800; color: #111827; letter-spacing: -0.5px; }
.score-raw { font-size: 13px; color: #9CA3AF; margin-top: 1px; }

/* Percentile badge + gauge */
.percentile-section {
  margin-bottom: 14px;
}
.percentile-badge {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 18px;
  letter-spacing: -0.1px;
}
.percentile-gauge {
  max-width: 100%;
  margin: 0;
}
.percentile-gauge-track {
  position: relative;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #FDECEA 0%, #FFF8E1 25%, #E8F5E9 50%, #E2F2E3 75%, #B8DFB9 100%);
  overflow: visible;
}
.percentile-gauge-fill {
  display: none;
}
.percentile-gauge-marker {
  position: absolute;
  top: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #111827;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transform: translateX(-50%);
  transition: left 0.6s ease;
}
.percentile-gauge-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: #9CA3AF;
  position: relative;
}
.percentile-gauge-suffix {
  position: absolute;
  right: -56px;
  top: 0;
  font-size: 10px;
  font-style: italic;
  color: #C0C5CF;
}

.unanswered-note {
  font-size: 13px;
  color: #9CA3AF;
  margin-top: 10px;
}

/* ── Results button overrides ─────────────────────── */
.results-hero .results-actions-wrap {
  max-width: none;
  margin: 22px 0 0;
  gap: 10px;
  justify-content: flex-start;
}
.results-hero .ra-btn--secondary {
  background: #EEEDFE;
  color: #3C3489;
  border: 1.5px solid #EEEDFE;
}
.results-hero .ra-btn--secondary .ra-icon {
  color: #3C3489;
  opacity: 0.65;
}
.results-hero .ra-btn--secondary:hover {
  background: #e2e0fb;
  border-color: #e2e0fb;
  color: #3C3489;
  box-shadow: 0 3px 12px rgba(60,52,137,0.08);
  transform: translateY(-1px);
}
.results-hero .ra-btn--secondary:hover .ra-icon {
  color: #3C3489;
  opacity: 0.85;
}

/* ── Breakdown Sections ──────────────────────────────── */
.breakdown-section { margin-bottom: 0; }
.breakdown-gate .breakdown-section {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.breakdown-section h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9CA3AF;
  margin-bottom: 16px;
}
.breakdown-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 14px;
}
.breakdown-label {
  width: 180px;
  font-size: 14px;
  font-weight: 500;
  text-transform: capitalize;
  flex-shrink: 0;
  color: #374151;
}
.breakdown-bar-track {
  flex: 1;
  height: 22px;
  background: #F3F4F6;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.breakdown-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}
.breakdown-bar-fill.domain { background: #4361ee; }
.breakdown-bar-fill.family { background: #7c3aed; }
.breakdown-bar-fill.band { background: #059669; }
.breakdown-score {
  width: 70px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: #6B7280;
  flex-shrink: 0;
}

/* ── Breakdown Gate (trial blur) ────────────────────── */
.breakdown-gate {
  position: relative;
}
#domain-first-row {
  margin-bottom: 10px;
}
#domain-remaining .breakdown-row {
  margin-bottom: 16px;
}
.breakdown-gate-content {
  position: relative;
  padding-top: 6px;
}
.breakdown-gate-content > .breakdown-section {
  margin-bottom: 0;
}
.breakdown-gate-content > .breakdown-section + .breakdown-section {
  margin-top: 28px;
}
.breakdown-gate.gated .breakdown-gate-content {
  filter: blur(10px);
  -webkit-filter: blur(10px);
  pointer-events: none;
  user-select: none;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%),
    linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%),
    linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-composite: intersect;
}
.breakdown-gate.gated .breakdown-gate-prompt {
  display: flex !important;
}
.breakdown-gate-prompt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 36px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.breakdown-gate-text {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 16px;
  text-align: center;
  max-width: 320px;
}
.breakdown-gate-cta {
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  background: #4361ee;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.breakdown-gate-cta:hover {
  background: #3a56d4;
}


/* ── Progress Teaser (trial only) ──────────────────── */
.progress-teaser {
  padding-top: 56px !important;
  padding-bottom: 56px !important;
}
.progress-teaser-preview {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 28px;
  border-radius: 12px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  padding: 16px;
  overflow: hidden;
  filter: blur(4px);
  -webkit-filter: blur(4px);
  pointer-events: none;
  user-select: none;
}
.progress-teaser-preview svg {
  display: block;
  width: 100%;
  height: auto;
}
.progress-teaser-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}
.progress-teaser-sub {
  font-size: 14px;
  color: #6B7280;
  margin-bottom: 20px;
}
.progress-teaser-cta {
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  background: #4361ee;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.progress-teaser-cta:hover {
  background: #3a56d4;
}

.results-footer {
  text-align: center;
  margin-top: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 0;
}

/* ── Results Actions (redesigned) ───────────────────── */
.results-actions-wrap {
  max-width: 580px;
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Shared button base */
.ra-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: -0.1px;
  border-radius: 11px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.12s;
}
.ra-btn .ra-icon {
  flex-shrink: 0;
  transition: color 0.2s;
}
.ra-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Primary — filled blue */
.ra-btn--primary {
  background: #4361ee;
  color: #fff;
  border: 1.5px solid #4361ee;
  box-shadow: 0 2px 8px rgba(67, 97, 238, 0.15);
}
.ra-btn--primary .ra-icon { color: rgba(255,255,255,0.8); }
.ra-btn--primary:hover {
  background: #3a56d4;
  border-color: #3a56d4;
  box-shadow: 0 4px 16px rgba(67, 97, 238, 0.22);
  transform: translateY(-1px);
}

/* Secondary row — inline with primary */
.ra-secondary-row {
  display: contents;
}

/* Secondary — outlined */
.ra-btn--secondary {
  background: #fff;
  color: #374151;
  border: 1.5px solid #E5E7EB;
}
.ra-btn--secondary .ra-icon { color: #9CA3AF; }
.ra-btn--secondary:hover {
  border-color: #C7D2FE;
  background: #FAFBFF;
  box-shadow: 0 3px 12px rgba(67, 97, 238, 0.08);
  transform: translateY(-1px);
}
.ra-btn--secondary:hover .ra-icon { color: #4361ee; }

/* ══════════════════════════════════════════════════════
   4. PROGRESS SCREEN
   ══════════════════════════════════════════════════════ */

/* Tighter vertical rhythm for progress page sections */
#progress-screen .app-section {
  padding-top: 28px;
  padding-bottom: 28px;
}

/* Title band — tighter top padding to pull content up */
#progress-screen .app-section:first-of-type {
  padding-top: 18px;
  padding-bottom: 24px;
}

/* Title has tighter spacing to KPIs below */
#progress-screen .app-page-title {
  margin-bottom: 14px;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 0;
}
.summary-card {
  text-align: center;
  padding: 14px 12px;
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #ECEEF1;
}
.summary-card-value {
  font-size: 21px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2px;
}
.summary-card-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #9CA3AF;
}

/* ── Insight Card (rating + tip below KPIs) ──────────── */
.insight-card {
  margin-top: 16px;
  padding: 16px 20px;
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #ECEEF1;
  text-align: center;
}
.insight-rating {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.insight-tip {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.4;
}
.insight-tip strong {
  color: #111827;
  font-weight: 600;
}

.progress-empty {
  text-align: center;
  padding: 40px 20px;
  color: #9CA3AF;
  font-size: 15px;
}

/* ── Chart Tooltip ───────────────────────────────────── */
.chart-tooltip {
  position: fixed;
  pointer-events: none;
  background: #1f2937;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.12s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.chart-tooltip.visible { opacity: 1; }

/* ── Chart Sections ──────────────────────────────────── */
.chart-section {
  margin-bottom: 0;
}
.chart-section h3,
.chart-section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6B7280;
  margin-bottom: 16px;
}
.chart-section-title {
  margin-bottom: 0;
}
.chart-wrap {
  width: 100%;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: auto;
}
.chart-wrap svg {
  display: block;
  width: 100%;
  height: auto;
}
.chart-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.band-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #666;
}
.band-legend-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}
/* Bullet chart legend */
.bullet-legend {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #6B7280;
}
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-swatch {
  width: 20px;
  height: 12px;
  border-radius: 3px;
}
.bullet-legend-bar { background: #93bbfd; }
.bullet-legend-marker {
  width: 3px;
  height: 14px;
  background: #111827;
  border-radius: 1px;
}

/* Bullet chart domain headers */
.bullet-domain-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9CA3AF;
}
.bullet-domain-header:first-child { margin-top: 0; }
.bullet-domain-header-line {
  flex: 1;
  height: 1px;
  background: #E5E7EB;
}
.bullet-domain-pct {
  font-weight: 700;
  color: #111827;
  font-size: 13px;
}

/* Bullet chart rows */
.bullet-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 12px;
}
.bullet-label {
  width: 130px;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bullet-track {
  flex: 1;
  height: 18px;
  background: #E8EAEE;
  border-radius: 4px;
  position: relative;
  overflow: visible;
}
.bullet-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}
.bullet-fill.has-data {
  min-width: 4px;
}
.bullet-fill.numerical { background: #93bbfd; }
.bullet-fill.verbal { background: #f9a8d4; }
.bullet-fill.figural { background: #6ee7b7; }
.bullet-marker {
  position: absolute;
  top: -2px;
  width: 3px;
  height: 22px;
  background: #111827;
  border-radius: 1px;
  transform: translateX(-50%);
  transition: left 0.6s ease;
}
.bullet-score {
  width: 42px;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  flex-shrink: 0;
}
.bullet-trend {
  width: 18px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  flex-shrink: 0;
}
.bullet-trend.up { color: #059669; }
.bullet-trend.down { color: #ef4444; }
.bullet-trend.flat { color: #9CA3AF; }

.bullet-row.inactive .bullet-label { color: #bbb; }
.bullet-row.inactive .bullet-fill { background: #ddd; }
.bullet-row.inactive .bullet-score { color: #bbb; }
.bullet-row.inactive .bullet-trend { color: #bbb; }

.bullet-avg-note {
  margin-top: 12px;
  font-size: 12px;
  color: #9CA3AF;
  font-style: italic;
  text-align: center;
}

/* Mini trend charts (domain & family) */
.mini-trend-group {
  margin-bottom: 0;
}
#domain-trends-section > .app-section {
  padding-top: 24px;
  padding-bottom: 0;
}
#domain-trends-container .app-section {
  padding-top: 28px;
  padding-bottom: 28px;
}
.mini-trend-domain-header {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9CA3AF;
  margin-bottom: 8px;
}
.mini-trend-domain-chart {
  margin-bottom: 8px;
}
.mini-trend-domain-chart .chart-wrap svg {
  display: block;
  width: 100%;
  height: auto;
}
.mini-trend-family-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mini-trend-cell {
  min-width: 0;
}
.mini-trend-cell-label {
  font-size: 11px;
  font-weight: 600;
  color: #6B7280;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-trend-cell .chart-wrap svg {
  display: block;
  width: 100%;
  height: auto;
}
.mini-trend-empty {
  height: 40px;
  background: #F3F4F6;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════════════════════════════
   5. AUTH SCREEN
   ══════════════════════════════════════════════════════ */
#auth-screen .app-section { min-height: 60vh; display: flex; align-items: center; justify-content: center; }
#auth-screen .app-grid { width: 100%; }
.auth-loading { font-size: 14px; color: #9CA3AF; margin-top: 16px; }
#clerk-sign-in { display: flex; justify-content: center; }

/* ══════════════════════════════════════════════════════
   6. PRICING SCREEN (in-app)
   ══════════════════════════════════════════════════════ */
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px auto;
  max-width: 560px;
}
.pricing-card {
  border: 1.5px solid #E5E7EB;
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  background: #fff;
}
.pricing-card:hover {
  border-color: #4361ee;
  box-shadow: 0 4px 16px rgba(67,97,238,0.1);
}
.pricing-card.popular {
  border-color: #4361ee;
}
.pricing-card .popular-tag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: #4361ee;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 12px;
  border-radius: 20px;
}
.pricing-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}
.pricing-card .price {
  font-size: 36px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}
.pricing-card .price-detail {
  font-size: 13px;
  color: #9CA3AF;
  margin-bottom: 20px;
}
.pricing-card .btn-primary {
  width: 100%;
  padding: 12px;
  font-size: 14px;
}

/* ══════════════════════════════════════════════════════
   7. SAMPLE RESULTS SCREEN
   ══════════════════════════════════════════════════════ */
.sample-score-big {
  font-size: 56px;
  font-weight: 800;
  color: #4361ee;
  margin-bottom: 4px;
}
.sample-score-label {
  font-size: 14px;
  color: #9CA3AF;
  margin-bottom: 32px;
}
.upsell-box {
  background: linear-gradient(135deg, #111827 0%, #1e293b 100%);
  border-radius: 14px;
  padding: 36px 32px;
  color: #fff;
  text-align: left;
  max-width: 560px;
  margin: 0 auto;
}
.upsell-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}
.upsell-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.upsell-bullets li {
  font-size: 14px;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.9);
}
.upsell-bullets li::before {
  content: '\2713';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  font-size: 11px;
  flex-shrink: 0;
}
.upsell-box .btn-primary {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

/* ══════════════════════════════════════════════════════
   8. REVIEW SCREEN
   ══════════════════════════════════════════════════════ */
.review-score-summary {
  text-align: center;
  font-size: 16px;
  color: #6B7280;
  margin-bottom: 8px;
  font-weight: 600;
}
.review-correct .opt-label {
  background: #059669 !important;
  color: #fff !important;
}
.review-correct {
  border-color: #059669 !important;
  background: #f0fdf4 !important;
}
.review-wrong .opt-label {
  background: #ef4444 !important;
  color: #fff !important;
}
.review-wrong {
  border-color: #ef4444 !important;
  background: #fef2f2 !important;
}
.review-explanation {
  margin-top: 12px;
  margin-left: 34px;
  padding: 12px 16px;
  background: #F9FAFB;
  border-left: 3px solid #4361ee;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  line-height: 1.6;
  color: #374151;
}
.review-explanation-label {
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}
.review-unanswered {
  display: inline-block;
  margin-left: 34px;
  margin-top: 8px;
  padding: 4px 12px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #92400e;
}
.review-correct-indicator {
  display: inline-block;
  margin-left: 34px;
  margin-top: 8px;
  padding: 4px 12px;
  background: #f0fdf4;
  border: 1px solid #059669;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #065f46;
}

/* ══════════════════════════════════════════════════════
   AUTH MODAL
   ══════════════════════════════════════════════════════ */
.auth-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.auth-modal-overlay.active { display: flex; }
.auth-modal {
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.auth-modal h2 {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}
.auth-modal-sub {
  font-size: 14px;
  color: #6B7280;
  margin-bottom: 24px;
}
.auth-modal-close {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: #9CA3AF;
  cursor: pointer;
  border: none;
  background: none;
  text-decoration: underline;
}
.auth-modal-close:hover { color: #6B7280; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .app-section { padding: 36px 24px; }
  .app-nav-inner { padding: 14px 24px; }
  .test-top-bar-inner { padding: 14px 24px; }
  .summary-cards { grid-template-columns: repeat(2, 1fr); }
  .dash-content { padding: 36px 24px 0; }
  .dash-section { padding: 36px 24px; }
  .dash-actions { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .dash-summary { grid-template-columns: repeat(3, 1fr); }
  .results-hero-split { gap: 28px; }
}

@media (max-width: 600px) {
  .app-section { padding: 28px 16px; }
  .app-nav-inner { padding: 12px 16px; }
  .test-top-bar-inner { padding: 12px 16px; }
  .app-page-title { font-size: 24px; }
  .questions-area { padding: 16px 0 8px; }
  .question-stem { padding-left: 0; }
  .options-row { padding-left: 0; flex-direction: column; }
  .opt-btn { width: 100%; }
  .breakdown-label { width: 120px; font-size: 12px; }
  .page-dot { width: 28px; height: 28px; font-size: 11px; }
  .figure-cell { width: 90px; height: 90px; }
  .figure-reference-area .figure-cell { width: 130px; height: 130px; }
  .options-row.figural-options { grid-template-columns: repeat(2, 1fr); }
  .figural-opt-svg svg { width: 100%; height: auto; }
  .figure-analogy-stem { gap: 4px; }
  .figure-analogy-sep { font-size: 13px; }
  .summary-cards { grid-template-columns: repeat(2, 1fr); }
  .dash-content { padding: 28px 16px 0; }
  .dash-headline { font-size: 24px; }
  .dash-section { padding: 28px 16px; }
  .dash-run { grid-template-columns: 1fr auto auto; gap: 10px; padding: 14px 16px; }
  .dash-run-score { min-width: auto; }
  .dash-run-trend { display: none; }
  .dash-summary { grid-template-columns: repeat(3, 1fr); }
  .dash-summary-val { font-size: 22px; }
  .dash-summary-stat { padding: 16px 12px; }
  .dash-qtypes-pills { gap: 6px; }
  .dash-pill { font-size: 11px; padding: 4px 10px; }
  .dash-action-card { padding: 22px 20px 20px; }
  .results-footer { flex-direction: column; align-items: center; }
  .results-hero-split { flex-direction: column; }
  .results-hero-right { width: 100%; text-align: center; }
  .results-hero .results-actions-wrap { justify-content: center; }
  .score-circle { width: 150px; height: 150px; }
  .score-circle-inner { width: 110px; height: 110px; }
  .score-pct { font-size: 32px; }
  .ra-secondary-row { display: contents; }
  .results-actions-wrap { flex-direction: column; align-items: stretch; }
  .results-actions-wrap .ra-btn { width: 100%; }
  .breakdown-gate-prompt { padding: 24px 20px; }
  .bullet-label { width: 100px; font-size: 11px; }
  .mini-trend-family-row { grid-template-columns: 1fr; gap: 8px; }
  .pricing-cards { grid-template-columns: 1fr; }
  .test-top-center { display: none; }
}

