/* ═══════════════════════════════════════════════════════════
   KazCareer — Design System
   Aesthetic: Modern Central Asian — deep navy + gold + warm ivory
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --navy:      #0D1B2A;
  --navy-mid:  #162235;
  --navy-soft: #1E3047;
  --gold:      #C9973A;
  --gold-lt:   #E8B85A;
  --ivory:     #F5F0E8;
  --ivory-dk:  #EDE6D8;
  --cream:     #FAF7F2;
  --slate:     #8BA0B2;
  --slate-lt:  #B8C9D4;
  --white:     #FFFFFF;
  --danger:    #E05252;
  --success:   #3DB87A;

  --type-r: #E05A38;
  --type-i: #3B8BD4;
  --type-a: #9B59B6;
  --type-s: #2ECC71;
  --type-e: #F39C12;
  --type-c: #1ABC9C;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(13,27,42,.12);
  --shadow-md: 0 6px 24px rgba(13,27,42,.18);
  --shadow-lg: 0 16px 48px rgba(13,27,42,.28);

  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;

  --transition: 0.22s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--ivory);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Background texture ──────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(201,151,58,.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 90%, rgba(59,139,212,.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── App shell ───────────────────────────────────────────── */
#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Screens ─────────────────────────────────────────────── */
.screen {
  display: none;
  flex: 1;
  padding: 24px 20px 40px;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  animation: fadeUp .35s ease both;
}
.screen.active { display: flex; flex-direction: column; }

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

/* ── Header / logo ───────────────────────────────────────── */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--gold);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.logo span { color: var(--ivory); }

.lang-switcher {
  display: flex;
  gap: 4px;
  background: var(--navy-soft);
  border-radius: 20px;
  padding: 3px;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--slate);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.lang-btn.active {
  background: var(--gold);
  color: var(--navy);
}

/* ── Card ────────────────────────────────────────────────── */
.card {
  background: var(--navy-mid);
  border: 1px solid rgba(201,151,58,.15);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
}

/* ── Heading styles ──────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); }
h1 { font-size: 2rem; font-weight: 800; line-height: 1.15; color: var(--ivory); }
h2 { font-size: 1.35rem; font-weight: 700; color: var(--ivory); }
h3 { font-size: 1rem; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: .8px; }

.tagline {
  font-size: .95rem;
  color: var(--slate);
  line-height: 1.6;
  margin-top: 8px;
}

/* ── Hero section ────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 40px 0 32px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,151,58,.12);
  border: 1px solid rgba(201,151,58,.3);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .5px;
  text-transform: uppercase;
}
.hero h1 { font-size: 2.4rem; }
.hero h1 em { color: var(--gold); font-style: normal; }

/* ── Form controls ───────────────────────────────────────── */
label.field-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 8px;
}

select, input[type="text"] {
  width: 100%;
  background: var(--navy-soft);
  border: 1.5px solid rgba(201,151,58,.2);
  border-radius: var(--radius-md);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: .95rem;
  padding: 13px 16px;
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
select:focus, input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,151,58,.12);
}
select option { background: var(--navy-mid); }

/* Custom select arrow */
.select-wrap { position: relative; }
.select-wrap::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  pointer-events: none;
  font-size: .9rem;
}

/* ── Grade buttons ───────────────────────────────────────── */
.grade-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.grade-btn {
  background: var(--navy-soft);
  border: 2px solid rgba(201,151,58,.2);
  border-radius: var(--radius-md);
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.grade-btn:hover { border-color: var(--gold); background: rgba(201,151,58,.08); }
.grade-btn.selected {
  border-color: var(--gold);
  background: rgba(201,151,58,.15);
  color: var(--gold);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(201,151,58,.3);
}
.btn-primary:hover:not(:disabled) {
  background: var(--gold-lt);
  box-shadow: 0 6px 24px rgba(201,151,58,.4);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--slate);
  border: 1.5px solid rgba(255,255,255,.12);
}
.btn-ghost:hover { border-color: var(--slate); color: var(--ivory); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }
.btn-full { width: 100%; }

/* ── Test progress bar ───────────────────────────────────── */
.progress-bar-wrap {
  background: var(--navy-soft);
  border-radius: 4px;
  height: 4px;
  overflow: hidden;
  margin-bottom: 28px;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  border-radius: 4px;
  transition: width .5s cubic-bezier(.4,0,.2,1);
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--slate);
  margin-bottom: 10px;
}

