/* ==========================================================================
   Job Portal — Modern Light Blue Design System
   Pure CSS, no build step. Palette: sky/blue on airy white with glass
   surfaces, soft shadows, pill components and gradient accents.
   ========================================================================== */

:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-300: #7dd3fc;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --sky-800: #075985;
  --sky-900: #0c4a6e;
  --sky-950: #082f49;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --indigo-600: #4f46e5;

  --bg: #f8fbff;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-soft: #94a3b8;
  --border: #e2e8f0;
  --border-sky: #dbeefe;

  --primary: var(--sky-600);
  --primary-hover: var(--sky-700);
  --ring: rgba(14, 165, 233, 0.35);

  --radius-sm: 0.5rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(2, 132, 199, 0.06);
  --shadow: 0 4px 16px -2px rgba(2, 132, 199, 0.1);
  --shadow-lg: 0 12px 32px -8px rgba(2, 132, 199, 0.18);
  --shadow-glow: 0 0 0 4px var(--ring);

  --font: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 500px at 80% -200px, rgba(186, 230, 253, 0.45), transparent 60%),
    radial-gradient(900px 400px at -10% 100px, rgba(224, 242, 254, 0.6), transparent 55%),
    var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; }
a { color: var(--sky-700); text-decoration: none; }
a:hover { color: var(--sky-800); }
::selection { background: var(--sky-200); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--sky-50); }
::-webkit-scrollbar-thumb { background: var(--sky-200); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--sky-300); }

/* ---------- Layout helpers ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 880px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-tight { padding: 36px 0; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Category cards — full-width rows on small phones so category names are
   never truncated; 2-up on larger phones, 4-up on desktop. */
.cat-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.cat-card { display: flex; gap: 12px; align-items: center; padding: 13px 14px; }
.cat-card .icon-tile { width: 38px; height: 38px; font-size: 17px; border-radius: 11px; flex-shrink: 0; }
.cat-name { font-weight: 600; font-size: 13.5px; line-height: 1.35; overflow-wrap: anywhere; }
@media (min-width: 540px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } .cat-card { padding: 16px; gap: 14px; } .cat-card .icon-tile { width: 44px; height: 44px; font-size: 19px; } }
@media (min-width: 1021px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }

/* Grid items may shrink below their min-content width — without this, long
   unbreakable content (org names, pills) forces card grids wider than the
   phone screen and causes horizontal scrolling. */
