/* ─── GOOGLE FONTS ──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Sora:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ─── RESET + ROOT ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #faf9f7;
  --surface:     #ffffff;
  --surface2:    #f8f6f2;
  --border:      #e8e4dc;
  --border2:     #ddd9d0;
  --text:        #1a1814;
  --muted:       #7a7570;
  --muted2:      #aca8a0;
  --accent:      #f05a1a;
  --accent-dark: #c84410;
  --accent-dim:  rgba(240,90,26,0.08);
  --accent-glow: rgba(240,90,26,0.18);
  --blue:        #2563eb;
  --yellow:      #d97706;
  --red:         #dc2626;
  --green:       #16a34a;
  --mono:        'IBM Plex Mono', monospace;
  --sans:        'Plus Jakarta Sans', sans-serif;
  --display:     'Sora', sans-serif;
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  20px;
  --r-2xl: 28px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Warm dot pattern */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: radial-gradient(circle, rgba(240,90,26,0.055) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none; z-index: 0;
}

/* ─── HERO ──────────────────────────────────────────────── */
.hero {
  position: relative; z-index: 1;
  padding: 3.5rem 1.25rem 2.5rem;
  background: linear-gradient(160deg, #fff9f5 0%, #faf9f7 55%, #fff4ee 100%);
  overflow: hidden;
}
.hero-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .68rem; color: var(--accent);
  background: var(--accent-dim); border: 1px solid rgba(240,90,26,0.2);
  padding: 5px 12px; border-radius: 100px; margin-bottom: 1.5rem;
  letter-spacing: .5px;
}
h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 3.4rem);
  line-height: 1.1; letter-spacing: -1px;
  color: var(--text); margin-bottom: 1rem;
}
.h1-green  { color: var(--accent); }
.h1-blue   { color: var(--blue); }
.h1-accent { color: var(--accent); }
.hero-sub {
  font-size: .92rem; color: var(--muted); max-width: 520px;
  margin: 0 auto 2rem; line-height: 1.75; font-weight: 300;
}


/* ─── SEARCH BOX ─────────────────────────────────────────── */
.search-box {
  max-width: 700px; margin: 0 auto .85rem;
  background: var(--surface);
  border: 1.5px solid var(--border2);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow:
    0 0 0 4px rgba(240,90,26,0.06),
    0 20px 60px rgba(0,0,0,0.08),
    0 4px 16px rgba(0,0,0,0.05);
}
.search-row {
  display: flex; align-items: center; padding: .3rem; flex-wrap: wrap;
}
.search-field {
  flex: 1; display: flex; align-items: center;
  gap: 10px; padding: .85rem 1.15rem; min-width: 0;
}
.search-icon { color: var(--muted2); flex-shrink: 0; }
.search-input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--sans); font-size: .9rem;
  color: var(--text); caret-color: var(--accent); min-width: 0;
}
.search-input::placeholder { color: var(--muted2); }
.search-divider { width: 1px; height: 32px; background: var(--border); flex-shrink: 0; }
.mode-field { padding: .85rem .95rem; display: flex; align-items: center; }
.mode-select {
  background: none; border: none; outline: none;
  font-family: var(--sans); font-size: .84rem;
  color: var(--muted); cursor: pointer; width: 108px;
}
.mode-select option { background: var(--surface); color: var(--text); }
.search-btn {
  margin: .35rem; padding: .7rem 1.5rem;
  background: var(--accent); color: #fff; border: none;
  border-radius: var(--r-lg); font-family: var(--sans);
  font-size: .88rem; font-weight: 700; cursor: pointer;
  transition: all .2s; white-space: nowrap;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.search-btn:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 20px var(--accent-glow);
  transform: translateY(-1px);
}

