/* ============================================================
   HopeBridge — Fullscreen chat stylesheet (one continuous stream)
   Used by /moshe.html, /interview.html, /tools.html, /scam-shield.html
   Aligned to HopeBridge Design System v2
   Palette: Midnight Navy · Muted Metallic Gold · Refined Teal · Plum
   Type: Poppins (display + body)
   Grid: 8pt spacing system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* ---- Brand (mirrors main design system) ---- */
  --hb-navy: #0A1128;
  --hb-navy-dark: #060B1A;
  --hb-navy-mid: #141E38;
  --hb-navy-soft: #1A2744;
  --hb-ink: #0B1220;
  --hb-body: #3D4554;
  --hb-muted: #6B7280;
  --hb-teal: #1F7A6E;
  --hb-teal-dark: #176057;
  --hb-teal-soft: rgba(31, 122, 110, 0.12);
  --hb-gold: #C9A227;
  --hb-gold-hover: #D4B03A;
  --hb-gold-dark: #A8841E;
  --hb-gold-soft: #E6CA65;
  --hb-gold-glow: rgba(201, 162, 39, 0.35);
  --hb-plum: #77448B;
  --hb-plum-dark: #3B2150;

  /* ---- Surfaces ---- */
  --hb-surface: #FFFFFF;
  --hb-bg: #F7F8FA;
  --hb-tint: #F4F6F9;
  --hb-tint-2: #EEF1F5;
  --hb-tint-strong: #E6E9EE;

  /* ---- Borders ---- */
  --hb-border: rgba(10, 17, 40, 0.07);
  --hb-border-2: rgba(10, 17, 40, 0.12);
  --hb-border-strong: rgba(10, 17, 40, 0.16);

  /* ---- Semantic ---- */
  --hb-success: #15803d;
  --hb-warn: #d97706;
  --hb-danger: #dc2626;

  /* ---- Radii (unified with main system) ---- */
  --hb-r-sm: 10px;
  --hb-r: 16px;
  --hb-r-lg: 22px;
  --hb-r-xl: 24px;
  --hb-r-pill: 999px;

  /* ---- Shadows (Stripe / Linear refined) ---- */
  --hb-sh-1: 0 1px 2px rgba(10, 17, 40, 0.04);
  --hb-sh-2: 0 4px 12px -2px rgba(10, 17, 40, 0.06), 0 2px 4px -1px rgba(10, 17, 40, 0.04);
  --hb-sh-3: 0 20px 40px -12px rgba(10, 17, 40, 0.12), 0 8px 16px -8px rgba(10, 17, 40, 0.08);
  --hb-sh-4: 0 24px 48px -12px rgba(10, 17, 40, 0.18);
  --hb-sh-gold: 0 8px 24px -6px rgba(201, 162, 39, 0.35);

  /* ---- Typography (Poppins everywhere) ---- */
  --hb-font-body: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --hb-font-display: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* ---- Motion ---- */
  --hb-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --hb-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --hb-duration: 200ms;
  --hb-duration-slow: 420ms;

  --hb-header-h: 64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

body.chat-app {
  margin: 0;
  font-family: var(--hb-font-body);
  font-size: 15px;
  color: var(--hb-body);
  background: var(--hb-surface);
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ============================================================
   The stream — one column, no card, no dock.
   The page itself scrolls. Nothing is frozen.
   ============================================================ */
.ch-stream {
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    calc(var(--hb-header-h) + 40px)
    clamp(16px, 4vw, 32px)
    72px;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- Header (fixed, thin, PURE WHITE) ---------- */
.ch-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--hb-header-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 clamp(12px, 3vw, 24px);
  background: #FFFFFF;
  border-bottom: 1px solid var(--hb-border);
  box-shadow: 0 1px 0 rgba(10, 17, 40, 0.02), 0 8px 24px -22px rgba(10, 17, 40, 0.15);
}

.ch-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: var(--hb-ink);
  text-decoration: none;
  transition: background var(--hb-duration) var(--hb-ease), color var(--hb-duration) var(--hb-ease);
}
.ch-back:hover { background: var(--hb-tint); color: var(--hb-navy); }
.ch-back:focus-visible { outline: 3px solid rgba(31, 122, 110, 0.4); outline-offset: 2px; }

.ch-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--hb-font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: #fff;
  flex-shrink: 0;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, 0.35), transparent 55%),
    linear-gradient(135deg, var(--hb-navy), var(--hb-teal-dark));
  box-shadow: 0 6px 14px -6px rgba(10, 17, 40, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.ch-avatar.iv {
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, 0.35), transparent 55%),
    linear-gradient(135deg, var(--hb-navy-mid), var(--hb-teal));
}

