*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { font-family: 'Inter', -apple-system, sans-serif; color: var(--text-solid); background: var(--bg-solid); line-height: 1.6; -webkit-font-smoothing: antialiased; }

  /* ─────────────── AI COACH ─────────────── */
  #page-coach { padding: 110px 24px 60px; min-height: 100vh; background: var(--bg-solid); }
  .coach-shell { max-width: 820px; margin: 0 auto; background: var(--surface-solid); border: 1px solid var(--border-light); border-radius: var(--radius); box-shadow: var(--shadow-md); display: flex; flex-direction: column; overflow: hidden; min-height: 75vh; }
  .coach-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 26px 28px 18px; border-bottom: 1px solid var(--border-light); }
  .coach-eye { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-tertiary); font-weight: 600; margin-bottom: 6px; }
  .coach-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 600; color: var(--text-solid); margin: 0; line-height: 1.2; }
  .coach-sub { font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; }
  .coach-header-actions { display: flex; gap: 8px; }
  .coach-gear { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-alt); border: 1px solid var(--border-light); cursor: pointer; font-size: 1.05rem; color: var(--text-secondary); transition: all var(--transition); display: inline-flex; align-items: center; justify-content: center; }
  .coach-gear:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: rotate(45deg); }

  .coach-progress { padding: 14px 28px 4px; }
  .coach-progress-bar { height: 4px; background: var(--border-light); border-radius: 100px; overflow: hidden; }
  .coach-progress-fill { height: 100%; background: linear-gradient(90deg, var(--q-blue), var(--q-lblue)); border-radius: 100px; transition: width 0.35s ease; }
  .coach-progress-label { font-size: 0.72rem; color: var(--text-tertiary); margin-top: 8px; letter-spacing: 0.04em; }

  .coach-chat { flex: 1; min-height: 360px; max-height: 56vh; overflow-y: auto; padding: 22px 28px; display: flex; flex-direction: column; gap: 14px; background: var(--bg-solid); }
  .coach-empty { color: var(--text-tertiary); font-size: 0.92rem; text-align: center; margin: auto 20px; padding: 36px 18px; border: 1px dashed var(--border); border-radius: var(--radius-sm); }
  .coach-msg { max-width: 78%; padding: 12px 16px; border-radius: 16px; font-size: 0.94rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
  .coach-msg.user { align-self: flex-end; background: var(--q-blue); color: #fff; border-bottom-right-radius: 6px; }
  .coach-msg.assistant { align-self: flex-start; background: var(--surface-solid); color: var(--text-solid); border: 1px solid var(--border-light); border-bottom-left-radius: 6px; }
  .coach-msg.system { align-self: center; background: transparent; color: var(--text-tertiary); font-size: 0.78rem; font-style: italic; padding: 4px 12px; }
  .coach-msg.assistant p { margin: 0 0 8px; }
  .coach-msg.assistant p:last-child { margin-bottom: 0; }
  .coach-msg.assistant ol, .coach-msg.assistant ul { margin: 4px 0 8px; padding-left: 22px; }
  .coach-msg.assistant li { margin-bottom: 4px; }
  .coach-msg.assistant strong { font-weight: 600; }
  .coach-typing { align-self: flex-start; background: var(--surface-solid); border: 1px solid var(--border-light); color: var(--text-secondary); padding: 12px 16px; border-radius: 16px; border-bottom-left-radius: 6px; font-size: 0.88rem; display: inline-flex; gap: 6px; align-items: center; }
  .coach-typing .dot { width: 6px; height: 6px; background: var(--text-tertiary); border-radius: 50%; animation: coach-pulse 1.2s infinite ease-in-out; }
  .coach-typing .dot:nth-child(2) { animation-delay: 0.15s; }
  .coach-typing .dot:nth-child(3) { animation-delay: 0.3s; }
  @keyframes coach-pulse { 0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); } 40% { opacity: 1; transform: scale(1); } }

  .coach-updating { display: none; align-items: center; gap: 12px; padding: 14px 28px; background: linear-gradient(90deg, rgba(26,86,219,0.06), rgba(59,130,246,0.06)); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); color: var(--q-blue); font-size: 0.88rem; font-weight: 500; }
  .coach-updating.vis { display: flex; }
  .coach-spinner { width: 16px; height: 16px; border: 2px solid rgba(26,86,219,0.2); border-top-color: var(--q-blue); border-radius: 50%; animation: coach-spin 0.8s linear infinite; }
  @keyframes coach-spin { to { transform: rotate(360deg); } }

  .coach-input-row { display: flex; gap: 10px; padding: 16px 22px 18px; border-top: 1px solid var(--border-light); background: var(--surface-solid); align-items: flex-end; }
  .coach-input { flex: 1; resize: none; min-height: 44px; max-height: 140px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; font-family: inherit; font-size: 0.95rem; color: var(--text-solid); background: var(--bg-solid); outline: none; transition: border-color var(--transition), background var(--transition); }
  .coach-input:focus { border-color: var(--q-blue); background: var(--surface-solid); }
  .coach-input:disabled { opacity: 0.55; cursor: not-allowed; }
  .coach-send-btn { padding: 12px 22px; background: var(--q-blue); color: #fff; border: none; border-radius: 100px; font-weight: 600; font-size: 0.92rem; cursor: pointer; transition: all var(--transition); white-space: nowrap; }
  .coach-send-btn:hover:not(:disabled) { background: var(--accent); transform: translateY(-1px); }
  .coach-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }
  .coach-error { color: var(--q-red); font-size: 0.82rem; padding: 0 28px 14px; min-height: 1.2em; word-break: break-word; line-height: 1.45; }

  /* Coach modals (settings, signup) */
  .coach-overlay { position: fixed; inset: 0; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: opacity 0.2s ease; }
  .coach-overlay.vis { display: flex; opacity: 1; }
  .coach-settings-modal, .coach-signup-modal { width: 100%; max-width: 580px; background: var(--surface-solid); border-radius: var(--radius); box-shadow: var(--shadow-lg); max-height: 88vh; display: flex; flex-direction: column; }
  .coach-signup-modal { max-width: 460px; }
  .coach-settings-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px 14px; border-bottom: 1px solid var(--border-light); }
  .coach-settings-title { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 600; color: var(--text-solid); }
  .coach-x { background: transparent; border: none; font-size: 1.6rem; line-height: 1; color: var(--text-tertiary); cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: all var(--transition); }
  .coach-x:hover { background: var(--bg-alt); color: var(--text-solid); }
  .coach-settings-body { padding: 20px 26px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
  .coach-settings-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
  .coach-settings-label { font-size: 0.95rem; font-weight: 600; color: var(--text-solid); }
  .coach-settings-help { font-size: 0.82rem; color: var(--text-secondary); margin-top: 4px; line-height: 1.5; }
  .coach-settings-divider { height: 1px; background: var(--border-light); margin: 6px 0; }
  .coach-dossier-text { width: 100%; min-height: 280px; max-height: 50vh; padding: 14px; border: 1px solid var(--border); border-radius: 10px; font-family: 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 0.84rem; line-height: 1.55; color: var(--text-solid); background: var(--bg-solid); resize: vertical; outline: none; }
  .coach-dossier-text:focus { border-color: var(--q-blue); background: var(--surface-solid); }
  .coach-dossier-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .coach-dossier-status { font-size: 0.78rem; color: var(--text-tertiary); }
  .coach-dossier-status.ok { color: var(--green); }
  .coach-dossier-status.err { color: var(--q-red); }
  .coach-primary-btn { padding: 10px 20px; background: var(--q-blue); color: #fff; border: none; border-radius: 100px; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all var(--transition); }
  .coach-primary-btn:hover:not(:disabled) { background: var(--accent); }
  .coach-primary-btn:disabled { opacity: 0.5; cursor: not-allowed; }
  .coach-secondary-btn { padding: 8px 14px; background: var(--bg-alt); color: var(--text-secondary); border: 1px solid var(--border-light); border-radius: 100px; font-weight: 500; font-size: 0.82rem; cursor: pointer; transition: all var(--transition); }
  .coach-secondary-btn:hover { color: var(--text-solid); border-color: var(--border); }
  .coach-danger-btn { padding: 8px 16px; background: transparent; color: var(--q-red); border: 1px solid var(--q-red); border-radius: 100px; font-weight: 500; font-size: 0.82rem; cursor: pointer; transition: all var(--transition); }
  .coach-danger-btn:hover { background: var(--q-red); color: #fff; }
  .coach-email-input { width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; font-size: 0.96rem; outline: none; transition: border-color var(--transition); }
  .coach-email-input:focus { border-color: var(--q-blue); }

  /* Account-card injected onto the results page — colors from theme.css */
  .coach-results-card { border-radius: var(--radius); padding: 28px 32px; margin: 28px 0; display: flex; flex-direction: column; gap: 14px; }
  .coach-results-eye { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; opacity: 0.85; }
  .coach-results-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 600; line-height: 1.25; }
  .coach-results-sub { font-size: 0.92rem; opacity: 0.9; line-height: 1.55; }
  .coach-results-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
  .coach-results-actions button { padding: 12px 22px; border-radius: 100px; font-weight: 600; font-size: 0.9rem; cursor: pointer; border: none; transition: all var(--transition); }
  .coach-results-actions .primary { background: #fff; color: var(--q-blue); }
  .coach-results-actions .primary:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,0.15); }
  .coach-results-actions .ghost { background: rgba(255,255,255,0.16); color: #fff; border: 1px solid rgba(255,255,255,0.35); }
  .coach-results-actions .ghost:hover { background: rgba(255,255,255,0.26); }

  @media (max-width: 640px) {
    #page-coach { padding: 90px 12px 30px; }
    .coach-header { padding: 20px 18px 14px; }
    .coach-title { font-size: 1.35rem; }
    .coach-chat { padding: 18px 16px; max-height: 52vh; }
    .coach-input-row { padding: 12px 14px 14px; }
    .coach-msg { max-width: 90%; }
    .coach-results-card { padding: 22px 20px; }
  }

  /* ── NAV ── */
  nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; border-bottom: 1px solid var(--border-light); }
  .nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; height: 72px; display: flex; align-items: center; justify-content: space-between; }
  .logo { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text-solid); cursor: pointer; text-decoration: none; }
  .logo span { font-weight: 400; color: var(--text-secondary); }
  .nav-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
  .nav-links a:not(.app-nav-tab), .nav-links button.fw-theme-toggle { font-size: 0.875rem; color: var(--text-secondary); text-decoration: none; font-weight: 400; transition: color var(--transition); cursor: pointer; }
  .nav-links a:not(.app-nav-tab):hover { color: var(--text-solid); }
  .nav-cta { padding: 10px 24px !important; background: var(--accent) !important; color: rgb(var(--primary-fg)) !important; border-radius: 100px; font-weight: 500 !important; font-size: 0.85rem !important; transition: all var(--transition) !important; }
  .nav-cta:hover { background: rgb(var(--primary-hover)) !important; color: rgb(var(--primary-fg)) !important; transform: translateY(-1px); }

  .page { display: none; min-height: 100vh; }
  .page.active { display: block; }

  /* HERO */
  .hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 120px 40px 80px; text-align: center; position: relative; overflow: hidden; }
  .hero::before { content: ''; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(0,0,0,0.02) 0%, transparent 70%); }
  .hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; background: var(--surface-solid); border: 1px solid var(--border); border-radius: 100px; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 40px; font-weight: 500; }
  .hero-badge .dot { width: 6px; height: 6px; background: #4ade80; border-radius: 50%; animation: pulse 2s infinite; }
  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
  .hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.8rem, 6vw, 4.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 24px; max-width: 700px; }
  .hero p { font-size: 1.15rem; color: var(--text-secondary); max-width: 520px; margin-bottom: 64px; line-height: 1.7; font-weight: 300; }
  .selector-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-tertiary); margin-bottom: 24px; font-weight: 500; }
  .role-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 680px; width: 100%; }
  .role-card { background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px 36px; cursor: pointer; transition: all var(--transition); text-align: left; position: relative; overflow: hidden; }
  .role-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
  .role-card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; font-size: 1.3rem; }
  .role-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
  .role-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 24px; }
  .role-card .arrow { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 500; color: var(--text-tertiary); transition: all var(--transition); }
  .role-card:hover .arrow { color: var(--text-solid); gap: 10px; }

  section { padding: 120px 40px; }
  .section-inner { max-width: 1100px; margin: 0 auto; }
  .section-tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-tertiary); font-weight: 500; margin-bottom: 16px; }
  .section-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 20px; max-width: 600px; }
  .section-desc { font-size: 1.05rem; color: var(--text-secondary); max-width: 500px; line-height: 1.7; font-weight: 300; margin-bottom: 60px; }
  .features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .feature-card { background: var(--surface-solid); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 40px 32px; transition: all var(--transition); }
  .feature-card:hover { border-color: var(--border); box-shadow: var(--shadow-sm); }
  .feature-icon { width: 44px; height: 44px; border-radius: 11px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; font-size: 1.15rem; }
  .feature-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
  .feature-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; }

  .quiz-section { background: transparent; }
  .quiz-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
  .quiz-preview { background: var(--bg-solid); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 40px; }
  .quiz-preview-header { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
  .quiz-preview-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
  .quiz-preview-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-tertiary); font-weight: 500; }
  .quiz-item { padding: 16px 20px; background: var(--surface-solid); border: 1px solid var(--border-light); border-radius: var(--radius-sm); margin-bottom: 12px; font-size: 0.875rem; color: var(--text-secondary); transition: all var(--transition); cursor: pointer; }
  .quiz-item:hover { border-color: var(--accent); color: var(--text-solid); }
  .quiz-item.selected { border-color: var(--accent); background: var(--accent); color: #fff; }
  .quiz-progress { margin-top: 24px; height: 3px; background: var(--border-light); border-radius: 100px; overflow: hidden; }
  .quiz-progress-bar { height: 100%; width: 35%; background: var(--accent); border-radius: 100px; }

  .careers-scroll { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .career-chip { padding: 20px 24px; background: var(--surface-solid); border: 1px solid var(--border-light); border-radius: var(--radius-sm); transition: all var(--transition); cursor: pointer; }
  .career-chip:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .career-chip h5 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
  .career-chip .salary { font-size: 0.78rem; color: var(--text-tertiary); }
  .career-chip .chip-arrow { display: block; margin-top: 10px; font-size: 0.72rem; font-weight: 500; color: var(--text-tertiary); transition: all var(--transition); }
  .career-chip:hover .chip-arrow { color: var(--text-solid); }

  .coach-card { background: var(--surface-solid); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 36px 28px; text-align: center; transition: all var(--transition); }
  .coach-card:hover { border-color: var(--border); box-shadow: var(--shadow-sm); }
  .coach-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--bg-alt); margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--text-secondary); }
  .coach-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
  .coach-card .role { font-size: 0.78rem; color: var(--text-tertiary); margin-bottom: 16px; }
  .coach-card p { font-size: 0.83rem; color: var(--text-secondary); line-height: 1.6; }

  .stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-light); border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; }
  .stat-item { background: var(--surface-solid); padding: 40px 32px; text-align: center; }
  .stat-number { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 6px; }
  .stat-label { font-size: 0.78rem; color: var(--text-tertiary); }

  .cta-section { text-align: center; padding: 100px 40px; }
  .cta-section .section-title { margin: 0 auto 20px; }
  .cta-section .section-desc { margin: 0 auto 48px; }
  .cta-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 40px; background: var(--accent); color: #fff; border: none; border-radius: 100px; font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: all var(--transition); font-family: inherit; text-decoration: none; }
  .cta-btn:hover { background: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .cta-btn-outline { background: transparent; color: var(--text-solid); border: 1px solid var(--border); margin-left: 12px; }
  .cta-btn-outline:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

  .testimonial-section { background: transparent; }
  .testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .testimonial-card { background: var(--bg-solid); border-radius: var(--radius); padding: 40px; border: 1px solid var(--border-light); }
  .testimonial-card blockquote { font-size: 1rem; line-height: 1.7; color: var(--text-solid); margin-bottom: 24px; font-weight: 300; font-style: italic; }
  .testimonial-author { display: flex; align-items: center; gap: 12px; }
  .testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-light); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
  .testimonial-name { font-size: 0.85rem; font-weight: 600; }
  .testimonial-role { font-size: 0.78rem; color: var(--text-tertiary); }

  footer { padding: 60px 40px; border-top: 1px solid var(--border-light); }
  .footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
  .footer-left .logo { margin-bottom: 8px; display: block; }
  .footer-left p { font-size: 0.8rem; color: var(--text-tertiary); }
  .footer-links { display: flex; gap: 28px; }
  .footer-links a { font-size: 0.8rem; color: var(--text-tertiary); text-decoration: none; transition: color var(--transition); }
  .footer-links a:hover { color: var(--text-solid); }

  .back-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-secondary); cursor: pointer; background: none; border: none; font-family: inherit; padding: 0; margin-bottom: 48px; transition: all var(--transition); }
  .back-btn:hover { color: var(--text-solid); gap: 6px; }

  /* Career deep-dive */
  .career-hero { position: relative; padding: 120px 40px 80px; text-align: center; }
  .career-hero-top { position: absolute; top: 96px; left: 0; right: 0; max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); display: flex; justify-content: flex-start; text-align: left; z-index: 2; }
  .career-back-link { margin-bottom: 0 !important; padding: 10px 18px; background: transparent; border: 1px solid var(--border-light); border-radius: var(--radius-sm); font-weight: 500; text-decoration: none; }
  .career-back-link:hover { border-color: var(--border); color: var(--text-solid); }
  .career-eyebrow-tag { display: inline-block; white-space: nowrap; }
  .career-hero-eyebrow { margin-bottom: 16px; }
  .career-personal-loading { position: relative; overflow: hidden; }
  .career-personal-loading::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent); animation: career-shimmer 1.4s infinite; pointer-events: none; }
  .career-personal-err { max-width: 720px; margin: 0 auto 16px; padding: 12px 16px; border-radius: 10px; border: 1px solid rgba(248, 113, 113, 0.45); background: rgba(248, 113, 113, 0.12); color: #fecaca; font-size: 0.9rem; text-align: center; }
  .career-personal-err[hidden] { display: none !important; }
  @keyframes career-shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
  .fit-analysis-card { background: transparent; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 32px; max-width: 800px; }
  .fit-analysis-stack { display: flex; flex-direction: column; gap: 16px; max-width: 800px; }
  .fit-panel { background: transparent; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 24px 28px; }
  .fit-panel[hidden] { display: none !important; }
  .fit-panel-head { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
  .fit-ai-summary { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px; }
  .fit-ai-score { font-size: 0.88rem; color: var(--text-secondary); margin: 0 0 8px; }
  .career-fit-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
  .career-fit-header .section-title { margin-bottom: 0; }
  .fit-ask-ai-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 100px; border: 1px solid rgb(var(--primary) / 0.35); background: rgba(var(--primary), 0.1); color: rgb(var(--primary)); font-weight: 600; font-size: 0.82rem; cursor: pointer; font-family: inherit; white-space: nowrap; transition: background 0.15s, transform 0.15s; }
  .fit-ask-ai-btn[hidden] { display: none !important; }
  .fit-ask-ai-btn:hover { background: rgba(var(--primary), 0.18); transform: translateY(-1px); }
  .fit-analysis-card h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
  .fit-analysis-card p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
  .fit-strengths, .fit-gaps { font-size: 0.85rem; color: var(--text-secondary); margin-top: 10px; line-height: 1.6; }
  .career-resp-list { max-width: 720px; margin: 0; padding-left: 1.25rem; color: var(--text-secondary); line-height: 1.8; }
  .career-resp-list li { margin-bottom: 8px; }
  .career-hero .tagline { font-size: 1.1rem; color: var(--text-secondary); font-weight: 300; max-width: 560px; margin: 0 auto 48px; line-height: 1.7; }
  .metrics-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; max-width: 1100px; margin: 0 auto; }
  .metric-card { background: transparent; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 32px 24px; text-align: center; transition: all var(--transition); }
  .metric-card:hover { border-color: var(--border); box-shadow: var(--shadow-sm); }
  .metric-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-tertiary); font-weight: 500; margin-bottom: 12px; }
  .metric-value { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 4px; }
  .metric-sub { font-size: 0.75rem; color: var(--text-tertiary); }
  .scale-bar-container { margin-top: 12px; }
  .scale-bar { height: 6px; background: var(--border-light); border-radius: 100px; overflow: hidden; margin-bottom: 6px; }
  .scale-bar-fill { height: 100%; border-radius: 100px; background: var(--accent); transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); }
  .scale-bar-labels { display: flex; justify-content: space-between; font-size: 0.65rem; color: var(--text-tertiary); }
  .overview-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: start; }
  .overview-text h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 600; margin-bottom: 16px; }
  .overview-text p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
  .overview-sidebar { background: transparent; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 32px; }
  .overview-sidebar h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 20px; }
  .sidebar-item { display: grid; grid-template-columns: minmax(6.5rem, 38%) 1fr; gap: 8px 16px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--border-light); font-size: 0.85rem; }
  .sidebar-item:last-child { border-bottom: none; }
  .sidebar-item .label { color: var(--text-secondary); flex-shrink: 0; line-height: 1.4; }
  .sidebar-item .value { font-weight: 600; text-align: right; line-height: 1.45; word-break: break-word; overflow-wrap: anywhere; }
  .career-content--loading { opacity: 0.12; pointer-events: none; filter: blur(1px); }
  .career-loading-overlay { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; background: var(--overlay-bg); backdrop-filter: blur(6px); }
  .career-loading-overlay[hidden] { display: none !important; }
  .career-loading-card { text-align: center; max-width: 360px; padding: 40px 32px; border-radius: var(--radius); background: var(--surface-solid); border: 1px solid var(--border-light); box-shadow: var(--shadow-lg); }
  .career-loading-card h2 { font-family: 'Playfair Display', serif; font-size: 1.35rem; margin: 16px 0 8px; }
  .career-loading-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.55; }
  .career-loading-spinner { width: 40px; height: 40px; margin: 0 auto; border: 3px solid var(--border-light); border-top-color: rgb(var(--primary)); border-radius: 50%; animation: career-spin 0.85s linear infinite; }
  @keyframes career-spin { to { transform: rotate(360deg); } }
  .closer-look-card { background: transparent; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 28px 32px; max-width: 800px; }
  .fit-deeper-wrap { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border-light); }
  .fit-deeper-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 600; margin-bottom: 12px; }
  #page-career { background: transparent; }
  #page-career section,
  #page-career .career-section,
  #page-career .career-fit-section { background: transparent; }
  .closer-look-card p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 14px; }
  .closer-insights, .closer-considerations { margin: 0 0 12px; padding-left: 1.2rem; font-size: 0.88rem; color: var(--text-secondary); line-height: 1.55; }
  .closer-consider-label { font-size: 0.88rem; margin-bottom: 6px; }
  .fit-quiz-note { font-size: 0.82rem; color: var(--text-tertiary); margin-bottom: 12px; }
  .fit-mapped { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.5; }
  .career-ask-fab { position: fixed; bottom: 28px; right: 28px; z-index: 8500; display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 100px; border: none; background: rgb(var(--primary)); color: rgb(var(--primary-fg)); font-weight: 600; font-size: 0.88rem; cursor: pointer; box-shadow: 0 8px 28px rgba(0,0,0,0.25); transition: transform 0.2s, opacity 0.2s; }
  .career-ask-fab[hidden] { display: none !important; }
  .career-ask-fab:hover { transform: translateY(-2px); opacity: 0.95; }
  .career-chat-drawer { position: fixed; bottom: 24px; right: 24px; z-index: 8600; width: min(400px, calc(100vw - 32px)); max-height: min(520px, 70vh); display: flex; flex-direction: column; border-radius: 16px 16px 12px 12px; background: var(--surface-solid); border: 1px solid var(--border-light); box-shadow: 0 16px 48px rgba(0,0,0,0.35); overflow: hidden; }
  .career-chat-drawer[hidden] { display: none !important; }
  .career-chat-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 18px 12px; border-bottom: 1px solid var(--border-light); }
  .career-chat-eye { font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-tertiary); font-weight: 600; }
  .career-chat-title { font-size: 1rem; font-weight: 600; margin: 4px 0 0; }
  .career-chat-close { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-light); background: transparent; cursor: pointer; font-size: 1.2rem; line-height: 1; color: var(--text-secondary); }
  .career-chat-messages { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 180px; max-height: 320px; }
  .career-chat-msg { max-width: 92%; padding: 10px 14px; border-radius: 14px; font-size: 0.86rem; line-height: 1.45; }
  .career-chat-msg.user { align-self: flex-end; background: var(--q-blue); color: #fff; border-bottom-right-radius: 4px; }
  .career-chat-msg.assistant { align-self: flex-start; background: var(--bg-alt); border: 1px solid var(--border-light); border-bottom-left-radius: 4px; }
  .career-chat-input-row { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border-light); align-items: flex-end; }
  .career-chat-input { flex: 1; resize: none; min-height: 40px; max-height: 100px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-family: inherit; font-size: 0.88rem; background: var(--bg-solid); }
  .career-chat-send { padding: 10px 16px; border-radius: 100px; border: none; background: var(--q-blue); color: #fff; font-weight: 600; font-size: 0.85rem; cursor: pointer; white-space: nowrap; }
  .career-chat-send:disabled { opacity: 0.5; cursor: not-allowed; }
  .career-chat-msg.system { align-self: center; color: var(--text-tertiary); font-size: 0.78rem; font-style: italic; background: transparent; padding: 4px 8px; }
  .career-chat-sub { font-size: 0.72rem; color: var(--text-tertiary); margin: 4px 0 0; }
  .fit-tab-bar { display: flex; gap: 8px; margin-bottom: 16px; }
  .fit-tab { padding: 6px 14px; border-radius: 100px; border: 1px solid var(--border-light); background: transparent; font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); cursor: pointer; }
  .fit-tab.is-active { background: rgba(var(--primary), 0.12); border-color: rgb(var(--primary) / 0.35); color: rgb(var(--primary)); }
  .fit-score-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
  .fit-score-pill { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--border-light); min-width: 88px; }
  .fit-score-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-tertiary); }
  .fit-score-val { font-size: 1rem; font-weight: 700; }
  .timeline { max-width: 700px; }
  .timeline-item { display: flex; gap: 24px; margin-bottom: 24px; align-items: flex-start; }
  .timeline-time { flex-shrink: 0; width: 72px; font-size: 0.78rem; font-weight: 600; color: var(--text-tertiary); padding-top: 2px; }
  .timeline-content { background: transparent; border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 20px 24px; flex: 1; }
  .timeline-content h5 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
  .timeline-content p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }
  .skills-pills { display: flex; flex-wrap: wrap; gap: 10px; }
  .skill-pill { padding: 10px 20px; background: transparent; border: 1px solid var(--border-light); border-radius: 100px; font-size: 0.82rem; font-weight: 500; color: var(--text-secondary); transition: all var(--transition); }
  .skill-pill:hover { border-color: var(--accent); color: var(--text-solid); }
  .skill-pill.core { background: var(--accent); color: #fff; border-color: var(--accent); }
  .ai-outlook-card { background: transparent; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 48px; max-width: 800px; }
  .ai-outlook-card h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
  .ai-outlook-card > p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; }
  .ai-bar-big { height: 10px; background: var(--border-light); border-radius: 100px; overflow: hidden; margin-bottom: 8px; }
  .ai-bar-big-fill { height: 100%; border-radius: 100px; transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1); }
  .ai-bar-low { background: #4ade80; } .ai-bar-med { background: #facc15; } .ai-bar-high { background: #f87171; }
  .ai-bar-labels { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-tertiary); margin-bottom: 24px; }
  .ai-task-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border-light); font-size: 0.85rem; }
  .ai-task-row:last-child { border-bottom: none; }
  .ai-task-label { color: var(--text-secondary); }
  .ai-task-risk { font-weight: 600; font-size: 0.78rem; padding: 4px 12px; border-radius: 100px; }
  .risk-low { background: #ecfdf5; color: #16a34a; } .risk-med { background: #fefce8; color: #ca8a04; } .risk-high { background: #fef2f2; color: #dc2626; }

  @media (max-width: 900px) {
    .role-cards, .session-types { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .quiz-layout { grid-template-columns: 1fr; gap: 48px; }
    .careers-scroll { grid-template-columns: repeat(2, 1fr); }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .testimonial-grid { grid-template-columns: 1fr; }
    .metrics-row { grid-template-columns: repeat(2, 1fr); }
    .overview-grid, .profile-layout, .checkout-layout { grid-template-columns: 1fr; }
    .profile-photo-card { position: static; } .checkout-summary { position: static; }
    .nav-inner { padding: 0 16px; height: auto; min-height: 64px; flex-wrap: wrap; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
    .nav-links.app-nav { flex: 1 1 100%; order: 3; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
    .nav-links.app-nav::-webkit-scrollbar { display: none; }
    .app-nav-tab { flex-shrink: 0; font-size: 0.8125rem; padding: 7px 12px; min-height: 34px; }
    section { padding: 80px 24px; } .hero { padding: 120px 24px 80px; } .role-cards { max-width: 400px; }
  }
  @media (max-width: 600px) {
    .careers-scroll { grid-template-columns: 1fr; }
    .stats-bar, .metrics-row { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; gap: 24px; text-align: center; }
    .form-row { grid-template-columns: 1fr; } .conf-actions { flex-direction: column; }
  }

  .fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .fade-in.visible { opacity: 1; transform: translateY(0); }

  /* ── DYNAMIC ENHANCEMENTS ── */

  /* Animated blobs behind hero */
  .hero-blob { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; animation: blob-drift 14s ease-in-out infinite; z-index: 0; }
  .hero-blob-1 { width: 580px; height: 580px; background: rgb(var(--primary) / 0.09); top: -140px; right: -80px; animation-delay: 0s; }
  .hero-blob-2 { width: 440px; height: 440px; background: rgb(var(--primary-hover) / 0.07); bottom: 20px; left: -60px; animation-delay: -5s; }
  .hero-blob-3 { width: 320px; height: 320px; background: rgb(var(--primary) / 0.06); top: 40%; left: 32%; animation-delay: -9s; }
  @keyframes blob-drift {
    0%, 100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(22px,-26px) scale(1.05); }
    66% { transform: translate(-16px,18px) scale(0.96); }
  }
  .hero-blob { position: absolute !important; }
  .hero > *:not(.hero-blob) { position: relative; z-index: 1; }
  #page-home .hero { background: radial-gradient(ellipse 80% 55% at 70% -5%, rgba(99,102,241,0.05) 0%, transparent 55%), var(--bg-solid); overflow: hidden; }

  /* Headline uses theme peach accent */
  .gradient-text { color: rgb(var(--primary)); -webkit-text-fill-color: rgb(var(--primary)); background: none; display: inline-block; }

  /* Shimmer sweep on CTA buttons */
  .cta-btn { position: relative; overflow: hidden; }
  .cta-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.55s ease; }
  .cta-btn:hover::after { transform: translateX(120%); }
  .nav-cta::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.55s ease; }
  .nav-cta:hover::after { transform: translateX(120%); }

  /* Quiz CTA — peach theme from flightway-theme.css */
  .quiz-cta::before,
  .quiz-cta::after { display: none !important; }

  /* Gentle float on quiz preview */
  @keyframes gentle-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
  .quiz-preview { animation: gentle-float 5s ease-in-out infinite; }
  .quiz-preview:hover { animation-play-state: paused; }

  /* Colorful glow on card hover */
  .role-card:hover { box-shadow: 0 20px 60px rgb(var(--primary) / 0.12), var(--shadow-lg); }
  .feature-card:hover { border-color: rgb(var(--primary) / 0.25); box-shadow: 0 0 48px rgb(var(--primary) / 0.07); }
  .career-chip:hover { box-shadow: 0 8px 28px rgb(var(--primary) / 0.11), var(--shadow-md); }

  /* Section tag gradient underline */
  .section-tag { position: relative; display: inline-block; padding-bottom: 5px; }
  .section-tag::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, rgb(var(--primary)), rgb(var(--primary-hover))); border-radius: 2px; opacity: 0.55; }

  /* Lucide icon sizing in containers */
  .feature-icon svg { width: 22px; height: 22px; stroke-width: 1.8; stroke: var(--text-secondary); }
  .role-card .icon svg { width: 24px; height: 24px; stroke-width: 1.6; stroke: var(--text-secondary); }
  .feature-icon { background: linear-gradient(135deg, rgb(var(--surface-2)), var(--bg-alt)); }

  /* Stat counter pulse */
  .stat-item { transition: all var(--transition); }
  .stats-bar:hover .stat-item { transform: translateY(-2px); }

  /* Upgraded dot animation */
  @keyframes dot-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.45); } 60% { box-shadow: 0 0 0 7px rgba(74,222,128,0); } }
  .hero-badge .dot { animation: dot-pulse 2.2s ease infinite !important; }

  /* ═══════════════════════════════════════════
     QUIZ STYLES (scoped under #page-quiz)
     ═══════════════════════════════════════════ */
  #page-quiz { background: transparent; padding: 120px 20px 60px; min-height: 100vh; }
  #page-quiz .qz-wrap { width: 100%; max-width: 720px; margin: 0 auto; }
  #page-quiz .qz-hidden { display: none !important; }

  #page-quiz .qz-intro-card { background: #fff; border-radius: 20px; padding: 56px 48px; box-shadow: var(--shadow-lg); text-align: center; }
  #page-quiz .qz-badge { display: inline-block; background: #eff6ff; color: var(--q-blue); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 6px 16px; border-radius: 100px; margin-bottom: 24px; }
  #page-quiz .qz-intro-title { font-family: 'Playfair Display', serif; font-size: 38px; font-weight: 700; color: var(--text-solid); margin-bottom: 16px; line-height: 1.15; letter-spacing: -0.02em; }
  #page-quiz .qz-intro-desc { font-size: 16px; color: var(--text-secondary); line-height: 1.7; max-width: 480px; margin: 0 auto 32px; font-weight: 300; }
  #page-quiz .qz-intro-meta { display: flex; justify-content: center; gap: 40px; margin-bottom: 36px; }
  #page-quiz .qz-im-val { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; color: var(--text-solid); }
  #page-quiz .qz-im-lbl { font-size: 11px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 2px; }
  #page-quiz .qz-start-btn { display: inline-block; padding: 18px 52px; border: none; border-radius: 100px; background: var(--q-blue); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; box-shadow: 0 8px 24px rgba(26,86,219,.35); transition: all .2s; font-family: inherit; }
  #page-quiz .qz-start-btn:hover { background: #1347b3; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(26,86,219,.45); }
  #page-quiz .qz-skip-quiz-btn { background: transparent; color: var(--text-tertiary); border: 1px dashed var(--border); padding: 9px 18px; border-radius: 100px; font-size: 0.78rem; font-weight: 500; cursor: pointer; font-family: inherit; transition: all 0.2s; }
  #page-quiz .qz-skip-quiz-btn:hover { color: var(--text-secondary); border-color: var(--text-tertiary); background: var(--bg-alt); }

  #page-quiz .qz-hdr { text-align: center; margin-bottom: 24px; }
  #page-quiz .qz-logo-line { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--q-blue); }
  #page-quiz .qz-encouragement { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; min-height: 22px; margin-bottom: 10px; opacity: 0; transition: opacity .6s ease; }
  #page-quiz .qz-encouragement.show { opacity: 1; }
  #page-quiz .qz-encouragement.glow-warm { color: #f59e0b; text-shadow: 0 0 8px rgba(245,158,11,.5), 0 0 18px rgba(245,158,11,.25); }
  #page-quiz .qz-encouragement.glow-hot { color: #ef4444; text-shadow: 0 0 8px rgba(239,68,68,.55), 0 0 20px rgba(239,68,68,.3), 0 0 36px rgba(239,68,68,.15); animation: qzPulseGlow 1.8s ease-in-out infinite; }
  #page-quiz .qz-encouragement.glow-blue { color: var(--q-lblue); text-shadow: 0 0 8px rgba(59,130,246,.5), 0 0 18px rgba(59,130,246,.25); }
  @keyframes qzPulseGlow { 0%,100%{opacity:1}50%{opacity:.7} }

  #page-quiz .qz-prog-wrap { margin-bottom: 22px; }
  #page-quiz .qz-prog-meta { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--text-tertiary); font-size: 13px; font-weight: 500; }
  #page-quiz .qz-prog-track { height: 5px; background: var(--border-light); border-radius: 3px; overflow: hidden; }
  #page-quiz .qz-prog-fill { height: 100%; background: linear-gradient(90deg,var(--q-lblue),var(--q-accent)); border-radius: 3px; transition: width .5s ease; }

  #page-quiz .qz-resume-card { background: #fff; border-radius: 20px; padding: 48px 42px; box-shadow: var(--shadow-md); text-align: center; position: relative; overflow: hidden; }
  #page-quiz .qz-resume-card::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; background:linear-gradient(90deg,var(--q-blue),var(--q-lblue),var(--q-accent)); }
  #page-quiz .qz-res-emoji { font-size: 44px; margin-bottom: 16px; }
  #page-quiz .qz-res-title { font-family:'Playfair Display',serif; font-size: 26px; font-weight: 700; color: var(--text-solid); margin-bottom: 10px; letter-spacing: -0.01em; }
  #page-quiz .qz-res-sub { font-size: 14.5px; color: var(--text-secondary); line-height: 1.65; max-width: 400px; margin: 0 auto 30px; }
  #page-quiz .qz-upload-zone { border: 2px dashed var(--q-border); border-radius: 14px; padding: 22px; margin-bottom: 10px; cursor: pointer; transition: all .2s; }
  #page-quiz .qz-upload-zone:hover { border-color: var(--q-lblue); background: #eff6ff; }
  #page-quiz .qz-upload-zone input[type=file] { display: none; }
  #page-quiz .qz-upload-label { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--q-blue); cursor: pointer; }
  #page-quiz .qz-upload-hint { font-size: 12px; color: var(--text-tertiary); margin-top: 6px; }
  #page-quiz .qz-resume-status { font-size: 13px; font-weight: 600; min-height: 20px; margin-bottom: 24px; }
  #page-quiz .qz-resume-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
  #page-quiz .qz-skip-btn { padding: 14px 28px; border: 2px solid var(--border); border-radius: 100px; background: #fff; font-size: 14px; font-weight: 600; color: var(--text-secondary); cursor: pointer; transition: all .18s; font-family: inherit; }
  #page-quiz .qz-skip-btn:hover { border-color: var(--text-secondary); color: var(--text-solid); }
  #page-quiz .qz-resume-insight { background: linear-gradient(135deg,#eff6ff,#f0fdf4); border: 1px solid #bfdbfe; border-radius: 14px; padding: 18px 20px; margin-bottom: 20px; text-align: left; }
  #page-quiz .qz-ri-title { font-size: 13px; font-weight: 700; color: var(--q-blue); margin-bottom: 6px; }
  #page-quiz .qz-ri-text { font-size: 13px; color: var(--q-text); line-height: 1.6; }

  #page-quiz .qz-card { background: #fff; border-radius: 20px; padding: 40px 42px; box-shadow: var(--shadow-md); position: relative; overflow: hidden; transition: opacity .22s, transform .22s; }
  #page-quiz .qz-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg,var(--q-blue),var(--q-lblue),var(--q-accent)); }
  #page-quiz .qz-q-num { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--q-lblue); margin-bottom: 12px; }
  #page-quiz .qz-q-text { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 600; color: var(--text-solid); line-height: 1.3; margin-bottom: 6px; letter-spacing: -0.01em; }
  #page-quiz .qz-q-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 26px; line-height: 1.5; }

  #page-quiz .qz-nav-buttons { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; }
  #page-quiz .qz-btn-back { padding: 12px 22px; border: 1px solid var(--border); border-radius: 100px; background: transparent; color: var(--text-tertiary); font-size: 14px; font-weight: 500; cursor: pointer; transition: all .18s; font-family: inherit; }
  #page-quiz .qz-btn-back:hover { border-color: var(--text-secondary); color: var(--text-solid); }
  #page-quiz .qz-btn-next { padding: 14px 30px; border: none; border-radius: 100px; background: var(--q-blue); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: all .18s; box-shadow: 0 4px 14px rgba(26,86,219,.3); font-family: inherit; }
  #page-quiz .qz-btn-next:hover:not(:disabled) { background: #1347b3; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(26,86,219,.4); }
  #page-quiz .qz-btn-next:disabled { background: var(--border); color: var(--text-tertiary); cursor: not-allowed; box-shadow: none; }

  #page-quiz .vcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  #page-quiz .vcard { padding: 30px 16px; border: 2px solid var(--border); border-radius: 14px; cursor: pointer; text-align: center; transition: all .22s; background: #fff; }
  #page-quiz .vcard:hover { border-color: var(--q-lblue); transform: translateY(-3px); background: #f8faff; }
  #page-quiz .vcard.sel { border-color: var(--q-blue); background: #eff6ff; box-shadow: 0 8px 20px rgba(26,86,219,.15); }
  #page-quiz .vcard-icon { font-size: 48px; margin-bottom: 10px; line-height: 1; }
  #page-quiz .vcard-lbl { font-size: 14px; font-weight: 600; color: var(--text-solid); }

  #page-quiz .qtags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 8px 0; }
  #page-quiz .qtag { padding: 10px 16px; border: 2px solid var(--border); border-radius: 100px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--text-solid); background: #fff; transition: all .25s; user-select: none; }
  #page-quiz .qtag:hover { border-color: var(--q-lblue); background: #f8faff; }
  #page-quiz .qtag.sel { border-color: var(--q-blue); background: var(--q-blue); color: #fff; font-size: 16px; padding: 12px 20px; box-shadow: 0 4px 14px rgba(26,86,219,.3); }
  #page-quiz .tag-counter { text-align: center; font-size: 13px; color: var(--text-tertiary); margin-top: 14px; }

  #page-quiz .text-input-wrap { position: relative; }
  #page-quiz .text-input { width: 100%; padding: 18px 20px; border: 2px solid var(--border); border-radius: 12px; font-size: 16px; font-family: inherit; color: var(--text-solid); outline: none; transition: border .18s; background: #fff; }
  #page-quiz .text-input:focus { border-color: var(--q-blue); }
  #page-quiz .school-suggest { position: absolute; left: 0; right: 0; background: #fff; border: 2px solid var(--q-blue); border-top: none; border-radius: 0 0 12px 12px; max-height: 200px; overflow-y: auto; z-index: 10; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
  #page-quiz .sug-item { padding: 12px 18px; cursor: pointer; font-size: 14px; border-bottom: 1px solid var(--border-light); }
  #page-quiz .sug-item:hover { background: #eff6ff; }
  #page-quiz .sug-item:last-child { border-bottom: none; }
  #page-quiz .text-meta { font-size: 12px; color: var(--q-green); margin-top: 10px; font-weight: 600; min-height: 18px; }

  #page-quiz .pairs-prog { text-align: center; font-size: 12px; color: var(--text-tertiary); letter-spacing: 1px; text-transform: uppercase; font-weight: 700; margin-bottom: 18px; }
  #page-quiz .pair-vs { display: grid; grid-template-columns: 1fr 60px 1fr; gap: 12px; align-items: center; margin-bottom: 8px; }
  #page-quiz .pair-card { padding: 38px 20px; border: 2px solid var(--border); border-radius: 16px; cursor: pointer; text-align: center; font-size: 17px; font-weight: 600; color: var(--text-solid); background: #fff; transition: all .2s; min-height: 140px; display: flex; align-items: center; justify-content: center; }
  #page-quiz .pair-card:hover { border-color: var(--q-blue); background: #eff6ff; transform: scale(1.03); }
  #page-quiz .pair-vs-mid { font-size: 22px; font-weight: 900; color: var(--q-accent); text-align: center; }

  #page-quiz .tot-card { padding: 34px 20px; border: 2px solid var(--border); border-radius: 18px; cursor: pointer; text-align: center; font-size: 16px; font-weight: 600; color: var(--text-solid); background: #fff; transition: all .2s; min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.45; gap: 6px; }
  #page-quiz .tot-card:hover { border-color: var(--q-lblue); background: #eff6ff; transform: scale(1.03); box-shadow: 0 6px 24px rgba(59,130,246,.13); }
  #page-quiz .tot-card .tot-emoji { font-size: 26px; }
  #page-quiz .tot-or { font-size: 14px; font-weight: 800; color: var(--q-accent); text-align: center; letter-spacing: 0.06em; text-transform: uppercase; }
  #page-quiz .bucket:hover { border-color: var(--q-lblue); background: #f0f7ff; }
  #page-quiz .bucket.active { border-color: var(--q-blue); background: #eff6ff; border-style: solid; }
  #page-quiz .bucket-title { font-size: 12px; font-weight: 700; text-align: center; color: var(--text-tertiary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
  #page-quiz .bucket.low .bucket-title { color: #94a3b8; }
  #page-quiz .bucket.mid .bucket-title { color: var(--q-blue); }
  #page-quiz .bucket.high .bucket-title { color: var(--q-accent); }
  #page-quiz .bucket-content { display: flex; flex-direction: column; gap: 6px; }
  #page-quiz .bucket-item { padding: 6px 10px; background: #fff; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; text-align: center; }
  #page-quiz .bucket-item:hover { background: #fee2e2; border-color: var(--q-red); }
  #page-quiz .bucket-hint { text-align: center; font-size: 12px; color: var(--text-tertiary); margin-top: 10px; }

  #page-quiz .opts { display: flex; flex-direction: column; gap: 10px; }
  #page-quiz .opt { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border: 2px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; transition: all .18s; text-align: left; width: 100%; font-family: inherit; }
  #page-quiz .opt:hover { border-color: var(--q-lblue); background: #eff6ff; }
  #page-quiz .opt.sel { border-color: var(--q-blue); background: #eff6ff; }
  #page-quiz .opt-letter { width: 30px; height: 30px; border-radius: 50%; background: var(--q-s2); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--text-tertiary); flex-shrink: 0; transition: all .18s; }
  #page-quiz .opt.sel .opt-letter { background: var(--q-blue); color: #fff; }
  #page-quiz .opt-text { font-size: 15px; color: var(--text-solid); line-height: 1.4; }

  #page-quiz .vpicker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  #page-quiz .vpick { padding: 18px 8px; border: 2px solid var(--border); border-radius: 12px; cursor: pointer; text-align: center; transition: all .2s; background: #fff; position: relative; }
  #page-quiz .vpick:hover { border-color: var(--q-lblue); background: #f8faff; transform: translateY(-2px); }
  #page-quiz .vpick.sel { border-color: var(--q-blue); background: #eff6ff; box-shadow: 0 6px 18px rgba(26,86,219,.2); }
  #page-quiz .vpick.disabled { opacity: .4; cursor: not-allowed; }
  #page-quiz .vpick-icon { font-size: 32px; margin-bottom: 8px; line-height: 1; }
  #page-quiz .vpick-lbl { font-size: 12px; font-weight: 600; color: var(--text-solid); line-height: 1.3; }
  #page-quiz .vpick-num { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--q-blue); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
  #page-quiz .vpicker-hint { text-align: center; margin-top: 14px; font-size: 13px; color: var(--text-tertiary); }

  #page-quiz .slider-wrap { margin-top: 8px; }
  #page-quiz .slider-labels { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 13px; color: var(--text-secondary); font-weight: 500; }
  #page-quiz input[type=range] { width: 100%; -webkit-appearance: none; height: 6px; border-radius: 3px; outline: none; cursor: pointer; }
  #page-quiz input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--q-blue); box-shadow: 0 2px 10px rgba(26,86,219,.45); cursor: pointer; transition: transform .15s; }
  #page-quiz input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); }
  #page-quiz .slider-val { text-align: center; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--q-blue); }

  #page-quiz .map2d-wrap { position: relative; margin: 8px 0; }
  #page-quiz .map2d { position: relative; width: 100%; aspect-ratio: 1; background: linear-gradient(135deg,#f1f5f9,#fff); border: 2px solid var(--border); border-radius: 16px; cursor: crosshair; overflow: hidden; }
  #page-quiz .map-axis-h, #page-quiz .map-axis-v { position: absolute; background: rgb(var(--border-strong) / 0.35); z-index: 1; pointer-events: none; }
  #page-quiz .map-axis-h { left: 16%; right: 16%; top: 50%; height: 1px; transform: translateY(-50%); }
  #page-quiz .map-axis-v { top: 14%; bottom: 14%; left: 50%; width: 1px; transform: translateX(-50%); }
  #page-quiz .map-lbl { position: absolute; font-size: 11px; font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 1px; z-index: 3; padding: 2px 6px; border-radius: 4px; background: rgb(var(--surface) / 0.92); }
  #page-quiz .map-lbl.top { top: 10px; left: 50%; transform: translateX(-50%); }
  #page-quiz .map-lbl.bot { bottom: 10px; left: 50%; transform: translateX(-50%); }
  #page-quiz .map-lbl.left { left: 10px; top: 50%; transform: translateY(-50%) rotate(-90deg); transform-origin: center; }
  #page-quiz .map-lbl.right { right: 10px; top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: center; }
  #page-quiz .map-dot { position: absolute; width: 24px; height: 24px; border-radius: 50%; background: rgb(var(--primary)); box-shadow: 0 4px 14px rgb(var(--primary) / 0.45); transform: translate(-50%,-50%); transition: left .15s, top .15s; border: 3px solid rgb(var(--panel)); pointer-events: none; z-index: 3; }
  #page-quiz .map-hint { text-align: center; font-size: 13px; color: var(--text-tertiary); margin-top: 10px; }

  #page-quiz .gpa-wrap { text-align: center; padding: 14px 0; }
  #page-quiz .gpa-display { font-family: 'Playfair Display', serif; font-size: 64px; font-weight: 700; color: var(--q-blue); line-height: 1; margin-bottom: 6px; }
  #page-quiz .gpa-feedback { font-size: 13px; color: var(--text-secondary); font-weight: 600; min-height: 18px; margin-bottom: 24px; transition: color .25s; }
  #page-quiz .gpa-feedback.good { color: var(--q-green); }
  #page-quiz .gpa-feedback.great { color: var(--q-accent); }
  #page-quiz .gpa-feedback.elite { color: var(--q-purple); }

  #page-quiz .emoji-rows { display: flex; flex-direction: column; gap: 12px; }
  #page-quiz .emoji-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 14px; border: 2px solid var(--border); border-radius: 12px; background: #fff; }
  #page-quiz .emoji-statement { font-size: 14px; font-weight: 600; color: var(--text-solid); line-height: 1.4; }
  #page-quiz .emoji-pick { display: flex; gap: 6px; }
  #page-quiz .emo-btn { width: 42px; height: 42px; border: 2px solid var(--border); border-radius: 50%; font-size: 22px; cursor: pointer; background: #fff; transition: all .18s; display: flex; align-items: center; justify-content: center; line-height: 1; }
  #page-quiz .emo-btn:hover { border-color: var(--q-lblue); transform: scale(1.1); }
  #page-quiz .emo-btn.sel { border-color: var(--q-blue); background: #eff6ff; transform: scale(1.15); }

  #page-quiz .dial-wrap { display: flex; flex-direction: column; align-items: center; padding: 10px; }
  #page-quiz .dial-svg { width: 240px; height: 140px; cursor: pointer; }
  #page-quiz .dial-val { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 700; color: var(--q-blue); margin-top: 6px; line-height: 1; }
  #page-quiz .dial-lbl { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-top: 4px; min-height: 18px; }

  #page-quiz .yesno-rows { display: flex; flex-direction: column; gap: 12px; }
  #page-quiz .yesno-row { background: var(--q-s2); border-radius: 12px; padding: 16px 18px; transition: background .15s; }
  #page-quiz .yesno-row.answered { background: #f0fdf4; }
  #page-quiz .yesno-stmt { font-size: 14.5px; font-weight: 600; color: var(--q-text); margin-bottom: 12px; line-height: 1.45; }
  #page-quiz .yn-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  #page-quiz .yn-btn { padding: 8px 22px; border-radius: 8px; font-size: 13px; font-weight: 700; border: 2px solid transparent; cursor: pointer; transition: all .15s; }
  #page-quiz .yn-btn.yn-yes { background: #dcfce7; color: #15803d; border-color: #dcfce7; }
  #page-quiz .yn-btn.yn-yes:hover { background: #bbf7d0; border-color: #86efac; }
  #page-quiz .yn-btn.yn-yes.sel { background: #16a34a; color: #fff; border-color: #16a34a; }
  #page-quiz .yn-btn.yn-no { background: #fee2e2; color: #b91c1c; border-color: #fee2e2; }
  #page-quiz .yn-btn.yn-no:hover { background: #fecaca; border-color: #fca5a5; }
  #page-quiz .yn-btn.yn-no.sel { background: #dc2626; color: #fff; border-color: #dc2626; }
  #page-quiz .yn-custom-btn { margin-left: auto; padding: 5px 10px; background: none; border: 1px solid var(--q-border); border-radius: 6px; font-size: 11.5px; color: var(--q-muted); cursor: pointer; transition: all .15s; white-space: nowrap; }
  #page-quiz .yn-custom-btn:hover { border-color: var(--q-lblue); color: var(--q-blue); }
  #page-quiz .yn-custom-btn.open { border-color: var(--q-lblue); color: var(--q-blue); background: #eff6ff; }
  #page-quiz .yn-custom-wrap { margin-top: 10px; display: none; }
  #page-quiz .yn-custom-wrap.open { display: block; }
  #page-quiz .yn-custom-input { width: 100%; padding: 9px 12px; border: 2px solid var(--q-border); border-radius: 8px; font-size: 13px; font-family: inherit; resize: none; transition: border-color .15s; background: #fff; }
  #page-quiz .yn-custom-input:focus { border-color: var(--q-lblue); outline: none; }

  #page-quiz .spec-track-wrap { padding: 30px 0 20px; }
  #page-quiz .spec-track { position: relative; height: 8px; background: linear-gradient(90deg,var(--q-lblue),var(--q-accent)); border-radius: 4px; margin: 30px 0; }
  #page-quiz .spec-marker { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--q-lblue); transform: translate(-50%,-50%); cursor: pointer; transition: all .18s; z-index: 1; }
  #page-quiz .spec-marker:hover { transform: translate(-50%,-50%) scale(1.3); }
  #page-quiz .spec-marker.sel { background: var(--q-blue); transform: translate(-50%,-50%) scale(1.5); box-shadow: 0 4px 14px rgba(26,86,219,.5); }
  #page-quiz .spec-stops { display: flex; justify-content: space-between; margin-top: 14px; }
  #page-quiz .spec-stop { font-size: 11px; text-align: center; width: 18%; font-weight: 600; color: var(--text-tertiary); cursor: pointer; transition: color .18s; }
  #page-quiz .spec-stop.sel { color: var(--q-blue); }
  #page-quiz .spec-display { text-align: center; font-size: 15px; font-weight: 700; color: var(--text-solid); margin-top: 18px; min-height: 22px; }

  #page-quiz .budget-info { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--q-s2); border-radius: 10px; margin-bottom: 16px; font-size: 14px; font-weight: 700; }
  #page-quiz .budget-rem { color: var(--q-green); font-size: 22px; font-family: 'Playfair Display', serif; }
  #page-quiz .budget-rows { display: flex; flex-direction: column; gap: 10px; }
  #page-quiz .budget-row { display: grid; grid-template-columns: 130px 1fr 44px; gap: 10px; align-items: center; }
  #page-quiz .budget-lbl { font-size: 13px; font-weight: 700; color: var(--text-solid); }
  #page-quiz .budget-bar { position: relative; height: 30px; background: var(--q-s2); border-radius: 8px; overflow: hidden; }
  #page-quiz .budget-fill { height: 100%; background: linear-gradient(90deg,var(--q-blue),var(--q-lblue)); transition: width .15s; border-radius: 8px; }
  #page-quiz .budget-val { font-size: 13px; font-weight: 800; text-align: right; color: var(--q-blue); }
  #page-quiz .budget-bar-wrap { position: relative; }
  #page-quiz .budget-bar-wrap input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; padding: 0; }

  #page-quiz .swipe-prog { text-align: center; font-size: 12px; color: var(--text-tertiary); letter-spacing: 1px; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }
  #page-quiz .swipe-card { padding: 42px 22px; border: 2px solid var(--border); border-radius: 18px; text-align: center; font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 600; color: var(--text-solid); background: linear-gradient(135deg,#fff,#f8faff); min-height: 160px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; line-height: 1.4; letter-spacing: -0.01em; }
  #page-quiz .swipe-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  #page-quiz .sw-btn { padding: 18px; border: 2px solid var(--border); border-radius: 100px; background: #fff; font-size: 16px; font-weight: 700; cursor: pointer; transition: all .18s; font-family: inherit; }
  #page-quiz .sw-yes { color: var(--q-green); border-color: #bbf7d0; }
  #page-quiz .sw-yes:hover { background: #dcfce7; border-color: var(--q-green); transform: translateY(-2px); }
  #page-quiz .sw-no { color: var(--q-red); border-color: #fecaca; }
  #page-quiz .sw-no:hover { background: #fee2e2; border-color: var(--q-red); transform: translateY(-2px); }

  #page-quiz .rank-list { display: flex; flex-direction: column; gap: 10px; }
  #page-quiz .rank-item { display: flex; align-items: center; gap: 14px; padding: 13px 17px; border: 2px solid var(--border); border-radius: 12px; cursor: pointer; transition: all .18s; background: #fff; user-select: none; }
  #page-quiz .rank-item:hover:not(.rked) { border-color: var(--q-lblue); background: #f8faff; }
  #page-quiz .rank-item.rked { border-color: var(--q-blue); background: #eff6ff; }
  #page-quiz .rank-badge { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; background: rgb(var(--surface-2)); color: rgb(var(--text)); border: 2px solid rgb(var(--border-strong)); flex-shrink: 0; transition: all .18s; box-sizing: border-box; }
  #page-quiz .rank-item.rked .rank-badge { background: rgb(var(--primary)); color: rgb(var(--primary-fg)); border-color: rgb(var(--primary)); }
  #page-quiz .rank-text { font-size: 15px; color: var(--text-solid); }
  #page-quiz .rank-hint { font-size: 13px; color: var(--text-tertiary); margin-bottom: 14px; }

  .qz-combo-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 0; transition: opacity .3s; pointer-events: none; padding: 20px; }
  .qz-combo-overlay.vis { opacity: 1; pointer-events: all; }
  .qz-combo-modal { background: #fff; border-radius: 24px; padding: 46px 36px; max-width: 400px; width: 100%; text-align: center; transform: scale(.85); transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
  .qz-combo-overlay.vis .qz-combo-modal { transform: scale(1); }
  .qz-combo-lbl { font-family: 'Playfair Display', serif; font-size: 54px; font-weight: 700; margin-bottom: 6px; letter-spacing: -1.5px; }
  .qz-combo-title { font-size: 20px; font-weight: 700; color: var(--text-solid); margin-bottom: 10px; }
  .qz-combo-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 24px; }
  .qz-combo-btn { padding: 12px 32px; border: none; border-radius: 100px; background: var(--q-blue); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; }

  /* ── Email-gate screen + modal (shown between quiz completion and results) ── */
  #page-quiz .qz-gate { max-width: 560px; margin: 60px auto 0; padding: 56px 44px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); text-align: center; }
  #page-quiz .qz-gate-emoji { font-size: 56px; margin-bottom: 14px; }
  #page-quiz .qz-gate-title { font-family: 'Playfair Display', serif; font-size: 34px; font-weight: 700; color: var(--text-solid); margin-bottom: 14px; line-height: 1.18; letter-spacing: -0.02em; }
  #page-quiz .qz-gate-sub { font-size: 15px; color: var(--text-secondary); line-height: 1.65; max-width: 440px; margin: 0 auto 32px; }
  #page-quiz .qz-gate-actions { display: flex; flex-direction: column; gap: 12px; align-items: center; }
  #page-quiz .qz-gate-primary { padding: 14px 36px; border: none; border-radius: 100px; background: var(--q-blue); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; min-width: 240px; transition: transform .15s, box-shadow .15s; }
  #page-quiz .qz-gate-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(26,86,219,.3); }
  #page-quiz .qz-gate-secondary { padding: 11px 28px; background: none; border: 1px solid var(--q-border); border-radius: 100px; color: var(--text-secondary); font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit; min-width: 240px; transition: all .15s; }
  #page-quiz .qz-gate-secondary:hover { border-color: var(--q-lblue); color: var(--q-blue); }

  .qz-email-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.62); display: flex; align-items: center; justify-content: center; z-index: 3000; opacity: 0; transition: opacity .25s; pointer-events: none; padding: 20px; backdrop-filter: blur(4px); }
  .qz-email-overlay.vis { opacity: 1; pointer-events: auto; }
  .qz-email-modal { background: #fff; border-radius: 20px; padding: 40px 36px 32px; max-width: 440px; width: 100%; transform: scale(.9) translateY(10px); transition: transform .3s cubic-bezier(.34,1.56,.64,1); box-shadow: 0 30px 70px rgba(0,0,0,.35); }
  .qz-email-overlay.vis .qz-email-modal { transform: scale(1) translateY(0); }
  .qz-email-title { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: var(--text-solid); margin-bottom: 10px; text-align: center; letter-spacing: -.01em; }
  .qz-email-sub { font-size: 14px; color: var(--text-secondary); line-height: 1.55; margin-bottom: 22px; text-align: center; }
  .qz-email-input { width: 100%; padding: 13px 16px; border: 2px solid var(--q-border); border-radius: 10px; font-size: 15px; font-family: inherit; transition: border-color .15s; background: #fff; box-sizing: border-box; }
  .qz-email-input:focus { border-color: var(--q-lblue); outline: none; }
  .qz-email-error { font-size: 13px; color: #dc2626; margin-top: 10px; min-height: 18px; text-align: center; }
  .qz-email-btns { display: flex; gap: 10px; margin-top: 18px; }
  .qz-email-submit { flex: 1; padding: 13px; border: none; border-radius: 10px; background: var(--q-blue); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .15s; }
  .qz-email-submit:hover:not(:disabled) { background: #1e40af; }
  .qz-email-submit:disabled { background: #94a3b8; cursor: not-allowed; }
  .qz-email-cancel { padding: 13px 20px; background: none; border: 1px solid var(--q-border); border-radius: 10px; color: var(--text-secondary); font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit; }
  .qz-email-cancel:hover { border-color: var(--q-lblue); color: var(--q-blue); }
  .qz-email-success { text-align: center; padding: 10px 0; }
  .qz-email-success-icon { font-size: 48px; margin-bottom: 12px; color: var(--q-green); }
  .qz-email-success-title { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: var(--text-solid); margin-bottom: 10px; }
  .qz-email-success-msg { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }

  #page-quiz .res-hdr { text-align: center; margin-bottom: 24px; }
  #page-quiz .res-eye { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--q-lblue); margin-bottom: 10px; }
  #page-quiz .res-title { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 700; color: var(--text-solid); margin-bottom: 8px; line-height: 1.15; letter-spacing: -0.02em; }
  #page-quiz .res-sub { font-size: 14px; color: var(--text-secondary); line-height: 1.5; max-width: 480px; margin: 0 auto; }
  #page-quiz .archetype-card { padding: 28px; border-radius: 16px; background: linear-gradient(135deg,var(--q-blue),var(--q-purple)); color: #fff; margin-bottom: 24px; text-align: center; }
  #page-quiz .arche-eye { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; opacity: .85; margin-bottom: 8px; }
  #page-quiz .arche-name { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.5px; }
  #page-quiz .arche-blurb { font-size: 15px; line-height: 1.65; opacity: .95; }
  #page-quiz .ind-card { padding: 20px; border-radius: 14px; margin-bottom: 14px; border: 2px solid var(--border); background: var(--surface-solid); transition: all .2s; }
  #page-quiz .ind-card.top { border-color: var(--q-blue); background: linear-gradient(135deg, var(--bg-alt), var(--surface-solid)); }
  #page-quiz .ind-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
  #page-quiz .ind-rank { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; flex-shrink: 0; background: var(--q-s2); color: var(--text-tertiary); }
  #page-quiz .ind-card.top .ind-rank { background: var(--q-blue); color: #fff; }
  #page-quiz .ind-name { font-family: 'Inter', system-ui, sans-serif; font-size: 1.125rem; font-weight: 600; color: var(--text-solid); flex: 1; line-height: 1.3; }
  #page-quiz .ind-pct { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--accent-solid); }
  #page-quiz .ind-bar { height: 5px; background: var(--q-s2); border-radius: 3px; overflow: hidden; margin-bottom: 14px; }
  #page-quiz .ind-bar-fill { height: 100%; background: linear-gradient(90deg,var(--q-blue),var(--q-lblue)); border-radius: 3px; }
  #page-quiz .ind-why { font-size: 14px; color: var(--text-solid); line-height: 1.6; margin-bottom: 12px; }
  #page-quiz .ind-school { padding: 14px; background: var(--bg-alt); border-left: 3px solid var(--accent-solid); border-radius: 8px; font-size: 13px; line-height: 1.6; color: var(--text-solid); margin-bottom: 12px; }
  #page-quiz .ind-school strong { color: var(--accent-solid); display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; }
  #page-quiz .ind-school .major { font-weight: 800; color: var(--text-solid); font-size: 14px; }
  #page-quiz .ind-classes { margin-top: 8px; font-size: 12px; color: var(--text-secondary); }
  #page-quiz .ind-classes strong { color: var(--text-solid); }
  #page-quiz .ind-careers { display: flex; flex-wrap: wrap; gap: 6px; }
  #page-quiz .ind-career-link { padding: 8px 14px; background: var(--q-blue); color: #fff; border: none; border-radius: 100px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .18s; font-family: inherit; }
  #page-quiz .ind-career-link:hover { background: #1347b3; transform: translateY(-1px); }
  #page-quiz .gpa-banner { padding: 18px 22px; border-radius: 12px; margin-bottom: 18px; text-align: center; font-size: 14px; font-weight: 500; line-height: 1.5; }
  #page-quiz .gpa-banner.elite { background: linear-gradient(135deg,#fef3c7,#fde68a); color: #78350f; border: 2px solid #f59e0b; }
  #page-quiz .gpa-banner.great { background: #dcfce7; color: #14532d; border: 2px solid var(--q-green); }
  #page-quiz .gpa-banner.good { background: #dbeafe; color: #1e3a8a; border: 2px solid var(--q-blue); }
  #page-quiz .gpa-banner.solid { background: #f1f5f9; color: #334155; border: 2px solid var(--border); }
  #page-quiz .qz-restart { display: block; width: 100%; padding: 14px; margin-top: 20px; border: 1px solid var(--border); border-radius: 100px; background: transparent; color: var(--text-secondary); font-size: 14px; font-weight: 500; cursor: pointer; transition: all .18s; font-family: inherit; }
  #page-quiz .qz-restart:hover { border-color: var(--q-blue); color: var(--q-blue); }

  /* ── CAREER REVEAL BINDERS ── */
  #page-quiz .reveal-stage { text-align: center; padding: 6px 0 4px; overflow: visible; }
  #page-quiz #qz-rcard { overflow: visible; }
  #page-quiz .reveal-eye { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--q-lblue); margin-bottom: 8px; }
  #page-quiz .reveal-headline { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; color: var(--text-solid); margin-bottom: 6px; line-height: 1.15; min-height: 36px; transition: opacity .3s; }
  #page-quiz .reveal-tagline { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; min-height: 20px; transition: opacity .3s; }
  #page-quiz .skip-reveal { background: none; border: none; color: var(--text-tertiary); font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: underline; margin-bottom: 18px; font-family: inherit; }
  #page-quiz .skip-reveal:hover { color: var(--q-blue); }

  #page-quiz .binder-slot { position: relative; max-width: 380px; margin: 0 auto 28px; opacity: 0; transform: translateY(26px) scale(.95); transition: opacity .55s, transform .55s; perspective: 1500px; overflow: visible; }
  #page-quiz .binder-slot.show { opacity: 1; transform: translateY(0) scale(1); }
  #page-quiz .rank-ribbon { display: inline-block; position: relative; z-index: 25; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; padding: 6px 18px; border-radius: 100px; margin-bottom: 12px; color: #fff; background: var(--accent,#1a56db); box-shadow: 0 4px 16px rgba(0,0,0,.2); }

  #page-quiz .binder { position: relative; z-index: 2; width: 100%; min-height: 250px; border-radius: 16px; transform-style: preserve-3d; overflow: visible; }
  #page-quiz .binder.glowing { animation: binderGlow 1.5s ease-in-out infinite; }
  #page-quiz .binder.shaking { animation: binderShake .55s ease-in-out; }
  @keyframes binderGlow {
    0%,100% { filter: drop-shadow(0 0 9px rgba(245,158,11,.55)) drop-shadow(0 0 20px rgba(245,158,11,.28)); }
    50% { filter: drop-shadow(0 0 18px rgba(245,158,11,.9)) drop-shadow(0 0 42px rgba(245,158,11,.55)); }
  }
  @keyframes binderShake {
    0%,100% { transform: translateX(0) rotate(0); }
    12% { transform: translateX(-8px) rotate(-2.2deg); }
    26% { transform: translateX(8px) rotate(2.2deg); }
    40% { transform: translateX(-7px) rotate(-1.7deg); }
    55% { transform: translateX(7px) rotate(1.7deg); }
    70% { transform: translateX(-4px) rotate(-.9deg); }
    85% { transform: translateX(3px) rotate(.6deg); }
  }

  #page-quiz .placement-card { position: relative; z-index: 1; border-radius: 16px; padding: 26px 22px 24px; background: linear-gradient(160deg,#fff,#f6faff); border: 2px solid var(--accent,#1a56db); box-shadow: 0 16px 44px rgba(0,0,0,.13); text-align: center; opacity: 0; transform: scale(.9); transition: opacity .55s .3s, transform .55s .3s; }
  #page-quiz .binder.open .placement-card { opacity: 1; transform: scale(1); }
  #page-quiz .placement-person { font-size: 76px; line-height: 1; margin-bottom: 8px; filter: drop-shadow(0 7px 16px rgba(0,0,0,.2)); }
  #page-quiz .placement-title { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: var(--text-solid); margin-bottom: 6px; letter-spacing: -.4px; line-height: 1.15; }
  #page-quiz .placement-pct { display: inline-block; font-size: 13px; font-weight: 800; color: var(--accent,#1a56db); background: rgba(26,86,219,.09); padding: 4px 14px; border-radius: 100px; margin-bottom: 10px; }
  #page-quiz .placement-salary { font-size: 12.5px; color: var(--text-tertiary); font-weight: 600; margin-bottom: 12px; }
  #page-quiz .placement-desc { font-size: 14px; color: var(--text-solid); line-height: 1.6; margin-bottom: 18px; text-align: left; }
  #page-quiz .placement-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border: none; border-radius: 100px; background: var(--accent,#1a56db); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .18s; font-family: inherit; }
  #page-quiz .placement-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.22); }

  #page-quiz .binder-cover { position: absolute; inset: 0; border-radius: 16px; transform-origin: left center; transition: transform .7s cubic-bezier(.5,-.2,.2,1.1); backface-visibility: hidden; z-index: 3; overflow: hidden; background: linear-gradient(150deg,var(--accent,#1a56db),#0c2f78); box-shadow: inset 0 0 0 2px rgba(255,255,255,.13), 0 16px 44px rgba(0,0,0,.2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
  #page-quiz .binder.open .binder-cover { transform: rotateY(-148deg); }
  #page-quiz .binder-cover::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 16px; background: linear-gradient(90deg,rgba(0,0,0,.28),rgba(0,0,0,.05)); }
  #page-quiz .binder-rings { position: absolute; left: 5px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; gap: 26px; z-index: 2; }
  #page-quiz .binder-ring { width: 15px; height: 15px; border-radius: 50%; border: 3px solid rgba(255,255,255,.6); }
  #page-quiz .cover-emoji { font-size: 62px; filter: drop-shadow(0 5px 10px rgba(0,0,0,.32)); }
  #page-quiz .cover-label { color: #fff; font-family: 'Playfair Display', serif; font-size: 21px; font-weight: 700; letter-spacing: .3px; }
  #page-quiz .cover-sub { color: rgba(255,255,255,.82); font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; }

  #page-quiz .binder-sparkle { position: absolute; font-size: 22px; opacity: 0; pointer-events: none; z-index: 5; }
  #page-quiz .binder.open .binder-sparkle { animation: sparklePop 1s ease-out forwards; }
  @keyframes sparklePop { 0% { opacity: 0; transform: scale(0); } 45% { opacity: 1; transform: scale(1.35) translateY(-12px); } 100% { opacity: 0; transform: scale(.9) translateY(-30px); } }

  #page-quiz .full-breakdown { opacity: 0; max-height: 0; overflow: hidden; transition: opacity .6s; }
  #page-quiz .full-breakdown.show { opacity: 1; max-height: none; overflow: visible; margin-top: 12px; }

  /* ── LOOT-BOX REVEAL: portraits, rays, tiers, FX ── */
  #page-quiz .binder-slot { --tier-color: #f5b301; }
  #page-quiz .placement-portrait { width: 132px; height: 132px; margin: 0 auto 10px; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #fff, #eef2f7); border: 4px solid var(--tier-color, #1a56db); box-shadow: 0 0 0 4px rgba(255,255,255,.7), 0 10px 26px rgba(0,0,0,.18), 0 0 26px -2px var(--tier-color); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
  #page-quiz .placement-portrait svg { width: 124px; height: 124px; display: block; }

  /* spinning light rays behind the binder */
  #page-quiz .ray-burst { position: absolute; top: 50%; left: 50%; width: 560px; height: 560px; transform: translate(-50%,-50%) scale(.5); border-radius: 50%; z-index: 0; opacity: 0; pointer-events: none; background: repeating-conic-gradient(var(--tier-color) 0deg 5deg, transparent 5deg 22deg); -webkit-mask: radial-gradient(closest-side, #000 26%, rgba(0,0,0,.5) 48%, transparent 76%); mask: radial-gradient(closest-side, #000 26%, rgba(0,0,0,.5) 48%, transparent 76%); }
  #page-quiz .binder.charging .ray-burst { opacity: .4; animation: raySpin 3s linear infinite, rayGrow 1.4s ease-out forwards; }
  #page-quiz .binder.open .ray-burst { opacity: .55; animation: raySpin 14s linear infinite; transform: translate(-50%,-50%) scale(1.05); transition: opacity .5s, transform .5s; }
  @keyframes raySpin { to { transform: translate(-50%,-50%) rotate(360deg); } }
  @keyframes rayGrow { from { transform: translate(-50%,-50%) scale(.5); } to { transform: translate(-50%,-50%) scale(1); } }

  /* escalating charge-up rumble + glow */
  #page-quiz .binder.charging { animation: binderCharge 1.4s ease-in forwards; }
  @keyframes binderCharge {
    0%   { transform: translate(0,0) rotate(0); filter: drop-shadow(0 0 8px var(--tier-color)); }
    20%  { transform: translate(-1px,1px) rotate(-.4deg); }
    40%  { transform: translate(2px,-1px) rotate(.7deg); filter: drop-shadow(0 0 16px var(--tier-color)); }
    55%  { transform: translate(-3px,2px) rotate(-1.1deg); }
    70%  { transform: translate(4px,-2px) rotate(1.6deg); filter: drop-shadow(0 0 26px var(--tier-color)); }
    82%  { transform: translate(-6px,3px) rotate(-2.4deg); }
    91%  { transform: translate(7px,-3px) rotate(3deg); filter: drop-shadow(0 0 40px var(--tier-color)) drop-shadow(0 0 70px var(--tier-color)); }
    100% { transform: translate(-8px,0) rotate(-3.4deg); filter: drop-shadow(0 0 48px var(--tier-color)) drop-shadow(0 0 90px var(--tier-color)); }
  }

  /* card slams in on open */
  #page-quiz .binder.open .placement-card { animation: cardPunch .55s cubic-bezier(.2,.85,.25,1.25) forwards; }
  @keyframes cardPunch { 0% { transform: scale(.55); opacity: 0; } 55% { transform: scale(1.08); opacity: 1; } 78% { transform: scale(.97); } 100% { transform: scale(1); opacity: 1; } }

  /* rarity tier banner — sibling of .binder so it stacks above the card */
  #page-quiz .binder-slot .tier-banner { position: absolute; top: 2.55rem; left: 50%; transform: translateX(-50%) scale(0); z-index: 20; padding: 7px 20px; border-radius: 100px; background: var(--tier-color, #1a56db); color: #fff; font-size: 13px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; box-shadow: 0 6px 20px rgba(0,0,0,.3), 0 0 22px -2px var(--tier-color); opacity: 0; pointer-events: none; }
  #page-quiz .binder-slot .binder.open ~ .tier-banner { animation: tierSlam .6s cubic-bezier(.2,.9,.3,1.4) .15s forwards; }
  @keyframes tierSlam { 0% { transform: translateX(-50%) scale(2.6) rotate(-6deg); opacity: 0; } 55% { transform: translateX(-50%) scale(.88) rotate(2deg); opacity: 1; } 100% { transform: translateX(-50%) scale(1) rotate(0); opacity: 1; } }

  /* full-screen FX overlay */
  #qz-fx { position: fixed; inset: 0; pointer-events: none; z-index: 9998; }
  #qz-fx .fx-dim { position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, transparent 8%, rgba(8,12,28,.74) 70%); opacity: 0; transition: opacity .6s ease; }
  #qz-fx .fx-dim.on { opacity: 1; }
  #qz-fx .fx-flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
  #qz-fx .fx-flash.fire { animation: fxFlash .5s ease-out; }
  @keyframes fxFlash { 0% { opacity: 0; } 12% { opacity: .92; } 100% { opacity: 0; } }
  #qz-fx #fx-particles { position: absolute; inset: 0; width: 100%; height: 100%; }

  /* climax screen shake */
  #page-quiz .shake-screen { animation: screenShake .42s cubic-bezier(.36,.07,.19,.97); }
  @keyframes screenShake { 10%,90%{transform:translate(-2px,1px)} 20%,80%{transform:translate(4px,-2px)} 30%,50%,70%{transform:translate(-6px,2px)} 40%,60%{transform:translate(6px,-1px)} }

  @media (prefers-reduced-motion: reduce) {
    #page-quiz .binder.glowing { animation: none; filter: drop-shadow(0 0 14px rgba(245,158,11,.65)); }
    #page-quiz .binder.shaking, #page-quiz .binder.charging { animation: none; }
    #page-quiz .binder.charging .ray-burst, #page-quiz .binder.open .ray-burst { animation: none; }
    #page-quiz .binder-cover { transition: transform .45s; }
    #page-quiz .binder.open .placement-card { animation: none; opacity: 1; transform: scale(1); }
    #page-quiz .binder-slot .binder.open ~ .tier-banner { animation: none; opacity: 1; transform: translateX(-50%) scale(1); }
    #qz-fx .fx-flash.fire { animation: none; }
    #page-quiz .shake-screen { animation: none; }
  }

  @media (max-width: 540px) {
    #page-quiz .qz-card { padding: 30px 24px; }
    #page-quiz .qz-intro-card { padding: 40px 28px; }
    #page-quiz .qz-intro-title { font-size: 28px; }
    #page-quiz .vcards, #page-quiz .vpicker { grid-template-columns: repeat(2, 1fr); }
    #page-quiz .pair-vs { grid-template-columns: 1fr; gap: 6px; }
    #page-quiz .pair-vs-mid { padding: 4px 0; }
    #page-quiz .budget-row { grid-template-columns: 90px 1fr 40px; }
  }

  /* ── SALARY BATTLEFIELD ── */
  #page-quiz .salary-arena {
    background: #080c1a;
    border-radius: 20px;
    padding: 24px 20px 22px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,232,122,.18);
    box-shadow: 0 0 0 1px rgba(0,232,122,.08), 0 24px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  }
  #page-quiz .salary-arena::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,.12) 3px, rgba(0,0,0,.12) 4px);
    pointer-events: none;
    z-index: 0;
  }
  #page-quiz .salary-arena > * { position: relative; z-index: 1; }
  #page-quiz .sal-arena-eye {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #00e87a;
    margin-bottom: 6px;
    text-shadow: 0 0 12px rgba(0,232,122,.7);
  }
  #page-quiz .sal-arena-title {
    font-family: 'Courier New', Courier, monospace;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
    line-height: 1.35;
    text-shadow: 0 0 20px rgba(0,232,122,.4);
  }
  #page-quiz .sal-arena-sub {
    font-size: 13px;
    color: rgba(255,255,255,.5);
    margin-bottom: 22px;
    line-height: 1.5;
  }
  #page-quiz .sal-bars { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
  #page-quiz .sal-bar-row { display: flex; flex-direction: column; gap: 6px; }
  #page-quiz .sal-bar-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  #page-quiz .sal-tier-badge {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 100px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  #page-quiz .sal-elite .sal-tier-badge { background: rgba(0,232,122,.18); color: #00e87a; border: 1px solid rgba(0,232,122,.4); }
  #page-quiz .sal-mid .sal-tier-badge   { background: rgba(245,179,1,.15);  color: #f5b301; border: 1px solid rgba(245,179,1,.35); }
  #page-quiz .sal-small .sal-tier-badge { background: rgba(124,106,219,.15);color: #a89af8; border: 1px solid rgba(124,106,219,.3); }
  #page-quiz .sal-firm-name { font-size: 12px; color: rgba(255,255,255,.7); font-weight: 500; }
  #page-quiz .sal-range { font-family: 'Courier New', Courier, monospace; font-size: 12px; font-weight: 700; margin-left: auto; white-space: nowrap; flex-shrink: 0; }
  #page-quiz .sal-elite .sal-range { color: #00e87a; text-shadow: 0 0 10px rgba(0,232,122,.5); }
  #page-quiz .sal-mid .sal-range   { color: #f5b301; text-shadow: 0 0 10px rgba(245,179,1,.4); }
  #page-quiz .sal-small .sal-range { color: #a89af8; }
  #page-quiz .sal-track { height: 10px; background: rgba(255,255,255,.07); border-radius: 6px; overflow: hidden; }
  #page-quiz .sal-fill {
    height: 100%;
    border-radius: 6px;
    width: 0;
    animation: salBarIn .9s ease-out forwards;
    animation-play-state: paused;
  }
  #page-quiz .full-breakdown.show .sal-fill { animation-play-state: running; }
  #page-quiz .sal-elite .sal-fill { background: linear-gradient(90deg, #00c46a, #00e87a, #7fffcb); animation-delay: 0s; box-shadow: 0 0 12px rgba(0,232,122,.5); }
  #page-quiz .sal-mid .sal-fill   { background: linear-gradient(90deg, #d49500, #f5b301, #ffd54f); animation-delay: .15s; }
  #page-quiz .sal-small .sal-fill { background: linear-gradient(90deg, #5a4db0, #7c6adb, #a89af8); animation-delay: .3s; }
  @keyframes salBarIn { from { width: 0; } to { width: var(--sal-w); } }

  /* bell curve distribution */
  #page-quiz .salary-dist { margin-bottom: 22px; }
  #page-quiz .dist-svg-wrap { position: relative; }
  #page-quiz .dist-your-tag {
    position: absolute;
    right: 2%;
    top: -4px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    animation: distPulse 1.8s ease-in-out infinite;
  }
  @keyframes distPulse { 0%,100% { opacity: 1; transform: translateY(0); } 50% { opacity: .7; transform: translateY(-3px); } }
  #page-quiz .dist-your-star { font-size: 18px; }
  #page-quiz .dist-your-label {
    font-family: 'Courier New', monospace;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #00e87a;
    text-shadow: 0 0 10px rgba(0,232,122,.7);
    white-space: nowrap;
    background: rgba(0,232,122,.12);
    border: 1px solid rgba(0,232,122,.3);
    padding: 2px 7px;
    border-radius: 100px;
  }
  #page-quiz .dist-axis { display: flex; justify-content: space-between; margin-top: 6px; padding: 0 2px; gap: 4px; }
  #page-quiz .dist-axis-label { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.35); white-space: nowrap; }
  #page-quiz .dist-axis-label:last-child { text-align: right; }

  /* CTA */
  #page-quiz .sal-cta-box { text-align: center; padding-top: 4px; }
  #page-quiz .sal-cta-stat {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: rgba(255,255,255,.55);
    margin-bottom: 14px;
    line-height: 1.6;
  }
  #page-quiz .sal-cta-stat strong { color: #fff; }
  #page-quiz .salary-unlock-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #00c46a, #00e87a);
    color: #040d08;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(0,232,122,.5), 0 8px 24px rgba(0,0,0,.4);
    animation: salBtnPulse 2.4s ease-in-out infinite;
    transition: transform .18s, box-shadow .18s;
  }
  #page-quiz .salary-unlock-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 32px rgba(0,232,122,.55), 0 12px 32px rgba(0,0,0,.45); }
  @keyframes salBtnPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(0,232,122,.45), 0 8px 24px rgba(0,0,0,.4); }
    50%      { box-shadow: 0 0 0 10px rgba(0,232,122,0), 0 8px 24px rgba(0,0,0,.4); }
  }
  @media (prefers-reduced-motion: reduce) {
    #page-quiz .sal-fill { animation: none; width: var(--sal-w); }
    #page-quiz .dist-your-tag { animation: none; }
    #page-quiz .salary-unlock-btn { animation: none; }
  }