/* ROLE CHIPS */
.role-chips {
  display: flex; align-items: center; gap: .35rem;
  flex-wrap: wrap; justify-content: center;
  max-width: 700px; margin: 0 auto;
}
.chip-label { font-family: var(--mono); font-size: .7rem; color: var(--muted2); }
.role-chip {
  padding: 4px 11px; border-radius: 100px;
  border: 1.5px solid var(--border); font-size: .75rem; font-weight: 500;
  color: var(--muted); background: var(--surface);
  text-decoration: none; transition: all .18s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.role-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.role-chip.active {
  border-color: var(--accent); color: #fff;
  background: var(--accent); font-weight: 600;
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* ─── STATS STRIP ───────────────────────────────────────── */
.stats-strip {
  position: relative; z-index: 1;
  display: flex; justify-content: center; flex-wrap: wrap;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.stat-item {
  flex: 1; min-width: 120px; max-width: 220px;
  padding: 1.1rem 1.25rem; text-align: center;
  border-right: 1px solid var(--border); transition: background .2s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: #fff9f5; }
.stat-num {
  font-family: var(--display); font-size: 1.4rem; font-weight: 800;
  color: var(--accent); letter-spacing: -1px;
}
.stat-label { font-size: .72rem; color: var(--muted); margin-top: 3px; font-weight: 500; }

/* ─── PAGE WRAP ─────────────────────────────────────────── */
.page-wrap {
  position: relative; z-index: 1;
  max-width: 1180px; margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem;
}

/* ─── FILTER SIDEBAR ────────────────────────────────────── */
.filter-sidebar { position: sticky; top: 80px; height: fit-content; }
.filter-toggle {
  display: none;
  width: 100%; padding: .65rem 1rem;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-md); color: var(--text); font-family: var(--sans);
  font-size: .84rem; font-weight: 500; cursor: pointer; margin-bottom: .85rem;
  align-items: center; justify-content: space-between;
  transition: border-color .2s; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.filter-toggle:hover { border-color: var(--accent); }
.filter-toggle-arrow { transition: transform .25s; color: var(--muted); }
.filter-toggle.open { border-color: var(--accent); color: var(--accent); }
.filter-toggle.open .filter-toggle-arrow { transform: rotate(180deg); }
.filter-body { display: block; }
.filter-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.1rem; margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.filter-card-title {
  font-family: var(--mono); font-size: .62rem; font-weight: 500;
  color: var(--muted2); letter-spacing: 1.8px; text-transform: uppercase;
  margin-bottom: 1rem; padding-bottom: .65rem;
  border-bottom: 1px solid var(--border);
}
.filter-group { margin-bottom: 1.1rem; }
.filter-group:last-of-type { margin-bottom: .5rem; }
.filter-group-label {
  font-size: .78rem; font-weight: 700; color: var(--text);
  margin-bottom: .55rem; display: flex; align-items: center; gap: 6px;
}
.fg-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.check-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: .35rem 0; cursor: pointer;
}
.check-item input[type=radio] {
  accent-color: var(--accent); width: 14px; height: 14px; flex-shrink: 0;
}
.check-label {
  font-size: .82rem; color: var(--muted); flex: 1; margin-left: 8px;
  cursor: pointer; transition: color .15s;
}
.check-item:hover .check-label { color: var(--text); }
.check-count {
  font-family: var(--mono); font-size: .64rem; color: var(--muted);
  background: var(--surface2); padding: 2px 8px;
  border-radius: 100px; border: 1px solid var(--border);
}
.btn-clear-filters {
  display: block; text-align: center; font-size: .76rem; font-weight: 500;
  color: var(--red); text-decoration: none; margin-top: .75rem;
  padding: .5rem; border: 1px solid rgba(220,38,38,0.2);
  border-radius: var(--r-md); background: rgba(220,38,38,0.04); transition: all .18s;
}
.btn-clear-filters:hover { background: rgba(220,38,38,0.08); }
.alert-signup {
  background: linear-gradient(135deg, #fff9f5 0%, #fff4ee 100%);
  border: 1.5px solid rgba(240,90,26,0.18);
  border-radius: var(--r-lg); padding: 1.1rem; text-align: center;
  box-shadow: 0 2px 12px rgba(240,90,26,0.06);
}
.alert-signup-icon { font-size: 1.5rem; margin-bottom: .4rem; }
.alert-signup-title {
  font-family: var(--display); font-weight: 700; font-size: .88rem;
  color: var(--text); margin-bottom: .25rem;
}
.alert-signup-sub {
  font-size: .75rem; color: var(--muted); margin-bottom: .85rem; line-height: 1.5;
}
.alert-email {
  width: 100%; background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-md); padding: .58rem .85rem;
  font-family: var(--sans); font-size: .82rem; color: var(--text);
  outline: none; margin-bottom: .5rem; transition: border-color .2s;
}
.alert-email:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.alert-email::placeholder { color: var(--muted2); }
.alert-btn {
  width: 100%; padding: .65rem;
  background: var(--accent); color: #fff; border: none;
  border-radius: var(--r-md); font-family: var(--sans); font-size: .84rem;
  font-weight: 700; cursor: pointer; transition: all .2s;
  box-shadow: 0 4px 12px var(--accent-glow);
}
.alert-btn:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ─── RESULTS HEADER ────────────────────────────────────── */
.results-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; gap: .75rem; flex-wrap: wrap;
}
.results-info { font-size: .82rem; color: var(--muted); }
.results-info strong { color: var(--accent); font-weight: 700; }
.results-sort { display: flex; align-items: center; gap: 6px; }
.sort-label { font-size: .75rem; color: var(--muted2); font-weight: 500; }
.sort-active {
  font-family: var(--mono); font-size: .72rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border2);
  padding: 3px 9px; border-radius: 5px;
}
.sort-select {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-md); padding: 5px 10px;
  font-family: var(--sans); font-size: .78rem; color: var(--text);
  outline: none; cursor: pointer; transition: border-color .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.sort-select:focus, .sort-select:hover { border-color: var(--accent); }
.sort-select option { background: var(--surface); color: var(--text); }

/* ─── JOB CARDS ─────────────────────────────────────────── */
.job-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-xl); padding: 1.1rem; margin-bottom: .75rem;
  cursor: pointer; transition: all .22s; position: relative; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.job-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--accent);
  opacity: 0; transition: opacity .22s;
}
.job-card:hover {
  border-color: rgba(240,90,26,0.25); background: #fff9f6;
  /* box-shadow: 0 8px 32px rgba(240,90,26,0.1), 0 2px 8px rgba(0,0,0,0.06); */
  /* transform: translateX(3px); */
}
.job-card:hover::before { opacity: 1; }
.job-card.featured {
  border-color: rgba(240,90,26,0.22);
  background: linear-gradient(135deg, #fff 0%, #fff9f5 100%);
  box-shadow: 0 4px 20px rgba(240,90,26,0.08);
}
.featured-ribbon {
  position: absolute; top: .85rem; right: .85rem;
  font-family: var(--mono); font-size: .6rem; font-weight: 500;
  padding: 3px 8px; border-radius: 100px;
  background: var(--accent-dim); color: var(--accent);
  border: 1px solid rgba(240,90,26,0.22);
}
.job-card-top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: .75rem; }
.company-logo {
  width: 44px; height: 44px; border-radius: var(--r-md);
  border: 1.5px solid var(--border); background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.company-logo img { width: 100%; height: 100%; object-fit: cover; }
.logo-fallback {
  font-family: var(--display); font-size: .88rem; font-weight: 800;
  color: var(--accent); background: var(--accent-dim);
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
}
.logo-fallback.lg {
  width: 64px; height: 64px; border-radius: var(--r-lg);
  border: 1.5px solid var(--border); font-size: 1rem;
}
.job-info { flex: 1; min-width: 0; }
.job-company {
  font-size: .72rem; color: var(--muted); margin-bottom: 3px;
  font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase;
}
.job-title {
  font-family: var(--display); font-weight: 700; font-size: .95rem;
  color: var(--text); letter-spacing: -.3px; margin-bottom: .35rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.job-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; font-size: .72rem; color: var(--muted); }
.meta-sep { color: var(--border2); }
.save-btn {
  width: 36px; height: 36px; border: 1.5px solid var(--border);
  border-radius: var(--r-md); background: var(--surface);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--muted2); transition: all .2s; flex-shrink: 0;
}
.save-btn:hover, .save-btn.saved { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.save-btn.saved svg { fill: var(--accent); }
.tech-tags { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: .75rem; }
.tech-tag {
  padding: 4px 10px; border-radius: var(--r-sm);
  font-family: var(--mono); font-size: .68rem;
  border: 1px solid var(--border); color: var(--muted);
  background: var(--surface2); text-decoration: none; transition: all .15s;
}
.tech-tag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.tech-tag-more {
  padding: 4px 10px; border-radius: var(--r-sm);
  font-family: var(--mono); font-size: .68rem;
  color: var(--muted2); background: var(--surface2); border: 1px solid var(--border);
}
.job-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .75rem; border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: .5rem;
}
.salary-range {
  font-family: var(--display); font-size: 1rem;
  font-weight: 800; color: var(--text); letter-spacing: -.5px;
}
.salary-period { font-size: .68rem; color: var(--muted); margin-top: 1px; }
.card-actions { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.posted-time { font-family: var(--mono); font-size: .65rem; color: var(--muted2); }
.btn-details {
  padding: .4rem .8rem; border: 1.5px solid var(--border);
  border-radius: var(--r-md); font-size: .78rem; font-weight: 600;
  color: var(--muted); text-decoration: none; transition: all .18s; background: var(--surface);
}
.btn-details:hover { border-color: var(--text); color: var(--text); background: var(--surface2); }
.btn-apply {
  padding: .4rem 1rem; background: var(--accent); color: #fff;
  border: none; border-radius: var(--r-md); font-size: .78rem; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: all .2s;
  box-shadow: 0 3px 10px var(--accent-glow);
}
.btn-apply:hover { background: var(--accent-dark); box-shadow: 0 5px 16px var(--accent-glow); transform: translateY(-1px); }
.empty-state {
  padding: 3rem 1.5rem; text-align: center;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-xl); box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.empty-icon  { font-size: 2.2rem; margin-bottom: .75rem; }
.empty-title { font-family: var(--display); font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: .35rem; }
.empty-sub   { font-size: .82rem; color: var(--muted); }

/* ─── JOB DETAIL PAGE ───────────────────────────────────── */
.detail-wrap {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; align-items: start;
}
.detail-header {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-xl); padding: 1.4rem; margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.detail-company-row { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
.detail-logo {
  width: 56px; height: 56px; border-radius: var(--r-lg);
  border: 1.5px solid var(--border); overflow: hidden;
  background: var(--surface2); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.detail-logo img { width: 100%; height: 100%; object-fit: cover; }
.detail-company-name {
  font-size: .78rem; font-weight: 700; color: var(--muted);
  margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px;
}
.featured-badge {
  font-family: var(--mono); font-size: .62rem; font-weight: 500;
  padding: 4px 10px; border-radius: 100px;
  background: var(--accent-dim); color: var(--accent);
  border: 1px solid rgba(240,90,26,0.22);
}
.detail-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.2rem, 4vw, 1.65rem);
  color: var(--text); letter-spacing: -.5px; margin-bottom: 1rem; line-height: 1.2;
}
.detail-meta-row { display: flex; flex-wrap: wrap; gap: .4rem .85rem; margin-bottom: .75rem; }
.detail-meta-item { display: flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--muted); font-weight: 500; }
.dmi-icon { font-size: .82rem; }
.detail-section {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-xl); padding: 1.25rem; margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.meta-item i {
  font-size: .75rem;
  opacity: .6;
  margin-right: .2rem;
}

