/* ============================================================
   CareerLah — Clean professional SaaS design system
   ============================================================ */

:root {
  --white:    #ffffff;
  --bg:       #f8f7f5;       /* warm off-white, aligned with landing */
  --bg2:      #faf9f7;
  --border:   #e8e6e2;
  --border2:  #d8d6d2;
  --text:     #1a1a1a;
  --text2:    #3a3a3a;
  --muted:    #6b6b6b;
  --light:    #f0eeeb;

  --navy:     #1b3461;
  --navy2:    #0f2244;
  --teal:     #00968a;
  --teal2:    #007a6f;
  --teal3:    #00b5a8;
  --teal-bg:  #e5f5f3;
  --teal-mid: rgba(0,150,138,.12);

  --green:    #16a34a;
  --amber:    #ca8a04;
  --red:      #dc2626;
  --blue:     #0a6fbe;

  --r:   10px;
  --r2:  14px;
  --r3:  20px;

  /* LinkedIn-inspired neutral shadow */
  --sh:  0 0 0 1px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.06);
  --sh2: 0 0 0 1px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.10);
  --sh3: 0 0 0 1px rgba(0,0,0,.1),  0 16px 40px rgba(0,0,0,.14);

  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Fira Mono", monospace;

  /* Mascot / Gen Z theme */
  --mascot-accent: var(--teal);
  --mascot-bg: var(--teal-bg);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 58px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

.topbar-inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover .brand-name { color: var(--teal); }

.brand-mark {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal2) 100%);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity .15s;
  box-shadow: 0 1px 4px rgba(0,150,138,.3);
}

.brand:hover .brand-mark { opacity: .85; }

.auth-brand-mark {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.025em;
  transition: color .15s;
}

.brand-name span { color: var(--teal); }

.brand-pill {
  font-family: var(--mono);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Nav links (Discover, History) */
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-size: 0.8375rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: color .15s, background .15s;
  white-space: nowrap;
}

.nav-link:hover { color: var(--navy); background: var(--bg); }
.nav-link.active { color: var(--navy); font-weight: 600; background: var(--bg); }

/* Hamburger button — hidden on desktop */
.topbar-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.topbar-hamburger:hover {
  background: var(--bg);
  border-color: #aab4c8;
}

/* Mobile nav — collapse nav links behind hamburger */
@media (max-width: 900px) {
  .topbar-hamburger { display: flex; }

  .topbar-nav {
    display: none;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem;
    gap: 0.25rem;
    margin-left: 0;
    border-left: none;
    z-index: 499;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
  }

  .topbar-nav.mobile-open { display: flex; }

  .nav-link {
    width: 100%;
    padding: 0.6rem 0.875rem;
    font-size: 0.875rem;
  }
}

/* Back button */
.btn-back {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}

.btn-back:hover {
  color: var(--navy);
  border-color: #a8b8cc;
  background: var(--bg);
}

/* Sign in / Register */
.btn-signin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 7px;
  text-decoration: none;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.btn-signin:hover { color: var(--navy); background: var(--bg); }

.btn-register { box-shadow: 0 1px 6px rgba(0,150,138,.25) !important; }

/* ============================================================
   VIEW TRANSITIONS
   ============================================================ */
.view {
  animation: fadeSlideIn .35s ease both;
}

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

.view-leaving {
  animation: fadeSlideOut .25s ease forwards;
}

@keyframes fadeSlideOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-12px); }
}

/* ============================================================
   HERO (form page) — clean split layout
   ============================================================ */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Subtle gradient behind the right side */
.hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,150,138,.04) 0%, rgba(27,52,97,.06) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 3rem;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem 2.5rem; }
}

.hero-left { }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--teal2);
  background: var(--teal-bg);
  border: 1px solid rgba(0,150,138,.2);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: dotPulse 2s ease infinite;
  flex-shrink: 0;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--teal);
}

.hero-desc {
  font-size: 1rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 1.75rem;
  line-height: 1.75;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
}

/* Right side preview panel */
.hero-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--sh2);
}

.hero-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.hero-preview-company {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.hero-preview-role {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.hero-preview-score {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-preview-score-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  letter-spacing: -0.04em;
  font-family: var(--mono);
}

.hero-preview-score-label {
  font-size: 0.6rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.hero-preview-bars {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.hpb-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hpb-label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted);
}

.hpb-track {
  height: 5px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.hpb-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--teal);
  animation: hpbGrow 1.4s cubic-bezier(.34,1.1,.64,1) both;
}

@keyframes hpbGrow {
  from { width: 0 !important; }
}

.hero-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border);
}

.hpb-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.hpb-tag-green { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.hpb-tag-red   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.hpb-tag-blue  { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

.hero-wave {
  display: none; /* no wave needed for light hero */
}

/* ============================================================
   HOW IT WORKS STRIP
   ============================================================ */
.steps-strip {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
}

.steps-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  padding: 0 0.875rem;
}

.step:first-child { padding-left: 0; }
.step:last-child  { padding-right: 0; }

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text {
  font-size: 0.8rem;
  color: var(--text2);
  line-height: 1.45;
}

.step-text strong { color: var(--text); font-weight: 600; }

.step-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 1px;
  background: var(--border2);
  margin-top: 14px;
  opacity: .5;
}

@media (max-width: 600px) {
  .steps-inner { flex-direction: column; align-items: flex-start; gap: 0.875rem; }
  .step { padding: 0; }
  .step-arrow { display: none; }
}

/* ============================================================
   FORM SECTION
   ============================================================ */
/* ── Unified page hero (all pages except home) ───────────────── */
/* ══════════════════════════════════════════════════════
   Unified Section Banner System
   sb- = section-banner shorthand
════════════════════════════════════════════════════════ */
.section-banner {
  position: relative;
  overflow: hidden;
  padding: 2rem 1.5rem 4.5rem;
}

