/* ═══════════════════════════════════════════════════════════
   CariGaji.id — Design System
   Primary: #2A83FD  Navy: #142A5B  Teal: #2CCAB9
═══════════════════════════════════════════════════════════ */

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

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  /* Brand */
  --blue:         #2A83FD;
  --blue-dark:    #1A6FE0;
  --blue-light:   #E5F0FF;
  --blue-mid:     #DDEEFF;
  --teal:         #2CCAB9;
  --teal-light:   #E0FAF7;

  /* Text */
  --navy:         #142A5B;
  --navy-mid:     #243A6E;
  --muted:        #8F9AB0;
  --text:         #142A5B;

  /* Surfaces */
  --bg:           #F3F4F6;
  --surface:      #FFFFFF;
  --surface-2:    #F8F9FC;

  /* Border */
  --border:       #E1E6EB;
  --border-dark:  #C8D0DD;

  /* Semantic */
  --green:        #2D9F40;
  --green-light:  #E8F8EB;
  --orange:       #FF8138;
  --orange-light: #FFF1E8;
  --red:          #DB5132;
  --red-light:    #FEEEEA;

  /* Radius */
  --r-sm:   6px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   16px;
  --r-pill: 100px;

  /* Shadow */
  --shadow-sm: 0 1px 4px rgba(20, 42, 91, 0.06);
  --shadow-md: 0 2px 12px rgba(20, 42, 91, 0.10);
  --shadow-lg: 0 4px 24px rgba(20, 42, 91, 0.14);

  /* Transition */
  --ease: all 0.2s ease;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a.related-item, a.career-card, a.drop-item, a.drop-chip { color: inherit; text-decoration: none; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, select { font-family: inherit; }
img { max-width: 100%; }

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}
.logo span {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.78em;
  letter-spacing: 0;
}
.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  transition: var(--ease);
  cursor: pointer;
  border: none;
  background: none;
}
.nav-link:hover { color: var(--blue); background: var(--blue-light); }
.nav-link.active { color: var(--blue); background: var(--blue-light); font-weight: 600; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1a5fd4 100%);
  padding: 56px 32px 64px;
  position: relative;
  overflow: visible;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  background: rgba(42, 131, 253, 0.15);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 10%;
  width: 240px; height: 240px;
  background: rgba(44, 202, 185, 0.10);
  border-radius: 50%;
}
.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-centered {
  text-align: center;
}
.hero-centered .hero-badge { display: inline-flex; }
.hero-centered .hero-stats { justify-content: center; }
.hero-centered .hero-sub { max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(42, 131, 253, 0.2);
  border: 1px solid rgba(42, 131, 253, 0.4);
  color: #93C5FD;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}
.hero h1 {
  color: #FFFFFF;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.hero-sub {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin-bottom: 32px;
}
.hero-popular {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.hero-popular-label {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.hero-popular .chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.hero-popular .chip {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  padding: 4px 10px;
}
.hero-popular .chip:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 12px;
}
.hero-stat strong {
  color: #ffffff;
  font-weight: 700;
}

/* ── Search bar ──────────────────────────────────────────── */
.search-wrap { position: relative; z-index: 300; }
.search-bar {
  display: flex;
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1.5px solid transparent;
  transition: var(--ease);
}
.search-bar:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(42,131,253,0.12), var(--shadow-lg);
}
.search-icon {
  display: flex;
  align-items: center;
  padding: 0 16px 0 18px;
  color: var(--muted);
  font-size: 16px;
}
.search-input {
  flex: 1;
  padding: 16px 4px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  outline: none;
  background: transparent;
}
.search-input::placeholder { color: var(--muted); font-weight: 400; }
.search-btn {
  background: var(--blue);
  border: none;
  color: #fff;
  padding: 0 28px;
  font-size: 13px;
  font-weight: 700;
  transition: var(--ease);
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.search-btn:hover { background: var(--blue-dark); }

/* Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  z-index: 400;
  max-height: 360px;
  overflow-y: auto;
  display: none;
  text-align: left;
}
.search-dropdown.open { display: block; }
.drop-header {
  padding: 10px 16px 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.drop-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  cursor: pointer;
  transition: var(--ease);
  border-bottom: 1px solid var(--border);
}
.drop-item:last-child { border-bottom: none; }
.drop-popular-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 16px 14px;
}
.drop-chip {
  font-size: 11px;
  padding: 4px 10px;
  cursor: pointer;
}
.drop-item:hover { background: var(--blue-light); }
.drop-left { display: flex; align-items: center; gap: 10px; }
.drop-icon {
  width: 36px; height: 36px;
  background: var(--blue-light);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 15px;
  flex-shrink: 0;
}
.drop-title { font-size: 13px; font-weight: 600; color: var(--navy); text-align: left; }
.drop-sub { font-size: 11px; color: var(--muted); margin-top: 1px; text-align: left; }
.drop-right { text-align: right; flex-shrink: 0; }
.drop-salary { font-size: 12px; font-weight: 700; color: var(--blue); }
.drop-count { font-size: 11px; color: var(--muted); }

/* ── Tabs ────────────────────────────────────────────────── */
.tab-bar {
  background: var(--surface);
  border-bottom: 2px solid var(--border);
}
.tab-bar-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
}
.tab {
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  transition: var(--ease);
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
}
.tab:hover { color: var(--blue); }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); }