/* ── Question card ───────────────────────────────────────── */
.question-type-badge {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--gold);
  margin-bottom: 10px;
}
.question-text {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ivory);
  margin-bottom: 24px;
}

/* ── Answer options ──────────────────────────────────────── */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-btn {
  background: var(--navy-soft);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: .93rem;
  padding: 14px 18px;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.option-btn:hover { border-color: var(--gold-lt); background: rgba(201,151,58,.06); }
.option-btn.selected {
  border-color: var(--gold);
  background: rgba(201,151,58,.14);
  color: var(--gold-lt);
}

.option-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  transition: var(--transition);
  color: var(--slate);
}
.option-btn.selected .option-indicator {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

/* Multi-select indicator (square) */
.option-btn.multi .option-indicator { border-radius: 5px; }

/* ── Yes/No pair layout ──────────────────────────────────── */
.yesno-group, .pair-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.yesno-btn, .pair-btn {
  background: var(--navy-soft);
  border: 2px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  color: var(--ivory);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 22px 16px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1.35;
}
.yesno-btn:hover, .pair-btn:hover {
  border-color: var(--gold-lt);
}
.yesno-btn.selected.yes, .pair-btn.selected {
  border-color: var(--gold);
  background: rgba(201,151,58,.15);
  color: var(--gold-lt);
}
.yesno-btn.selected.no {
  border-color: rgba(255,255,255,.3);
  color: var(--slate-lt);
}

/* ── Test nav ────────────────────────────────────────────── */
.test-nav {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

/* ── RIASEC code display ─────────────────────────────────── */
.riasec-code-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 20px 0;
}
.riasec-letter {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  position: relative;
  overflow: hidden;
}

/* ── Radar chart container ───────────────────────────────── */
.radar-wrap {
  aspect-ratio: 1;
  max-width: 280px;
  margin: 0 auto;
}

/* ── Type badges ─────────────────────────────────────────── */
.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  margin: 4px;
}

/* ── Profession cards ────────────────────────────────────── */
.profession-card {
  background: var(--navy-soft);
  border: 1px solid rgba(201,151,58,.12);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 14px;
  position: relative;
}
.profession-rank {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(201,151,58,.15);
  border: 1.5px solid rgba(201,151,58,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .85rem;
  color: var(--gold);
}
.profession-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 6px;
  padding-right: 40px;
}
.profession-desc {
  font-size: .87rem;
  color: var(--slate);
  line-height: 1.55;
  margin-bottom: 14px;
}
.tasks-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.tasks-list li {
  background: rgba(255,255,255,.05);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: .78rem;
  color: var(--slate-lt);
}
.salary-line {
  font-size: .82rem;
  color: var(--slate);
}
.salary-line strong { color: var(--gold-lt); }

.demand-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.demand-badge.high   { background: rgba(61,184,122,.15); color: #3DB87A; }
.demand-badge.medium { background: rgba(243,156,18,.15);  color: #F39C12; }
.demand-badge.low    { background: rgba(224,82,82,.15);   color: #E05252; }

/* ── University cards ────────────────────────────────────── */
.program-card {
  background: var(--navy-soft);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 10px;
  border-left: 3px solid var(--gold);
}
.program-card.local { border-left-color: var(--success); }
.program-uni  { font-size: .82rem; color: var(--gold); font-weight: 600; margin-bottom: 4px; }
.program-name { font-weight: 600; color: var(--ivory); margin-bottom: 8px; }
.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .78rem;
  color: var(--slate);
}
.program-meta span strong { color: var(--slate-lt); }
.local-badge {
  display: inline-block;
  background: rgba(61,184,122,.15);
  color: #3DB87A;
  border-radius: 8px;
  padding: 1px 8px;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 6px;
}
.program-link {
  display: inline-block;
  margin-top: 8px;
  font-size: .82rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}
.program-link:hover { text-decoration: underline; }

/* ── Section headers ─────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 16px;
}
.section-header h3 { margin: 0; }
.section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(201,151,58,.15);
}

/* ── Loading spinner ─────────────────────────────────────── */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(201,151,58,.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast ───────────────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy-mid);
  border: 1px solid rgba(201,151,58,.3);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-size: .88rem;
  color: var(--ivory);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: all .3s ease;
  z-index: 9999;
  pointer-events: none;
  white-space: nowrap;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 440px) {
  .hero h1 { font-size: 1.9rem; }
  .riasec-letter { width: 56px; height: 56px; font-size: 1.5rem; }
  .yesno-group, .pair-group { grid-template-columns: 1fr 1fr; }
}

/* ── Environments strip ──────────────────────────────────── */
.env-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}
.env-tag {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: .82rem;
  color: var(--slate-lt);
  display: flex;
  align-items: center;
  gap: 6px;
}
.env-tag::before {
  content: '✦';
  color: var(--gold);
  font-size: .65rem;
}