.ch-title { min-width: 0; flex: 1; }
.ch-title h1 {
  margin: 0;
  font-family: var(--hb-font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hb-navy);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ch-title p {
  margin: 3px 0 0;
  font-size: 0.75rem;
  color: var(--hb-muted);
  line-height: 1.35;
  letter-spacing: 0;
}

.ch-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--hb-success);
  padding: 5px 10px;
  border-radius: var(--hb-r-pill);
  background: rgba(21, 128, 61, 0.08);
  border: 1px solid rgba(21, 128, 61, 0.16);
  flex-shrink: 0;
}
.ch-live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.18);
}
.ch-live.free {
  color: var(--hb-teal-dark);
  background: rgba(31, 122, 110, 0.08);
  border-color: rgba(31, 122, 110, 0.18);
}
.ch-live.free::before { box-shadow: 0 0 0 3px rgba(31, 122, 110, 0.18); }

/* ============================================================
   Messages
   ============================================================ */
.chat-msg {
  max-width: min(72ch, 100%);
  margin: 4px 0;
  padding: 12px 16px;
  border-radius: var(--hb-r);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  word-wrap: break-word;
  animation: ch-in var(--hb-duration-slow) var(--hb-ease) both;
}
.chat-msg.bot {
  align-self: flex-start;
  background: var(--hb-tint);
  color: var(--hb-ink);
  border: 1px solid var(--hb-border);
  border-bottom-left-radius: 6px;
}
.chat-msg.user {
  align-self: flex-end;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255, 255, 255, 0.14), transparent 55%),
    linear-gradient(135deg, var(--hb-navy), var(--hb-navy-mid));
  color: #fff;
  border-bottom-right-radius: 6px;
  box-shadow: 0 6px 18px -10px rgba(10, 17, 40, 0.5);
}
.chat-msg a { color: var(--hb-teal-dark); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.chat-msg.user a { color: #fff; }

@keyframes ch-in {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-msg.typing {
  display: inline-flex;
  gap: 4px;
  padding: 14px 16px;
}
.chat-msg.typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--hb-muted);
  opacity: 0.55;
  animation: ch-bounce 1.15s infinite ease-in-out;
}
.chat-msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-msg.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes ch-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40%           { transform: translateY(-4px); opacity: 1; }
}

/* ============================================================
   Interactive message — a bot bubble that contains
   chips and/or a form. This replaces the old fixed dock.
   ============================================================ */
.chat-msg.bot.chat-interactive {
  max-width: 100%;
  width: 100%;
  padding: 16px 18px;
  background: linear-gradient(180deg, #FBFCFE, #F1F4F8);
  border: 1px solid var(--hb-border);
  border-bottom-left-radius: 6px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 4px 14px -12px rgba(10, 17, 40, 0.25);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: ch-in var(--hb-duration-slow) var(--hb-ease) both;
}

/* Chips (button row) */
.ch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ch-chip {
  appearance: none;
  border: 1.5px solid var(--hb-border-2);
  background: #fff;
  color: var(--hb-ink);
  padding: 10px 16px;
  border-radius: var(--hb-r-pill);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    transform var(--hb-duration) var(--hb-ease),
    border-color var(--hb-duration) var(--hb-ease),
    background var(--hb-duration) var(--hb-ease),
    color var(--hb-duration) var(--hb-ease),
    box-shadow var(--hb-duration) var(--hb-ease);
  box-shadow: var(--hb-sh-1);
}
.ch-chip:hover {
  border-color: var(--hb-teal);
  color: var(--hb-teal-dark);
  background: linear-gradient(180deg, #fff, rgba(31, 122, 110, 0.05));
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -10px rgba(31, 122, 110, 0.5);
}
.ch-chip:focus-visible { outline: 3px solid rgba(31, 122, 110, 0.35); outline-offset: 2px; }

/* Forms inside a bubble */
.chat-msg .chat-form-inner { display: block; }
.chat-msg .chat-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.chat-msg .chat-field-grid .chat-field.full { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .chat-msg .chat-field-grid { grid-template-columns: 1fr; }
}

.chat-msg .chat-field { display: flex; flex-direction: column; gap: 6px; }
.chat-msg .chat-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--hb-ink);
}
.chat-msg .chat-label .req { color: var(--hb-danger); }

.chat-msg .chat-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--hb-border-2);
  border-radius: var(--hb-r-sm);
  background: #fff;
  font: inherit;
  font-size: 15px;
  letter-spacing: -0.011em;
  color: var(--hb-ink);
  transition: border-color var(--hb-duration) var(--hb-ease), box-shadow var(--hb-duration) var(--hb-ease);
}
.chat-msg .chat-input::placeholder { color: #9AA3B2; }
.chat-msg .chat-input:focus {
  outline: none;
  border-color: var(--hb-teal);
  box-shadow: 0 0 0 4px rgba(31, 122, 110, 0.14);
}
.chat-msg textarea.chat-input {
  resize: vertical;
  min-height: 88px;
  line-height: 1.55;
  font-family: inherit;
}
.chat-msg .cv-help { font-size: 12.5px; color: var(--hb-muted); line-height: 1.5; }

.chat-msg .cv-step-head { margin: 0 0 10px; }
.chat-msg .cv-step-title {
  margin: 0 0 4px;
  font-family: var(--hb-font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hb-navy);
  letter-spacing: -0.02em;
}
.chat-msg .cv-step-title:focus { outline: none; }
.chat-msg .cv-step-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--hb-muted);
}