/* ── Page container ──────────────────────────────────────── */
.page-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 32px;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.badge-blue   { background: var(--blue-light); color: var(--blue); }
.badge-teal   { background: var(--teal-light); color: #0D9488; }
.badge-green  { background: var(--green-light); color: var(--green); }
.badge-orange { background: var(--orange-light); color: var(--orange); }
.badge-red    { background: var(--red-light); color: var(--red); }
.badge-gray   { background: var(--bg); color: var(--muted); }
.badge-navy   { background: var(--navy); color: #fff; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  transition: var(--ease);
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue-light); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--blue); background: var(--blue-light); }
.btn-sm { padding: 7px 14px; font-size: 12px; }

/* ── Chips ───────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--navy);
  cursor: pointer;
  transition: var(--ease);
}
.chip:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.chip.active { border-color: var(--blue); color: var(--blue); background: var(--blue-light); font-weight: 600; }

/* ── Category grid ───────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 32px;
}
.cat-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 12px;
  cursor: pointer;
  transition: var(--ease);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.cat-card:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.cat-card:hover .cat-icon-wrap { background: var(--blue); }
.cat-card:hover .cat-icon-wrap span { filter: brightness(0) invert(1); }
.cat-card.active {
  border-color: var(--blue);
  background: var(--blue-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.cat-card.active .cat-icon-wrap { background: var(--blue); }
.cat-card.active .cat-icon-wrap span { filter: brightness(0) invert(1); }
.cat-icon-wrap {
  width: 32px; height: 32px;
  flex-shrink: 0;
  background: var(--blue-light);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--ease);
}
.cat-name { font-size: 12px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.cat-count { font-size: 11px; color: var(--muted); }
.cat-salary { font-size: 13px; font-weight: 700; color: var(--blue); }

/* ── Popular chips row ───────────────────────────────────── */
.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