/* ── Wavy bottom edge ── */
.section-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 72' preserveAspectRatio='none'><path d='M0,48 C120,32 240,64 360,48 C480,32 600,64 720,48 C840,32 960,64 1080,48 C1200,32 1320,60 1440,48 L1440,72 L0,72 Z' fill='white' fill-opacity='0.08'/><path d='M0,52 C180,30 360,68 540,48 C720,28 900,66 1080,50 C1200,38 1340,58 1440,52 L1440,72 L0,72 Z' fill='white' fill-opacity='0.12'/><path d='M0,58 C240,38 480,72 720,56 C960,40 1200,70 1440,58 L1440,72 L0,72 Z' fill='white'/></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 2;
}
.sb-bg { position: absolute; inset: 0; pointer-events: none; }
.sb-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
}
.sb-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.sb-copy { flex: 1; min-width: 0; max-width: 480px; }
.sb-mascot {
  flex-shrink: 0;
  width: 140px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sb-mascot svg { animation: sbFloat 3.6s ease-in-out infinite; }
@keyframes sbFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
.sb-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.65rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.sb-title {
  font-size: clamp(1.375rem, 2.5vw, 1.875rem) !important;
  font-weight: 800 !important;
  color: #fff !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em !important;
  margin: 0 0 0.55rem !important;
}
.sb-sub {
  font-size: 0.875rem !important;
  color: rgba(255,255,255,.62) !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}
.sb-pills { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.875rem; }
.sb-pill {
  padding: 0.18rem 0.55rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  font-size: 0.7rem;
  color: rgba(255,255,255,.65);
  font-weight: 500;
}

/* Per-section colour themes */
.banner-fit {
  background: linear-gradient(135deg, #0c1f40 0%, #003d36 100%) !important;
}
.banner-fit .sb-blob-1 { background:#00968a; width:270px; height:270px; top:-80px; right:12%; opacity:.2; }
.banner-fit .sb-blob-2 { background:#7ffff4; width:170px; height:170px; bottom:-60px; left:5%; opacity:.09; }
.banner-fit  .sb-accent { color:#7ffff4 !important; }

.banner-discover {
  background: linear-gradient(135deg, #0c1f40 0%, #2d1300 100%) !important;
}
.banner-discover .sb-blob-1 { background:#f59e0b; width:270px; height:270px; top:-80px; right:12%; opacity:.18; }
.banner-discover .sb-blob-2 { background:#fcd34d; width:170px; height:170px; bottom:-60px; left:5%; opacity:.08; }
.banner-discover .sb-accent { color:#fcd34d !important; }

.banner-career {
  background: linear-gradient(135deg, #0c1f40 0%, #1e0848 100%) !important;
}
.banner-career .sb-blob-1 { background:#a78bfa; width:270px; height:270px; top:-80px; right:12%; opacity:.22; }
.banner-career .sb-blob-2 { background:#c4b5fd; width:170px; height:170px; bottom:-60px; left:5%; opacity:.1; }
.banner-career  .sb-accent { color:#c4b5fd !important; }

.banner-history {
  background: linear-gradient(135deg, #0c1f40 0%, #0b2558 100%) !important;
}
.banner-history .sb-blob-1 { background:#3b82f6; width:270px; height:270px; top:-80px; right:12%; opacity:.2; }
.banner-history .sb-blob-2 { background:#93c5fd; width:170px; height:170px; bottom:-60px; left:5%; opacity:.08; }
.banner-history .sb-accent { color:#93c5fd !important; }

.banner-resume {
  background: linear-gradient(135deg, #0c1f40 0%, #042b1a 100%) !important;
}
.banner-resume .sb-blob-1 { background:#10b981; width:270px; height:270px; top:-80px; right:12%; opacity:.2; }
.banner-resume .sb-blob-2 { background:#6ee7b7; width:170px; height:170px; bottom:-60px; left:5%; opacity:.08; }
.banner-resume  .sb-accent { color:#6ee7b7 !important; }

@media (max-width: 640px) {
  .section-banner { padding: 1.5rem 1.25rem; }
  .sb-mascot { display: none; }
}

.page-hero {
  background: linear-gradient(135deg, #0f2744 0%, #0d4f5c 60%, #0a6e6e 100%);
  position: relative;
  overflow: hidden;
  padding: 3rem 1.5rem 2.5rem;
}
/* Flex layout wrapper — wraps text + visual for pages that have a visual */
.page-hero-layout {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.page-hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
}
.page-hero-blob-1 {
  width: 320px; height: 320px;
  background: var(--teal);
  top: -80px; right: 10%;
}
.page-hero-blob-2 {
  width: 200px; height: 200px;
  background: #3b82f6;
  bottom: -60px; left: 5%;
}
.page-hero-inner {
  flex: 1;
  min-width: 0;
  max-width: 500px;
}
/* When page-hero-inner is a direct child (no layout wrapper, e.g. history) */
.page-hero > .page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.page-hero-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem) !important;
  font-weight: 800 !important;
  color: #fff !important;
  line-height: 1.2;
  margin: 0 0 0.75rem !important;
  letter-spacing: -0.02em;
}
.page-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.75) !important;
  margin-bottom: 1.25rem;
  line-height: 1.5;
  max-width: 480px;
}
.page-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.page-pill {
  padding: 0.25rem 0.6rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}
@media (max-width: 600px) {
  .page-hero { padding: 2.25rem 1.25rem 2rem; }
  .page-hero-visual { display: none; }
}

/* ══════════════════════════════════════════════════════
   Analyse Fit — slim page bar + unified form card
════════════════════════════════════════════════════════ */
.fit-page-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
}
.fit-page-bar-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.fit-page-bar-icon {
  width: 26px;
  height: 26px;
  background: var(--teal);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}
.fit-page-bar-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.fit-page-bar-sep {
  color: var(--border);
  font-size: 0.9rem;
}
.fit-page-bar-sub {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Unified fit form card */
.fit-unified-card {
  max-width: 640px !important;
  margin: 0 auto;
}

/* Form section */
.fit-section {
  margin-bottom: 0;
}
.fit-section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.fit-section-num {
  width: 20px;
  height: 20px;
  background: var(--teal);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Separator between sections */
.fit-section-sep {
  border: none;
  border-top: 1px dashed var(--border);
  margin: 1.5rem 0;
}

/* Actions row */
.fit-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  gap: 0.75rem;
}
.fit-form-actions-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.fit-time-note {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}


/* ── Fit hero visual (score ring card) ──────────────────────── */
.fit-hero-visual {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.fit-visual-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  width: 190px;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.fit-ring-svg {
  width: 80px;
  height: 80px;
  transform: rotate(-90deg);
}
.fit-ring-bg { fill: none; stroke: rgba(255,255,255,0.12); stroke-width: 8; }
.fit-ring-fg { fill: none; stroke: url(#fitGrad); stroke-width: 8; stroke-linecap: round;
               stroke-dasharray: 220; stroke-dashoffset: 56; }
.fit-ring-num {
  font-size: 18px; font-weight: 800; fill: #fff;
  text-anchor: middle; dominant-baseline: middle;
  transform: rotate(90deg); transform-origin: 40px 40px;
}
.fit-ring-lbl {
  font-size: 8px; fill: rgba(255,255,255,0.55);
  text-anchor: middle; dominant-baseline: middle;
  transform: rotate(90deg); transform-origin: 40px 40px;
}
.fit-visual-label {
  font-size: 0.6875rem; font-weight: 600; color: rgba(255,255,255,0.55);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.fit-visual-bars { width: 100%; display: flex; flex-direction: column; gap: 0.35rem; }
.fit-bar-row { display: flex; align-items: center; gap: 0.5rem; }
.fit-bar-name { font-size: 0.625rem; color: rgba(255,255,255,0.55); min-width: 48px; }
.fit-bar-track { flex: 1; height: 5px; background: rgba(255,255,255,0.12); border-radius: 3px; }
.fit-bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #00b5a8, #3b82f6); }

/* ── History hero visual ────────────────────────────────────── */
.hist-hero-visual { flex-shrink: 0; position: relative; z-index: 1; }
.hist-visual-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 18px;
  padding: 1rem 1.25rem;
  width: 220px;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.hist-visual-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.5rem;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.07);
}
.hist-visual-dot {
  width: 26px; height: 26px;
  border-radius: 7px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.hist-visual-info { flex: 1; min-width: 0; }
.hist-visual-name {
  font-size: 0.6375rem; font-weight: 600; color: #fff;
  line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hist-visual-meta { font-size: 0.5625rem; color: rgba(255,255,255,0.45); margin-top: 0.1rem; }

/* ── Discover hero visual (roles list card) ─────────────────── */
.disc-hero-visual {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.disc-visual-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 18px;
  padding: 1rem 1.25rem;
  width: 210px;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.disc-visual-title {
  font-size: 0.625rem; font-weight: 700; color: rgba(255,255,255,0.45);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.1rem;
}
.disc-role-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
}
.disc-role-dot {
  width: 28px; height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
}
.disc-role-dot-1 { background: rgba(0,181,168,0.25); }
.disc-role-dot-2 { background: rgba(59,130,246,0.25); }
.disc-role-dot-3 { background: rgba(168,85,247,0.25); }
.disc-role-info { flex: 1; min-width: 0; }
.disc-role-name { font-size: 0.6875rem; font-weight: 700; color: #fff; line-height: 1.2; }
.disc-role-ind  { font-size: 0.5625rem; color: rgba(255,255,255,0.45); margin-top: 0.1rem; }
.disc-role-pct  { font-size: 0.625rem; font-weight: 700; color: #7ffff4; }

.form-section-wrap {
  background: #f8f9ff;
  padding: 3rem 1.5rem 5rem;
  min-height: calc(100vh - 58px);
}

.form-container {
  max-width: 880px;
  margin: 0 auto;
}

/* Wizard card shell */
.wizard-container {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.08);
  padding: 2.25rem 2rem 2.5rem;
}

.form-title-row {
  margin-bottom: 1.5rem;
}

.form-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.form-title-sub {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

.form-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  box-shadow: var(--sh);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
}

.panel-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.5625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.panel-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.panel-body {
  padding: 1.125rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

/* Upload zone */
.upload-zone {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  border: 1.5px dashed var(--border);
  border-radius: var(--r);
  background: var(--bg);
  padding: 0.875rem 1rem;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--teal);
  background: var(--teal-bg);
}

.upload-zone input { display: none; }

.upload-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.upload-info { flex: 1; min-width: 0; }

.upload-main {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-formats {
  font-family: var(--mono);
  font-size: 0.5625rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.15rem;
}

.or-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.8125rem;
  margin: 0.85rem 0;
}

.or-row::before, .or-row::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Inputs */
input[type="text"],
textarea {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  transition: border-color .15s, box-shadow .15s;
  line-height: 1.55;
}

input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,150,138,.1);
}

input::placeholder, textarea::placeholder { color: #ababab; }
textarea { resize: vertical; min-height: 90px; }

/* Job toggle */
.source-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.125rem;
}

.source-toggle input[type="radio"] { display: none; }

.source-toggle label {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  transition: all .15s;
  background: var(--white);
}

.source-toggle input:checked + label {
  color: var(--teal2);
  border-color: var(--teal);
  background: var(--teal-bg);
}

/* Submit row */
.form-submit-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background .15s, box-shadow .15s, transform .1s;
  box-shadow: 0 1px 3px rgba(0,150,138,.3), 0 2px 8px rgba(0,150,138,.2);
  white-space: nowrap;
}

.btn-primary:hover:not(:disabled) {
  background: var(--teal2);
  box-shadow: 0 2px 6px rgba(0,150,138,.35), 0 4px 16px rgba(0,150,138,.25);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0,150,138,.2);
}

.btn-primary:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Error */
.err-msg {
  margin-top: 1rem;
  padding: 1rem 1.125rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 3px solid var(--red);
  border-radius: var(--r);
  color: #b91c1c;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* LinkedIn error */
.li-error { display: flex; align-items: flex-start; gap: 0.75rem; }
.li-error-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: .1rem; }
.li-error strong { display: block; font-weight: 600; color: #b91c1c; margin-bottom: .3rem; }
.li-error p { font-size: .875rem; color: var(--muted); margin: 0 0 .6rem; line-height: 1.5; }
.li-switch-btn {
  background: var(--navy); color: #fff; border: none; border-radius: 6px;
  padding: .4rem .875rem; font: inherit; font-size: .8125rem; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.li-switch-btn:hover { background: var(--teal); }

/* ============================================================
   RESULTS VIEW
   ============================================================ */
/* results-hero: inherits page-hero via class, just adjusts layout */
.results-hero {
  padding: 0;
}

.results-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

@media (max-width: 640px) {
  .results-hero-inner { flex-direction: column; text-align: center; }
}

.results-eyebrow {
  font-family: var(--mono);
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.5rem;
  display: block;
}

.results-headline {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  color: #fff !important;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.results-sub {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65) !important;
  max-width: 440px;
}

/* Score ring */
.score-ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  animation: scaleIn .5s cubic-bezier(0.34,1.15,0.64,1) .35s both;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(.7); }
  to   { opacity: 1; transform: scale(1); }
}

.score-ring-svg {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.12);
  stroke-width: 10;
}

.ring-fg {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 276;
  stroke-dashoffset: 276;
}

.ring-num {
  fill: #fff;
  font-size: 24px;
  font-weight: 700;
  font-family: var(--mono);
  text-anchor: middle;
  dominant-baseline: middle;
  transform: rotate(90deg);
  transform-origin: 55px 55px;
}

.ring-label {
  fill: rgba(255,255,255,0.6);
  font-size: 10px;
  font-family: var(--mono);
  text-anchor: middle;
  dominant-baseline: middle;
  transform: rotate(90deg);
  transform-origin: 55px 55px;
}

.score-pill {
  font-family: var(--mono);
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  border: 1.5px solid;
}

.pill-strong   { color: #059669; border-color: #6ee7b7; background: #f0fdf4; }
.pill-good     { color: #0284c7; border-color: #93c5fd; background: #f0f9ff; }
.pill-moderate { color: #6d28d9; border-color: #c4b5fd; background: #f5f3ff; }
.pill-stretch  { color: #b45309; border-color: #fcd34d; background: #fffbeb; }
.pill-weak     { color: #dc2626; border-color: #fca5a5; background: #fef2f2; }

/* Results body */
.results-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ---- Company Background Banner ---- */
.company-bg-banner {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: var(--r2);
  padding: 1.25rem 1.5rem 1.375rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--sh);
  animation: cardIn .35s ease both;
}

.company-bg-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.company-bg-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.company-bg-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.1rem;
}

.company-bg-sub {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.company-bg-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.company-bg-body ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.company-bg-body li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.8375rem;
  color: var(--text2);
  line-height: 1.6;
}

.company-bg-body li::before {
  content: "▸";
  color: var(--navy);
  font-size: 0.65rem;
  flex-shrink: 0;
  margin-top: 0.1em;
}

/* ---- Section label ---- */
.section-label {
  font-family: var(--mono);
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.875rem;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 620px) {
  .cards-grid { grid-template-columns: 1fr; }
}

/* Analysis card */
.acard {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  box-shadow: var(--sh);
  overflow: hidden;
  animation: cardIn .35s ease both;
  animation-delay: calc(var(--i, 0) * 55ms);
  transition: box-shadow .2s, transform .2s;
  position: relative;
}

/* Colored top accent line */
.acard::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color, var(--teal));
  border-radius: var(--r2) var(--r2) 0 0;
}

.acard:hover {
  box-shadow: var(--sh2);
  transform: translateY(-2px);
}

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

.acard-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.acard-icon { font-size: 0.9375rem; flex-shrink: 0; line-height: 1; }

.acard-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.acard-body {
  padding: 0.875rem 1rem 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text);
}

.acard-body p { margin: 0 0 0.45em; color: var(--muted); }
.acard-body p:last-child { margin-bottom: 0; }

.acard-body ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 0.4rem;
}

.acard-body li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.875rem; line-height: 1.45;
}

.acard-body li::before {
  content: "–";
  color: var(--color, var(--teal));
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.025rem;
}

.acard-body ul.nested { padding-left: 1.25rem; margin-top: .25rem; }
.acard-body ul.nested li::before { color: var(--muted); }

.acard-body .subhead {
  font-family: var(--mono);
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color, var(--teal));
  margin: 0.875rem 0 0.4rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
}

.acard-body strong { font-weight: 600; color: var(--text); }

/* Skill tags */
.skill-tags {
  display: flex; flex-wrap: wrap; gap: 0.35rem; padding-top: 0.125rem;
}

.skill-tag {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: 20px;
  background: color-mix(in srgb, var(--tc, #00968a) 10%, white);
  color: color-mix(in srgb, var(--tc, #00968a) 85%, #1b2940);
  border: 1px solid color-mix(in srgb, var(--tc, #00968a) 25%, white);
  animation: tagIn .3s ease both;
  animation-delay: calc(var(--t, 0) * 45ms + 150ms);
  cursor: default;
  transition: transform .15s;
}

.skill-tag:hover { transform: scale(1.04); }

@keyframes tagIn {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* ============================================================
   RECOMMENDATION SECTION
   ============================================================ */
.rec-section {
  animation: cardIn .4s ease both;
  animation-delay: calc(7 * 70ms);
}

.rec-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.rec-header-icon { font-size: 1rem; }

.rec-header-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}

.rec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) { .rec-grid { grid-template-columns: 1fr; } }

/* Verdict */
.rec-verdict {
  grid-column: 1 / -1;
  background: var(--navy);
  border-radius: var(--r);
  padding: 1.125rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.rec-verdict p  { color: rgba(255,255,255,.8); margin: 0 0 .4em; }
.rec-verdict p:last-child { margin: 0; }
.rec-verdict strong { color: #fff; }
.rec-verdict ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.rec-verdict li { display: flex; gap: .5rem; font-size: .875rem; color: rgba(255,255,255,.78); }
.rec-verdict li::before { content: "–"; color: var(--teal); font-weight: 700; flex-shrink: 0; }
.rec-verdict .subhead { color: rgba(0,212,200,.8); font-family: var(--mono); font-size: .5rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-bottom-color: rgba(255,255,255,.12); margin: .875rem 0 .4rem; padding-bottom: .25rem; }

/* Checklist */
.rec-checklist {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sh);
  overflow: hidden;
}

.rec-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
}

.rec-card-head-icon { font-size: 0.875rem; }

.rec-card-head-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

.rec-card-head-counter {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.5625rem;
  font-weight: 700;
  color: var(--muted);
}

.check-progress {
  height: 3px;
  background: var(--border);
}

.check-progress-bar {
  height: 100%;
  background: var(--teal);
  transition: width .3s ease;
}

.check-list { padding: 0.625rem 0.75rem; display: flex; flex-direction: column; gap: 0.25rem; }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  transition: background .12s;
}

.check-item:hover { background: var(--bg); }
.check-item input { display: none; }

.check-box {
  width: 17px; height: 17px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  background: var(--white);
  transition: all .15s;
}

.check-item input:checked ~ .check-box {
  background: var(--teal);
  border-color: var(--teal);
}

.check-item input:checked ~ .check-box::after {
  content: "";
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}

.check-text {
  font-size: 0.8375rem;
  line-height: 1.45;
  color: var(--text);
  transition: color .15s;
}

.check-item input:checked ~ .check-text {
  color: var(--muted);
  text-decoration: line-through;
}

/* Strategy */
.rec-strategy {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sh);
  overflow: hidden;
}

.strategy-list { padding: 0.625rem 0.75rem; display: flex; flex-direction: column; gap: 0.35rem; }

.strategy-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.45rem 0.625rem;
  background: var(--teal-bg);
  border-radius: 6px;
  font-size: 0.8375rem;
  line-height: 1.45;
  color: var(--text);
  animation: cardIn .3s ease both;
  animation-delay: calc(var(--j,0) * 55ms + 500ms);
}

.tip-icon { display: none; }
.tip-num {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 600;
  color: var(--muted);
  width: 18px;
  padding-top: .1rem;
}

/* ============================================================
   TOPBAR ACTIONS
   ============================================================ */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* btn-hist is now .nav-link — keep stub for JS show/hide compatibility */
.btn-hist { display: none; }

/* User menu */
.user-menu {
  position: relative;
  display: none;
  align-items: center;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.3rem 0.65rem 0.3rem 0.35rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.user-btn:hover {
  border-color: #aab4c8;
  background: var(--bg);
}

.user-avatar-wrap {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.user-avatar-init {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}

.user-name {
  font-weight: 600;
  font-size: 0.8125rem;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 480px) { .user-name { display: none; } }

.user-chevron {
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .15s;
}

.user-btn[aria-expanded="true"] .user-chevron { transform: rotate(180deg); }

/* Dropdown */
.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  box-shadow: var(--sh2);
  z-index: 600;
  overflow: hidden;
  animation: fadeSlideIn .15s ease;
}

.dropdown-info {
  padding: 0.875rem 1rem;
}

.dropdown-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.dropdown-email {
  font-family: var(--mono);
  font-size: 0.5625rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  word-break: break-all;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background .12s;
}

.dropdown-item svg { color: var(--muted); flex-shrink: 0; }
.dropdown-item:hover { background: var(--bg); }
.dropdown-item:hover svg { color: var(--navy); }

.dropdown-signout { color: var(--red); }
.dropdown-signout svg { color: #fca5a5; }
.dropdown-signout:hover { background: #fef2f2; }
.dropdown-signout:hover svg { color: var(--red); }

/* Save profile row */
.save-profile-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding-top: 0.25rem;
}

.btn-save-profile {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 0.375rem 0.75rem;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.btn-save-profile:hover {
  background: var(--border);
  border-color: #aab4c8;
}

.save-profile-hint {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

/* ============================================================
   HISTORY VIEW
   ============================================================ */

.hist-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.hist-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.hist-count {
  font-family: var(--mono);
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.hist-clear-btn {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--red);
  background: transparent;
  border: 1px solid #fecaca;
  border-radius: var(--r);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: background .15s;
}

.hist-clear-btn:hover { background: #fef2f2; }

.hist-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.hist-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0;
  box-shadow: var(--sh);
  animation: cardIn .3s ease both;
  animation-delay: calc(var(--i, 0) * 40ms);
  transition: box-shadow .18s, transform .18s;
  overflow: hidden;
}

.hist-card:hover {
  box-shadow: var(--sh2);
  transform: translateY(-1px);
}

/* Top row: score + title + actions */
.hist-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem 0.875rem 1.125rem;
}

/* Recommendation preview panel */
.hist-rec-preview {
  border-top: 1px solid var(--border);
  background: #f8f9fc;
  padding: 0.75rem 1.125rem 0.875rem;
}

.hist-rec-verdict {
  font-size: 0.8125rem;
  color: var(--text);
  line-height: 1.55;
  margin: 0 0 0.5rem;
  font-style: italic;
}

.hist-rec-bullets {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.hist-rec-bullets li {
  font-size: 0.775rem;
  color: var(--muted);
  line-height: 1.5;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.hist-rec-bullets li::before {
  content: "→";
  font-size: 0.65rem;
  color: #1163b5;
  flex-shrink: 0;
  font-weight: 700;
}

.hist-score {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid;
}

.hist-score-strong   { color: #10b981; border-color: #10b981; background: #f0fdf4; }
.hist-score-good     { color: #0ea5e9; border-color: #0ea5e9; background: #f0f9ff; }
.hist-score-moderate { color: #6366f1; border-color: #6366f1; background: #f5f3ff; }
.hist-score-stretch  { color: #f59e0b; border-color: #f59e0b; background: #fffbeb; }
.hist-score-weak     { color: #ef4444; border-color: #ef4444; background: #fef2f2; }

.hist-card-body {
  flex: 1;
  min-width: 0;
}

.hist-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.3rem;
}

.hist-card-meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.hist-pill {
  font-family: var(--mono);
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  border: 1.5px solid;
}

/* reuse pill- color classes from score-pill */
.hist-pill.pill-strong   { color: #059669; border-color: #6ee7b7; background: #f0fdf4; }
.hist-pill.pill-good     { color: #0284c7; border-color: #93c5fd; background: #f0f9ff; }
.hist-pill.pill-moderate { color: #4f46e5; border-color: #c4b5fd; background: #f5f3ff; }
.hist-pill.pill-stretch  { color: #b45309; border-color: #fcd34d; background: #fffbeb; }
.hist-pill.pill-weak     { color: #b91c1c; border-color: #fca5a5; background: #fef2f2; }

.hist-date {
  font-family: var(--mono);
  font-size: 0.5rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.hist-card-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}

.hist-view-btn {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal2);
  background: var(--teal-bg);
  border: 1.5px solid var(--teal);
  border-radius: var(--r);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.hist-view-btn:hover {
  background: var(--teal);
  color: var(--white);
}

.hist-del-btn {
  font: inherit;
  font-size: 0.75rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  line-height: 1;
  transition: color .15s, border-color .15s, background .15s;
}

.hist-del-btn:hover {
  color: var(--red);
  border-color: #fecaca;
  background: #fef2f2;
}

.hist-loading {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  font-family: var(--mono);
}

.hist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  gap: 0.75rem;
  color: var(--muted);
}

.hist-empty-icon { font-size: 2.5rem; }

/* History empty — mascot theme */
.hist-empty-mascot { gap: 0.5rem; }
.hist-empty-mascot-wrap {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}
.hist-empty-mascot-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(27, 52, 97, 0.1));
}
.hist-empty-sub {
  font-size: 0.8125rem;
  color: var(--teal);
  font-weight: 500;
}

.hist-empty-text {
  font-size: 0.9375rem;
  text-align: center;
}

/* ============================================================
   LOADING OVERLAY
   ============================================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem;
  animation: fadeSlideIn .25s ease;
}

.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.loading-spinner svg {
  animation: spinLoader 1s linear infinite;
}

@keyframes spinLoader {
  to { transform: rotate(360deg); }
}

.loading-msg {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  min-height: 1.6em;
  transition: opacity .2s;
}

.loading-msg.fade-swap { opacity: 0; }

.loading-bar-wrap {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,.15);
  border-radius: 99px;
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 99px;
  transition: width .3s ease;
}

.loading-sub {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.4);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

/* Loading overlay — mascot theme */
.loading-mascot .loading-inner { gap: 1rem; }
.loading-mascot-wrap {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loading-mascot-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(27, 52, 97, 0.15));
  animation: mascotBounce 1.2s ease-in-out infinite;
}
@keyframes mascotBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-6px) scale(1.05); }
}
.loading-mascot .loading-msg { font-size: 1.0625rem; }
.loading-sub-fun {
  color: rgba(255,255,255,.55);
  font-family: var(--font);
  letter-spacing: 0;
}

@keyframes floatBob {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,.03) 0,
    rgba(255,255,255,.03) 1px,
    transparent 0,
    transparent 50%
  );
  background-size: 24px 24px;
}

.profile-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.profile-hero-avatar { flex-shrink: 0; }

.profile-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.2);
  object-fit: cover;
}

.profile-avatar-fallback {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
}

.profile-hero-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.025em;
  margin-bottom: 0.4rem;
}

.profile-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.profile-method-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.625rem;
  border-radius: 20px;
  border: 1px solid;
}

.badge-google {
  color: #93c5fd;
  border-color: rgba(147,197,253,.4);
  background: rgba(147,197,253,.1);
}

.badge-email {
  color: #6ee7b7;
  border-color: rgba(110,231,183,.4);
  background: rgba(110,231,183,.1);
}

.profile-email {
  font-family: var(--mono);
  font-size: 0.5625rem;
  color: rgba(255,255,255,.55);
  letter-spacing: 0.03em;
}

/* Stats strip */
.profile-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 4rem;
}

.profile-stats-strip {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  box-shadow: var(--sh);
  padding: 1.25rem 1.75rem;
  margin-bottom: 1.5rem;
  gap: 0;
}

.profile-stat {
  flex: 1;
  text-align: center;
}

.stat-value {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--mono);
}

.profile-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* Profile sections */
.profile-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  box-shadow: var(--sh);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.profile-section-head {
  padding: 1.125rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
}

.profile-section-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.profile-section-sub {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}

.profile-form-grid {
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) { .profile-form-grid { grid-template-columns: 1fr; } }

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0 1.5rem 1.25rem;
}

/* fields inside .profile-form-grid don't need their own padding */
.profile-form-grid .profile-field { padding: 0; }

.profile-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.field-note {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 0.2rem;
}

.field-note code {
  font-family: var(--mono);
  font-size: 0.6875rem;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1rem 0.3rem;
  color: var(--navy);
}

.input-disabled {
  background: var(--bg) !important;
  color: var(--muted) !important;
  cursor: not-allowed;
}

.profile-actions {
  padding: 0.875rem 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
  background: #fafbfc;
}

.profile-save-btn {
  padding: 0.625rem 1.5rem;
  font-size: 0.9rem;
}

/* Alerts */
.profile-alert {
  margin: 0.75rem 1.5rem 0;
  padding: 0.65rem 0.875rem;
  border-radius: var(--r);
  font-size: 0.875rem;
  line-height: 1.4;
}

.profile-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.profile-alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

/* Danger zone */
.profile-danger-section {
  border-color: #fecaca;
}

.profile-danger-section .profile-section-head { background: #fff5f5; border-bottom-color: #fecaca; }

.danger-title { color: var(--red); }

.btn-danger {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--red);
  background: white;
  border: 1.5px solid #fecaca;
  border-radius: var(--r);
  padding: 0.625rem 1.5rem;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.btn-danger:hover {
  background: #fef2f2;
  border-color: var(--red);
}

/* ============================================================
   AUTH PAGES — profile.html (keeps auth-body)
   ============================================================ */
.auth-body {
  background: var(--bg);
  min-height: 100vh;
}

.auth-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1.25rem 4rem;
  min-height: calc(100vh - 60px);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  box-shadow: var(--sh2);
  padding: 2rem 2rem 1.75rem;
  animation: fadeSlideIn .3s ease both;
}

/* ============================================================
   AUTH SPLIT LAYOUT — login.html / register.html
   ============================================================ */
/* ============================================================
   AUTH PAGES (login / register)
   ============================================================ */

.auth-page {
  margin: 0;
  padding: 0;
  background: #111;
  min-height: 100vh;
}

.auth-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Left branded panel ── */
.auth-panel-left {
  flex: 1;
  background: linear-gradient(160deg, #0c1f40 0%, #0f2a50 60%, #0a3030 100%);
  display: flex;
  flex-direction: column;
  padding: 2.5rem 3rem 2.5rem 3rem;
  position: relative;
  overflow: hidden;
}

/* Subtle dot grid */
.auth-panel-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.auth-logo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.auth-logo-mark {
  width: 26px;
  height: 26px;
  background: var(--teal);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-logo-name {
  font-size: 0.9375rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
}

.auth-panel-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0 2rem;
  max-width: 400px;
}

.auth-panel-headline {
  font-size: clamp(1.875rem, 3vw, 2.625rem);
  font-weight: 900;
  color: white;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin: 0 0 1rem;
}

.auth-panel-sub {
  font-size: 0.9375rem;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  margin: 0 0 2rem;
}

/* Mini product preview card */
.auth-preview-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 1.125rem;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(4px);
}

.auth-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.auth-preview-company {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.auth-preview-logo {
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,.12);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8125rem;
  color: white;
  flex-shrink: 0;
}

.auth-preview-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.auth-preview-role {
  font-size: 0.6875rem;
  color: rgba(255,255,255,.45);
  margin-top: 0.1rem;
}

.auth-preview-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-preview-bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.625rem;
  color: rgba(255,255,255,.45);
  font-family: var(--mono);
}

.auth-preview-track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,.1);
  border-radius: 999px;
  overflow: hidden;
}

.auth-preview-fill {
  height: 100%;
  background: #00c4b4;
  border-radius: 999px;
}

.auth-panel-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-panel-features li {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.5);
  padding-left: 1rem;
  position: relative;
}

.auth-panel-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
}

.auth-panel-note {
  position: relative;
  z-index: 1;
  font-size: 0.6875rem;
  font-family: var(--mono);
  color: rgba(255,255,255,.25);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

/* ── Right form panel ── */
.auth-panel-right {
  width: 460px;
  flex-shrink: 0;
  background: #fafaf9;
  border-left: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: stretch;
  overflow-y: auto;
}

.auth-form-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2.75rem;
  width: 100%;
}

.auth-form-top {
  margin-bottom: auto;
}

.auth-form-back {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .12s;
}

.auth-form-back:hover { color: var(--text); }

.auth-form-header {
  padding: 3rem 0 1.75rem;
}

.auth-form-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.045em;
  margin: 0 0 0.375rem;
}

.auth-form-sub {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Google button */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .12s, background .12s;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

.btn-google:hover {
  border-color: #b0aca5;
  background: #fafaf9;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Alert */
.auth-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 3px solid var(--red);
  color: #b91c1c;
  font-size: 0.8125rem;
  padding: 0.625rem 0.875rem;
  border-radius: 7px;
  margin-bottom: 1rem;
  line-height: 1.45;
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.auth-field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-field-hint {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--muted);
  font-family: var(--mono);
}

.auth-field input {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color .12s, box-shadow .12s;
  box-sizing: border-box;
  -webkit-appearance: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.auth-field input::placeholder { color: #b8b5af; }

.auth-field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,150,138,.12);
}

/* Submit */
.auth-submit-btn {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.75rem 1rem;
  text-align: center;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: white;
  background: var(--text);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s, opacity .12s;
}

.auth-submit-btn:hover { background: #2a2a2a; }
.auth-submit-btn:active { opacity: .85; }

/* Footer */
.auth-switch-text {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 1.25rem;
  padding-bottom: 0.5rem;
}

.auth-switch-text a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.auth-switch-text a:hover { text-decoration: underline; }

.auth-terms-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.auth-terms-note a {
  color: var(--muted);
  text-decoration: underline;
}

/* ── Compat stubs for old classes still referenced ── */
.auth-split-page { background: #111; }
.auth-left  { display: none; }
.auth-right { display: none; }
.auth-back-link { display: none; }
.auth-left-glow { display: none; }
.auth-feature-dot { display: none; }
.field-hint { font-size: 0.6875rem; font-weight: 400; color: var(--muted); font-family: var(--mono); }
.auth-footer-text { text-align: center; font-size: 0.8125rem; color: var(--muted); margin-top: 1.25rem; }
.auth-footer-text a { color: var(--text); font-weight: 600; text-decoration: none; }
.auth-submit { width: 100%; margin-top: 0.375rem; padding: 0.75rem 1rem; text-align: center; border-radius: 8px; font-size: 0.9375rem; }

/* ── Mobile ── */
@media (max-width: 720px) {
  .auth-panel-left { display: none; }
  .auth-panel-right {
    width: 100%;
    min-height: 100vh;
    border-left: none;
    background: white;
  }
  .auth-form-container { padding: 2rem 1.5rem; }
  .auth-form-header { padding: 2rem 0 1.5rem; }
}

/* ============================================================
   SPINNER
   ============================================================ */
.spinner {
  display: inline-block;
  width: 1rem; height: 1rem;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: -0.2em;
  margin-right: 0.4rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* btn-discover is now .nav-link — stub kept for compatibility */
#discoverBtn { }

/* ============================================================
   DISCOVERY HERO
   ============================================================ */
/* ============================================================
   DISCOVERY PAGE
   ============================================================ */

/* Page layout */
.disc-page-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.disc-page-header {
  margin-bottom: 2rem;
}

.disc-page-kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.625rem;
}

.disc-page-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  margin: 0 0 0.625rem;
}

.disc-page-sub {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
  max-width: 520px;
}

/* Form card */
.disc-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  box-shadow: var(--sh);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.disc-form-section {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.disc-form-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.005em;
}

.disc-optional {
  font-weight: 400;
  color: var(--muted);
}

.disc-or {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  position: relative;
}

.disc-or::before,
.disc-or::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: var(--border);
}
.disc-or::before { left: 0; }
.disc-or::after  { right: 0; }

/* Level selector */
.disc-level-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.disc-level-btn {
  padding: 0.4rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
  white-space: nowrap;
}

.disc-level-btn:hover {
  border-color: var(--text);
  color: var(--text);
}

.disc-level-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--white);
  font-weight: 600;
}

/* Submit button */
.disc-submit {
  width: 100%;
  justify-content: center;
  text-align: center;
  font-size: 0.9375rem;
  padding: 0.75rem;
}

/* Upload zone in discovery */
.disc-upload-zone {
  margin-bottom: 0;
}

/* ============================================================
   DISCOVERY RESULT CARDS
   ============================================================ */

.disc-results-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.disc-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.disc-results-count {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
}

.disc-refine-btn {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.375rem 0.875rem;
  cursor: pointer;
  transition: color .12s, border-color .12s;
  white-space: nowrap;
}
.disc-refine-btn:hover { color: var(--text); border-color: var(--text); }

.discovery-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
}

@media (max-width: 640px) {
  .discovery-cards { grid-template-columns: 1fr; }
}

.disc-card {
  background: var(--white);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  animation: cardIn .3s ease both;
  animation-delay: calc(var(--i) * 0.06s);
  transition: background .12s;
}

.disc-card:hover { background: #fafaf9; }

.disc-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.disc-card-num {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
  padding-top: 0.25rem;
  letter-spacing: 0.04em;
}

.disc-card-title-wrap {}

.disc-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.disc-card-industry {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.175rem;
  font-weight: 400;
}

.disc-card-fit {
  font-size: 0.875rem;
  color: var(--text2);
  line-height: 1.6;
  margin: 0;
}

.disc-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.disc-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.175rem 0.5rem;
  border-radius: 4px;
}

.disc-tag-match {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #d1fae5;
}

.disc-tag-gap {
  background: #fef9ee;
  color: #92400e;
  border: 1px solid #fde68a;
}

.disc-companies-text {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.disc-meta-label {
  font-weight: 600;
  color: var(--text);
  margin-right: 0.375rem;
}

/* Card footer: links + analyse button */
.disc-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.disc-job-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.disc-job-link {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .12s, color .12s, background .12s;
  white-space: nowrap;
}

.disc-job-link:hover {
  border-color: var(--text);
  color: var(--text);
  background: var(--bg);
}

.disc-analyse-btn {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal);
  background: none;
  border: 1px solid rgba(0,150,138,.3);
  border-radius: 6px;
  padding: 0.375rem 0.875rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s;
}

.disc-analyse-btn:hover {
  background: #e5f5f3;
  border-color: var(--teal);
  color: var(--teal2);
}

/* Highlight flash for job URL field */
@keyframes fieldHighlight {
  0%,100% { border-color: var(--border); box-shadow: none; }
  30%,70%  { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,150,138,.15); }
}
.field-highlight { animation: fieldHighlight 1.4s ease; }

/* misc compat */
.disc-profile-ok   { color: #059669; font-weight: 600; }
.disc-profile-warn { color: #d97706; font-weight: 600; }
.disc-profile-warn a { color: inherit; text-decoration: underline; cursor: pointer; }

/* ============================================================
   CACHE NOTICE BANNER
   ============================================================ */
.cache-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #92400e;
  font-weight: 500;
  margin-bottom: 1.25rem;
  animation: paneIn .25s ease;
}

.cache-notice-close {
  background: none;
  border: none;
  font-size: 0.875rem;
  color: #b45309;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity .15s;
}

.cache-notice-close:hover { opacity: 1; }

/* ============================================================
   INTERVIEW PRACTICE SECTION
   ============================================================ */
/* ============================================================
   INTERVIEW PRACTICE — redesigned accordion layout
   ============================================================ */
.interview-section {
  margin: 2.5rem auto 3rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  max-width: 960px;
}

/* ---- Section header ---- */
.interview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.interview-toggle {
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition: background .15s;
}
.interview-toggle:hover { background: var(--bg2); }

.interview-section.collapsed .interview-header {
  margin-bottom: 0;
  border-radius: 16px;
}

.interview-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.interview-chevron {
  color: var(--muted);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
}
.interview-toggle[aria-expanded="false"] .interview-chevron {
  transform: rotate(-90deg);
}

.interview-header-left {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex: 1;
  min-width: 0;
}

.interview-header-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  line-height: 1;
}

.interview-header-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.15rem;
}

.interview-header-sub {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.interview-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.interview-progress-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  font-family: var(--mono);
  white-space: nowrap;
}

.interview-progress-bar-wrap {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  width: 96px;
}

.interview-progress-bar {
  height: 100%;
  background: #10b981;
  border-radius: 999px;
  width: 0%;
  transition: width .4s cubic-bezier(.34,1.1,.64,1);
}

/* ---- Category tabs ---- */
.iq-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.25rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.iq-tabs::-webkit-scrollbar { display: none; }

.iq-tab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border: none;
  border-radius: 9px;
  background: transparent;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.iq-tab:hover { color: var(--navy); background: rgba(27,52,97,.06); }

.iq-tab.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

.iq-tab.iq-tab-done { color: #059669; }
.iq-tab.iq-tab-done.active {
  background: #f0fdf4;
  color: #059669;
  box-shadow: 0 1px 4px rgba(16,185,129,.15);
}

.iq-tab-icon { display: none; }

.iq-tab-badge {
  background: var(--border);
  border-radius: 999px;
  padding: 0.05rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--muted);
}

.iq-tab.active .iq-tab-badge { background: #e8eef5; color: var(--navy); }
.iq-tab.iq-tab-done.active .iq-tab-badge { background: #d1fae5; color: #059669; }

/* ---- Question panels ---- */
.iq-panel { animation: paneIn .2s ease; }
.iq-panel-hidden { display: none; }

/* ---- Accordion list (replaces grid) ---- */
.interview-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.iq-card {
  background: var(--white);
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0;
  cursor: pointer;
  transition: background .15s;
  position: relative;
}

.iq-card:last-child { border-bottom: none; }

.iq-card:hover:not(.revealed) { background: #f7f9fc; }

.iq-card.revealed { background: #fafffe; cursor: default; }

/* Row = question summary row */
.iq-top {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
}

.iq-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 7px;
  background: #e8eef5;
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 800;
  font-family: var(--mono);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}

.iq-card.revealed .iq-num {
  background: #d1fae5;
  color: #059669;
}

.iq-question {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

/* Chevron */
.iq-chevron {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--muted);
  transition: transform .2s, color .2s;
}

.iq-card.revealed .iq-chevron {
  transform: rotate(180deg);
  color: #10b981;
}

/* Tip panel (slides in) */
.iq-tip-wrap {
  margin: 0 1.25rem 1rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 0.875rem 1rem;
}

@keyframes tipSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tip-slide-in { animation: tipSlide .22s ease; }

.iq-tip-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #166534;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.iq-tip-text {
  font-size: 0.875rem;
  color: #15803d;
  line-height: 1.6;
  margin: 0;
}

/* Footer hint / revealed badge */
.iq-footer { display: none; }

.iq-reveal-hint {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.iq-revealed-badge {
  font-size: 0.78rem;
  color: #059669;
  font-weight: 700;
}

@media (max-width: 600px) {
  .interview-header { gap: 0.75rem; }
  .interview-progress-bar-wrap { width: 72px; }
  .iq-tab { padding: 0.45rem 0.7rem; font-size: 0.75rem; }
}

/* ============================================================
   WIZARD STEP PROGRESS BAR
   ============================================================ */
.wizard-container { max-width: 560px; }

.wizard-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
}

.wizard-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}

.wizard-pill.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(27,52,97,.25);
}

.wizard-pill.done {
  background: #f0fdf4;
  border-color: #6ee7b7;
  color: #059669;
}

.wp-num {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: var(--mono);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.wizard-pill:not(.active):not(.done) .wp-num {
  background: var(--border);
  color: var(--muted);
}

.wizard-pill.done .wp-num {
  background: #d1fae5;
  color: #059669;
}

.wp-label {
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.wizard-pill:not(.active):not(.done) .wp-label { color: var(--muted); }

.wp-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 0.625rem;
  max-width: 64px;
  border-radius: 1px;
}

/* ============================================================
   WIZARD PANE
   ============================================================ */
.wizard-pane { animation: paneIn .22s ease; }

@keyframes paneIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.pane-header { margin-bottom: 1.25rem; }

.pane-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.pane-sub {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================================
   SAVED RESUME BANNER
   ============================================================ */
.saved-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.saved-banner-icon { font-size: 1.25rem; flex-shrink: 0; }

.saved-banner-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.saved-banner-body strong {
  font-size: 0.875rem;
  font-weight: 700;
  color: #166534;
}

.saved-banner-body span {
  font-size: 0.8125rem;
  color: #15803d;
}

.saved-banner-clear {
  background: none;
  border: 1px solid #86efac;
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  color: #166534;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}

.saved-banner-clear:hover { background: #dcfce7; }

/* ============================================================
   EXTRACT STATUS
   ============================================================ */
.extract-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  padding: 0.6rem 0.875rem;
  border-radius: 8px;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.extract-status.extracting {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.extract-status.extracted {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #86efac;
}

.extract-status.extract-err {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.spinner-sm {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(29,78,216,.25);
  border-top-color: #1d4ed8;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}

.inline-save-btn {
  background: none;
  border: none;
  color: #0284c7;
  font: inherit;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* ============================================================
   WIZARD ACTIONS ROW
   ============================================================ */
.wizard-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.btn-resume-analyse {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  background: #f0f9ff;
  border: 1.5px solid #bae6fd;
  border-radius: 10px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0369a1;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}

.btn-resume-analyse:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.1rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.btn-outline:hover {
  border-color: #a0aec0;
  background: var(--bg);
}

/* Shake animation for validation */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%,60%  { transform: translateX(-6px); }
  40%,80%  { transform: translateX(6px); }
}
.shake { animation: shake .4s ease; }

/* ============================================================
   RESUME ANALYSIS HERO
   ============================================================ */
.resume-analysis-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.resume-hero-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   LEGAL / TERMS PAGE
   ============================================================ */
.legal-page {
  background: var(--bg);
  min-height: 100vh;
}

.legal-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 56px;
}

.legal-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.legal-nav-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.legal-nav-back {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}

.legal-nav-back:hover { color: var(--teal2); }

/* Page wrapper */
.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* Header */
.legal-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.legal-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.legal-date {
  font-size: 0.875rem;
  color: var(--muted);
  font-family: var(--mono);
}

/* Plain English callout */
.legal-callout {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-left: 4px solid #3b82f6;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  color: #1e40af;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* Table of contents */
.legal-toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 3rem;
}

.legal-toc-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.legal-toc-list {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1.5rem;
}

.legal-toc-list li { font-size: 0.9rem; }

.legal-toc-list a {
  color: var(--teal2);
  text-decoration: none;
  font-weight: 500;
  transition: color .15s;
}

.legal-toc-list a:hover {
  color: var(--teal);
  text-decoration: underline;
}

@media (max-width: 500px) { .legal-toc-list { grid-template-columns: 1fr; } }

/* Sections */
.legal-section {
  margin-bottom: 2.75rem;
  scroll-margin-top: 72px;
}

.legal-section h2 {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.legal-section h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.25rem 0 0.5rem;
}

.legal-section p {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.legal-section ul {
  margin: 0 0 0.875rem 0;
  padding-left: 1.375rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.legal-section ul li {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.6;
}

.legal-section ul li::marker { color: var(--teal); }

.legal-section strong { color: var(--navy); }

/* Highlight box */
.legal-highlight {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-left: 4px solid #22c55e;
  border-radius: 10px;
  padding: 0.875rem 1.125rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #166534;
  margin-top: 1rem;
}

/* Footer */
.legal-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}

.legal-footer a {
  color: var(--teal2);
  font-weight: 500;
  text-decoration: none;
}

.legal-footer a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .legal-wrap { padding: 2rem 1.25rem 4rem; }
  .legal-nav  { padding: 0 1.25rem; }
}

/* ============================================================
   SITE FOOTER — Rich dark navy theme
   ============================================================ */
.site-footer {
  background: linear-gradient(160deg, #0c1f40 0%, #0f2a50 60%, #0a3030 100%);
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: auto;
}

/* ── Top grid ── */
.site-footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2.25rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem 2rem;
}

/* Brand column */
.sf-brand { display: flex; flex-direction: column; gap: 0.875rem; }
.sf-brand-row { display: flex; align-items: center; gap: 0.6rem; }
.sf-logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #00968a, #00b5a8);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,150,138,.35);
}
.sf-brand-name {
  font-size: 1.0625rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
}
.sf-tagline {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.5);
  font-style: italic;
}
.sf-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,.4);
  line-height: 1.65;
  max-width: 230px;
}
.sf-mascot-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.125rem;
}
.sf-mascot-row img {
  width: 38px; height: 38px; object-fit: contain;
}
.sf-mascot-label {
  font-size: 0.6875rem;
  color: rgba(255,255,255,.32);
  font-style: italic;
}

/* Link columns */
.sf-col { display: flex; flex-direction: column; }
.sf-col-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.875rem;
}
.sf-col-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sf-col-links a,
.sf-col-links button {
  font-size: 0.825rem;
  color: rgba(255,255,255,.58);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: color .15s;
  line-height: 1.4;
}
.sf-col-links a:hover,
.sf-col-links button:hover { color: #7ffff4; }

/* ── Bottom bar ── */
.site-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
}
.sf-bottom-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.sf-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,.28);
}
.sf-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.sf-social {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.sf-social-link {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
  transition: background .15s, color .15s, border-color .15s;
  text-decoration: none;
}
.sf-social-link:hover {
  background: rgba(0,150,138,.22);
  color: #7ffff4;
  border-color: rgba(0,150,138,.4);
}
.sf-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6875rem;
  color: rgba(255,255,255,.32);
}
.sf-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,.6);
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
    padding: 2.25rem 1.25rem 1.75rem;
  }
  .sf-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .site-footer-grid { grid-template-columns: 1fr; }
  .sf-bottom-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