.chat-msg .cv-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
  align-items: center;
}

.chat-msg .cv-entry-list { display: grid; gap: 8px; margin-bottom: 10px; }
.chat-msg .cv-entry-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-r-sm);
  font-size: 13px;
  background: #fff;
}

/* ============================================================
   Buttons — unified with main system (pill, gradient, refined shadows)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--hb-r-pill);
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform var(--hb-duration) var(--hb-ease),
    box-shadow var(--hb-duration) var(--hb-ease),
    background var(--hb-duration) var(--hb-ease),
    border-color var(--hb-duration) var(--hb-ease),
    color var(--hb-duration) var(--hb-ease);
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-gold {
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, 0.35), transparent 55%),
    linear-gradient(135deg, var(--hb-gold) 0%, var(--hb-gold-hover) 100%);
  color: var(--hb-navy);
  box-shadow: var(--hb-sh-gold), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn-gold:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -12px rgba(201, 162, 39, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn-gold:active:not(:disabled) { transform: translateY(0); }

.btn-outline {
  background: #fff;
  border-color: var(--hb-border-2);
  color: var(--hb-navy);
  box-shadow: var(--hb-sh-1);
}
.btn-outline:hover:not(:disabled) {
  border-color: var(--hb-teal);
  color: var(--hb-teal-dark);
  background: linear-gradient(180deg, #fff, rgba(31, 122, 110, 0.05));
  transform: translateY(-1px);
}

.btn-teal {
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, 0.28), transparent 55%),
    linear-gradient(135deg, var(--hb-teal-dark), var(--hb-teal));
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(31, 122, 110, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-teal:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -12px rgba(31, 122, 110, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-teal:active:not(:disabled) { transform: translateY(0); }

.ch-restart {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--hb-muted);
  cursor: pointer;
  border-radius: 8px;
  text-decoration: underline;
  text-decoration-color: rgba(107, 114, 128, 0.35);
  text-underline-offset: 3px;
  transition: color var(--hb-duration) var(--hb-ease), text-decoration-color var(--hb-duration) var(--hb-ease);
}
.ch-restart:hover { color: var(--hb-navy); text-decoration-color: var(--hb-navy); }

/* ============================================================
   Template picker (inside a bubble)
   ============================================================ */
.cv-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  width: 100%;
  margin: 4px 0 2px;
}
.cv-template-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  padding: 14px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: #fff;
  border: 1.5px solid var(--hb-border-2);
  border-radius: var(--hb-r);
  box-shadow: var(--hb-sh-1);
  transition:
    transform var(--hb-duration) var(--hb-ease),
    box-shadow var(--hb-duration) var(--hb-ease),
    border-color var(--hb-duration) var(--hb-ease);
}
.cv-template-card:hover {
  transform: translateY(-3px);
  border-color: var(--hb-teal);
  box-shadow: 0 18px 32px -18px rgba(10, 17, 40, 0.3);
}
.cv-template-card:focus-visible { outline: 3px solid rgba(31, 122, 110, 0.45); outline-offset: 2px; }
.cv-template-card.is-selected {
  border-color: var(--hb-gold);
  box-shadow: 0 0 0 3px var(--hb-gold-glow);
}
.cv-tpl-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(10, 17, 40, 0.12);
  border-radius: 8px;
  box-shadow: 0 8px 16px -12px rgba(10, 17, 40, 0.35);
}
.cv-tpl-thumb i { position: absolute; display: block; border-radius: 2px; }
.cv-tpl-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.cv-tpl-name {
  font-family: var(--hb-font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--hb-navy);
}
.cv-tpl-tagline { font-size: 13px; font-weight: 600; color: var(--hb-teal-dark); letter-spacing: -0.01em; }
.cv-tpl-desc { margin-top: 4px; font-size: 13.5px; line-height: 1.55; color: var(--hb-body); }
.cv-tpl-best { margin-top: auto; padding-top: 10px; font-size: 12.5px; line-height: 1.5; color: var(--hb-muted); }
.cv-tpl-best strong { color: var(--hb-navy); font-weight: 600; }
.cv-tpl-cta { margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--hb-navy); letter-spacing: -0.01em; }
.cv-template-card:hover .cv-tpl-cta { color: var(--hb-teal-dark); }

/* ============================================================
   Score card
   ============================================================ */