/* ── Section headings ────────────────────────────────────── */
.section-head { margin-bottom: 20px; }
.section-title { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.section-sub { font-size: 13px; color: var(--muted); }

/* ── Salary detail ───────────────────────────────────────── */
.salary-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}
.role-title { font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1.2; }
.role-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.role-median {
  font-size: 40px;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
  margin: 16px 0 2px;
  letter-spacing: -1px;
}
.role-median-sub { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.role-meta { font-size: 12px; color: var(--muted); }

/* Salary bar */
.salary-bar-wrap { margin: 24px 0 16px; }
.bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 8px;
}
.bar-track {
  height: 14px;
  background: var(--bg);
  border-radius: 7px;
  position: relative;
}
.bar-fill {
  position: absolute;
  height: 100%;
  border-radius: 7px;
  background: linear-gradient(90deg, #93C5FD, var(--blue));
}
.bar-pin {
  position: absolute;
  top: -6px;
  width: 6px; height: 26px;
  background: var(--navy);
  border-radius: 3px;
  transform: translateX(-50%);
  z-index: 2;
}
.bar-pin-label {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.bar-legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
}
.bar-legend span { display: flex; align-items: center; gap: 5px; }
.leg-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Percentile table */
.pct-table { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 20px; }
.pct-cell {
  text-align: center;
  padding: 10px 6px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: var(--surface-2);
}
.pct-cell.highlight { background: var(--blue-light); border-color: var(--blue); }
.pct-label { font-size: 10px; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.pct-value { font-size: 12px; font-weight: 800; color: var(--navy); }
.pct-cell.highlight .pct-value { color: var(--blue); }
.pct-source {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

/* Compare tool */
.compare-tool {
  background: linear-gradient(135deg, var(--blue-light), var(--teal-light));
  border: 1.5px solid #BFDBFE;
  border-radius: var(--r-lg);
  padding: 20px;
  margin-top: 20px;
}
.compare-tool h3 { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.compare-row { display: flex; gap: 8px; }
.compare-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  background: var(--surface);
  color: var(--navy);
  outline: none;
  transition: var(--ease);
}
.compare-input:focus { border-color: var(--blue); }
.compare-result {
  margin-top: 14px;
  padding: 14px;
  background: var(--surface);
  border-radius: var(--r-md);
  display: none;
}
.compare-result.show { display: block; }
.compare-verdict { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.verdict-above { color: var(--green); }
.verdict-below { color: var(--red); }
.verdict-at    { color: var(--blue); }
.compare-detail { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* Breakdown bars */
.breakdown-list { display: flex; flex-direction: column; gap: 12px; }
.breakdown-item { display: flex; align-items: center; gap: 10px; }
.breakdown-label { font-size: 12px; color: var(--text); min-width: 110px; flex-shrink: 0; font-weight: 500; }
.breakdown-track { flex: 1; height: 7px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.breakdown-fill { height: 100%; border-radius: 4px; background: var(--blue); transition: width 0.6s ease; }
.breakdown-value { font-size: 11px; color: var(--muted); min-width: 68px; text-align: right; font-weight: 600; }

/* Province grid */
.province-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.province-card {
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
  text-align: center;
  transition: var(--ease);
  cursor: pointer;
}
.province-card:hover { border-color: var(--blue); background: var(--blue-light); }
.province-name { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.province-salary { font-size: 13px; font-weight: 700; color: var(--navy); }

/* Related roles */
.related-list { display: flex; flex-direction: column; }
.related-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: var(--ease);
  border-bottom: 1px solid var(--border);
}
.related-item:last-child { border-bottom: none; }
.related-item:hover { background: var(--blue-light); }
.related-title { font-size: 13px; font-weight: 500; color: var(--navy); }
.related-sub   { font-size: 11px; color: var(--muted); }
.related-salary { font-size: 12px; font-weight: 700; color: var(--blue); flex-shrink: 0; }

/* ── Jobs page layout ────────────────────────────────────── */
.jobs-layout {
  display: grid;
  grid-template-columns: 256px 1fr;
  gap: 20px;
  align-items: start;
}

/* Filter panel */
.filter-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: sticky;
  top: 84px;
  box-shadow: var(--shadow-sm);
}
.filter-panel-header {
  padding: 16px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-2);
}
.filter-reset {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  background: none;
  border: none;
  transition: var(--ease);
}
.filter-reset:hover { color: var(--blue-dark); }
.filter-section { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.filter-section:last-child { border-bottom: none; }
.filter-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.filter-options { display: flex; flex-direction: column; gap: 7px; }
.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: var(--ease);
}
.filter-option input[type="checkbox"] {
  accent-color: var(--blue);
  width: 14px; height: 14px;
}
.filter-option:hover { color: var(--blue); }
.filter-count { margin-left: auto; font-size: 11px; color: var(--muted); }

.salary-range-inputs { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.salary-range-inputs input {
  flex: 1;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 12px;
  width: 0;
  outline: none;
  color: var(--navy);
  transition: var(--ease);
}
.salary-range-inputs input:focus { border-color: var(--blue); }
.salary-range-inputs span { color: var(--muted); font-size: 12px; flex-shrink: 0; }
.filter-apply {
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 700;
  margin-top: 12px;
  transition: var(--ease);
}
.filter-apply:hover { background: var(--blue-dark); }

/* Jobs list */
.jobs-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.result-count { font-size: 13px; color: var(--muted); }
.result-count strong { color: var(--navy); font-weight: 700; }
.sort-select {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 12px;
  font-weight: 500;
  color: var(--navy);
  background: var(--surface);
  outline: none;
  cursor: pointer;
  transition: var(--ease);
}
.sort-select:focus { border-color: var(--blue); }

/* ── Job card ─────────────────────────────────────────────── */
.job-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--ease);
  position: relative;
}
.job-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.job-card-inner { display: flex; gap: 14px; }
.job-logo {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--blue-light), var(--blue-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--blue);
  flex-shrink: 0;
  border: 1.5px solid #BFDBFE;
}
.job-content { flex: 1; min-width: 0; }
.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}
.job-title { font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.job-salary-range {
  font-size: 14px;
  font-weight: 800;
  color: var(--blue);
  white-space: nowrap;
  flex-shrink: 0;
}
.job-company {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-light);
  padding: 1px 7px;
  border-radius: var(--r-pill);
}
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.job-meta { font-size: 11px; color: var(--muted); display: flex; gap: 14px; align-items: center; }
.apply-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--r-md);
  font-size: 12px;
  font-weight: 700;
  transition: var(--ease);
  white-space: nowrap;
}
.apply-btn:hover { background: var(--blue-dark); }

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--blue); cursor: pointer; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border-dark); }