/* ============================================================
   GLOBAL POLISH
   ============================================================ */

/* Better scrollbar on webkit */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #b0bac8; }

/* Focus ring for accessibility */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* Shake animation for empty field validation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-6px); }
  75%       { transform: translateX(6px); }
}
.shake { animation: shake .4s ease; }

/* ============================================================
   COVER LETTER SECTION
   ============================================================ */
.cover-letter-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  box-shadow: var(--sh);
  margin-top: 1.5rem;
  overflow: hidden;
}

.cover-letter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cover-letter-header-left {
  display: flex;
  align-items: center;
  gap: .875rem;
}

.cover-letter-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.cover-letter-title {
  font-weight: 700;
  font-size: .9375rem;
  color: var(--text);
}

.cover-letter-sub {
  font-size: .8125rem;
  color: var(--muted);
  margin-top: .125rem;
}

.cover-letter-controls {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.cl-tone-label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.cl-tone-row {
  display: flex;
  gap: .375rem;
}

.cl-tone-btn {
  padding: .35rem .85rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  font-size: .8125rem;
  color: var(--text2);
  cursor: pointer;
  transition: all .15s;
}

.cl-tone-btn:hover { border-color: var(--teal); color: var(--teal); }
.cl-tone-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  font-weight: 600;
}