.cv-score { min-width: 240px; }
.cv-score-head { display: flex; align-items: center; gap: 14px; }
.cv-score-num {
  font-family: var(--hb-font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--hb-navy);
  letter-spacing: -0.03em;
}
.cv-score-num small { font-size: 14px; font-weight: 400; color: var(--hb-muted); letter-spacing: 0; }
.cv-score-label strong { display: block; font-size: 15px; color: var(--hb-navy); font-weight: 600; }
.cv-score-label span { font-size: 12.5px; color: var(--hb-muted); }
.cv-score-track {
  height: 8px;
  background: var(--hb-tint-strong);
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 8px;
}
.cv-score-fill { height: 100%; border-radius: 999px; transition: width 0.4s var(--hb-ease); }
.cv-score-sub { font-size: 12.5px; font-weight: 600; color: #334155; margin: 6px 0 2px; }
.cv-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  padding: 8px 0;
  border-top: 1px solid #EAEEF3;
}
.cv-score details { margin-top: 8px; font-size: 12.5px; color: var(--hb-body); }
.cv-score summary { cursor: pointer; }
.cv-score-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.cv-score-table td { padding: 5px 0; border-top: 1px solid #F1F5F9; }
.cv-score-table td:last-child { text-align: right; white-space: nowrap; }

/* ============================================================
   Progress bar (inside the stream)
   ============================================================ */
.cv-progress {
  padding: 12px 4px 16px;
  border-bottom: 1px solid var(--hb-border);
  margin-bottom: 6px;
}
.cv-progress-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.cv-progress-label { font-size: 13px; font-weight: 600; color: var(--hb-ink); letter-spacing: -0.01em; }
.cv-progress-pct {
  font-family: var(--hb-font-display);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--hb-teal-dark);
}
.cv-progress-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--hb-tint-strong);
}
.cv-progress-fill {
  position: relative;
  height: 100%;
  width: 0;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--hb-teal), var(--hb-gold));
  transition: width 0.7s var(--hb-ease);
}
.cv-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: ch-shine 1.9s ease-in-out infinite;
}
@keyframes ch-shine { to { transform: translateX(100%); } }
.cv-progress.is-complete .cv-progress-fill::after { animation: none; opacity: 0; }
.cv-progress.is-complete .cv-progress-pct { color: var(--hb-success); }

/* ============================================================
   Preview modal
   ============================================================ */
.ch-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(6, 11, 26, 0.55);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  animation: ch-fade 0.22s var(--hb-ease) both;
}
.ch-preview-modal.is-open { display: flex; }
@keyframes ch-fade { from { opacity: 0; } to { opacity: 1; } }

.ch-preview-sheet {
  width: min(880px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--hb-r-xl);
  box-shadow: var(--hb-sh-4);
  overflow: hidden;
  animation: ch-pop 0.3s var(--hb-ease) both;
}
@keyframes ch-pop {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ch-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hb-border);
}
.ch-preview-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hb-muted);
}
.ch-preview-body {
  flex: 1;
  overflow-y: auto;
  background: linear-gradient(180deg, #EEF1F6 0%, #E6EAF1 100%);
  padding: 20px;
}
.ch-preview-body #cvStage {
  background: #fff;
  border-radius: var(--hb-r);
  box-shadow: var(--hb-sh-3);
  overflow: hidden;
}
.ch-preview-actions {
  padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--hb-border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ============================================================
   Interview Simulator
   ============================================================ */
.iv-sim { display: flex; flex-direction: column; gap: 14px; }

.iv-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.iv-field {
  appearance: none;
  border: 1.5px solid var(--hb-border-2);
  background: #fff;
  padding: 16px;
  border-radius: var(--hb-r);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform var(--hb-duration) var(--hb-ease),
    border-color var(--hb-duration) var(--hb-ease),
    box-shadow var(--hb-duration) var(--hb-ease);
  box-shadow: var(--hb-sh-1);
}
.iv-field:hover {
  transform: translateY(-1px);
  border-color: var(--hb-teal);
  box-shadow: 0 10px 24px -16px rgba(10, 17, 40, 0.3);
}
.iv-field strong { display: block; font-size: 15px; color: var(--hb-navy); font-weight: 600; letter-spacing: -0.01em; }
.iv-field span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--hb-muted); }
.iv-field.is-selected {
  border-color: var(--hb-gold);
  box-shadow: 0 0 0 3px var(--hb-gold-glow);
}

.iv-q {
  background: #fff;
  border: 1px solid var(--hb-border-2);
  border-radius: var(--hb-r-lg);
  padding: 20px 22px;
  box-shadow: var(--hb-sh-2);
}
.iv-q-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hb-muted);
  margin: 0 0 8px;
}
.iv-q-text {
  margin: 0 0 16px;
  font-family: var(--hb-font-display);
  font-size: 19px;
  line-height: 1.35;
  color: var(--hb-navy);
  letter-spacing: -0.02em;
}
.iv-answer {
  width: 100%;
  min-height: 140px;
  padding: 14px 16px;
  border: 1.5px solid var(--hb-border-2);
  border-radius: var(--hb-r-sm);
  background: #fff;
  font: inherit;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  color: var(--hb-ink);
  resize: vertical;
  transition: border-color var(--hb-duration) var(--hb-ease), box-shadow var(--hb-duration) var(--hb-ease);
}
.iv-answer:focus {
  outline: none;
  border-color: var(--hb-teal);
  box-shadow: 0 0 0 4px rgba(31, 122, 110, 0.14);
}
.iv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  align-items: center;
}