/* ── Loading / Empty states ──────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg) 25%, var(--border) 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-md);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 12px;
}
.skel-line { height: 12px; border-radius: 6px; margin-bottom: 8px; }
.jobs-loading-skeleton {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0;
}
.jobs-loading-skeleton::before,
.jobs-loading-skeleton::after {
  content: '';
  display: block;
  height: 96px;
  border-radius: var(--r-lg);
  background: linear-gradient(90deg, var(--bg) 25%, var(--border) 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.empty-state p { font-size: 13px; }

/* ── Load more ───────────────────────────────────────────── */
.load-more { text-align: center; padding: 20px 0; }
.load-more-btn {
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--navy);
  padding: 10px 28px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  transition: var(--ease);
}
.load-more-btn:hover { border-color: var(--blue); color: var(--blue); }

/* ── Spinner ─────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .salary-layout  { grid-template-columns: 1fr; }
  .jobs-layout    { grid-template-columns: 1fr; }
  .filter-panel   { position: static; }
  .pct-table      { grid-template-columns: repeat(3, 1fr); }
  .cat-grid       { grid-template-columns: repeat(4, 1fr); }
  .province-grid  { grid-template-columns: repeat(2, 1fr); }
  .hero h1        { font-size: 24px; }
  .page-wrap      { padding: 20px 16px; }
  .navbar         { padding: 0 16px; }
  .tab-bar-inner  { padding: 0 16px; }
  .hero-stats     { gap: 12px; }
  .hero-stat      { font-size: 11px; }
  .search-btn     { padding: 0 16px; font-size: 12px; }
  .role-title     { font-size: 20px; }
  .pct-table      { grid-template-columns: repeat(3, 1fr); }
  .jobs-layout    { gap: 12px; }
  .card           { padding: 16px; }
}
@media (max-width: 600px) {
  /* 2-row horizontal carousel for category grid */
  .cat-grid {
    grid-template-columns: repeat(6, 110px);
    grid-template-rows: auto auto;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    gap: 8px;
  }
  .cat-card { scroll-snap-align: start; }
}
@media (max-width: 480px) {
  .hero      { padding: 36px 16px 44px; }
  .hero h1   { font-size: 21px; }
  .hero-stats { flex-wrap: wrap; gap: 8px 16px; }
  .nav-links { display: none; }
  .role-median { font-size: 28px; }
  .gate-input-row { max-width: 100%; }
  .pct-table  { grid-template-columns: repeat(2, 1fr); }
  .province-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-tool-mini { flex-direction: column; align-items: stretch; }
  .compare-tool-mini .compare-row { flex-direction: column; }
  .pro-banner { flex-direction: column; text-align: center; }
  .search-btn { padding: 0 12px; font-size: 12px; }
  .job-card   { padding: 14px; }
  .job-header { flex-direction: column; gap: 4px; }
  .job-salary-range { font-size: 12px; }
}

