/* ─── Onboarding zone (top of homepage) ───────────────────────────── */
.onboarding-zone {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 22px 8px;
  position: relative;
  z-index: 3;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}
.onboarding-zone[hidden] { display: none !important; }
.onboarding-zone:empty { padding: 0; min-height: 0; }

/* ─── Streak pill ─────────────────────────────────────────────────── */
.cq-streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  margin-left: 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #fbbf24;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.cq-streak-pill .cq-streak-flame { font-size: 12px; }

/* ─── Resume banner (returning users) ─────────────────────────────── */
.resume-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(34,197,94,0.06) 0%, rgba(96,165,250,0.06) 100%);
  border: 1px solid rgba(34,197,94,0.28);
  border-left: 3px solid #22c55e;
  border-radius: 14px;
  padding: 14px 18px;
  flex-wrap: wrap;
}
.resume-banner-icon {
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(34,197,94,0.14);
  color: #4ade80;
  font-size: 20px;
  flex-shrink: 0;
}
.resume-banner-text { flex: 1 1 220px; min-width: 0; }
.resume-banner-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4ade80;
  font-weight: 600;
}
.resume-banner-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #e8edf8;
  letter-spacing: -0.01em;
  margin-top: 2px;
  line-height: 1.3;
}
.resume-banner-meta {
  font-size: 13px;
  color: #b9bdc9;
  margin-top: 4px;
}
.resume-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  flex-shrink: 0;
}
.resume-banner-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(34,197,94,0.25); }
.resume-banner-cta::after { content: '→'; }

.resume-banner-secondary {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: #7c90ae;
  text-decoration: none;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(124,144,174,0.25);
  padding-bottom: 1px;
  margin-left: 8px;
  flex-shrink: 0;
}
.resume-banner-secondary:hover { color: #e8edf8; border-bottom-color: #e8edf8; }

/* ─── Goal picker (first-timer view) ──────────────────────────────── */
.goal-picker {
  background: linear-gradient(180deg, rgba(12,17,32,0.85) 0%, rgba(12,17,32,0.5) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 24px 24px 22px;
}
.goal-picker-header {
  text-align: center;
  margin-bottom: 18px;
}
.goal-picker-eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #60a5fa;
  background: rgba(96,165,250,0.10);
  border: 1px solid rgba(96,165,250,0.25);
  padding: 4px 11px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 12px;
}
.goal-picker h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: #e8edf8;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1.2;
}
.goal-picker .goal-picker-sub {
  font-size: 14px;
  color: #b9bdc9;
  margin: 0;
  line-height: 1.55;
}

.goal-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
@media (max-width: 720px) {
  .goal-picker-grid { grid-template-columns: 1fr; }
}
.goal-button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px 18px 16px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.goal-button:hover {
  border-color: rgba(96,165,250,0.45);
  transform: translateY(-2px);
  background: rgba(96,165,250,0.05);
}
.goal-button[data-goal="exam"]:hover    { border-color: rgba(96,165,250,0.5); background: rgba(96,165,250,0.05); }
.goal-button[data-goal="career"]:hover  { border-color: rgba(34,197,94,0.5);  background: rgba(34,197,94,0.05); }
.goal-button[data-goal="explore"]:hover { border-color: rgba(168,85,247,0.5); background: rgba(168,85,247,0.05); }

.goal-icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 4px;
}
.goal-button strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  color: #e8edf8;
  letter-spacing: -0.01em;
}
.goal-button span.goal-desc {
  font-size: 12.5px;
  color: #7c90ae;
  line-height: 1.4;
}