.iv-feedback {
  margin-top: 16px;
  border-radius: var(--hb-r);
  border: 1px solid var(--hb-border-2);
  background: linear-gradient(180deg, #FBFCFE, #F4F7FA);
  padding: 18px 20px;
  animation: ch-in var(--hb-duration-slow) var(--hb-ease) both;
}
.iv-feedback-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.iv-feedback-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--hb-r-pill);
  font-size: 12px;
  font-weight: 700;
  background: rgba(31, 122, 110, 0.1);
  color: var(--hb-teal-dark);
  border: 1px solid rgba(31, 122, 110, 0.2);
}
.iv-feedback-score.mid { background: rgba(217, 119, 6, 0.1); color: var(--hb-warn); border-color: rgba(217, 119, 6, 0.25); }
.iv-feedback-score.low { background: rgba(220, 38, 38, 0.1); color: var(--hb-danger); border-color: rgba(220, 38, 38, 0.25); }
.iv-feedback h4 {
  margin: 0;
  font-family: var(--hb-font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--hb-navy);
  letter-spacing: -0.02em;
}
.iv-feedback ul { margin: 8px 0 0; padding-left: 20px; }
.iv-feedback li { margin: 5px 0; font-size: 14px; line-height: 1.55; color: var(--hb-body); }
.iv-model {
  margin-top: 16px;
  border-top: 1px dashed var(--hb-border-2);
  padding-top: 14px;
}
.iv-model-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hb-muted);
  margin: 0 0 6px;
}
.iv-model p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--hb-ink); }

.iv-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--hb-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Skill chips (Skills step) ---------- */
.cv-skill-chips {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--hb-border-2);
}
.cv-skill-chips-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hb-muted);
}
.cv-skill-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cv-skill-chip {
  appearance: none;
  border: 1px solid var(--hb-border-2);
  background: #fff;
  color: var(--hb-body);
  padding: 7px 14px;
  border-radius: var(--hb-r-pill);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    transform var(--hb-duration) var(--hb-ease),
    border-color var(--hb-duration) var(--hb-ease),
    background var(--hb-duration) var(--hb-ease),
    color var(--hb-duration) var(--hb-ease),
    box-shadow var(--hb-duration) var(--hb-ease);
}
.cv-skill-chip:hover {
  border-color: var(--hb-teal);
  color: var(--hb-teal-dark);
  background: linear-gradient(180deg, #fff, rgba(31, 122, 110, 0.05));
  transform: translateY(-1px);
}
.cv-skill-chip.is-on {
  background: linear-gradient(135deg, var(--hb-teal-dark), var(--hb-teal));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px -6px rgba(31, 122, 110, 0.6);
}
.cv-skill-chip.is-on:hover { color: #fff; border-color: transparent; }
.cv-skill-chip:focus-visible { outline: 3px solid rgba(31, 122, 110, 0.35); outline-offset: 2px; }

/* ---------- Seed banner (first load) ---------- */
.ch-seed-banner {
  position: fixed;
  top: var(--hb-header-h);
  left: 0; right: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  background: linear-gradient(90deg, rgba(31, 122, 110, 0.08), rgba(201, 162, 39, 0.10));
  border-bottom: 1px solid var(--hb-border);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--hb-navy);
  animation: chSeedIn 0.4s var(--hb-ease) both;
}
.ch-seed-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--hb-teal);
  box-shadow: 0 0 0 3px rgba(31, 122, 110, 0.2);
  animation: chSeedPulse 1.8s ease-in-out infinite;
}
.ch-seed-banner.is-hidden { display: none; }
@keyframes chSeedIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes chSeedPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ============================================================
   Career Path Finder
   ============================================================ */

.ch-avatar.cp {
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, 0.35), transparent 55%),
    linear-gradient(135deg, var(--hb-plum-dark), var(--hb-plum));
}

/* ---------- Question bubble ---------- */
.cp-q { display: flex; flex-direction: column; gap: 16px; }

.cp-q-head { display: flex; flex-direction: column; gap: 4px; }
.cp-q-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hb-teal-dark);
  margin-bottom: 2px;
}
.cp-q-title {
  margin: 0;
  font-family: var(--hb-font-display);
  font-size: 19px;
  line-height: 1.3;
  color: var(--hb-navy);
  letter-spacing: -0.02em;
}
.cp-q-hint {
  margin: 0;
  font-size: 13px;
  color: var(--hb-muted);
  line-height: 1.55;
}

.cp-opts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 640px) {
  .cp-opts { grid-template-columns: 1fr 1fr; }
  .cp-opts.is-multi { grid-template-columns: 1fr 1fr; }
}