/* ── Salary gate (prompt-first UX) ──────────────────────── */
.gate-divider {
  border-top: 1px solid var(--border);
  margin: 20px 0 24px;
}
.gate-heading {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
  text-align: center;
}
.gate-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  text-align: center;
}
.gate-input-row {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--blue);
  border-radius: var(--r-lg);
  overflow: hidden;
  max-width: 440px;
  margin: 0 auto 12px;
  box-shadow: 0 0 0 4px rgba(42,131,253,0.08);
}
.gate-rp {
  display: flex;
  align-items: center;
  padding: 0 12px 0 16px;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  background: var(--blue-light);
  border-right: 1.5px solid #BFDBFE;
  flex-shrink: 0;
}
.gate-input {
  flex: 1;
  padding: 14px 10px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  outline: none;
  background: transparent;
  font-family: inherit;
  min-width: 0;
  letter-spacing: 0.5px;
}
.gate-input::placeholder { color: var(--muted); font-weight: 400; font-size: 14px; }
.gate-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: var(--ease);
  flex-shrink: 0;
}
.gate-btn:hover { background: var(--blue-dark); }
.gate-skip {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 0;
  transition: var(--ease);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.gate-skip:hover { color: var(--blue); }

/* Salary reveal animation */
@keyframes revealFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
#salary-reveal.revealed {
  animation: revealFadeUp 0.35s ease forwards;
}
.reveal-section {
  opacity: 0;
}
.reveal-section.revealed {
  animation: revealFadeUp 0.35s ease forwards;
  opacity: 1;
}

/* User salary pin on bar */
.bar-user-pin {
  position: absolute;
  top: -6px;
  width: 6px; height: 26px;
  background: var(--orange);
  border-radius: 3px;
  transform: translateX(-50%);
  z-index: 3;
}
.bar-user-pin-label {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Compact re-compare tool */
.compare-tool-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.compare-tool-mini .compare-row { flex: 1; display: flex; gap: 8px; }
.rp-input-wrap {
  flex: 1;
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: var(--ease);
}
.rp-input-wrap:focus-within { border-color: var(--blue); }
.rp-prefix {
  display: flex;
  align-items: center;
  padding: 0 8px 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.compare-tool-mini .compare-input {
  flex: 1;
  padding: 7px 10px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  outline: none;
  background: transparent;
  font-family: inherit;
  letter-spacing: 0.4px;
  min-width: 0;
}
.compare-tool-mini .compare-input:focus { border-color: var(--blue); }

/* ── Navbar Pro button ───────────────────────────────────── */
.btn-pro-nav {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #3B1F8E, #6B3FBE);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: var(--ease);
  text-decoration: none;
  letter-spacing: 0.2px;
}
.btn-pro-nav:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59,31,142,0.35); }

/* ── Sidebar sticky wrapper ──────────────────────────────── */
.sidebar-sticky {
  position: sticky;
  top: 84px;
}