/* ─── Cert search (revealed when "exam" goal is picked) ──────────── */
.cert-search-wrap {
  display: none;
  margin-top: 6px;
}
.cert-search-wrap.open { display: block; }
.cert-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 0 14px 0 42px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.cert-search-input-wrap:focus-within {
  border-color: rgba(96,165,250,0.5);
  background: rgba(96,165,250,0.05);
}
.cert-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #7c90ae;
  font-size: 16px;
}
.cert-search-input {
  flex: 1;
  height: 46px;
  background: transparent;
  border: none;
  outline: none;
  color: #e8edf8;
  font-family: inherit;
  font-size: 15px;
}
.cert-search-input::placeholder { color: #506885; }
.cert-search-clear {
  background: transparent;
  border: none;
  color: #7c90ae;
  cursor: pointer;
  font-size: 14px;
  padding: 6px 8px;
}
.cert-search-clear:hover { color: #e8edf8; }

.cert-search-results {
  margin-top: 8px;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  background: rgba(12,17,32,0.7);
}
.cert-search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s ease;
}
.cert-search-result:last-child { border-bottom: none; }
.cert-search-result:hover { background: rgba(96,165,250,0.06); }
.cert-search-result-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brand-color, #60a5fa);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.03);
}
.cert-search-result-name {
  font-size: 14px;
  font-weight: 600;
  color: #e8edf8;
  flex: 1;
  min-width: 0;
}
.cert-search-result-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: #7c90ae;
  background: rgba(255,255,255,0.04);
  padding: 2px 7px;
  border-radius: 5px;
}
.cert-search-result-arrow {
  color: #7c90ae;
  font-size: 14px;
  transition: transform 0.18s ease, color 0.18s ease;
}
.cert-search-result:hover .cert-search-result-arrow { color: #60a5fa; transform: translateX(3px); }
.cert-search-empty {
  padding: 18px 14px;
  text-align: center;
  font-size: 13.5px;
  color: #7c90ae;
}

/* ─── Question of the Day ─────────────────────────────────────────── */
.qotd-card {
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(168,85,247,0.05) 0%, rgba(96,165,250,0.04) 100%);
  border: 1px solid rgba(168,85,247,0.20);
  border-radius: 16px;
  padding: 18px 20px;
}
.qotd-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c084fc;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.qotd-eyebrow .qotd-pack {
  font-size: 10.5px;
  color: #7c90ae;
  text-transform: none;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.qotd-eyebrow .qotd-date {
  color: #c084fc;
  text-transform: none;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.qotd-question {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #e8edf8;
  letter-spacing: -0.005em;
  line-height: 1.45;
  margin-bottom: 14px;
}
.qotd-options {
  display: grid;
  gap: 8px;
}
.qotd-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 13.5px;
  color: #cfd6e6;
  line-height: 1.45;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.qotd-option:hover:not(:disabled) {
  border-color: rgba(96,165,250,0.4);
  background: rgba(96,165,250,0.04);
}
.qotd-option:disabled { cursor: default; opacity: 1; }
.qotd-option-letter {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #7c90ae;
  flex-shrink: 0;
}
.qotd-option.is-correct {
  border-color: rgba(34,197,94,0.55);
  background: rgba(34,197,94,0.08);
  color: #d1fae5;
}
.qotd-option.is-correct .qotd-option-letter {
  background: rgba(34,197,94,0.25);
  color: #4ade80;
}
.qotd-option.is-wrong {
  border-color: rgba(244,63,94,0.5);
  background: rgba(244,63,94,0.08);
  color: #fecdd3;
}
.qotd-option.is-wrong .qotd-option-letter {
  background: rgba(244,63,94,0.22);
  color: #fb7185;
}
.qotd-explanation {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.025);
  border-left: 3px solid #60a5fa;
  border-radius: 0 10px 10px 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #b9bdc9;
}
.qotd-explanation strong { color: #e8edf8; display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #60a5fa; font-family: 'JetBrains Mono', monospace; }
.qotd-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #60a5fa;
  text-decoration: none;
}
.qotd-cta::after { content: '→'; transition: transform 0.18s ease; }
.qotd-cta:hover::after { transform: translateX(3px); }

/* ─── Diagnostic pre-quiz intro (replaces mode picker body) ───────── */
.diag-intro { padding: 4px 6px 8px; }
.diag-intro-lede {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #e8edf8;
  letter-spacing: -0.01em;
  line-height: 1.45;
  margin: 0 0 14px;
}
.diag-intro-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.diag-intro-list li {
  position: relative;
  padding: 7px 0 7px 22px;
  font-size: 13.5px;
  color: #cfd6e6;
  line-height: 1.5;
}
.diag-intro-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 7px;
  color: #4ade80;
  font-weight: 700;
  font-size: 13px;
}
.diag-intro-list strong { color: #e8edf8; }
.diag-intro-outro {
  font-size: 12.5px;
  color: #7c90ae;
  line-height: 1.55;
  margin: 0 0 16px;
  font-style: italic;
}
.diag-intro-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.diag-intro-back {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  color: #b9bdc9;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.diag-intro-back:hover {
  border-color: rgba(255,255,255,0.2);
  color: #e8edf8;
}
.diag-intro-start {
  flex: 1;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: none;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  min-width: 180px;
}
.diag-intro-start:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(34,197,94,0.25); }