.cp-opt {
  appearance: none;
  border: 1.5px solid var(--hb-border-2);
  background: #fff;
  padding: 14px 16px;
  border-radius: var(--hb-r-sm);
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--hb-ink);
  text-align: left;
  cursor: pointer;
  transition:
    transform var(--hb-duration) var(--hb-ease),
    border-color var(--hb-duration) var(--hb-ease),
    background var(--hb-duration) var(--hb-ease),
    color var(--hb-duration) var(--hb-ease),
    box-shadow var(--hb-duration) var(--hb-ease);
  box-shadow: var(--hb-sh-1);
}
.cp-opt:hover {
  border-color: var(--hb-teal);
  color: var(--hb-teal-dark);
  background: linear-gradient(180deg, #fff, rgba(31, 122, 110, 0.05));
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -10px rgba(31, 122, 110, 0.5);
}
.cp-opt.is-on {
  background: linear-gradient(135deg, var(--hb-teal-dark), var(--hb-teal));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px -8px rgba(31, 122, 110, 0.7);
}
.cp-opt.is-on:hover { color: #fff; }
.cp-opt:focus-visible { outline: 3px solid rgba(31, 122, 110, 0.35); outline-offset: 2px; }

.cp-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

/* ---------- Result cards ---------- */
.cp-result {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cp-res-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cp-res-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hb-navy), var(--hb-navy-mid));
  color: var(--hb-gold-soft);
  font-family: var(--hb-font-display);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.cp-res-label {
  margin: 0;
  font-family: var(--hb-font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hb-navy);
}
.cp-res-match {
  font-size: 14px;
  color: var(--hb-muted);
}
.cp-res-match strong {
  font-family: var(--hb-font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--hb-teal-dark);
  margin-right: 2px;
  letter-spacing: -0.02em;
}
.cp-res-risk {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--hb-r-pill);
  display: inline-block;
  align-self: flex-start;
}
.cp-risk-low {
  background: rgba(31, 122, 110, 0.1);
  color: var(--hb-teal-dark);
  border: 1px solid rgba(31, 122, 110, 0.22);
}
.cp-risk-medium {
  background: rgba(217, 119, 6, 0.1);
  color: var(--hb-warn);
  border: 1px solid rgba(217, 119, 6, 0.25);
}
.cp-risk-high {
  background: rgba(220, 38, 38, 0.1);
  color: var(--hb-danger);
  border: 1px solid rgba(220, 38, 38, 0.25);
}
.cp-risk-n\/a {
  background: rgba(201, 162, 39, 0.1);
  color: var(--hb-gold);
  border: 1px solid rgba(201, 162, 39, 0.25);
}
.cp-res-line {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--hb-body);
}
.cp-res-line strong { color: var(--hb-navy); font-weight: 600; }

.cp-warn, .cp-safe {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: var(--hb-r-sm);
  font-size: 13px;
  line-height: 1.55;
}
.cp-warn {
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: #7f1d1d;
}
.cp-safe {
  background: rgba(31, 122, 110, 0.06);
  border: 1px solid rgba(31, 122, 110, 0.2);
  color: var(--hb-teal-dark);
}
.cp-skill-pill {
  display: inline-block;
  padding: 3px 10px;
  margin: 0 3px 3px 0;
  border-radius: var(--hb-r-pill);
  background: #fff;
  border: 1px solid var(--hb-border-2);
  font-size: 12px;
  font-weight: 500;
  color: var(--hb-ink);
}

.cp-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px dashed var(--hb-border-2);
}
.cp-cta .btn { width: 100%; justify-content: center; }

.cp-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   Career Core Tools — hub page
   ============================================================ */

/* Avatar tint for the hub */
.ch-avatar.tools {
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, 0.35), transparent 55%),
    linear-gradient(135deg, var(--hb-navy), var(--hb-plum));
}

/* The main column has extra padding + no chat messages */
.tools-stream {
  gap: 32px;
  padding-bottom: 96px;
}

/* Intro */
.tools-intro {
  padding: 8px 4px 0;
}
.tools-intro h2 {
  margin: 0 0 8px;
  font-family: var(--hb-font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--hb-navy);
  line-height: 1.2;
}
.tools-intro p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--hb-body);
  max-width: 60ch;
}

/* Section */
.tools-section {
  padding: 8px 0;
}
.tools-section-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.tools-section-head h3 {
  margin: 0;
  font-family: var(--hb-font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--hb-navy);
  letter-spacing: -0.02em;
}
.tools-section-head p {
  margin: 0;
  font-size: 14px;
  color: var(--hb-muted);
  line-height: 1.55;
}