.detail-section-title {
  font-family: var(--mono); font-size: .65rem; font-weight: 500;
  color: var(--muted); letter-spacing: 1.8px; text-transform: uppercase;
  margin-bottom: .85rem; padding-bottom: .65rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 7px;
}
.ds-prefix { color: var(--accent); font-weight: 700; }
.detail-body { font-size: .9rem; color: var(--muted); line-height: 1.9; white-space: pre-wrap; }
.stack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .45rem; }
.stack-item {
  display: flex; align-items: center; gap: 7px;
  padding: .6rem .9rem; background: var(--surface2);
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  font-family: var(--mono); font-size: .74rem; color: var(--text); transition: all .15s;
}
.stack-item:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.stack-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.mobile-job-details { display: none; }
.mobile-apply       { display: none; }
.related-jobs { display: flex; flex-direction: column; gap: .6rem; }
.related-card {
  display: flex; align-items: center; gap: 10px;
  padding: .8rem; background: var(--surface2);
  border: 1.5px solid var(--border); border-radius: var(--r-lg);
  text-decoration: none; transition: all .18s;
}
.related-card:hover { border-color: rgba(240,90,26,0.3); background: #fff9f5; box-shadow: 0 4px 16px rgba(240,90,26,0.08); }
.rel-logo {
  width: 38px; height: 38px; border-radius: var(--r-md);
  background: var(--accent-dim); display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0; font-family: var(--display);
  font-size: .72rem; font-weight: 800; color: var(--accent); border: 1.5px solid var(--border);
}
.rel-logo img { width: 100%; height: 100%; object-fit: cover; }
.rel-info { flex: 1; min-width: 0; }
.rel-title { font-family: var(--display); font-size: .82rem; font-weight: 700; color: var(--text); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rel-company { font-size: .7rem; color: var(--muted); font-weight: 500; }
.rel-tags { display: flex; gap: .3rem; margin-top: 4px; flex-wrap: wrap; }
.rel-tag { font-family: var(--mono); font-size: .6rem; padding: 1px 6px; border-radius: 4px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.rel-salary { font-family: var(--display); font-size: .8rem; font-weight: 800; color: var(--accent); white-space: nowrap; flex-shrink: 0; }
.detail-sidebar { position: sticky; top: 80px; }
.sidebar-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-xl); padding: 1.1rem; margin-bottom: .85rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.sidebar-card-title {
  font-family: var(--mono); font-size: .62rem; font-weight: 500;
  color: var(--muted2); letter-spacing: 1.8px; text-transform: uppercase;
  margin-bottom: .85rem; padding-bottom: .6rem; border-bottom: 1px solid var(--border);
}
.salary-label-sm { font-family: var(--mono); font-size: .62rem; color: var(--muted2); margin-bottom: .35rem; text-transform: uppercase; letter-spacing: 1px; }
.salary-big { font-family: var(--display); font-size: 1.65rem; font-weight: 800; color: var(--accent); letter-spacing: -1.5px; line-height: 1; }
.salary-note { font-family: var(--mono); font-size: .63rem; color: var(--muted2); margin-top: .3rem; }
.apply-card { text-align: center; }
.btn-apply-big {
  display: block; width: 100%; padding: .95rem;
  background: var(--accent); color: #fff; border: none;
  border-radius: var(--r-lg); font-family: var(--sans);
  font-size: .92rem; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: all .2s; margin-bottom: .75rem;
  box-shadow: 0 6px 20px var(--accent-glow);
}
.btn-apply-big:hover { background: var(--accent-dark); box-shadow: 0 8px 28px var(--accent-glow); transform: translateY(-2px); }
.apply-note { font-size: .73rem; color: var(--muted); margin-bottom: .85rem; line-height: 1.5; }
.share-row { display: flex; align-items: center; gap: .4rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.share-label { font-size: .7rem; color: var(--muted2); margin-right: .25rem; font-weight: 500; }
.share-btn {
  width: 32px; height: 32px; border: 1.5px solid var(--border);
  border-radius: var(--r-md); background: var(--surface2); cursor: pointer;
  font-size: .7rem; font-weight: 600; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: all .18s;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.detail-list-row { display: flex; align-items: center; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.detail-list-row:last-child { border-bottom: none; }
.dl-key { font-family: var(--mono); font-size: .65rem; color: var(--muted2); }
.dl-val { font-family: var(--mono); font-size: .7rem; color: var(--text); text-align: right; font-weight: 500; }
.btn-back-all {
  display: block; text-align: center; padding: .65rem;
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  font-size: .82rem; font-weight: 600; color: var(--muted);
  text-decoration: none; background: var(--surface); transition: all .18s;
}
.btn-back-all:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .page-wrap { grid-template-columns: 200px 1fr; gap: 1.1rem; padding: 1.25rem; }
  .detail-wrap { grid-template-columns: 1fr 260px; gap: 1.1rem; }
}
@media (max-width: 768px) {
  .hero { padding: 2.5rem 1.25rem 2rem; }
  .hero-eyebrow { font-size: .65rem; padding: 4px 10px; }
  .search-row { flex-direction: column; align-items: stretch; gap: 0; }
  .search-field { padding: .75rem 1rem; }
  .search-divider { width: 100%; height: 1px; }
  .mode-field { padding: .65rem 1rem; }
  .mode-select { width: 100%; }
  .search-btn { margin: .35rem; padding: .7rem; text-align: center; border-radius: var(--r-md); }
  .role-chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: .35rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .role-chips::-webkit-scrollbar { display: none; }
  .role-chip { flex-shrink: 0; }
  .stats-strip { flex-wrap: wrap; }
  .stat-item { flex: 0 0 50%; max-width: 50%; border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .page-wrap { grid-template-columns: 1fr; padding: 1rem; gap: 1rem; }
  .filter-sidebar { position: static; }
  .filter-toggle { display: flex; }
  .filter-body { display: none; }
  .filter-body.open { display: block; }
  .detail-wrap { grid-template-columns: 1fr; padding: 1rem; }
  .detail-sidebar { position: static; order: -1; }
}
@media (max-width: 480px) {
  .hero { padding: 2rem 1rem 1.75rem; }
  .hero-sub { font-size: .85rem; }
  .stat-item { flex: 0 0 100%; max-width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(odd) { border-right: none; }
  .stat-item:last-child { border-bottom: none; }
  .job-card { padding: .95rem; }
  .job-card-top { gap: 8px; }
  .company-logo { width: 38px; height: 38px; }
  .job-title { font-size: .88rem; }
  .job-card-footer { flex-direction: column; align-items: flex-start; gap: .65rem; }
  .card-actions { width: 100%; justify-content: space-between; }
  .btn-apply { flex: 1; text-align: center; }
  .btn-details { flex: 1; text-align: center; }
  .detail-header { padding: 1rem; }
  .detail-logo { width: 46px; height: 46px; }
  .detail-section { padding: 1rem; }
  .results-header { flex-direction: column; align-items: flex-start; }
  .page-wrap { padding: .85rem; }
  .detail-wrap { padding: .85rem; }
}


/* ── Pagination ─────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 32px 0 16px;
  justify-content: center;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
}

.page-btn:hover:not(.disabled):not(.active) {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 200, 100, 0.08);
}

.page-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 700;
  pointer-events: none;
}

.page-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.page-ellipsis {
  color: var(--muted);
  padding: 0 4px;
  line-height: 38px;
  font-size: 0.875rem;
}

.page-info {
  margin-left: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.page-prev,
.page-next {
  font-size: 1rem;
  font-weight: 600;
  padding: 0 10px;
}

/* ── Mobile job card title fix ──────────────────────────── */
@media (max-width: 768px) {
  .job-title {
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    text-overflow: unset;
    font-size: .85rem;
    line-height: 1.35;
  }

  .job-card-top {
    align-items: flex-start;
  }

  .save-btn {
    flex-shrink: 0;
    margin-top: 2px;
  }

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

/* ── Mobile related job card title fix ─────────────────── */
@media (max-width: 768px) {
  .rel-title {
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.35;
  }

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

  .related-card {
    align-items: flex-start;
  }

  .rel-salary {
    flex-shrink: 0;
    align-self: flex-start;
  }
}


/* ── Save Toast Notification ────────────────────────────── */
.save-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text);
  color: var(--surface);
  padding: .75rem 1.25rem;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .85rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  z-index: 9999;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .3s;
  opacity: 0;
  white-space: nowrap;
}
.save-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.save-toast-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  padding: .3rem .7rem;
  border: 1.5px solid var(--accent);
  border-radius: var(--r-sm);
  font-size: .8rem;
  transition: all .2s;
}
.save-toast-link:hover {
  background: var(--accent);
  color: #fff;
}
.save-toast-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
  padding: 0;
  line-height: 1;
  transition: color .2s;
}
.save-toast-close:hover { color: var(--text); }

/* Dark mode */
[data-theme="dark"] .save-toast {
  background: #1a1a28;
  color: var(--text);
  border: 1px solid var(--border);
}


@media (max-width: 480px) {
  /* Hero */
  .hero {
    padding: 1.75rem 1rem 1.5rem;
  }
  .hero-inner {
    padding: 0;
  }
  h1 {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
    letter-spacing: -.5px;
    margin-bottom: .75rem;
  }
  .hero-sub {
    font-size: .82rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    max-width: 100%;
  }

  /* Search box — stack vertically */
  .search-box {
    border-radius: var(--r-lg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  }
  .search-row {
    flex-direction: column;
    padding: 0;
    gap: 0;
  }
  .search-field {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--border);
  }
  .search-divider {
    display: none; /* hidden — border-bottom handles separation */
  }
  .mode-field {
    padding: .7rem 1rem;
    border-bottom: 1px solid var(--border);
  }
  .mode-select {
    width: 100%;
    font-size: .84rem;
  }
  .search-btn {
    margin: .5rem;
    padding: .75rem;
    border-radius: var(--r-md);
    font-size: .88rem;
    width: calc(100% - 1rem);
  }

  /* Role chips — horizontal scroll */
  .role-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: .25rem;
    margin-top: .65rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: .3rem;
  }
  .role-chips::-webkit-scrollbar { display: none; }
  .role-chip {
    flex-shrink: 0;
    font-size: .72rem;
    padding: 4px 10px;
  }

  /* Live badge */
  .live-badge {
    font-size: .62rem;
    padding: 4px 10px;
    margin-bottom: 1rem;
  }
}



/* Quill content rendering on job detail page */
.ql-content p          { margin-bottom: .65rem; line-height: 1.75; }
.ql-content h2         { font-size: 1.1rem; font-weight: 700; margin: 1.25rem 0 .4rem; }
.ql-content h3         { font-size: .95rem; font-weight: 600; margin: 1rem 0 .3rem; }
.ql-content ul,
.ql-content ol         { padding-left: 1.4rem; margin-bottom: .65rem; }
.ql-content li         { margin-bottom: .3rem; line-height: 1.7; }
.ql-content strong     { font-weight: 700; }
.ql-content em         { font-style: italic; }
.ql-content blockquote {
  border-left: 3px solid var(--accent);
  padding: .4rem .9rem;
  color: var(--muted);
  margin: .75rem 0;
}
.ql-content pre        {
  background: var(--surface2, #1a1a2e);
  border-radius: 6px;
  padding: .75rem 1rem;
  font-family: monospace;
  font-size: .82rem;
  overflow-x: auto;
  margin-bottom: .65rem;
}
.ql-content a          { color: var(--accent); text-decoration: underline; }

