/* ================================================================
   InternHub — Master Stylesheet
   Typography: DM Sans (UI) + Fraunces (Display)
   Design: Airy, editorial light mode with warm undertones
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&display=swap');

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Palette */
  --ink-900:   #111827;
  --ink-800:   #1f2937;
  --ink-700:   #374151;
  --ink-500:   #6b7280;
  --ink-400:   #9ca3af;
  --ink-200:   #e5e7eb;
  --ink-100:   #f3f4f6;
  --ink-50:    #f9fafb;

  --accent:        #3b6cf8;
  --accent-light:  #eff3ff;
  --accent-dark:   #2952d3;
  --accent-glow:   rgba(59,108,248,.15);

  --green:         #059669;
  --green-light:   #d1fae5;
  --amber:         #d97706;
  --amber-light:   #fef3c7;
  --red:           #dc2626;
  --red-light:     #fee2e2;
  --purple:        #7c3aed;
  --purple-light:  #ede9fe;
  --cyan:          #0891b2;
  --cyan-light:    #cffafe;

  /* Status colours */
  --status-applied:     var(--accent);
  --status-screening:   var(--amber);
  --status-interviewing:var(--purple);
  --status-offered:     var(--green);
  --status-rejected:    var(--red);

  /* Surface */
  --bg:         #ffffff;
  --bg-subtle:  #f8f9fc;
  --bg-muted:   #f1f3f9;
  --border:     #e4e7ed;
  --border-strong: #d1d5db;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(17,24,39,.05);
  --shadow-sm: 0 1px 3px rgba(17,24,39,.08), 0 1px 2px rgba(17,24,39,.04);
  --shadow-md: 0 4px 6px -1px rgba(17,24,39,.08), 0 2px 4px -2px rgba(17,24,39,.05);
  --shadow-lg: 0 10px 15px -3px rgba(17,24,39,.08), 0 4px 6px -4px rgba(17,24,39,.05);
  --shadow-xl: 0 20px 25px -5px rgba(17,24,39,.1), 0 8px 10px -6px rgba(17,24,39,.06);

  /* Radius */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-full: 9999px;

  /* Spacing scale */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;
  --sp-4: 16px;  --sp-5: 20px;  --sp-6: 24px;
  --sp-8: 32px;  --sp-10: 40px; --sp-12: 48px;
  --sp-16: 64px; --sp-20: 80px;

  /* Type */
  --font-ui:      'DM Sans', system-ui, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 350ms;

  /* Layout */
  --container: 1200px;
  --nav-h:     64px;
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { line-height: 1.25; font-weight: 600; color: var(--ink-900); }