.cl-generate-btn {
  margin-left: auto;
  padding: .45rem 1.1rem;
  font-size: .8125rem;
}

.cl-loading {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 1.25rem 1.5rem;
  font-size: .875rem;
  color: var(--muted);
}

.cl-error {
  padding: 1rem 1.5rem;
  font-size: .875rem;
  color: var(--red);
}

.cl-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem .75rem;
}

.cl-result-label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cl-copy-btn {
  padding: .3rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: transparent;
  font-size: .8125rem;
  color: var(--teal);
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}

.cl-copy-btn:hover { background: var(--teal-bg); border-color: var(--teal); }

.cl-body {
  padding: 0 1.5rem 1.5rem;
  font-size: .9rem;
  line-height: 1.75;
  color: var(--text);
  white-space: pre-wrap;
  font-family: var(--font);
}

/* Results hero — company + role label */
.results-job-label {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  margin-bottom: .375rem;
}
.results-job-company {
  font-weight: 700;
  font-size: .9375rem;
  color: var(--white);
  opacity: .95;
}
.results-job-sep {
  color: rgba(255,255,255,.5);
  font-size: .875rem;
}
.results-job-title {
  font-size: .875rem;
  color: rgba(255,255,255,.8);
}

/* PDF button + results hero actions */
.results-hero-actions {
  display: flex;
  justify-content: flex-end;
  padding: .75rem 2rem 1rem;
}
.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem 1rem;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--r);
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.btn-pdf:hover { background: rgba(255,255,255,.22); }