/* Difficulty rows in the diagnostic results */
.diag-diff-row .diag-diff-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-block;
}
.diag-diff-row .diag-diff-easy   { color: #4ade80; background: rgba(34,197,94,0.10);  border: 1px solid rgba(34,197,94,0.25); }
.diag-diff-row .diag-diff-medium { color: #fbbf24; background: rgba(245,158,11,0.10); border: 1px solid rgba(245,158,11,0.25); }
.diag-diff-row .diag-diff-hard   { color: #fb7185; background: rgba(244,63,94,0.10);  border: 1px solid rgba(244,63,94,0.25); }

/* ─── Diagnostic results variant (rendered by results.js) ─────────── */
.diag-results {
  padding: 0 4px;
}
.diag-results-header {
  text-align: center;
  padding: 16px 0 10px;
}
.diag-results-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #60a5fa;
  font-weight: 600;
  margin-bottom: 8px;
}
.diag-results-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: #e8edf8;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.25;
}
.diag-results-headline em {
  font-style: normal;
  background: linear-gradient(120deg, #22c55e, #60a5fa);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.diag-readiness {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.diag-readiness::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.diag-readiness.green  { color: #22c55e; background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.32); }
.diag-readiness.yellow { color: #f59e0b; background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.32); }
.diag-readiness.red    { color: #f43f5e; background: rgba(244,63,94,0.12); border: 1px solid rgba(244,63,94,0.32); }

.diag-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0 22px;
  padding: 0 4px;
}
@media (max-width: 600px) { .diag-summary { grid-template-columns: 1fr 1fr; } }
.diag-summary-cell {
  background: rgba(12,17,32,0.65);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 12px 14px;
}
.diag-summary-cell strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #e8edf8;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.diag-summary-cell span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7c90ae;
}

.diag-tags-section { margin: 12px 0 22px; padding: 0 4px; }
.diag-tags-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7c90ae;
  font-weight: 600;
  margin-bottom: 10px;
}
.diag-tag-row {
  display: grid;
  grid-template-columns: 1fr 80px auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.diag-tag-row:last-child { border-bottom: none; }
.diag-tag-name {
  font-size: 13.5px;
  color: #cfd6e6;
  text-transform: capitalize;
}
.diag-tag-bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}
.diag-tag-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.diag-tag-fill.strong  { background: linear-gradient(90deg, #22c55e, #4ade80); }
.diag-tag-fill.medium  { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.diag-tag-fill.weak    { background: linear-gradient(90deg, #f43f5e, #fb7185); }
.diag-tag-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #b9bdc9;
  text-align: right;
}

.diag-plan {
  background: linear-gradient(135deg, rgba(34,197,94,0.07) 0%, rgba(96,165,250,0.05) 100%);
  border: 1px solid rgba(34,197,94,0.30);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 4px 16px;
}
.diag-plan-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4ade80;
  font-weight: 600;
  margin-bottom: 6px;
}
.diag-plan-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #e8edf8;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.diag-plan-body {
  font-size: 13.5px;
  color: #cfd6e6;
  line-height: 1.55;
  margin-bottom: 14px;
}
.diag-plan-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13.5px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.diag-plan-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(34,197,94,0.25); }
.diag-plan-cta::after { content: '→'; }
.diag-plan-secondary {
  display: inline-block;
  margin-left: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #7c90ae;
  text-decoration: none;
  border-bottom: 1px solid rgba(124,144,174,0.25);
  padding-bottom: 1px;
}
.diag-plan-secondary:hover { color: #e8edf8; border-bottom-color: #e8edf8; }