/* ── LAYOUT ─────────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-6); }
.page-wrap  { padding-top: var(--nav-h); }

/* ── NAVIGATION ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  transition: box-shadow var(--dur-base) var(--ease);
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav__inner {
  display: flex; align-items: center; gap: var(--sp-8);
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 var(--sp-6);
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--ink-900); text-decoration: none;
  display: flex; align-items: center; gap: var(--sp-2);
  flex-shrink: 0;
}
.nav__logo-dot { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: var(--sp-1); flex: 1; }
.nav__link {
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500;
  color: var(--ink-600, var(--ink-700));
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  text-decoration: none;
}
.nav__link:hover { background: var(--ink-100); color: var(--ink-900); text-decoration: none; }
.nav__link.active { background: var(--accent-light); color: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: var(--sp-3); margin-left: auto; }

.notif-bell {
  position: relative;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.notif-bell:hover { background: var(--ink-100); }
.notif-badge {
  position: absolute; top: 4px; right: 4px;
  width: 8px; height: 8px;
  background: var(--red); border-radius: 50%;
  border: 2px solid var(--bg);
}
.avatar-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--border);
  overflow: hidden; cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease);
}
.avatar-btn:hover { border-color: var(--accent); }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  padding: var(--sp-20) 0 var(--sp-16);
  background: linear-gradient(160deg, #f0f4ff 0%, #fafbfe 50%, #fff 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -120px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59,108,248,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero__content { max-width: 640px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--accent-light);
  color: var(--accent);
  font-size: 13px; font-weight: 600;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-5);
  border: 1px solid rgba(59,108,248,.2);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700; line-height: 1.1;
  color: var(--ink-900);
  margin-bottom: var(--sp-5);
}
.hero__title em { font-style: italic; color: var(--accent); }
.hero__sub {
  font-size: 18px; color: var(--ink-500);
  line-height: 1.7; margin-bottom: var(--sp-8);
  max-width: 520px;
}
.hero__stats {
  display: flex; gap: var(--sp-6); flex-wrap: wrap;
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border);
  margin-top: var(--sp-8);
}
.hero__stat-val {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700; color: var(--ink-900);
}
.hero__stat-lbl { font-size: 13px; color: var(--ink-500); }

/* ── SEARCH BAR ─────────────────────────────────────────────── */
.search-bar {
  display: flex; align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
  max-width: 640px;
}
.search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-md);
}
.search-bar__icon {
  padding: 0 var(--sp-4);
  color: var(--ink-400); flex-shrink: 0;
}
.search-bar__input {
  flex: 1; border: none; outline: none;
  padding: 14px var(--sp-4) 14px 0;
  font-size: 15px; background: transparent;
  color: var(--ink-900);
}
.search-bar__input::placeholder { color: var(--ink-400); }
.search-bar__divider {
  width: 1px; height: 24px; background: var(--border); flex-shrink: 0;
}
.search-bar__btn {
  margin: var(--sp-2);
  padding: 10px var(--sp-5);
  background: var(--accent);
  color: #fff; font-weight: 600; font-size: 14px;
  border: none; border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.search-bar__btn:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ── FILTERS ────────────────────────────────────────────────── */
.filters {
  display: flex; align-items: center; gap: var(--sp-3);
  flex-wrap: wrap; padding: var(--sp-5) 0;
}
.filter-chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  font-size: 13px; font-weight: 500;
  color: var(--ink-700);
  cursor: pointer; background: var(--bg);
  transition: all var(--dur-fast) var(--ease);
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.filter-chip.active { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }
.filter-select {
  padding: var(--sp-2) var(--sp-4); border: 1.5px solid var(--border);
  border-radius: var(--r-full); font-size: 13px; font-weight: 500;
  color: var(--ink-700); cursor: pointer; background: var(--bg);
  outline: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  transition: border-color var(--dur-fast) var(--ease);
}
.filter-select:focus { border-color: var(--accent); }

/* ── INTERNSHIP CARD ─────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-5);
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  transition: transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
  cursor: pointer; position: relative;
  animation: cardIn .4s var(--ease) both;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card__featured-badge {
  position: absolute; top: var(--sp-4); right: var(--sp-4);
  background: var(--amber-light); color: var(--amber);
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: var(--r-full);
  text-transform: uppercase; letter-spacing: .04em;
}
.card__header { display: flex; align-items: flex-start; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.card__logo {
  width: 48px; height: 48px; border-radius: var(--r-md);
  border: 1px solid var(--border);
  object-fit: contain; padding: 4px;
  background: var(--bg-subtle); flex-shrink: 0;
}
.card__logo-placeholder {
  width: 48px; height: 48px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--bg-subtle);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: var(--ink-400);
  flex-shrink: 0;
}
.card__title { font-size: 16px; font-weight: 600; color: var(--ink-900); margin-bottom: 2px; }
.card__company { font-size: 13px; color: var(--ink-500); }
.card__meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  font-size: 13px; color: var(--ink-500);
  margin-bottom: var(--sp-4);
}
.card__meta-item { display: flex; align-items: center; gap: var(--sp-1); }
.card__skills { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.skill-tag {
  padding: 3px 10px;
  background: var(--ink-100); color: var(--ink-700);
  font-size: 12px; font-weight: 500;
  border-radius: var(--r-full);
}
.skill-tag--match { background: var(--accent-light); color: var(--accent); }
.card__footer { display: flex; align-items: center; justify-content: space-between; }
.card__stipend { font-size: 14px; font-weight: 600; color: var(--green); }
.card__deadline { font-size: 12px; color: var(--ink-400); }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  padding: 10px 20px;
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 600;
  cursor: pointer; border: none;
  transition: all var(--dur-fast) var(--ease);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }

.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 3px rgba(59,108,248,.3);
}
.btn--primary:hover { background: var(--accent-dark); box-shadow: 0 4px 12px rgba(59,108,248,.35); transform: translateY(-1px); }

.btn--secondary {
  background: var(--ink-100); color: var(--ink-800);
}
.btn--secondary:hover { background: var(--ink-200); }

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--border-strong);
  color: var(--ink-800);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

.btn--danger { background: var(--red); color: #fff; }
.btn--danger:hover { background: #b91c1c; }

.btn--success { background: var(--green); color: #fff; }
.btn--success:hover { background: #047857; }

.btn--ghost { background: transparent; color: var(--ink-700); }
.btn--ghost:hover { background: var(--ink-100); color: var(--ink-900); }

.btn--lg { padding: 13px 28px; font-size: 15px; border-radius: var(--r-lg); }
.btn--sm { padding: 6px 14px; font-size: 13px; border-radius: var(--r-sm); }
.btn--full { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* ── FORMS ──────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.form-label { font-size: 14px; font-weight: 600; color: var(--ink-800); }
.form-label span { color: var(--red); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px var(--sp-4);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 15px; color: var(--ink-900);
  background: var(--bg);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--ink-400); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 12px; color: var(--ink-400); }
.form-error { font-size: 12px; color: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

/* Checkbox / Toggle */
.form-check { display: flex; align-items: center; gap: var(--sp-3); cursor: pointer; }
.form-check input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }

/* Skills multi-select */
.skills-picker { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.skills-picker__item { display: none; }
.skills-picker__label {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-3);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.skills-picker__item:checked + .skills-picker__label {
  background: var(--accent-light); border-color: var(--accent); color: var(--accent);
}

/* File Upload */
.file-upload {
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  text-align: center;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease);
  position: relative;
}
.file-upload:hover, .file-upload.drag-over {
  border-color: var(--accent);
  background: var(--accent-light);
}
.file-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-upload__icon { font-size: 32px; margin-bottom: var(--sp-3); }
.file-upload__text { font-size: 14px; color: var(--ink-700); }
.file-upload__hint { font-size: 12px; color: var(--ink-400); margin-top: var(--sp-1); }

/* ── STATUS BADGE ───────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--applied     { background: var(--accent-light);  color: var(--accent); }
.badge--screening   { background: var(--amber-light);   color: var(--amber); }
.badge--interviewing{ background: var(--purple-light);  color: var(--purple); }
.badge--offered     { background: var(--green-light);   color: var(--green); }
.badge--rejected    { background: var(--red-light);     color: var(--red); }
.badge--active      { background: var(--green-light);   color: var(--green); }
.badge--draft       { background: var(--ink-100);       color: var(--ink-500); }
.badge--closed      { background: var(--red-light);     color: var(--red); }

/* ── DASHBOARD LAYOUT ───────────────────────────────────────── */
.dashboard {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - var(--nav-h));
}
.sidebar {
  background: var(--bg-subtle);
  border-right: 1px solid var(--border);
  padding: var(--sp-6) 0;
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.sidebar__section { padding: 0 var(--sp-3); margin-bottom: var(--sp-6); }
.sidebar__label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-400);
  padding: 0 var(--sp-3);
  margin-bottom: var(--sp-2);
}
.sidebar__link {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 500;
  color: var(--ink-600, var(--ink-700));
  transition: all var(--dur-fast) var(--ease);
  text-decoration: none;
  cursor: pointer;
}
.sidebar__link:hover { background: var(--ink-100); color: var(--ink-900); text-decoration: none; }
.sidebar__link.active { background: var(--accent-light); color: var(--accent); }
.sidebar__link svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar__badge {
  margin-left: auto;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 1px 7px; border-radius: var(--r-full);
  min-width: 20px; text-align: center;
}

.dash-main { padding: var(--sp-8); overflow-y: auto; }
.dash-header { margin-bottom: var(--sp-8); }
.dash-header__title {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  color: var(--ink-900); margin-bottom: var(--sp-1);
}
.dash-header__sub { font-size: 14px; color: var(--ink-500); }

/* ── STAT CARDS ─────────────────────────────────────────────── */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-8); }
.stat-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--sp-5) var(--sp-6);
}
.stat-card__icon {
  width: 44px; height: 44px; border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: var(--sp-4);
}
.stat-card__val {
  font-family: var(--font-display); font-size: 32px; font-weight: 700;
  color: var(--ink-900); line-height: 1;
  margin-bottom: var(--sp-1);
}
.stat-card__label { font-size: 13px; color: var(--ink-500); }