/* Redesigned PDF button */
.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1.1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.4);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.btn-pdf:hover {
  background: rgba(255,255,255,.28);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.btn-pdf:active { transform: translateY(0); }
.btn-pdf svg { opacity: .9; }

/* Paste-only hint banner */
.paste-hint {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  background: var(--teal-bg);
  border: 1px solid rgba(0,150,138,.2);
  border-radius: var(--r);
  padding: .65rem .9rem;
  font-size: .8125rem;
  color: var(--teal2);
  margin-bottom: .75rem;
  line-height: 1.5;
}
.paste-hint svg { flex-shrink: 0; margin-top: 1px; }

/* ── Tab system ─────────────────────────────── */
.main-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid var(--border);
}
.main-tab {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .75rem 1.25rem;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: transparent;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.main-tab:hover { color: var(--text); }
.main-tab.active { color: var(--teal); border-bottom-color: var(--teal); font-weight: 600; }
.main-tab-panel { display: block; }

/* ── Next step banner ───────────────────────── */
.next-step-banner {
  margin: 2rem auto 0;
  max-width: 760px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal2) 100%);
  border-radius: var(--r2);
  padding: 1.25rem 1.5rem;
}
.next-step-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.next-step-text {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  color: var(--white);
}
.next-step-text strong { font-size: .9375rem; }
.next-step-text span   { font-size: .8125rem; opacity: .8; }
.next-step-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.25rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--r);
  color: var(--white);
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s;
}
.next-step-btn:hover { background: rgba(255,255,255,.25); }
@media (max-width: 540px) {
  .next-step-inner { flex-direction: column; align-items: flex-start; }
}

/* ── Home hub ───────────────────────────────── */
.view-home { background: var(--bg); }

/* Hero banner */
.hub-hero {
  background: linear-gradient(140deg, var(--white) 0%, var(--bg2) 45%, #eef8f6 100%);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.5rem 3rem;
}
.hub-hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Hero mascot + speech bubble (Gen Z career buddy) */
.hub-hero-mascot-bubble {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.hub-mascot-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(27, 52, 97, 0.08));
  animation: mascotFloat 3s ease-in-out infinite;
}
@keyframes mascotFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.mascot-speech-bubble {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px 14px 14px 4px;
  padding: 0.5rem 0.875rem;
  box-shadow: var(--sh);
  position: relative;
}
.mascot-speech-bubble::before {
  content: "";
  position: absolute;
  left: -7px;
  bottom: 12px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid var(--white);
}
.mascot-bubble-text {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}
@media (max-width: 780px) {
  .hub-hero-mascot-bubble { order: -2; width: 100%; }
  .hub-hero-content { order: 0; }
}

.hub-hero-content { flex: 1; min-width: 260px; }
.hub-hero-stats { margin-top: 1.25rem; }

/* Hero: large transparent mascot (replaces clipart) */
.hub-hero-mascot-feature {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hub-hero-mascot-large {
  width: 160px;
  height: 160px;
  max-width: 28vw;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(27, 52, 97, 0.12));
  animation: mascotFloat 3s ease-in-out infinite;
}
@media (max-width: 780px) {
  .hub-hero-mascot-feature { order: 0; width: 100%; margin-bottom: 0.5rem; }
  .hub-hero-mascot-large { width: 140px; height: 140px; max-width: none; }
  .hub-hero-inner { flex-direction: column; }
}
.hub-eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: .4rem;
  letter-spacing: .02em;
}
.hub-hero-title {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -.045em;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: .5rem;
}
.hub-hero-sub {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 440px;
}
/* Mini stat cards in hero */
.hub-hero-visual {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
}
.hub-hero-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: .875rem 1.25rem;
  min-width: 100px;
  text-align: center;
  box-shadow: var(--sh);
  transition: transform .2s, box-shadow .2s;
}
.hub-hero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.hub-hero-stat {
  display: block;
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: .25rem;
}
.hub-hero-value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--teal);
}
.hub-hero-card-2 .hub-hero-value { color: var(--navy); }
@media (max-width: 560px) {
  .hub-hero-visual { width: 100%; justify-content: flex-start; }
  .hub-hero-sub { max-width: none; }
}