/* ── Share / retake row ──────────────────────────────────── */
.result-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ── Info tiles for hero stats ───────────────────────────── */
.info-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0;
}
.info-tile {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
}
.info-tile .val {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold);
}
.info-tile .lbl {
  font-size: .72rem;
  color: var(--slate);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* ═══════════════════════════════════════════════════════════
   RESULT PAGE v2 — enriched profession cards, disclaimer, etc.
   ═══════════════════════════════════════════════════════════ */

/* ── Type description rows with mini-bar ─────────────────── */
.type-desc-row {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.type-desc-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.type-desc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}
.type-letter-sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1.5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .85rem;
  flex-shrink: 0;
}
.type-desc-name {
  font-weight: 600;
  font-size: .93rem;
  flex: 1;
}
.type-score-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .9rem;
}
.type-mini-bar-wrap {
  height: 5px;
  background: rgba(255,255,255,.07);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 7px;
}
.type-mini-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .8s cubic-bezier(.4,0,.2,1);
}
.type-desc-text {
  font-size: .84rem;
  color: var(--slate);
  line-height: 1.55;
  margin: 0;
}

/* ── Profession cards v2 ──────────────────────────────────── */
.prof-card {
  background: var(--navy-soft);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 14px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}
.prof-card.tier-best   { border-color: rgba(201,151,58,.25); }
.prof-card.tier-explore{ border-color: rgba(59,139,212,.2); }
.prof-card.tier-other  { border-color: rgba(255,255,255,.06); opacity: .88; }
.prof-card.top-pick    { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(201,151,58,.15), var(--shadow-md); }

/* Top pick star badge */
.top-pick-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(201,151,58,.15);
  border: 1px solid rgba(201,151,58,.35);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Card header row */
.prof-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.prof-rank-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .9rem;
}
.rank-1 { background: rgba(201,151,58,.2); color: var(--gold); border: 1.5px solid rgba(201,151,58,.45); }
.rank-2 { background: rgba(185,185,185,.12); color: var(--slate-lt); border: 1.5px solid rgba(185,185,185,.3); }
.rank-3 { background: rgba(205,127,50,.12); color: #CD7F32; border: 1.5px solid rgba(205,127,50,.3); }

.prof-card-title-block { flex: 1; min-width: 0; }
.prof-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 6px;
  line-height: 1.3;
}
.prof-type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.type-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .3px;
}

/* Confidence badge (top-right of header) */
.conf-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.conf-high   { background: rgba(61,184,122,.15); color: #3DB87A; border: 1px solid rgba(61,184,122,.3); }
.conf-med    { background: rgba(243,156,18,.12);  color: #F39C12; border: 1px solid rgba(243,156,18,.3); }
.conf-low    { background: rgba(139,160,178,.1);  color: var(--slate); border: 1px solid rgba(139,160,178,.2); }

/* Confidence bar */
.conf-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.conf-bar-track {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,.07);
  border-radius: 3px;
  overflow: hidden;
}
.conf-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .9s cubic-bezier(.4,0,.2,1);
}
.conf-pct-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  min-width: 34px;
  text-align: right;
}

/* Prof description */
.prof-desc {
  font-size: .87rem;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Why-matches expandable */
.why-details {
  margin-bottom: 12px;
}
.why-summary {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gold);
  list-style: none;
  user-select: none;
  padding: 6px 0;
  transition: var(--transition);
}
.why-summary::-webkit-details-marker { display: none; }
.why-summary:hover { color: var(--gold-lt); }
.why-icon { font-size: .9rem; }
.why-body {
  margin-top: 8px;
  padding: 12px 14px;
  background: rgba(201,151,58,.06);
  border: 1px solid rgba(201,151,58,.15);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  color: var(--slate-lt);
  line-height: 1.65;
}
.why-body strong { color: var(--gold-lt); font-weight: 600; }