/* ── TABLES ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; padding: var(--sp-3) var(--sp-4);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink-500); background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: var(--sp-4); border-bottom: 1px solid var(--border);
  color: var(--ink-800); vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--dur-fast) var(--ease); }
.table tbody tr:hover { background: var(--bg-subtle); }

/* ── ATS PIPELINE TRACKER ───────────────────────────────────── */
.ats-track {
  display: flex; align-items: center;
  gap: 0; margin: var(--sp-5) 0;
}
.ats-step {
  flex: 1; position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: var(--sp-2);
}
.ats-step::before {
  content: '';
  position: absolute; top: 14px; left: 50%; right: -50%;
  height: 2px; background: var(--border); z-index: 0;
}
.ats-step:last-child::before { display: none; }
.ats-step__dot {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg); z-index: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; transition: all var(--dur-base) var(--ease);
}
.ats-step.done .ats-step__dot  { background: var(--green); border-color: var(--green); color: #fff; }
.ats-step.done::before          { background: var(--green); }
.ats-step.current .ats-step__dot{ background: var(--accent); border-color: var(--accent); color: #fff; }
.ats-step__label { font-size: 11px; color: var(--ink-400); font-weight: 500; text-align: center; }
.ats-step.done .ats-step__label,
.ats-step.current .ats-step__label { color: var(--ink-700); }

/* ── MODAL ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(17,24,39,.45);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-4);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-base) var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg); border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  width: 100%; max-width: 560px; max-height: 90vh;
  overflow-y: auto;
  transform: scale(.96) translateY(8px);
  transition: transform var(--dur-slow) var(--ease-spring);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal__head {
  padding: var(--sp-6); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal__title { font-size: 18px; font-weight: 700; }
.modal__close {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--dur-fast) var(--ease);
}
.modal__close:hover { background: var(--ink-100); }
.modal__body { padding: var(--sp-6); }
.modal__foot {
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: var(--sp-3);
}

/* ── NOTIFICATION PANEL ─────────────────────────────────────── */
.notif-panel {
  position: fixed; top: var(--nav-h); right: var(--sp-4);
  width: 360px; max-height: 520px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-xl);
  z-index: 150; overflow: hidden;
  transform: translateY(-8px) scale(.97);
  opacity: 0; pointer-events: none;
  transition: all var(--dur-base) var(--ease-spring);
}
.notif-panel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: all; }
.notif-panel__head {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.notif-panel__title { font-weight: 700; font-size: 15px; }
.notif-list { overflow-y: auto; max-height: 400px; }
.notif-item {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background var(--dur-fast) var(--ease);
  display: flex; gap: var(--sp-3); align-items: flex-start;
}
.notif-item:hover { background: var(--bg-subtle); }
.notif-item.unread { background: var(--accent-light); }
.notif-item.unread:hover { background: #e5ecfe; }
.notif-item__icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink-100); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.notif-item__title { font-size: 13px; font-weight: 600; color: var(--ink-900); margin-bottom: 2px; }
.notif-item__body  { font-size: 12px; color: var(--ink-500); line-height: 1.5; }
.notif-item__time  { font-size: 11px; color: var(--ink-400); margin-top: 4px; }

/* ── SECTION TITLES ─────────────────────────────────────────── */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: var(--sp-8);
}
.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700; color: var(--ink-900);
}
.section-head__sub {
  font-size: 14px; color: var(--ink-500);
  margin-top: var(--sp-1);
}

/* ── PAGINATION ─────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: var(--sp-1); margin-top: var(--sp-8); justify-content: center; }
.page-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 500;
  cursor: pointer; background: var(--bg);
  transition: all var(--dur-fast) var(--ease);
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── PROFILE CARD ───────────────────────────────────────────── */
.profile-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden;
}
.profile-card__banner { height: 90px; background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%); }
.profile-card__body { padding: 0 var(--sp-6) var(--sp-6); }
.profile-card__avatar {
  width: 72px; height: 72px; border-radius: 50%;
  border: 3px solid var(--bg);
  margin-top: -36px;
  object-fit: cover; box-shadow: var(--shadow-md);
}
.profile-card__name { font-size: 18px; font-weight: 700; margin-top: var(--sp-3); }
.profile-card__meta { font-size: 13px; color: var(--ink-500); margin-top: var(--sp-1); }