.tools-pill {
  align-self: flex-start;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--hb-r-pill);
}
.tools-pill.free {
  background: rgba(31, 122, 110, 0.1);
  border: 1px solid rgba(31, 122, 110, 0.25);
  color: var(--hb-teal-dark);
}
.tools-pill.paid {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.2), rgba(230, 202, 101, 0.15));
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: var(--hb-gold-dark);
}
.tools-pill.soon {
  background: rgba(107, 114, 128, 0.1);
  border: 1px solid rgba(107, 114, 128, 0.22);
  color: var(--hb-muted);
}

/* Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

/* Card */
.tool-card {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 20px 20px 18px;
  border-radius: var(--hb-r-lg);
  border: 1.5px solid var(--hb-border-2);
  background: #fff;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  transition:
    transform var(--hb-duration) var(--hb-ease),
    border-color var(--hb-duration) var(--hb-ease),
    box-shadow var(--hb-duration) var(--hb-ease),
    background var(--hb-duration) var(--hb-ease);
  box-shadow: var(--hb-sh-1);
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--hb-teal);
  box-shadow: 0 18px 36px -22px rgba(10, 17, 40, 0.3);
}
.tool-card:focus-visible {
  outline: 3px solid rgba(31, 122, 110, 0.4);
  outline-offset: 2px;
}

/* Icon — all aligned to navy/gold/teal/plum */
.tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--hb-navy), var(--hb-navy-mid));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 14px -8px rgba(10, 17, 40, 0.5);
}
.tool-icon svg { width: 22px; height: 22px; }

.tool-icon.icon-path      { background: linear-gradient(135deg, var(--hb-teal-dark), var(--hb-teal)); }
.tool-icon.icon-cv        { background: linear-gradient(135deg, var(--hb-gold-dark), var(--hb-gold)); }
.tool-icon.icon-interview { background: linear-gradient(135deg, var(--hb-navy), var(--hb-teal)); }
.tool-icon.icon-shield    { background: linear-gradient(135deg, var(--hb-navy-mid), var(--hb-teal)); }
.tool-icon.icon-tracker   { background: linear-gradient(135deg, var(--hb-plum-dark), var(--hb-plum)); }
.tool-icon.icon-linkedin  { background: linear-gradient(135deg, var(--hb-navy-dark), var(--hb-teal-dark)); }
.tool-icon.icon-deep      { background: linear-gradient(135deg, var(--hb-gold-dark), var(--hb-gold-hover)); }
.tool-icon.icon-mock      { background: linear-gradient(135deg, var(--hb-teal-dark), var(--hb-teal)); }
.tool-icon.icon-dispatch  { background: linear-gradient(135deg, var(--hb-plum-dark), var(--hb-gold-dark)); }
.tool-icon.icon-jobs      { background: linear-gradient(135deg, var(--hb-navy), var(--hb-teal-dark)); }
.tool-icon.icon-salary    { background: linear-gradient(135deg, var(--hb-teal-dark), var(--hb-teal)); }
.tool-icon.icon-bursary   { background: linear-gradient(135deg, var(--hb-gold-dark), var(--hb-gold)); }
.tool-icon.icon-portfolio { background: linear-gradient(135deg, var(--hb-navy), var(--hb-plum)); }

/* Body */
.tool-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.tool-body h4 {
  margin: 0;
  font-family: var(--hb-font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--hb-navy);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.tool-body p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--hb-body);
}
.tool-cta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hb-teal-dark);
  letter-spacing: -0.01em;
}
.tool-card:hover .tool-cta { color: var(--hb-navy); }

/* Badge */
.tool-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--hb-r-pill);
}
.tool-badge.paid {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.2), rgba(230, 202, 101, 0.2));
  border: 1px solid rgba(201, 162, 39, 0.45);
  color: var(--hb-gold-dark);
}
.tool-badge.soon {
  background: rgba(107, 114, 128, 0.1);
  border: 1px solid rgba(107, 114, 128, 0.22);
  color: var(--hb-muted);
}

/* Paid tool visual treatment */
.tool-paid {
  background: linear-gradient(180deg, #FFFFFF 0%, #FDFBF4 100%);
  border-color: rgba(201, 162, 39, 0.35);
}
.tool-paid:hover {
  border-color: var(--hb-gold);
  box-shadow: 0 22px 40px -22px rgba(201, 162, 39, 0.4);
}
.tool-paid .tool-cta { color: var(--hb-gold-dark); }

/* Coming soon treatment */
.tool-coming-soon {
  opacity: 0.78;
  filter: saturate(0.85);
}
.tool-coming-soon:hover {
  opacity: 1;
  filter: saturate(1);
}
.tool-coming-soon .tool-cta {
  color: var(--hb-muted);
  font-weight: 500;
}

/* Upgrade block */
.tools-upgrade {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.tools-upgrade .btn { flex: 1; min-width: 220px; justify-content: center; }

/* Modal tweaks on the hub */
.ch-preview-sheet .ch-preview-body {
  padding: 0;
  background: #fff;
}

@media (max-width: 520px) {
  .tools-intro h2 { font-size: 24px; }
  .tool-icon { width: 42px; height: 42px; }
  .tool-icon svg { width: 20px; height: 20px; }
  .tool-body h4 { font-size: 16px; }
  .tool-body p { font-size: 13px; }
}

/* ============================================================
   Scam Shield
   ============================================================ */

/* Avatar */
.ch-avatar.shield {
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, 0.35), transparent 55%),
    linear-gradient(135deg, var(--hb-navy-mid), var(--hb-teal));
}