.grid > * { min-width: 0; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.flex-center { display: flex; align-items: center; gap: 10px; }
.flex-wrap { flex-wrap: wrap; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 14px; } .mt-3 { margin-top: 22px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 14px; } .mb-3 { margin-bottom: 22px; }
.text-muted { color: var(--text-muted); }
.text-soft { color: var(--text-soft); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-center { text-align: center; }
.fw-6 { font-weight: 600; } .fw-7 { font-weight: 700; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0 0 10px; line-height: 1.25; color: var(--text); }
h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 17px; font-weight: 700; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--sky-600);
  margin-bottom: 8px;
}
.text-gradient {
  background: linear-gradient(100deg, var(--sky-600), var(--blue-600) 55%, var(--indigo-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header (glass) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(186, 230, 253, 0.6);
}
.header-inner { display: flex; align-items: center; gap: 22px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); letter-spacing: -0.02em; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-tagline { font-size: 9.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky-600); }
.logo:hover { color: var(--text); }
.logo-tile {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
  color: #fff; font-size: 17px;
  box-shadow: 0 4px 12px -2px rgba(14, 165, 233, 0.5);
}
.logo-img {
  width: 38px; height: 38px; border-radius: 11px; object-fit: cover;
  box-shadow: 0 4px 12px -2px rgba(14, 165, 233, 0.5);
}
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.main-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.18s ease;
}
.main-nav a:hover { color: var(--sky-700); background: var(--sky-50); }
.main-nav a.active { color: var(--sky-700); background: var(--sky-100); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; cursor: pointer; font-size: 16px; color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--sky-600), var(--blue-600));
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(14, 165, 233, 0.55);
}
.btn-primary:hover { filter: brightness(1.06); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px -4px rgba(14, 165, 233, 0.6); }
.btn-outline { background: #fff; border-color: var(--sky-200); color: var(--sky-700); }
.btn-outline:hover { border-color: var(--sky-400); background: var(--sky-50); color: var(--sky-800); }
.btn-ghost { background: transparent; color: var(--sky-700); }
.btn-ghost:hover { background: var(--sky-50); }
.btn-soft { background: var(--sky-100); color: var(--sky-800); }
.btn-soft:hover { background: var(--sky-200); }
.btn-danger { background: #fee2e2; color: #b91c1c; }
.btn-danger:hover { background: #fecaca; }
.btn-danger-solid { background: #dc2626; color: #fff; }
.btn-danger-solid:hover { background: #b91c1c; color: #fff; }
.btn-sm { padding: 6px 13px; font-size: 12.5px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; }
.btn-icon { padding: 9px; width: 38px; height: 38px; }

/* ---------- Forms ---------- */
label.field { display: block; margin-bottom: 14px; }
label.field > span, .field-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.input, select.input, textarea.input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus { outline: none; border-color: var(--sky-400); box-shadow: var(--shadow-glow); }
textarea.input { min-height: 110px; resize: vertical; }
.input-sm { padding: 8px 12px; font-size: 13px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 4px 0; }
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--sky-600); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.hint { font-size: 12px; color: var(--text-soft); margin-top: 4px; }
.req { color: #dc2626; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border-sky);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card-pad { padding: 22px; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--sky-300); }
.card-head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-head h3 { margin: 0; }

/* ---------- Badges & pills ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: var(--sky-100);
  color: var(--sky-800);
}
.badge-green { background: #dcfce7; color: #15803d; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-amber { background: #fef3c7; color: #b45309; }
.badge-slate { background: #f1f5f9; color: #475569; }
.badge-violet { background: #ede9fe; color: #6d28d9; }
.badge-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 64px;
  background:
    linear-gradient(180deg, rgba(224, 242, 254, 0.55), transparent),
    var(--bg);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(2, 132, 199, 0.13) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, black 0%, transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; pointer-events: none; }
.blob-1 { width: 420px; height: 420px; background: #bae6fd; top: -140px; right: -80px; animation: float 9s ease-in-out infinite; }
.blob-2 { width: 320px; height: 320px; background: #c7d2fe; bottom: -120px; left: -100px; animation: float 11s ease-in-out infinite reverse; }
.blob-3 { width: 240px; height: 240px; background: #a5f3fc; top: 30%; left: 42%; animation: float 13s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-22px) } }
.hero-inner { position: relative; max-width: 820px; margin: 0 auto; text-align: center; padding: 0 20px; }
.hero h1 { font-size: 42px; margin-bottom: 16px; }
.hero p.lead { font-size: 17px; color: var(--text-muted); max-width: 640px; margin: 0 auto 30px; }

.search-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-xl);
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: stretch;
  max-width: 720px;
  margin: 0 auto;
}
.search-card .input { border: none; box-shadow: none; background: transparent; font-size: 15px; }
.search-card .input:focus { box-shadow: none; }
.search-card .search-field { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-right: 1px solid var(--border); }
.search-card .search-field:last-of-type { border-right: none; }
.search-field .ico { color: var(--sky-500); flex-shrink: 0; }

.hero-stats { display: flex; justify-content: center; gap: 44px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat b { display: block; font-size: 26px; font-weight: 800; color: var(--sky-700); }
.hero-stat span { font-size: 13px; color: var(--text-muted); }

/* ---------- Category / icon tiles ---------- */
.icon-tile {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 21px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sky-100), #e0e7ff);
  flex-shrink: 0;
}
.icon-tile.sm { width: 36px; height: 36px; font-size: 16px; border-radius: 11px; }
.icon-tile.blue { background: linear-gradient(135deg, var(--sky-500), var(--blue-600)); color: #fff; }

/* ---------- Job cards ---------- */
.job-card { display: flex; gap: 16px; padding: 20px; align-items: flex-start; }
.job-card .job-title { font-size: 15.5px; font-weight: 700; color: var(--text); margin: 0 0 3px; }
.job-card .job-title:hover { color: var(--sky-700); }
.job-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--text-muted); margin-top: 8px; }
.job-meta span { display: inline-flex; align-items: center; gap: 5px; }
.job-meta .ico { color: var(--sky-600); }
.salary-pill {
  display: inline-block;
  background: var(--sky-50);
  border: 1px solid var(--border-sky);
  color: var(--sky-800);
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 3px 10px;
  margin-top: 9px;
}
.deadline-pill { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-full); background: var(--sky-100); color: var(--sky-800); }
.deadline-pill.urgent { background: #fee2e2; color: #b91c1c; }
.deadline-pill.closed { background: #fee2e2; color: #b91c1c; }

/* Expired-job banner (job detail page) */
.expired-banner {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 18px 0 4px; padding: 14px 16px;
  border: 1px solid #fecaca; border-radius: var(--radius-lg);
  background: #fef2f2; color: #b91c1c;
}
.expired-banner .eb-icon { font-size: 20px; line-height: 1.3; }
.expired-banner b { font-size: 14.5px; }
.expired-banner .eb-sub { font-size: 13px; margin-top: 3px; color: #b91c1c; opacity: 0.85; }

/* ---------- Avatars ---------- */
.avatar {
  display: grid; place-items: center;
  border-radius: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
  width: 46px; height: 46px; font-size: 15px;
}
.avatar.sm { width: 36px; height: 36px; font-size: 12px; border-radius: 10px; }
.avatar.lg { width: 74px; height: 74px; font-size: 24px; border-radius: 18px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.av-sky { background: linear-gradient(135deg, #38bdf8, #0284c7); }
.av-blue { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.av-indigo { background: linear-gradient(135deg, #818cf8, #4f46e5); }
.av-cyan { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.av-violet { background: linear-gradient(135deg, #a78bfa, #7c3aed); }

/* ---------- Org / company card ---------- */
.org-card { padding: 22px; text-align: center; }
.org-card .jobs-pill { font-size: 11.5px; background: var(--sky-50); color: var(--sky-700); border: 1px solid var(--border-sky); border-radius: var(--radius-full); padding: 3px 10px; font-weight: 700; }

/* ---------- Tabs (segmented pills) ---------- */
.tabbar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  background: var(--sky-50);
  border: 1px solid var(--border-sky);
  padding: 5px;
  border-radius: var(--radius-full);
}
.tabbar a {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.tabbar a:hover { color: var(--sky-700); }
.tabbar a.active { background: #fff; color: var(--sky-700); box-shadow: var(--shadow-sm); font-weight: 700; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-sky); background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--sky-50);
  color: var(--sky-900);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-sky);
  white-space: nowrap;
}
.table td { padding: 12px 16px; border-bottom: 1px solid #f1f7fc; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(240, 249, 255, 0.6); }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat-card { display: flex; align-items: center; gap: 14px; padding: 18px; }
.stat-card b { font-size: 22px; font-weight: 800; color: var(--text); display: block; line-height: 1.2; }
.stat-card span { font-size: 12.5px; color: var(--text-muted); }

/* ---------- Alerts / flash / toast ---------- */
.alert { border-radius: var(--radius); padding: 13px 18px; font-size: 14px; margin-bottom: 18px; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert-error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.alert-info { background: var(--sky-50); border-color: var(--sky-200); color: var(--sky-800); }

/* ---------- Auth card ---------- */
.auth-card { max-width: 440px; margin: 48px auto; padding: 34px 30px; }
.auth-card h1 { font-size: 24px; }
.auth-aside {
  background: linear-gradient(160deg, var(--sky-600), var(--blue-600) 60%, var(--indigo-600));
  border-radius: var(--radius-xl);
  color: #fff; padding: 34px 30px;
}
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-pick label { position: relative; }
.role-pick input { position: absolute; opacity: 0; }
.role-pick .role-box {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  text-align: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 13.5px;
  transition: all 0.15s ease;
  display: block;
}
.role-pick .role-box small { display: block; font-weight: 500; color: var(--text-muted); font-size: 11.5px; margin-top: 3px; }
.role-pick input:checked + .role-box { border-color: var(--sky-500); background: var(--sky-50); color: var(--sky-800); box-shadow: var(--shadow-glow); }

/* ---------- Job detail ---------- */
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-muted); font-weight: 600; margin-bottom: 16px; }
.back-link:hover { color: var(--sky-700); }
.detail-banner { height: 110px; background: linear-gradient(120deg, var(--sky-600), var(--blue-600) 70%, var(--indigo-600)); border-radius: var(--radius-xl) var(--radius-xl) 0 0; overflow: hidden; position: relative; }
.detail-banner img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.detail-body { padding: 0 26px 26px; margin-top: -44px; position: relative; }
.detail-grid { display: grid; grid-template-columns: 1fr 330px; gap: 24px; align-items: start; }
.meta-tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0; }
.meta-tile { background: var(--sky-50); border: 1px solid var(--border-sky); padding: 12px 14px; border-radius: var(--radius); }
.meta-tile .k { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; display: flex; align-items: center; gap: 5px; }
.meta-tile .v { font-weight: 700; font-size: 13.5px; margin-top: 3px; }
.prose { line-height: 1.75; color: #334155; }
.prose h1, .prose h2, .prose h3 { font-size: 17px; margin: 22px 0 8px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose p { margin: 0 0 12px; }

/* ---------- Filters sidebar ---------- */
.filters { position: sticky; top: 86px; }
.filter-group { border: 1px solid var(--border-sky); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 14px; background: #fff; }
.filter-group h4 { margin: 0 0 10px; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sky-800); }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-size: 12px; font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: #fff;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--sky-400); color: var(--sky-700); }
.chip.on { background: var(--sky-600); border-color: var(--sky-600); color: #fff; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 13.5px; font-weight: 600;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--border);
}
.pagination a:hover { border-color: var(--sky-400); color: var(--sky-700); }
.pagination .current { background: var(--sky-600); border-color: var(--sky-600); color: #fff; }
.pagination .dots { border: none; background: none; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--sky-600), var(--blue-600) 55%, var(--indigo-600));
  border-radius: 24px;
  color: #fff;
  padding: 46px 40px;
  position: relative;
  overflow: hidden;
}
.cta-band::before, .cta-band::after {
  content: ''; position: absolute; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
}
.cta-band::before { width: 300px; height: 300px; top: -120px; right: -60px; }
.cta-band::after { width: 200px; height: 200px; bottom: -90px; left: 12%; }
.cta-band h2 { color: #fff; }
.cta-band .btn-white { background: #fff; color: var(--sky-700); }
.cta-band .btn-white:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -6px rgba(2, 6, 23, 0.35); color: var(--sky-800); }
.cta-band .btn-outline-white { border-color: rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(4px); }
.cta-band .btn-outline-white:hover { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 64px;
  background: linear-gradient(160deg, var(--sky-950), var(--sky-900));
  color: #bae6fd;
  padding: 52px 0 26px;
  position: relative;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 34px; }
.site-footer h4 { color: #fff; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
.site-footer a { color: #bae6fd; font-size: 13.5px; display: inline-block; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(186, 230, 253, 0.15); margin-top: 38px; padding-top: 20px; font-size: 12.5px; color: #7dd3fc; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.newsletter-pill { display: flex; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(186, 230, 253, 0.25); border-radius: var(--radius-full); padding: 4px; }
.newsletter-pill input { flex: 1; background: transparent; border: none; color: #fff; padding: 8px 14px; font-size: 13px; min-width: 0; }
.newsletter-pill input::placeholder { color: #7dd3fc; }
.newsletter-pill input:focus { outline: none; }
.newsletter-pill button { border-radius: var(--radius-full); }
.social-row { display: flex; gap: 8px; margin-top: 16px; }
.social-row a {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(186, 230, 253, 0.2);
  font-size: 14px;
}
.social-row a:hover { background: rgba(255, 255, 255, 0.18); }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 52px 20px; color: var(--text-muted); }
.empty .big { font-size: 40px; margin-bottom: 10px; }
.empty h3 { color: var(--text); }

/* ---------- Progress ---------- */
.progress { height: 8px; background: var(--sky-100); border-radius: var(--radius-full); overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--sky-500), var(--blue-600)); border-radius: var(--radius-full); }

/* ---------- Timeline / status colors ---------- */
.status-1 { color: #b45309; } .status-2 { color: #0369a1; } .status-3 { color: #7c3aed; }
.status-4 { color: #b91c1c; } .status-5 { color: #15803d; } .status-6 { color: #64748b; }

/* ---------- Modal (native dialog) ---------- */
dialog.modal {
  border: none;
  border-radius: var(--radius-xl);
  padding: 0;
  width: min(560px, 92vw);
  box-shadow: 0 24px 60px -12px rgba(2, 32, 71, 0.35);
}
dialog.modal::backdrop { background: rgba(8, 47, 73, 0.45); backdrop-filter: blur(3px); }
.modal-head { padding: 18px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { margin: 0; }
.modal-body { padding: 24px; }
.modal-close { background: none; border: none; font-size: 20px; color: var(--text-soft); cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.modal-close:hover { background: var(--sky-50); color: var(--text); }

/* ---------- Toast ---------- */
#toast-root { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--sky-950);
  color: #e0f2fe;
  padding: 13px 20px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.25s ease;
  max-width: 340px;
}
.toast.err { background: #7f1d1d; color: #fee2e2; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Installer ---------- */
.installer-step { display: flex; gap: 12px; align-items: center; }
.step-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--sky-100); color: var(--sky-700); }
.step-dot.done { background: var(--sky-600); color: #fff; }
.step-dot.now { background: linear-gradient(135deg, var(--sky-500), var(--blue-600)); color: #fff; box-shadow: 0 0 0 4px var(--ring); }
.req-ok { color: #15803d; font-weight: 700; }
.req-bad { color: #b91c1c; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .filters { position: static; }
}
@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 30px; }
  .search-card { flex-direction: column; }
  .search-card .search-field { border-right: none; border-bottom: 1px solid var(--border); padding: 10px 14px; }
  .main-nav { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 66px; left: 0; right: 0;
    background: #fff; padding: 14px 20px 20px; gap: 6px;
    border-bottom: 1px solid var(--border-sky);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open a { padding: 11px 14px; border-radius: 12px; }
  .menu-toggle { display: block; }
  .form-grid { grid-template-columns: 1fr; }
  .meta-tile-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-actions .btn span.label-long { display: none; }
}
@media (max-width: 540px) {
  /* one card per row on phones — category/company cards stay readable and
     nothing overflows the viewport */
  .grid-4 { grid-template-columns: 1fr; }
}

/* ================= Analytics & Reports ================= */
.section-nav { display:flex; gap:6px; flex-wrap:wrap; background:#f0f9ff; border:1px solid #e0f2fe; border-radius:999px; padding:6px; margin:10px 0 14px; }
.section-nav a { padding:6px 13px; border-radius:999px; font-size:12.5px; font-weight:600; color:#64748b; text-decoration:none; white-space:nowrap; }
.section-nav a:hover { color:#0f172a; background:#e0f2fe; }
.section-nav a.active { background:#0ea5e9; color:#fff; box-shadow:0 1px 4px rgba(14,165,233,.4); }

.range-bar { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:10px; }
.range-presets { display:flex; gap:6px; flex-wrap:wrap; }
.range-presets a { padding:5px 12px; border-radius:999px; font-size:12px; font-weight:600; border:1px solid #e0f2fe; color:#64748b; text-decoration:none; }
.range-presets a:hover { background:#f0f9ff; }
.range-presets a.active { background:#0ea5e9; border-color:#0ea5e9; color:#fff; }
.range-custom { display:flex; gap:6px; align-items:center; margin-left:auto; }
.range-custom input[type=date] { padding:5px 8px; border:1px solid #e2e8f0; border-radius:8px; font-size:12px; }

.kpi-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media (max-width:760px){ .kpi-grid { grid-template-columns:repeat(2,1fr); } }
.kpi-card { background:#fff; border:1px solid #e0f2fe; border-radius:14px; padding:14px 16px; }
.kpi-label { font-size:10.5px; text-transform:uppercase; letter-spacing:.05em; color:#64748b; font-weight:700; }
.kpi-value { font-size:22px; font-weight:800; margin-top:3px; color:#0f172a; }
.kpi-delta { font-size:11px; font-weight:700; margin-top:2px; display:inline-block; }
.kpi-delta.up { color:#059669; }
.kpi-delta.down { color:#dc2626; }

.portal-chart { width:100%; height:auto; display:block; }
.chart-legend { display:flex; gap:14px; flex-wrap:wrap; margin-top:8px; font-size:12px; color:#475569; }
.chart-legend span { display:inline-flex; align-items:center; gap:6px; }
.chart-legend i { width:10px; height:10px; border-radius:3px; display:inline-block; }
.chart-empty { text-align:center; color:#94a3b8; font-size:13px; padding:36px 0; }

.hbars { display:flex; flex-direction:column; gap:8px; }
.hbar-row { display:flex; align-items:center; gap:10px; }
.hbar-label { width:150px; font-size:12px; color:#334155; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:right; flex-shrink:0; }
.hbar-track { flex:1; background:#f0f9ff; border-radius:8px; height:20px; overflow:hidden; }
.hbar-fill { display:block; height:100%; border-radius:8px; }
.hbar-value { font-size:12px; font-weight:700; color:#0f172a; min-width:52px; }

.donut-wrap { display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.portal-donut { width:150px; height:150px; flex-shrink:0; }
.donut-legend { flex-direction:column; gap:6px; align-items:flex-start; }

.funnel { display:flex; flex-direction:column; gap:10px; }
.funnel-head { display:flex; justify-content:space-between; font-size:12.5px; margin-bottom:3px; }
.funnel-track { background:#f0f9ff; border-radius:8px; height:26px; overflow:hidden; }
.funnel-fill { display:block; height:100%; border-radius:8px; }

/* Employer feedback stars */
.fb-stage { margin-bottom:8px; }
.fb-stars { display:flex; gap:4px; }
.fb-star input { display:none; }
.fb-star { font-size:22px; color:#cbd5e1; cursor:pointer; line-height:1; padding:0 2px; }
.fb-star.on, .fb-star:has(input:checked) { color:#f59e0b; }
.fb-star.none { font-size:15px; color:#94a3b8; align-self:center; }
.fb-outcome { cursor:pointer; }
.fb-outcome input { margin-right:5px; }
.fb-outcome:has(input:checked) { background:#0ea5e9; color:#fff; border-color:#0ea5e9; }
.chip-active { background:#0ea5e9 !important; color:#fff !important; border-color:#0ea5e9 !important; }
.hide { display:none; }

/* ============ Verification gates, badges, alerts (task 29) ============ */

/* Employer badge chip (admin-awarded recognition) */
.ebadge {
  display:inline-flex; align-items:center; gap:4px;
  border:1px solid; border-radius:999px; padding:2px 10px;
  font-size:11.5px; font-weight:700; line-height:1.6; white-space:nowrap;
}

/* Apply-eligibility banner (job detail — blocked candidate) */
.gate-banner {
  display:flex; gap:14px; align-items:flex-start;
  background:#fff7e6; border:1px solid #f3d9a4; color:#7a5a12;
  border-radius:12px; padding:14px 18px; margin:14px 0; font-size:14px; line-height:1.55;
}
.dark .gate-banner { background:#2a2109; border-color:#5c4a1a; color:#e8d9ac; }
.gate-banner .eb-icon { font-size:20px; line-height:1.3; }
.gate-banner b { font-size:14.5px; }

/* Registration CAPTCHA row */
.captcha-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.captcha-row img { border:1px solid #cfe3f5; border-radius:8px; background:#f0f7ff; }

/* Readiness checklist dots (candidate dashboard) */
.readiness-dot {
  display:inline-flex; align-items:center; justify-content:center;
  width:26px; height:26px; border-radius:50%; font-weight:800; font-size:14px; color:#fff;
  flex-shrink:0;
}
.readiness-dot.ok { background:#16a34a; }
.readiness-dot.no { background:#dc2626; }

/* Unread-notification counter on the header bell */
.notif-dot {
  position:absolute; top:-6px; right:-8px;
  background:#dc2626; color:#fff; border-radius:999px;
  font-size:10px; font-weight:800; line-height:1;
  padding:3px 5px; min-width:16px; text-align:center; border:2px solid #fff;
}