/* ── EMPTY STATE ────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: var(--sp-16) var(--sp-8);
}
.empty-state__icon { font-size: 48px; margin-bottom: var(--sp-4); opacity: .4; }
.empty-state__title { font-size: 18px; font-weight: 600; color: var(--ink-700); margin-bottom: var(--sp-2); }
.empty-state__sub   { font-size: 14px; color: var(--ink-400); }

/* ── ALERTS ─────────────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-lg); border: 1px solid;
  font-size: 14px; margin-bottom: var(--sp-5);
}
.alert--success { background: var(--green-light);  border-color: #a7f3d0; color: #065f46; }
.alert--error   { background: var(--red-light);    border-color: #fca5a5; color: #991b1b; }
.alert--warning { background: var(--amber-light);  border-color: #fcd34d; color: #92400e; }
.alert--info    { background: var(--accent-light); border-color: #bfdbfe; color: #1e40af; }

/* ── ADMIN SPECIFIC ──────────────────────────────────────────── */
.admin-topbar {
  background: var(--ink-900); color: #fff;
  padding: 0 var(--sp-6); height: 52px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; position: sticky; top: 0; z-index: 99;
}
.admin-topbar__brand { font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.admin-topbar__brand span { color: var(--accent); }
.admin-sidebar {
  width: 220px; background: var(--ink-900); color: #fff;
  min-height: calc(100vh - 52px); padding: var(--sp-5) 0;
  position: sticky; top: 52px; height: calc(100vh - 52px);
  overflow-y: auto;
}
.admin-sidebar__link {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 10px var(--sp-5);
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.65);
  transition: all var(--dur-fast) var(--ease);
  text-decoration: none;
}
.admin-sidebar__link:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.admin-sidebar__link.active { background: rgba(59,108,248,.3); color: #fff; }
.admin-sidebar__label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: rgba(255,255,255,.3);
  padding: var(--sp-4) var(--sp-5) var(--sp-2);
}
.admin-layout { display: grid; grid-template-columns: 220px 1fr; }
.admin-content { padding: var(--sp-8); background: var(--bg-subtle); min-height: calc(100vh - 52px); }

/* ── MATCH SCORE ─────────────────────────────────────────────── */
.match-score {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 4px 10px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 700;
  background: var(--green-light); color: var(--green);
}
.match-score--low    { background: var(--red-light);   color: var(--red); }
.match-score--medium { background: var(--amber-light); color: var(--amber); }
.match-score--high   { background: var(--green-light); color: var(--green); }

/* ── TOAST ───────────────────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: var(--sp-6); right: var(--sp-6);
  z-index: 999; display: flex; flex-direction: column; gap: var(--sp-3);
}
.toast {
  padding: var(--sp-4) var(--sp-5);
  background: var(--ink-900); color: #fff;
  border-radius: var(--r-lg); box-shadow: var(--shadow-xl);
  font-size: 14px; max-width: 340px;
  animation: toastIn .3s var(--ease-spring) both;
  display: flex; align-items: center; gap: var(--sp-3);
}
.toast--success { background: var(--green); }
.toast--error   { background: var(--red); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--ink-900); color: rgba(255,255,255,.6);
  padding: var(--sp-16) 0 var(--sp-8);
  margin-top: var(--sp-20);
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-12); margin-bottom: var(--sp-12); }
.footer__brand { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: #fff; margin-bottom: var(--sp-4); }
.footer__desc { font-size: 14px; line-height: 1.7; max-width: 240px; }
.footer__heading { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fff; margin-bottom: var(--sp-4); }
.footer__links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__link { font-size: 14px; color: rgba(255,255,255,.55); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
.footer__link:hover { color: #fff; text-decoration: none; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: var(--sp-6); display: flex; justify-content: space-between; align-items: center; font-size: 13px; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .dashboard { grid-template-columns: 1fr; }
  .sidebar   { display: none; }
  .admin-layout  { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .form-row  { grid-template-columns: 1fr; }
  .footer__grid  { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .hero__stats   { gap: var(--sp-5); }
}
@media (max-width: 600px) {
  .nav__links  { display: none; }
  .container   { padding: 0 var(--sp-4); }
  .cards-grid  { grid-template-columns: 1fr; }
  .footer__grid{ grid-template-columns: 1fr; }
  .stat-cards  { grid-template-columns: 1fr 1fr; }
  .search-bar  { border-radius: var(--r-md); }
}

/* ── UTILITY ────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-4  { margin-top: var(--sp-4); }
.mt-6  { margin-top: var(--sp-6); }
.mt-8  { margin-top: var(--sp-8); }
.mb-4  { margin-bottom: var(--sp-4); }
.mb-6  { margin-bottom: var(--sp-6); }
.mb-8  { margin-bottom: var(--sp-8); }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.divider { height: 1px; background: var(--border); margin: var(--sp-6) 0; }
.loading { opacity: .5; pointer-events: none; }