/* ── Pro widget ───────────────────────────────────────────── */
.pro-widget {
  background: linear-gradient(145deg, #3B1F8E 0%, #5B3ABE 60%, #4A30A5 100%);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 6px 24px rgba(59,31,142,0.35);
  position: relative;
  overflow: hidden;
}
.pro-widget::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.pro-widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.pro-crown { font-size: 22px; }
.pro-badge-logo {
  font-size: 16px;
  font-weight: 800;
  color: rgba(255,255,255,0.95);
  letter-spacing: -0.3px;
}
.pro-badge-logo span { color: #FFD700; }
.pro-features {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.pro-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.88);
  font-size: 12px;
  font-weight: 500;
}
.pro-feature::before {
  content: '✓';
  color: #4ADE80;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}
.pro-cta {
  display: block;
  background: #FFD700;
  color: #3B1F8E;
  text-align: center;
  padding: 11px 16px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: var(--ease);
  letter-spacing: 0.2px;
}
.pro-cta:hover { background: #FFC300; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

/* ── Skills section ──────────────────────────────────────── */
.skills-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  background: var(--blue-light);
  color: var(--blue);
  border: 1.5px solid #BFDBFE;
  transition: var(--ease);
  cursor: default;
}
.skill-chip:hover { background: var(--blue); color: #fff; }

/* ── Upskilling cross-sell (inside edu breakdown) ───────── */
.upskill-crosssell {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: linear-gradient(135deg, #FFF4EC 0%, #FFF9F5 100%);
  border: 1.5px solid #FFD4B0;
  border-radius: var(--r-lg);
  padding: 14px 16px;
  margin-top: 16px;
}
.upskill-icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}
.upskill-body { flex: 1; }
.upskill-insight {
  font-size: 13px;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 6px;
}
.upskill-tagline {
  font-size: 12px;
  color: #C05A00;
  font-weight: 600;
  margin-bottom: 10px;
}
.upskill-cta {
  display: inline-block;
  background: #FF8138;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: background 0.15s;
}
.upskill-cta:hover { background: #e86e22; }

/* ── Cross-sell product cards ────────────────────────────── */
.crosssell-card {
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: var(--ease);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
}
.crosssell-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.crosssell-card--highlight {
  border-color: #FFD4B0;
  background: linear-gradient(135deg, #FFF4EC 0%, #FFF9F5 100%);
}
.crosssell-card--highlight:hover { border-color: #FF8138; }
.crosssell-icon { font-size: 26px; flex-shrink: 0; margin-top: 2px; }
.crosssell-title { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.crosssell-desc { font-size: 11px; color: var(--muted); margin-bottom: 8px; line-height: 1.5; }
.crosssell-btn {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-light);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
}

/* ── Similar careers carousel ────────────────────────────── */
.careers-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.careers-carousel::-webkit-scrollbar { height: 4px; }
.careers-carousel::-webkit-scrollbar-track { background: var(--bg); border-radius: 2px; }
.careers-carousel::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 2px; }
.career-card {
  flex: 0 0 175px;
  scroll-snap-align: start;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 14px;
  cursor: pointer;
  transition: var(--ease);
  background: var(--surface);
}
.career-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.career-card-icon { font-size: 26px; margin-bottom: 10px; }
.career-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.35;
  min-height: 32px;
}
.career-card-salary { font-size: 14px; font-weight: 800; color: var(--blue); }
.career-card-count { font-size: 10px; color: var(--muted); margin-top: 3px; }

/* ── Bottom Pro promo banner ─────────────────────────────── */
.pro-banner {
  background: linear-gradient(135deg, #3B1F8E 0%, #5B3ABE 100%);
  border-radius: var(--r-xl);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  box-shadow: 0 8px 32px rgba(59,31,142,0.3);
}
.pro-banner-left { flex: 1; }
.pro-banner-cta {
  flex-shrink: 0;
  background: #FFD700;
  color: #3B1F8E;
  padding: 12px 22px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--ease);
}
.pro-banner-cta:hover { background: #FFC300; transform: translateY(-1px); }

/* ── Responsive additions ────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar-sticky { position: static; }
  .pro-banner { flex-direction: column; text-align: center; }
  .btn-pro-nav { display: none; }
}
@media (max-width: 480px) {
  .careers-carousel { gap: 10px; }
  .career-card { flex: 0 0 150px; padding: 14px 12px; }
}