/* Task chips */
.task-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.task-chip {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: .76rem;
  color: var(--slate-lt);
}

/* Card footer */
.prof-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.salary-text {
  font-size: .82rem;
  color: var(--slate);
}
.salary-text strong { color: var(--gold-lt); }

/* ── "Other directions" callout box ──────────────────────── */
.other-note-box {
  background: rgba(139,160,178,.07);
  border: 1px solid rgba(139,160,178,.18);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: .85rem;
  color: var(--slate-lt);
  line-height: 1.65;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.other-note-box::before {
  content: '🔍';
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── AI Disclaimer card ──────────────────────────────────── */
.disclaimer-card {
  display: flex;
  gap: 14px;
  background: rgba(59,139,212,.06);
  border: 1px solid rgba(59,139,212,.2);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 36px;
  margin-bottom: 24px;
}
.disclaimer-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.disclaimer-body { flex: 1; }
.disclaimer-ai {
  font-size: .87rem;
  color: var(--slate-lt);
  line-height: 1.65;
  margin-bottom: 8px;
}
.disclaimer-consult {
  font-size: .84rem;
  color: var(--slate);
  line-height: 1.65;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* ── Section headers (uses existing .section-header) ─────── */
.section-header h3 { font-size: .82rem; }

/* Explore section hint */
.explore-hint {
  font-size: .82rem;
  color: var(--slate);
  margin: -8px 0 14px;
  line-height: 1.55;
}

/* ── Program card improvements ───────────────────────────── */
.city-label { font-size: .76rem; color: var(--slate); }
.grant-tag  { color: var(--success); font-size: .78rem; font-weight: 600; }

/* ── Demand badge (already exists, keeping) ──────────────── */

/* ═══════════════════════════════════════════════════════════
   EXPORT / SHARE / PRINT — v3
   ═══════════════════════════════════════════════════════════ */

/* ── Export action bar ────────────────────────────────────── */
.export-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0 0;
}
.export-bar .btn-row-2 {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-export {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-export:disabled { opacity: .45; cursor: not-allowed; }

.btn-pdf {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(201,151,58,.28);
}
.btn-pdf:hover:not(:disabled) {
  background: var(--gold-lt);
  box-shadow: 0 6px 20px rgba(201,151,58,.38);
  transform: translateY(-1px);
}

.btn-print {
  background: var(--navy-soft);
  color: var(--ivory);
  border: 1.5px solid rgba(255,255,255,.14);
}
.btn-print:hover { border-color: var(--slate); color: var(--ivory); background: rgba(255,255,255,.06); }

.btn-whatsapp {
  background: #1DA851;
  color: #fff;
  box-shadow: 0 4px 14px rgba(29,168,81,.25);
}
.btn-whatsapp:hover { background: #22c55e; box-shadow: 0 6px 20px rgba(29,168,81,.35); transform: translateY(-1px); }

.btn-telegram {
  background: #2AABEE;
  color: #fff;
  box-shadow: 0 4px 14px rgba(42,171,238,.25);
}
.btn-telegram:hover { background: #33b9ff; box-shadow: 0 6px 20px rgba(42,171,238,.35); transform: translateY(-1px); }

.btn-retake-v2 {
  background: transparent;
  color: var(--slate);
  border: 1.5px solid rgba(255,255,255,.1);
}
.btn-retake-v2:hover { border-color: var(--slate); color: var(--ivory); }

/* PDF loading state */
.btn-pdf.loading {
  pointer-events: none;
  opacity: .75;
}
.btn-pdf.loading .btn-icon { animation: spin .7s linear infinite; }

/* Share icon SVGs */
.btn-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* Share divider */
.share-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 10px;
  color: var(--slate);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .7px;
}
.share-divider::before,
.share-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.08);
}

/* ── @media print ─────────────────────────────────────────── */
@media print {
  /* Hide all chrome */
  .app-header,
  #screen-onboarding,
  #screen-test,
  #screen-loading,
  .export-bar,
  .result-actions,
  .lang-switcher,
  .hero-badge,
  #toast {
    display: none !important;
  }

  /* Show result screen regardless of active state */
  #screen-result {
    display: block !important;
    padding: 0 !important;
    max-width: 100% !important;
  }

  body {
    background: #fff !important;
    color: #1a1a1a !important;
    font-family: 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 11pt !important;
  }

  /* Cards go white */
  .prof-card, .program-card, .card,
  .type-desc-row, .disclaimer-card {
    background: #fff !important;
    border-color: #ddd !important;
    box-shadow: none !important;
    break-inside: avoid;
  }

  /* Text colours */
  h1, h2, h3, .prof-name, .program-name { color: #111 !important; }
  .tagline, .prof-desc, .type-desc-text,
  .slate, [style*="color:var(--slate)"] { color: #555 !important; }

  /* RIASEC letters keep colour borders */
  .riasec-letter { border-width: 2px !important; }

  /* Section header lines */
  .section-header::after { background: #ccc !important; }

  /* Environments */
  .env-tag { background: #f5f5f5 !important; border-color: #ccc !important; color: #333 !important; }
  .env-tag::before { color: #999 !important; }

  /* Type bars */
  .type-mini-bar-wrap { background: #eee !important; }

  /* Confidence bars */
  .conf-bar-track { background: #eee !important; }

  /* Why body */
  .why-details[open] .why-body, .why-body { background: #fafafa !important; border-color: #ddd !important; }

  /* Disclaimer */
  .disclaimer-card { background: #f0f6ff !important; border-color: #b3d0f5 !important; }
  .disclaimer-ai, .disclaimer-consult { color: #334 !important; }

  /* Radar chart — print in colour */
  canvas { max-width: 220px !important; max-height: 220px !important; }

  /* Page breaks */
  #section-best, #section-explore, #section-other { page-break-inside: avoid; }
  #programs-list { page-break-before: auto; }

  /* Force show why-details open */
  .why-details { display: block !important; }
  .why-summary { display: none !important; }
  .why-body    { display: block !important; margin-top: 4px !important; }

  /* Type pills keep colour tint */
  .type-pill { border: 1px solid currentColor !important; }

  /* Demand badges */
  .demand-badge { border: 1px solid currentColor !important; }
}

/* ═══════════════════════════════════════════════════════════
   SCHOOL INSIGHT BLOCK
   ═══════════════════════════════════════════════════════════ */
.school-insight-card {
  background: var(--navy-soft);
  border: 1px solid rgba(59,139,212,.25);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}
.school-insight-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg,#3B8BD4,#1565C0);
  border-radius: 3px 0 0 3px;
}
.insight-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.insight-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.insight-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--ivory);
  margin-bottom: 3px;
}
.insight-sublabel {
  font-size: .82rem;
  color: var(--slate);
  line-height: 1.5;
}
.insight-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}
.insight-chip {
  background: rgba(59,139,212,.12);
  border: 1px solid rgba(59,139,212,.25);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: .82rem;
  color: var(--slate-lt);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.insight-chip em {
  font-style: normal;
  background: rgba(59,139,212,.2);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: .72rem;
  font-weight: 600;
  color: #5BA3D9;
}
.insight-note {
  font-size: .78rem;
  color: var(--slate);
  font-style: italic;
  line-height: 1.5;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.05);
}

/* ═══════════════════════════════════════════════════════════
   SCHOOL INSIGHT BLOCK — v3
   ═══════════════════════════════════════════════════════════ */

.school-insight-card {
  background: linear-gradient(135deg, rgba(27,122,62,.12) 0%, rgba(26,188,156,.08) 100%);
  border: 1px solid rgba(61,184,122,.3);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-top: 24px;
  margin-bottom: 8px;
}

.insight-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.insight-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.insight-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ivory);
  margin-bottom: 3px;
}

.insight-sublabel {
  font-size: .84rem;
  color: var(--slate-lt);
  line-height: 1.5;
}

.insight-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.insight-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(61,184,122,.15);
  border: 1px solid rgba(61,184,122,.3);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: .82rem;
  color: #3DB87A;
  font-weight: 500;
}

.insight-chip em {
  font-style: normal;
  background: rgba(61,184,122,.2);
  border-radius: 10px;
  padding: 0 7px;
  font-size: .72rem;
  font-weight: 700;
}

.insight-note {
  font-size: .78rem;
  color: var(--slate);
  font-style: italic;
  border-top: 1px solid rgba(61,184,122,.15);
  padding-top: 10px;
  line-height: 1.6;
}