/* ── Hub Hero v2 ─────────────────────────────────────────────── */
.hub-hero-v2 {
  background: #fff;
  border-bottom: 1px solid #e8edf4;
  padding: 2.75rem 1.5rem 2.75rem;
  position: relative;
  overflow: hidden;
}
.hub-hero-v2-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 80% at 95% 50%, rgba(0,150,138,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 30% 50% at 0% 100%, rgba(27,52,97,0.04) 0%, transparent 70%);
}
.hub-hero-v2-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}
.hub-hero-v2-left {
  flex: 1;
  min-width: 260px;
}
.hub-eyebrow-v2 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #00968a;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}
.hub-hero-v2-title {
  font-size: clamp(1.75rem, 3.5vw, 2.625rem) !important;
  font-weight: 800 !important;
  color: #0f2244 !important;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}
.hub-hero-v2-accent {
  color: #00968a !important;
  -webkit-text-fill-color: #00968a;
}
.hub-hero-v2-sub {
  font-size: 0.9375rem;
  color: #4a5568 !important;
  line-height: 1.6;
  max-width: 440px;
  margin-bottom: 1.5rem;
}
/* Stats row */
.hub-hero-v2-stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.hub-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.hub-stat-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f2244;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hub-stat-label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hub-stat-divider {
  width: 1px;
  height: 2rem;
  background: #e2e8f0;
}
/* Mascot side */
.hub-hero-v2-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hub-mascot-wrap {
  position: relative;
  width: 160px;
  height: 180px;
}
.hub-mascot-img {
  width: 140px;
  height: 160px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 8px 24px rgba(15,34,68,0.12));
  animation: mascotFloat 3.5s ease-in-out infinite;
}
.hub-mascot-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 1.5px dashed rgba(0,150,138,0.25);
  animation: mascotRingSpin 14s linear infinite;
  z-index: 1;
}
.hub-mascot-ring::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00968a;
  box-shadow: 0 0 6px rgba(0,150,138,0.5);
}
@keyframes mascotRingSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
/* Floating badges */
.hub-mascot-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  background: #fff;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #1b3461;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  white-space: nowrap;
  z-index: 3;
}
.hub-mbadge-1 {
  top: 8px;
  right: -24px;
  animation: badgeFloat1 4s ease-in-out infinite;
}
.hub-mbadge-2 {
  bottom: 16px;
  left: -28px;
  animation: badgeFloat2 5s ease-in-out infinite;
}
@keyframes badgeFloat1 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}
@keyframes badgeFloat2 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}
@media (max-width: 680px) {
  .hub-hero-v2-right { display: none; }
  .hub-hero-v2 { padding: 2.25rem 1.25rem 2.25rem; }
  .hub-hero-v2-sub { max-width: none; }
}

/* Main content wrap */
.hub-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3.5rem;
}
.hub-section-head {
  margin-bottom: 1.75rem;
}
.hub-section-title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.025em;
  margin-bottom: .25rem;
}
.hub-section-sub {
  font-size: .8125rem;
  color: var(--muted);
}

/* Card grid — LinkedIn post-style cards */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 780px) { .hub-grid { grid-template-columns: 1fr; } }

.hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .875rem;
  padding: 1.5rem 1.5rem 1.625rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  cursor: pointer;
  text-align: left;
  transition: border-color .2s, box-shadow .25s ease, transform .2s ease;
  width: 100%;
  box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 2px 6px rgba(0,0,0,.04);
}
.hub-card:hover {
  border-color: rgba(0,150,138,.35);
  box-shadow: 0 0 0 1px rgba(0,150,138,.12), 0 8px 24px rgba(0,150,138,.12);
  transform: translateY(-3px);
}
.hub-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-bg);
  padding: .2rem .5rem;
  border-radius: 4px;
}
.hub-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.hub-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .2s;
}
.hub-card:hover .hub-card-icon { transform: scale(1.05); }
.hub-icon-teal  { background: rgba(0,150,138,.14); color: var(--teal); }
.hub-icon-navy  { background: rgba(27,52,97,.12); color: var(--navy); }
.hub-icon-amber { background: rgba(202,138,4,.12); color: #b45309; }

.hub-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.025em;
  line-height: 1.25;
}
.hub-card-desc {
  font-size: .8125rem;
  color: var(--muted);
  line-height: 1.6;
}
.hub-card-arrow {
  color: var(--border2);
  transition: color .18s, transform .18s;
  flex-shrink: 0;
}
.hub-card:hover .hub-card-arrow {
  color: var(--teal);
  transform: translateX(4px);
}

/* Staggered reveal on load */
.hub-card-reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: hubReveal .5s cubic-bezier(.4,0,.2,1) forwards;
}
.hub-card-reveal:nth-child(1) { animation-delay: .06s; }
.hub-card-reveal:nth-child(2) { animation-delay: .14s; }
.hub-card-reveal:nth-child(3) { animation-delay: .22s; }
@keyframes hubReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* Pro tip strip — mascot theme */
.hub-tip-strip {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.125rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 2px 6px rgba(0,0,0,.04);
}
.hub-tip-mascot .hub-tip-mascot-avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: visible;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hub-tip-mascot-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(27, 52, 97, 0.08));
}
.hub-tip-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.hub-tip-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0,150,138,.1);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hub-tip-content {
  font-size: .875rem;
  color: var(--text2);
  line-height: 1.55;
}
.hub-tip-content strong { color: var(--text); }

/* ========== History Improvements ========== */
.hist-search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.hist-search-input {
  flex: 1;
  min-width: 180px;
  padding: 0.5rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  background: #fff;
  color: var(--navy);
  outline: none;
  transition: border-color .15s;
}
.hist-search-input:focus { border-color: var(--teal); }
.hist-filter-tabs { display: flex; gap: 0.375rem; }
.hist-filter-btn {
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  transition: all .15s;
}
.hist-filter-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.hist-select-btn {
  padding: 0.375rem 0.875rem;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--navy);
  background: #fff;
  cursor: pointer;
  transition: all .15s;
}
.hist-select-btn:hover { border-color: var(--navy); }
.hist-toolbar-actions { display: flex; gap: 0.5rem; align-items: center; }
.hist-bulk-bar {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  background: var(--teal-bg);
  border-radius: 10px;
  margin-bottom: 0.875rem;
  font-size: 0.875rem;
  color: var(--navy);
}
.hist-bulk-delete-btn {
  margin-left: auto;
  padding: 0.375rem 0.875rem;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}
.hist-bulk-cancel-btn {
  padding: 0.375rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.8125rem;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
}
.hist-checkbox-wrap {
  display: flex;
  align-items: center;
  padding-right: 0.75rem;
  cursor: pointer;
}
.hist-cb { width: 18px; height: 18px; cursor: pointer; accent-color: var(--teal); }
.hist-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem 0;
}
.hist-page-btn {
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--navy);
  background: #fff;
  cursor: pointer;
  transition: all .15s;
}
.hist-page-btn:hover:not(:disabled) { border-color: var(--teal); color: var(--teal); }
.hist-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.hist-page-info { font-size: 0.875rem; color: var(--muted); }
/* Discovery card styles */
.hist-score-discovery {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--teal-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal2);
  flex-shrink: 0;
}
.pill-discovery {
  background: #ede9fe;
  color: #6d28d9;
}
.hist-disc-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.hist-disc-role-tag {
  padding: 0.1875rem 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--navy);
}
.hist-disc-more {
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
}
.hist-card-interests {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}
/* Confirm modal */
.confirm-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.confirm-modal {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  width: min(380px, 90vw);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.confirm-modal-msg {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.25rem;
  text-align: center;
}
.confirm-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}
.confirm-modal-cancel {
  padding: 0.5625rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
}
.confirm-modal-ok {
  padding: 0.5625rem 1.25rem;
  border: none;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.confirm-modal-danger { background: #ef4444; color: #fff; }


/* ============================================================
   RESUME GENERATOR SECTION
   ============================================================ */
.resume-gen-section {
  margin: 2rem auto;
  max-width: 680px;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.resume-gen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border-bottom: 1.5px solid var(--border);
}
.resume-gen-header-left { display: flex; align-items: center; gap: 0.75rem; }
.resume-gen-icon { font-size: 1.25rem; }
.resume-gen-title { font-weight: 600; color: var(--navy); font-size: 0.9375rem; }
.resume-gen-sub { font-size: 0.8125rem; color: var(--muted); }
.resume-gen-body { padding: 1.25rem; }
.resume-gen-hint { font-size: 0.875rem; color: var(--muted); margin-bottom: 1rem; }
.resume-gen-btn { display: inline-flex; align-items: center; gap: 0.5rem; }
.resume-gen-status {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--teal2);
  font-weight: 500;
}

/* Cover letter Word download button */
.cl-word-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--teal);
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal2);
  background: var(--teal-bg);
  cursor: pointer;
  transition: all .15s;
}
.cl-word-btn:hover { background: var(--teal); color: #fff; }

/* ========== Standalone Resume Checker Hero ========== */
.ra-hero-inner {
  max-width: 480px;
}
/* Doc card visual */
.ra-hero-visual {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.ra-doc-card {
  position: relative;
  width: 180px;
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem 1rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.ra-doc-line {
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
}
.ra-doc-name { height: 12px; width: 75%; background: #1a2e44; }
.ra-doc-contact { width: 90%; background: #cbd5e1; }
.ra-doc-divider { height: 1px; background: #e2e8f0; margin: 0.2rem 0; }
.ra-doc-section-label { height: 7px; width: 45%; background: var(--teal); border-radius: 3px; margin-top: 0.2rem; }
.ra-doc-body { width: 100%; }
.ra-doc-short { width: 65%; }
.ra-doc-shorter { width: 45%; }
.ra-doc-bullet {
  height: 7px;
  width: 100%;
  background: #e2e8f0;
  border-radius: 4px;
  padding-left: 10px;
  position: relative;
}
.ra-doc-bullet::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--teal);
}
.ra-score-badge {
  position: absolute;
  top: -12px; right: -16px;
  background: linear-gradient(135deg, var(--teal2), var(--teal));
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 16px rgba(13,157,143,0.4);
}
@media (max-width: 600px) {
  .ra-hero-visual { display: none; }
  .ra-hero { padding: 2.5rem 1.25rem; }
}
/* Form card */
.ra-form-wrap {
  max-width: 580px;
  margin: 2.5rem auto;
  padding: 0 1rem;
}
.ra-form-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
}
.ra-form-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.375rem;
}
.ra-form-sub {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.ra-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
  gap: 0.5rem;
}
.ra-error {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #dc2626;
  font-weight: 500;
}
/* Results wrap */
.ra-results-wrap { padding-bottom: 3rem; }
.ra-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.ra-reanalyse-btn {
  padding: 0.4rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.8125rem;
  color: var(--navy);
  background: #fff;
  cursor: pointer;
  font-weight: 500;
  transition: all .15s;
}
.ra-reanalyse-btn:hover { border-color: var(--teal); color: var(--teal2); }

/* Ensure textarea text is visible in resume checker form */
#raProfileText {
  color: var(--navy);
  background: #fff;
}

/* ============================================================
   Resume Preview Modal
   ============================================================ */
.resume-preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.resume-preview-modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  overflow: hidden;
}
.resume-preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.resume-preview-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
}
.resume-preview-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.resume-download-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  padding: 0.45rem 1rem;
}
.resume-preview-close {
  border: none;
  background: none;
  font-size: 1rem;
  color: var(--muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background .15s;
}
.resume-preview-close:hover { background: var(--light); color: var(--text); }
.resume-preview-body {
  overflow-y: auto;
  padding: 2rem 2.5rem;
  flex: 1;
}

/* Resume preview content styles */
.rp-resume {
  font-family: "Calibri", "Liberation Serif", serif;
  color: #000;
  font-size: 11pt;
  line-height: 1.4;
}
.rp-name {
  text-align: center;
  font-size: 16pt;
  font-weight: 700;
  margin-bottom: 2px;
}
.rp-contact {
  text-align: center;
  font-size: 10pt;
  color: #333;
  margin-bottom: 12px;
}
.rp-section {
  margin-bottom: 8px;
}
.rp-heading {
  font-size: 11pt;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1.5px solid #000;
  padding-bottom: 2px;
  margin: 10px 0 4px;
  letter-spacing: 0.03em;
}
.rp-entry-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 3px 0 1px;
}
.rp-role-row {
  padding-left: 0;
}
.rp-bold { font-weight: 700; }
.rp-date {
  font-size: 10.5pt;
  color: #222;
  white-space: nowrap;
  margin-left: 1rem;
}
.rp-bullet {
  font-size: 10.5pt;
  padding-left: 1.1rem;
  margin: 1px 0;
  text-indent: -0.6rem;
  padding-left: 1.4rem;
}

/* ============================================================
   Discovery — cached badge & search fresh
   ============================================================ */