/* Input screen */
.ss-input { display: flex; flex-direction: column; gap: 12px; }

.ss-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--hb-ink);
  letter-spacing: -0.01em;
}
.ss-textarea {
  width: 100%;
  min-height: 180px;
  padding: 16px 18px;
  border: 1.5px solid var(--hb-border-2);
  border-radius: var(--hb-r-sm);
  background: #fff;
  font: inherit;
  font-size: 14.5px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  color: var(--hb-ink);
  resize: vertical;
  transition: border-color var(--hb-duration) var(--hb-ease), box-shadow var(--hb-duration) var(--hb-ease);
}
.ss-textarea:focus {
  outline: none;
  border-color: var(--hb-teal);
  box-shadow: 0 0 0 4px rgba(31, 122, 110, 0.14);
}
.ss-hint {
  margin: 0;
  font-size: 12.5px;
  color: var(--hb-muted);
  line-height: 1.55;
}

.ss-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
  align-items: center;
}

/* Verdict card */
.ss-verdict {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ss-verdict.ss-green {
  border-color: rgba(34, 197, 94, 0.35);
  background: linear-gradient(180deg, #F5FDF8 0%, #FFFFFF 100%);
}
.ss-verdict.ss-amber {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(180deg, #FFFAF0 0%, #FFFFFF 100%);
}
.ss-verdict.ss-red {
  border-color: rgba(239, 68, 68, 0.35);
  background: linear-gradient(180deg, #FFF5F5 0%, #FFFFFF 100%);
}

/* Score */
.ss-score {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ss-score-num {
  font-family: var(--hb-font-display);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: var(--hb-navy);
  letter-spacing: -0.03em;
}
.ss-score-num small {
  font-size: 15px;
  font-weight: 500;
  color: var(--hb-muted);
  margin-left: 6px;
  letter-spacing: 0;
}
.ss-meter {
  height: 10px;
  border-radius: 999px;
  background: var(--hb-tint-strong);
  overflow: hidden;
}
.ss-meter-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s var(--hb-ease);
}
.ss-meter-fill.ss-green { background: linear-gradient(90deg, #22c55e, #15803d); }
.ss-meter-fill.ss-amber { background: linear-gradient(90deg, #f59e0b, #d97706); }
.ss-meter-fill.ss-red   { background: linear-gradient(90deg, #ef4444, #dc2626); }

.ss-section-label {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hb-muted);
}

.ss-reasons {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ss-reasons li {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--hb-body);
}
.ss-reasons li strong {
  color: var(--hb-navy);
  font-weight: 600;
}

.ss-clean {
  margin: 0;
  padding: 12px 16px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: var(--hb-r-sm);
  font-size: 13.5px;
  color: #14532d;
  line-height: 1.55;
}

.ss-advice {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--hb-border-2);
}
.ss-advice ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.ss-advice li {
  margin: 5px 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--hb-body);
}

.ss-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px dashed var(--hb-border-2);
}
.ss-actions-row .btn { flex: 1; min-width: 180px; justify-content: center; }

/* ============================================================
   Scam Shield — URL analyser block
   ============================================================ */
.ss-url-summary {
  margin-top: 6px;
  padding: 14px 16px;
  background: rgba(10, 17, 40, 0.03);
  border: 1px solid var(--hb-border-2);
  border-radius: var(--hb-r-sm);
}
.ss-url-link {
  margin: 0 0 12px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--hb-navy);
  word-break: break-all;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--hb-border);
}
.ss-url-facts {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ss-url-facts li {
  font-size: 13px;
  line-height: 1.55;
  color: var(--hb-body);
}
.ss-url-facts li strong {
  color: var(--hb-navy);
  font-weight: 600;
}

/* ============================================================
   Career Path — summary blocks (aligned)
   ============================================================ */
.cp-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.cp-progress-bar {
  height: 6px;
  background: var(--hb-gold);
  border-radius: 3px;
  transition: width 0.3s var(--hb-ease);
  flex: 1;
}
.cp-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cp-big {
  font-family: var(--hb-font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--hb-gold);
}
.cp-prog {
  margin: 8px 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}
.cp-type {
  font-size: 0.8em;
  opacity: 0.7;
  margin-left: 6px;
}
.cp-muted {
  font-size: 0.9em;
  opacity: 0.75;
}
.cp-risk-low    { color: var(--hb-teal-dark); }
.cp-risk-medium { color: var(--hb-warn); }
.cp-risk-high   { color: var(--hb-danger); }