.disc-results-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}
.disc-cached-badge {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--muted);
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
}
.disc-cached-badge svg { opacity: .6; }
.disc-search-fresh-btn {
  background: none;
  border: none;
  color: var(--teal);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.disc-search-fresh-btn:hover { color: var(--teal2); }

/* Discovery history results modal */
.disc-hist-roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  padding: 0.25rem 0;
}
.disc-hist-role-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  transition: border-color .15s;
}
.disc-hist-role-card:hover { border-color: var(--teal3); }
.disc-hist-role-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.disc-hist-role-company {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ============================================================
   Career Profile — RIASEC Quiz
   ============================================================ */

/* Banner visual */
.career-visual-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  padding: 1.25rem 1.5rem 1rem;
  min-width: 210px;
}
.career-visual-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
}
.career-hex-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.career-hex {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.career-hex-r { background: rgba(74,222,128,0.25); color: #4ade80; border: 1px solid rgba(74,222,128,0.35); }
.career-hex-i { background: rgba(96,165,250,0.25); color: #60a5fa; border: 1px solid rgba(96,165,250,0.35); }
.career-hex-a { background: rgba(244,114,182,0.25); color: #f472b6; border: 1px solid rgba(244,114,182,0.35); }
.career-hex-s { background: rgba(251,146,60,0.25);  color: #fb923c; border: 1px solid rgba(251,146,60,0.35); }
.career-hex-e { background: rgba(250,204,21,0.25);  color: #facc15; border: 1px solid rgba(250,204,21,0.35); }
.career-hex-c { background: rgba(167,139,250,0.25); color: #a78bfa; border: 1px solid rgba(167,139,250,0.35); }
.career-visual-sub {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* Career banner — lighter purple override */
#bannerCareer {
  background: linear-gradient(135deg, #312e81 0%, #4f46e5 55%, #7c3aed 100%) !important;
}
#bannerCareer .page-hero-blob-1 { background: #a78bfa; opacity: 0.35; }
#bannerCareer .page-hero-blob-2 { background: #c4b5fd; opacity: 0.25; }

/* Quiz welcome card */
.quiz-welcome-card {
  background: linear-gradient(145deg, #faf8ff 0%, #f0ebff 100%);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 28px;
  padding: 3rem 2.5rem 3.25rem;
  box-shadow: 0 12px 48px rgba(99,102,241,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  position: relative;
  overflow: hidden;
}
.quiz-welcome-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.quiz-welcome-mascot {
  width: 130px;
  height: auto;
  margin-bottom: 1.625rem;
  filter: drop-shadow(0 10px 28px rgba(99,102,241,0.22));
  position: relative;
  z-index: 1;
}
.quiz-welcome-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 0.625rem;
  line-height: 1.3;
}
.quiz-welcome-sub {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
  line-height: 1.6;
  max-width: 380px;
}
.quiz-welcome-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}
.quiz-welcome-pill {
  padding: 0.3rem 0.8rem;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6366f1;
}
.quiz-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(99,102,241,0.35);
}
.quiz-start-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* Career results header card */
.career-results-header {
  background: linear-gradient(135deg, #1a0a3c 0%, #0f1f50 55%, #0a2a24 100%);
  border: 1px solid rgba(196,181,253,0.18);
  border-radius: 24px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.75rem;
  display: flex;
  gap: 1.75rem;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(10,8,40,0.3);
}
/* Holland code column (left) */
.career-results-header .career-code-display {
  flex-shrink: 0;
  min-width: 0;
}
/* Thin vertical separator */
.crh-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
  min-height: 60px;
}
/* Bars column (middle, grows) */
.career-results-header .career-results-right {
  flex: 1;
  min-width: 0;
}
/* Mascot column (right, fixed width, no overlap) */
.crh-mascot-col {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  align-self: stretch;
}
.career-results-header-mascot {
  width: 88px;
  height: auto;
  display: block;
  position: static;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.4));
  pointer-events: none;
}
@media (max-width: 560px) {
  .crh-mascot-col { display: none; }
  .crh-divider { display: none; }
  .career-results-header { flex-wrap: wrap; }
}
/* Dark-theme text inside the header */
.career-results-header .career-code-label {
  color: rgba(196,181,253,0.75);
}
.career-results-header .career-code-name {
  color: rgba(255,255,255,0.6);
}
.career-results-header .career-code-date {
  color: rgba(196,181,253,0.65);
}
.career-results-header .career-bar-label {
  color: rgba(255,255,255,0.85);
}
.career-results-header .career-bar-track {
  background: rgba(255,255,255,0.1);
}
.career-results-header .career-bar-score {
  color: rgba(255,255,255,0.5);
}
/* Small label above bars inside header */
.crh-bars-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(196,181,253,0.75);
  margin: 0 0 0.625rem;
}
.career-code-date {
  font-size: 0.75rem;
  color: #7c3aed;
  font-weight: 600;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.career-results-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
}
/* Section label before type cards */
.career-section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.25rem 0 0.875rem;
  padding-left: 2px;
}

/* Panel */
.career-panel {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* Quiz */
/* ---- Quiz header / progress ---- */
.career-quiz-header { margin-bottom: 1.75rem; }
.quiz-top-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.quiz-counter {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  min-width: 44px;
}
.quiz-progress-bar {
  flex: 1;
  height: 8px;
  background: #e8edf4;
  border-radius: 4px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #a78bfa);
  border-radius: 4px;
  transition: width 0.4s ease;
}
.quiz-pct {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6366f1;
  min-width: 32px;
  text-align: right;
}

/* ---- Quiz card ---- */
.quiz-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem 2.5rem 2rem;
  box-shadow: 0 8px 36px rgba(15,39,68,0.08);
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.quiz-slide-in-left  { opacity: 0; transform: translateX(-48px); }
.quiz-slide-in-right { opacity: 0; transform: translateX(48px); }
.quiz-card-visible   { opacity: 1 !important; transform: translateX(0) !important; }

.quiz-q-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 0.875rem;
}
.quiz-question {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 2.25rem;
}

/* ---- Answer choices ---- */
.quiz-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
.quiz-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  padding: 1.5rem 1rem;
  border-radius: 16px;
  border: 2px solid var(--border);
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
}
.quiz-choice:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(15,39,68,0.1);
}
.quiz-choice-yes:hover  { border-color: #4ade80; background: rgba(74,222,128,0.06); }
.quiz-choice-no:hover   { border-color: #f87171; background: rgba(248,113,113,0.06); }

.quiz-choice-yes.chosen { border-color: #22c55e; background: rgba(34,197,94,0.1); }
.quiz-choice-no.chosen  { border-color: #ef4444; background: rgba(239,68,68,0.1); }

.quiz-choice-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef1f6;
  transition: background 0.18s;
}
.quiz-choice-yes .quiz-choice-icon { color: #16a34a; }
.quiz-choice-no  .quiz-choice-icon { color: #dc2626; }
.quiz-choice-yes.chosen .quiz-choice-icon { background: rgba(34,197,94,0.15); }
.quiz-choice-no.chosen  .quiz-choice-icon { background: rgba(239,68,68,0.15); }

.quiz-choice-label {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
}
.quiz-choice-hint {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ---- Quiz footer nav ---- */
.quiz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.quiz-footer-hint {
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
  flex: 1;
}
.quiz-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s;
  white-space: nowrap;
}
.quiz-back-btn:hover { color: var(--navy); border-color: var(--navy); }
.quiz-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.5rem 1.125rem;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.quiz-next-btn:hover { opacity: 0.88; }

/* Results */
.career-results-top {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.career-code-display {
  flex: 1;
  min-width: 200px;
}
.career-code-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.career-code-letters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}
.career-code-letter {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  background: color-mix(in srgb, var(--clr) 18%, transparent);
  color: var(--clr);
  border: 2px solid var(--clr);
  box-shadow: 0 0 14px color-mix(in srgb, var(--clr) 30%, transparent);
  letter-spacing: 0;
}
.career-code-name {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 0.5rem;
}
.career-results-right { flex: 1; min-width: 180px; }
.career-bars { display: flex; flex-direction: column; gap: 0.5rem; }
.career-bar-row { display: flex; align-items: center; gap: 0.625rem; }
.career-bar-label { width: 16px; font-size: 0.75rem; font-weight: 700; color: var(--navy); }
.career-bar-track { flex: 1; height: 9px; background: #eef1f6; border-radius: 5px; overflow: hidden; }
.career-bar-fill { height: 100%; border-radius: 5px; transition: width 0.7s cubic-bezier(0.22,1,0.36,1); }
.career-bar-score { font-size: 0.75rem; color: var(--muted); width: 24px; text-align: right; }

.career-retake-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1.125rem;
  border-radius: 8px;
  border: 1px solid var(--border2);
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.career-retake-btn:hover { border-color: var(--navy); color: var(--navy); }

.career-type-cards { display: flex; flex-direction: column; gap: 0.875rem; margin-bottom: 2.5rem; }
.career-type-card {
  display: flex;
  align-items: flex-start;
  gap: 1.125rem;
  background: color-mix(in srgb, var(--clr) 4%, #fff);
  border: 1px solid color-mix(in srgb, var(--clr) 18%, transparent);
  border-left: 4px solid var(--clr);
  border-radius: 16px;
  padding: 1.125rem 1.5rem;
  transition: box-shadow 0.15s, transform 0.15s;
}
.career-type-card:hover {
  box-shadow: 0 4px 18px color-mix(in srgb, var(--clr) 14%, transparent);
  transform: translateY(-1px);
}
.career-type-letter {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--clr) 14%, white);
  color: var(--clr);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
  flex-shrink: 0;
  border: 1.5px solid color-mix(in srgb, var(--clr) 30%, transparent);
}
.career-type-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.career-type-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.55; }

/* Job recommendations */
.career-jobs-section { margin-top: 0.5rem; }
.career-jobs-heading {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
  border-left: 3px solid #6366f1;
  padding-left: 0.75rem;
}
.career-jobs-sub {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.career-jobs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.career-job-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.875rem 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.career-job-card:hover { border-color: #6366f1; box-shadow: 0 2px 12px rgba(99,102,241,0.1); }
.career-job-card-top {
  border-color: rgba(99,102,241,0.3);
  background: linear-gradient(135deg, rgba(99,102,241,0.03) 0%, #fff 100%);
}
.career-job-rank {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--clr);
  color: var(--clr);
  font-size: 0.8125rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.career-job-info { flex: 1; min-width: 0; }
.career-job-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}
.career-job-type {
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}
.career-job-type-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.career-job-best-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #6366f1;
  background: rgba(99,102,241,0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}
.career-job-links { display: flex; flex-direction: column; gap: 0.25rem; flex-shrink: 0; }
.career-job-link {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #6366f1;
  text-decoration: none;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  border: 1px solid rgba(99,102,241,0.25);
  transition: background 0.12s;
  text-align: center;
  white-space: nowrap;
}
.career-job-link:hover { background: rgba(99,102,241,0.08); }

@media (max-width: 560px) {
  .career-jobs-grid { grid-template-columns: 1fr; }
  .quiz-choices { grid-template-columns: 1fr; }
  .quiz-card { padding: 1.75rem 1.25rem 1.5rem; }
  .quiz-question { font-size: 1.125rem; }
  .quiz-footer-hint { display: none; }
  .career-results-top { flex-direction: column; }
}

/* ============================================================
   JOB TRACKER
   ============================================================ */

/* ── Banner ── */
.banner-tracker {
  background: linear-gradient(135deg, #0c1f40 0%, #1a0848 45%, #003d36 100%) !important;
}
.banner-tracker .sb-blob-1 { background:#7c3aed; width:270px;height:270px; top:-80px;right:12%; opacity:.2; }
.banner-tracker .sb-blob-2 { background:#00968a; width:170px;height:170px; bottom:-60px;left:5%; opacity:.1; }
.banner-tracker .sb-accent { color:#a5f3fc !important; }

/* ── Body layout ── */
.tracker-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ── Controls row (stats + add button) ── */
.tracker-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.tracker-stats {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}
.tracker-stat-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.875rem;
  background: #fff;
  border: 1px solid #e8e6e2;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #3a3a3a;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.tracker-stat-chip strong {
  font-weight: 800;
  color: #1b3461;
  font-variant-numeric: tabular-nums;
}
.tracker-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.125rem;
  background: #00968a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .1s;
  font-family: inherit;
}
.tracker-add-btn:hover  { background: #007a6f; }
.tracker-add-btn:active { transform: scale(.97); }

/* ── Search + filter row ── */
.tracker-search-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.tracker-search-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
}
.tracker-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9a9491;
  pointer-events: none;
}
.tracker-search-input {
  width: 100%;
  padding: 0.5rem 0.875rem 0.5rem 2.25rem;
  border: 1.5px solid #e8e6e2;
  border-radius: 8px;
  font-size: 0.82rem;
  font-family: inherit;
  color: #1a1a1a;
  background: #fff;
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
}
.tracker-search-input:focus { border-color: #1b3461; }
.tracker-search-input::placeholder { color: #b0aaa4; }

/* ── Filter tabs ── */
.tracker-filter-tabs {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}
.tracker-filter-tab {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1.5px solid #e8e6e2;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b6b6b;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.tracker-filter-tab:hover   { border-color: #b0aaa4; color: #1a1a1a; }
.tracker-filter-tab.active  { background: #1b3461; color: #fff; border-color: #1b3461; }

/* ── Application grid ── */
.tracker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

/* ── Application card ── */
.tracker-card {
  background: #fff;
  border: 1px solid #e8e6e2;
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1rem;
  cursor: pointer;
  transition: box-shadow .18s, transform .15s, border-color .15s;
  border-left: 4px solid transparent;
  position: relative;
}
.tracker-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.tracker-card.selected {
  border-color: #1b3461;
  box-shadow: 0 0 0 2px rgba(27,52,97,.15);
}
.tracker-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
}
.tracker-card-logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items:center; justify-content:center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  font-family: var(--mono);
}
.tracker-card-role   { font-size: 0.9375rem; font-weight: 700; color: #1a1a1a; margin: 0 0 0.15rem; }
.tracker-card-company{ font-size: 0.8125rem; color: #6b6b6b; margin: 0; }
.tracker-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.625rem;
  flex-wrap: wrap;
}
.tracker-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  border: 1.5px solid;
}
.tracker-card-date {
  font-size: 0.7rem;
  color: #9a9a9a;
}
.tracker-card-location {
  font-size: 0.7rem;
  color: #9a9a9a;
  display: flex; align-items:center; gap:0.2rem;
}

/* Quick-log button on card */
.tracker-quick-log-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.6rem;
  border-radius: 6px;
  border: 1.5px solid #e8e6e2;
  background: #fff;
  color: #1b3461;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.tracker-quick-log-btn:hover { background: #1b3461; color: #fff; border-color: #1b3461; }

/* Pipeline mini progress bar */
.tracker-pipeline {
  display: flex;
  align-items: center;
  gap: 2px;
}
.tracker-pipeline-step {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #e8e6e2;
  transition: background .2s;
}
.tracker-pipeline-step.done   { background: #00968a; }
.tracker-pipeline-step.active { background: #1b3461; }
.tracker-pipeline-step.fail   { background: #dc2626; }

/* ── Empty state ── */
.tracker-empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 4rem 2rem;
}
.tracker-empty-state img {
  width: 90px; height: 90px; object-fit:contain; margin-bottom: 1rem; opacity:.85;
}
.tracker-empty-state h3 { font-size:1.125rem; color:#1a1a1a; margin:0 0 .4rem; }
.tracker-empty-state p  { font-size:.875rem; color:#6b6b6b; margin:0 0 1.25rem; }

/* ══════════════════════════════════════════
   TRACKER — Spreadsheet table
══════════════════════════════════════════ */
.tracker-table-wrap {
  background: #fff;
  border-radius: 10px;
  border: 1.5px solid #e8e6e2;
  overflow: hidden;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.tracker-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.tracker-table thead tr {
  background: #f8f7f5;
}
.tracker-table th {
  padding: 0.55rem 0.75rem;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9a9491;
  border-bottom: 1.5px solid #e8e6e2;
  white-space: nowrap;
}
.tracker-table td {
  padding: 0;
  border-bottom: 1px solid #f0eeed;
  vertical-align: middle;
  min-height: 2.75rem;
}
.tsheet-row:last-child td { border-bottom: none; }
.tsheet-row:hover td { background: #fdfcfb; }
.tsheet-row { cursor: default; }

/* Editable inputs */
.tsheet-input {
  display: block;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.55rem 0.75rem;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.82rem;
  color: #1a1a1a;
  box-sizing: border-box;
  min-width: 0;
  cursor: text;
  -webkit-tap-highlight-color: rgba(245,158,11,0.15);
}
.tsheet-input::placeholder { color: #c8c4c0; }
.tsheet-input:focus {
  background: #fffbf0;
  box-shadow: inset 0 0 0 2px #f59e0b;
  border-radius: 3px;
}
.tsheet-date { font-size: 0.78rem; color: #6b6b6b; }

/* Status select */
.tsheet-select {
  display: block;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.55rem 0.5rem;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(245,158,11,0.15);
}
.tsheet-select:focus { background: #fffbf0; }

/* Row save states */
.tsheet-saving td { background: #fffbf0 !important; }
.tsheet-saved td  { background: #f0fdf4 !important; transition: background 1.2s ease; }

/* Action buttons */
.tsheet-actions {
  padding: 0.3rem 0.5rem !important;
  white-space: nowrap;
}
.tsheet-log-btn {
  padding: 0.22rem 0.55rem;
  border-radius: 5px;
  border: 1.5px solid #e2e0dd;
  background: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  color: #1b3461;
  cursor: pointer;
  font-family: inherit;
  margin-right: 3px;
  transition: background .12s, border-color .12s;
}
.tsheet-log-btn:hover { background: #1b3461; color: #fff; border-color: #1b3461; }
.tsheet-view-btn {
  padding: 0.25rem 0.35rem;
  border-radius: 5px;
  border: 1.5px solid #e2e0dd;
  background: #fff;
  color: #6b6b6b;
  cursor: pointer;
  line-height: 1;
  margin-right: 3px;
  transition: background .12s, color .12s;
}
.tsheet-view-btn:hover { background: #f0eeed; color: #1b3461; }
.tsheet-del-btn {
  padding: 0.25rem 0.35rem;
  border-radius: 5px;
  border: 1.5px solid #fee2e2;
  background: #fff;
  color: #dc2626;
  cursor: pointer;
  line-height: 1;
  transition: background .12s;
}
.tsheet-del-btn:hover { background: #fee2e2; }

/* Add row button */
.tracker-add-row-btn {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  color: #9a9491;
  background: #faf9f8;
  border: none;
  border-top: 1.5px solid #e8e6e2;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s;
}
.tracker-add-row-btn:hover { background: #f0eeed; color: #1b3461; }
.tracker-add-row-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Modal overlay ── */
.tracker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12,31,64,.55);
  backdrop-filter: blur(4px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.tracker-modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
  animation: trackerModalIn .2s ease-out;
}
.tracker-modal-lg { max-width: 720px; }
@keyframes trackerModalIn {
  from { opacity:0; transform:scale(.96) translateY(10px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}
.tracker-modal-head {
  padding: 1.375rem 1.5rem 1.125rem;
  border-bottom: 1px solid #f0eeeb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: sticky; top:0; background:#fff; z-index:1; border-radius:18px 18px 0 0;
}
.tracker-modal-title { font-size:1.0625rem; font-weight:800; color:#1a1a1a; margin:0; }
.tracker-modal-close {
  width:30px; height:30px;
  border-radius:8px; border:none;
  background:rgba(0,0,0,.06);
  color:#6b6b6b;
  font-size:1.125rem; line-height:1;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition: background .12s;
  font-family:inherit;
}
.tracker-modal-close:hover { background:rgba(0,0,0,.1); color:#1a1a1a; }
.tracker-modal-body { padding: 1.375rem 1.5rem; }
.tracker-modal-footer {
  padding: 1rem 1.5rem 1.375rem;
  border-top: 1px solid #f0eeeb;
  display: flex;
  justify-content: flex-end;
  gap: 0.625rem;
}

/* Form fields inside modal */
.tform-grid { display:grid; grid-template-columns:1fr 1fr; gap:.875rem; }
.tform-grid-full { grid-column:1/-1; }
@media (max-width:480px) { .tform-grid { grid-template-columns:1fr; } }
.tform-field { display:flex; flex-direction:column; gap:.35rem; }
.tform-field label { font-size:.78rem; font-weight:600; color:#3a3a3a; }
.tform-field input,
.tform-field textarea,
.tform-field select {
  padding:.575rem .75rem;
  border:1.5px solid #e8e6e2;
  border-radius:9px;
  font-size:.875rem;
  background:#faf9f7;
  color:#1a1a1a;
  font-family:inherit;
  outline:none;
  transition:border-color .15s, box-shadow .15s;
}
.tform-field input:focus,
.tform-field textarea:focus,
.tform-field select:focus {
  border-color:#00968a;
  box-shadow:0 0 0 3px rgba(0,150,138,.1);
  background:#fff;
}

/* ── Buttons ── */
.btn-tracker-primary {
  padding:.575rem 1.125rem;
  background:#00968a; color:#fff;
  border:none; border-radius:9px;
  font-size:.875rem; font-weight:700;
  cursor:pointer; font-family:inherit;
  transition:background .15s;
}
.btn-tracker-primary:hover { background:#007a6f; }
.btn-tracker-ghost {
  padding:.575rem 1rem;
  background:transparent; color:#6b6b6b;
  border:1.5px solid #e8e6e2; border-radius:9px;
  font-size:.875rem; font-weight:600;
  cursor:pointer; font-family:inherit;
  transition:all .15s;
}
.btn-tracker-ghost:hover { border-color:#b0aaa4; color:#1a1a1a; }
.btn-tracker-danger {
  padding:.5rem .875rem;
  background:transparent; color:#dc2626;
  border:1.5px solid #fca5a5; border-radius:9px;
  font-size:.8125rem; font-weight:600;
  cursor:pointer; font-family:inherit;
  transition:all .15s;
}
.btn-tracker-danger:hover { background:#fee2e2; }

/* ── Detail modal timeline ── */
.tracker-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}
.tracker-detail-logo {
  width:48px; height:48px;
  border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  font-size:1.3rem; font-weight:800; color:#fff;
  flex-shrink:0;
}
.tracker-detail-role   { font-size:1.125rem; font-weight:800; color:#1a1a1a; margin:0 0 .2rem; }
.tracker-detail-company{ font-size:.875rem; color:#6b6b6b; margin:0 0 .625rem; }
.tracker-status-select {
  padding:.25rem .6rem;
  border:1.5px solid #e8e6e2;
  border-radius:8px;
  font-size:.75rem; font-weight:700;
  font-family:inherit; cursor:pointer;
  outline:none;
}
.tracker-detail-meta-row {
  display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:1rem;
}
.tracker-detail-meta-chip {
  display:flex; align-items:center; gap:.3rem;
  padding:.2rem .6rem;
  background:#f5f4f2; border-radius:999px;
  font-size:.7rem; color:#6b6b6b;
}

/* Timeline */
.tracker-timeline-label {
  font-size:.6875rem; font-weight:700; color:#6b6b6b;
  text-transform:uppercase; letter-spacing:.07em;
  margin:0 0 .875rem;
}
.tracker-timeline { position:relative; }
.tracker-timeline::before {
  content:"";
  position:absolute;
  left:14px; top:0; bottom:0;
  width:2px;
  background: linear-gradient(to bottom, #e8e6e2 0%, #e8e6e2 100%);
  border-radius:1px;
}
.tracker-event {
  position:relative;
  padding-left:40px;
  margin-bottom:.875rem;
}
.tracker-event-dot {
  position:absolute;
  left:6px;
  top:3px;
  width:18px; height:18px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:.65rem;
  z-index:1;
  border:2px solid #fff;
}
.tracker-event-card {
  background:#f8f7f5;
  border:1px solid #e8e6e2;
  border-radius:10px;
  padding:.625rem .875rem;
  position:relative;
}
.tracker-event-title   { font-size:.8375rem; font-weight:700; color:#1a1a1a; margin:0 0 .15rem; }
.tracker-event-date    { font-size:.7rem; color:#9a9a9a; }
.tracker-event-notes   { font-size:.8rem; color:#3a3a3a; margin:.4rem 0 0; line-height:1.5; }
.tracker-event-delete {
  position:absolute; top:.5rem; right:.5rem;
  width:22px; height:22px;
  border:none; border-radius:6px; background:transparent;
  color:#bbb; cursor:pointer; font-size:.875rem;
  display:flex; align-items:center; justify-content:center;
  transition:all .12s;
}
.tracker-event-delete:hover { background:#fee2e2; color:#dc2626; }

.tracker-add-event-btn {
  display:flex; align-items:center; gap:.4rem;
  width:100%; padding:.6rem .875rem;
  background:#f5f4f2; border:1.5px dashed #d8d6d2;
  border-radius:10px; color:#6b6b6b;
  font-size:.8375rem; font-weight:600;
  cursor:pointer; font-family:inherit;
  transition:all .15s; margin-top:.5rem;
  justify-content:center;
}
.tracker-add-event-btn:hover { background:#fff; border-color:#00968a; color:#00968a; }

/* Detail sections */
.tracker-detail-section { margin-top: 1.375rem; }
.tracker-detail-section-label {
  font-size:.6875rem; font-weight:700; color:#9a9a9a;
  text-transform:uppercase; letter-spacing:.07em;
  margin:0 0 .5rem;
}
.tracker-notes-field {
  width:100%;
  padding:.6rem .75rem;
  border:1.5px solid #e8e6e2;
  border-radius:9px;
  font-size:.875rem;
  background:#faf9f7;
  font-family:inherit;
  resize:vertical;
  outline:none;
  transition:border-color .15s;
}
.tracker-notes-field:focus { border-color:#00968a; background:#fff; }

@media (max-width:640px) {
  .tracker-body { padding:1.5rem 1rem 3rem; }
  .tracker-grid { grid-template-columns:1fr; }
}
