@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,700;0,9..40,800;1,9..40,400&display=swap');

:root {
  /* Brand */
  --brand-50:  #fff4ed;
  --brand-100: #ffe6d0;
  --brand-200: #ffc89e;
  --brand-400: #fb923c;
  --brand-500: #f97316;
  --brand-600: #ea580c;
  --brand-700: #c2410c;

  /* Neutrals */
  --ink-900: #0d1117;
  --ink-700: #1e2530;
  --ink-500: #374151;
  --ink-400: #4b5563;
  --ink-300: #6b7280;
  --ink-200: #9ca3af;
  --ink-100: #d1d5db;
  --ink-50:  #f3f4f6;
  --ink-0:   #ffffff;

  /* Surfaces */
  --surface-page: #f6f7f9;
  --surface-card: #ffffff;
  --surface-hover: #f9fafb;

  /* Status */
  --green-bg:  #f0fdf4; --green-fg:  #15803d; --green-border: #bbf7d0;
  --blue-bg:   #eff6ff; --blue-fg:   #1d4ed8; --blue-border:  #bfdbfe;
  --amber-bg:  #fffbeb; --amber-fg:  #b45309; --amber-border: #fde68a;
  --red-bg:    #fef2f2; --red-fg:    #b91c1c; --red-border:   #fecaca;
  --slate-bg:  #f1f5f9; --slate-fg:  #475569; --slate-border: #e2e8f0;
  --purple-bg: #faf5ff; --purple-fg: #7e22ce; --purple-border:#e9d5ff;

  /* Geometry */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --radius-2xl: 26px;

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(13,17,23,.06), 0 1px 2px rgba(13,17,23,.04);
  --shadow-md: 0 4px 12px rgba(13,17,23,.08), 0 2px 4px rgba(13,17,23,.04);
  --shadow-lg: 0 12px 32px rgba(13,17,23,.10), 0 4px 8px rgba(13,17,23,.05);
  --shadow-xl: 0 24px 56px rgba(13,17,23,.14), 0 8px 16px rgba(13,17,23,.06);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Typography */
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Aliases used by inline styles in submit-application.php */
  --accent: var(--brand-500);
  --border: var(--ink-100);
}

/* -- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--surface-page);
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* -- Page Hero --------------------------------------------- */
.opp-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 55%, var(--brand-400) 100%);
  color: var(--ink-0);
  border-radius: var(--radius-2xl);
  padding: 32px 36px;
  box-shadow: 0 16px 40px rgba(234,88,12,.30);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.opp-hero::before,
.opp-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: .10;
  pointer-events: none;
  background: var(--ink-0);
}
.opp-hero::before { width: 280px; height: 280px; top: -100px; right: 60px; }
.opp-hero::after  { width: 160px; height: 160px; bottom: -70px; right: 220px; }

/* -- Hero: inner layout (public applications page) ---------- */
.opp-hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
  position: relative;
}

.opp-hero-left { position: relative; flex: 1; min-width: 260px; }

.opp-hero-accent { color: var(--brand-100); }

.opp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.opp-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-200);
  animation: oppBlink 2s ease infinite;
  flex-shrink: 0;
}

@keyframes oppBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .25; }
}

.opp-hero h1 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 6px;
}

.opp-hero p {
  font-size: 14px;
  opacity: .85;
  max-width: 480px;
}

.opp-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  flex-shrink: 0;
}

/* -- Hero stat bar (public applications page) ---------------- */
.opp-hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  flex-shrink: 0;
}

.opp-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 84px;
}

.opp-stat-num {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--ink-0);
}

/* .opp-stat-label: hero stat bar label (white text on the orange hero). */
.opp-stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  white-space: nowrap;
}

/* -- Main wrapper (public applications page) ----------------- */
.opp-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 18px 48px;
}

/* -- Panel / Card shell ------------------------------------ */
.opp-panel {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,.04);
  overflow: hidden;
  margin-bottom: 24px;
}

.opp-panel-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--ink-50);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.opp-panel-head h3 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.2px;
  color: var(--ink-700);
  display: flex;
  align-items: center;
  gap: 8px;
}

.opp-panel-body { padding: 20px 22px; }
.opp-panel-body-flush { padding-top: 0; }

/* -- Filter bar ---------------------------------------------
   Shared between the admin dashboard (select-based filters)
   and the public applications page (search input + type pills).
   One row on desktop (search grows; scrolls sideways if it overflows),
   wraps at <=768px. Mirrors .filters-bar in style.css, which public
   pages do not load.
   ------------------------------------------------------------ */
.opp-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  margin-bottom: 24px;
  background: var(--ink-50);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  border: 1px solid var(--ink-100);
}

.opp-filter-bar .form-control {
  height: 38px;
  padding: 0 12px;
  background: var(--surface-card);
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-700);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  min-width: 160px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}

.opp-filter-bar .form-control:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}

.opp-filter-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-300);
  white-space: nowrap;
}

.opp-search-wrap {
  position: relative;
  flex: 1 1 220px;
  min-width: 180px;
}

.opp-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-200);
  font-size: 13px;
  pointer-events: none;
}

.opp-search-input {
  width: 100%;
  padding: 10px 14px 10px 34px;
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--surface-card);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.opp-search-input::placeholder { color: var(--ink-200); }
.opp-search-input:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}

.opp-type-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.opp-filter-bar > .opp-type-pills { flex: 0 0 auto; flex-wrap: nowrap; }
.opp-filter-bar > .opp-results-count { flex: 0 0 auto; }

.opp-pill {
  border: 1.5px solid var(--ink-100);
  background: var(--surface-card);
  color: var(--ink-400);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 15px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.opp-pill:hover { border-color: var(--brand-400); color: var(--brand-600); }
.opp-pill.active {
  background: var(--brand-500);
  color: var(--ink-0);
  border-color: var(--brand-500);
}

.opp-results-count {
  font-size: 13px;
  color: var(--ink-300);
  margin-left: auto;
  white-space: nowrap;
}
.opp-results-count span { font-weight: 800; color: var(--ink-700); }

/* -- Opportunity cards: admin dashboard grid ------------------
   application-opportunities.php only (.opp-list is not used elsewhere).
   3 per row on desktop, 2 <=900px, 1 <=560px. Cards show no description
   (kept compact); cards in a row share the same height and the actions
   row is pinned to the card bottom. */
.opp-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.opp-list > .opp-card {
  min-width: 0;
  height: 100%;
  padding: 18px;
}

.opp-list .opp-card-head {
  gap: 10px;
}

/* Long titles clamp to two lines (full title in the tooltip). */
.opp-list .opp-card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.opp-list .opp-card-title .opp-featured-badge {
  vertical-align: middle;
}

.opp-list .opp-actions {
  margin-top: auto;
  padding-top: 12px;
}

@media (max-width: 900px) {
  .opp-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .opp-list { grid-template-columns: minmax(0, 1fr); }
}

.opp-card {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(0,0,0,.05);
  border-left: 4px solid var(--ink-200);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), border-color .15s;
  opacity: 0;
  animation: cardIn .4s var(--ease-out) forwards;
}

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

.opp-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Status colours on left border (admin dashboard cards) */
.opp-card[data-status="Published"] { border-left-color: var(--green-fg); }
.opp-card[data-status="Draft"]     { border-left-color: var(--amber-fg); }
.opp-card[data-status="Closed"]    { border-left-color: var(--ink-300); }
.opp-card[data-status="Completed"] { border-left-color: var(--purple-fg); }

/* Featured top bar (admin dashboard cards) */
.opp-card[data-featured="1"]::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-400));
}

.opp-card[data-featured="1"] {
  background: linear-gradient(160deg, var(--amber-bg) 0%, var(--surface-card) 35%);
  border-color: rgba(245,158,11,.3);
  border-left-color: inherit; /* keeps status colour */
}

/* -- Card header row (admin dashboard cards) ----------------- */
.opp-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.opp-card-title-row { flex: 1; min-width: 0; }

.opp-card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink-700);
  letter-spacing: -.02em;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.opp-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(245,158,11,.2);
  flex-shrink: 0;
}

/* -- Opportunity cards: public applications grid --------------
   Scoped under .opp-grid so this page's markup (a flat
   .opp-card-head containing a badge + h2 + p, stacked) never
   collides with the admin dashboard's .opp-card-head above
   (a row containing a badge/title on the left and actions on
   the right). Both reuse the class names .opp-card /
   .opp-card-head / .opp-card-title on purpose � the .opp-grid
   ancestor is what disambiguates them.
   ------------------------------------------------------------ */
.opp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.opp-grid .opp-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.opp-grid .opp-card-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.opp-grid .opp-type-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-100);
  padding: 4px 10px;
  border-radius: 999px;
}

.opp-grid .opp-card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink-700);
  letter-spacing: -.02em;
  line-height: 1.3;
}

.opp-grid .opp-card-desc {
  font-size: 13px;
  color: var(--ink-300);
  line-height: 1.6;
}

.opp-grid .opp-card-meta {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.opp-grid .opp-meta-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--ink-400);
}
.opp-grid .opp-meta-row i { color: var(--brand-400); width: 14px; text-align: center; flex-shrink: 0; }

.opp-grid .opp-meta-row--urgent { color: var(--red-fg); font-weight: 700; }
.opp-grid .opp-meta-row--urgent i { color: var(--red-fg); }

/* Slot fill bar */
.opp-grid .opp-slots {
  display: flex;
  align-items: center;
  gap: 10px;
}
.opp-grid .opp-slots-track {
  flex: 1;
  height: 8px;
  background: var(--ink-50);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--ink-100);
}
.opp-grid .opp-slots-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-400));
  transition: width .5s var(--ease-out);
}
.opp-grid .opp-slots-fill--hot { background: linear-gradient(90deg, #dc2626, #f87171); }
.opp-grid .opp-slots-label {
  font-size: 11px;
  color: var(--ink-300);
  white-space: nowrap;
  flex-shrink: 0;
}

/* CTA button + full notice */
.opp-apply-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand-500);
  color: var(--ink-0);
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(249,115,22,.25);
  transition: opacity .15s, transform .15s, box-shadow .15s;
}
.opp-apply-btn:hover {
  opacity: .9;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(249,115,22,.32);
}
.opp-apply-arrow { transition: transform .15s var(--ease-out); }
.opp-apply-btn:hover .opp-apply-arrow { transform: translateX(3px); }

.opp-full-notice {
  margin-top: auto;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-300);
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 12px;
}

/* Featured styling (public grid) */
.opp-grid .opp-card--featured {
  border-color: rgba(245,158,11,.35);
  background: linear-gradient(160deg, var(--amber-bg) 0%, var(--surface-card) 40%);
}

.opp-feat-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
  padding: 4px 11px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(245,158,11,.3);
}

/* No-results state (lives inside .opp-grid) */
.opp-no-results {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 64px 24px;
  color: var(--ink-300);
  text-align: center;
}
.opp-no-results i { font-size: 34px; opacity: .35; }
.opp-no-results button {
  margin-top: 4px;
  border: 1.5px solid var(--ink-100);
  background: var(--surface-card);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink-500);
  transition: border-color .15s, color .15s;
}
.opp-no-results button:hover { border-color: var(--brand-400); color: var(--brand-600); }

.opp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-500);
  color: var(--ink-0);
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: opacity .15s, transform .15s;
}
.opp-back-btn:hover { opacity: .88; transform: translateY(-1px); }

.opp-footer {
  text-align: center;
  padding: 30px 0 10px;
  font-size: 12.5px;
  color: var(--ink-300);
}
.opp-footer a { color: var(--brand-600); font-weight: 700; }

/* -- Badges ------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge-published,
.badge-success   { background: var(--green-bg);  color: var(--green-fg);  border-color: var(--green-border); }
.badge-draft,
.badge-warning   { background: var(--amber-bg);  color: var(--amber-fg);  border-color: var(--amber-border); }
.badge-closed,
.badge-secondary { background: var(--slate-bg);  color: var(--slate-fg);  border-color: var(--slate-border); }
.badge-completed,
.badge-info      { background: var(--purple-bg); color: var(--purple-fg); border-color: var(--purple-border); }
.badge-type      { background: var(--brand-50);  color: var(--brand-700); border-color: var(--brand-100); }
.badge-xs        { font-size: 10px; padding: 2px 7px; }

/* Badge urgency overrides (employee-reports page) */
.badge-urgent  { background: var(--red-bg);   color: var(--red-fg);   border-color: var(--red-border);   }
.badge-action  { background: var(--amber-bg); color: var(--amber-fg); border-color: var(--amber-border); }
.badge-monitor { background: var(--blue-bg);  color: var(--blue-fg);  border-color: var(--blue-border);  }

/* -- Meta row (admin dashboard cards) ----------------------- */
.opp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 12.5px;
  color: var(--ink-400);
  align-items: center;
}

.opp-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.opp-meta-item i {
  font-size: 11px;
  color: var(--brand-400);
  flex-shrink: 0;
  width: 13px;
  text-align: center;
}

.opp-meta-item.urgent {
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  color: var(--red-fg);
  font-weight: 700;
  animation: urgentPulse 2.2s ease infinite;
}
.opp-meta-item.urgent i { color: var(--red-fg); }

@keyframes urgentPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .65; }
}

/* -- Description (admin dashboard cards) --------------------- */
.opp-desc {
  font-size: 13px;
  color: var(--ink-300);
  line-height: 1.65;
  border-left: 3px solid var(--ink-100);
  padding-left: 12px;
}

/* -- Actions row (admin dashboard cards) --------------------- */
.opp-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 4px;
  border-top: 1px solid var(--ink-50);
}

/* -- Buttons (global) ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 18px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .15s, transform .15s, box-shadow .15s;
  -webkit-user-select: none;
  user-select: none;
}
.btn:hover  { opacity: .86; transform: translateY(-1px); }
.btn:active { opacity: 1;   transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

.btn-sm { padding: 7px 13px; font-size: 12px; border-radius: var(--radius-sm); }

.btn-primary   { background: var(--brand-500); color: var(--ink-0); box-shadow: 0 3px 10px rgba(249,115,22,.25); }
.btn-white     { background: var(--ink-0);     color: var(--brand-600); box-shadow: var(--shadow-sm); }
.btn-success   { background: #16a34a;          color: var(--ink-0); box-shadow: 0 3px 10px rgba(22,163,74,.25); }
.btn-warning   { background: var(--amber-fg);  color: var(--ink-0); }
.btn-danger    { background: #dc2626;          color: var(--ink-0); }
.btn-info      { background: var(--blue-fg);   color: var(--ink-0); }
.btn-secondary { background: var(--ink-50);    color: var(--ink-500); border: 1px solid var(--ink-100); }
.btn-dark      { background: var(--ink-700);   color: var(--ink-0); }
.btn-light     { background: var(--ink-50);    color: var(--ink-400); border: 1px solid var(--ink-100); }
.btn-outline   { background: var(--surface-card); color: var(--ink-500); border: 1.5px solid var(--ink-100); }
.btn-outline:hover { border-color: var(--ink-200); background: var(--surface-hover); }
.btn-draft     { background: var(--ink-50); color: var(--ink-500); border: 1.5px solid var(--ink-100);padding: 11px 20px;
    font-size: 13.5px;
    gap: 7px; border-radius:10px;}
.btn-draft:hover { background: var(--surface-hover); }

/* Ghost button (hero overlay) */
.btn-ghost {
  background: rgba(255,255,255,.15);
  color: var(--ink-0);
  border: 1px solid rgba(255,255,255,.4);
}
.btn-ghost:hover { background: rgba(255,255,255,.25); opacity: 1; }

/* -- Forms (admin dashboard: modal-based grids) -------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group-mb { margin-bottom: 16px; }
.form-group-row { flex-direction: row; align-items: center; gap: 8px; }

.form-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.form-label.required::after {
  content: ' *';
  color: var(--red-fg);
}

.form-control {
  width: 100%;
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 10px 13px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-700);
  background: var(--surface-card);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-control:hover { border-color: var(--ink-200); }
.form-control:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}
textarea.form-control { min-height: 100px; resize: vertical; line-height: 1.55; }
select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-500);
  cursor: pointer;
}
.form-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--brand-500); cursor: pointer; }

.form-section-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-300);
  padding: 16px 0 8px;
  border-bottom: 1px solid var(--ink-100);
  margin-bottom: 14px;
  grid-column: 1 / -1;
}

/* -- Modal --------------------------------------------------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,17,23,.55);
  z-index: 9999;
  padding: 24px;
  overflow-y: auto;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: modalFadeIn .2s var(--ease-out);
}
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal.show { display: block; }

.modal-card {
  max-width: 860px;
  margin: 40px auto;
  background: var(--surface-card);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modalSlideUp .25s var(--ease-out);
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-card-sm { max-width: 560px; }
.modal-card-md { max-width: 680px; }
.modal-card-lg { max-width: 860px; }

.modal-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--ink-50);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-card);
}
.modal-head h3 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.2px;
  color: var(--ink-700);
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-body { padding: 24px; }
.modal-body .form-section-label { margin-top: 4px; }
.modal-body textarea.form-control { min-height: 80px; }

.modal-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--ink-50);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--ink-50);
}

.modal-close {
  border: none;
  background: var(--ink-50);
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 18px;
  color: var(--ink-400);
  display: grid;
  place-items: center;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.modal-close:hover { background: var(--ink-100); color: var(--ink-700); }

.modal-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--blue-fg);
  margin-bottom: 20px;
}
.modal-info-banner i { flex-shrink: 0; margin-top: 1px; }

.modal-warn-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--amber-fg);
  margin-bottom: 20px;
}
.modal-warn-banner i { flex-shrink: 0; margin-top: 1px; }

/* -- Flash / alert banners (shared) -------------------------- */
.flash {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.flash-success { background: var(--green-bg); color: var(--green-fg); border-color: var(--green-border); }
.flash-error   { background: var(--red-bg);   color: var(--red-fg);   border-color: var(--red-border);   }
.flash-draft   { background: var(--blue-bg);  color: var(--blue-fg);  border-color: var(--blue-border);  }
.flash i { margin-top: 1px; flex-shrink: 0; }

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  font-size: 13.5px;
  line-height: 1.6;
  border: 1px solid transparent;
}
.alert strong { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.alert-info    { background: var(--blue-bg);  color: var(--ink-500); border-color: var(--blue-border); }
.alert-info strong { color: var(--blue-fg); }
.alert-warn    { background: var(--amber-bg); color: var(--ink-500); border-color: var(--amber-border); }
.alert-warn strong { color: var(--amber-fg); }
.alert-danger  { background: var(--red-bg);   color: var(--ink-500); border-color: var(--red-border); text-align: center; padding: 40px 24px; }
.alert-danger strong { color: var(--red-fg); font-size: 16px; }
.alert-danger h3 { color: var(--red-fg); font-size: 18px; font-weight: 800; }

/* -- Empty state ------------------------------------------- */
.opp-empty {
  text-align: center;
  padding: 72px 24px;
}
.opp-empty-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-400);
  font-size: 2rem;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  opacity: .7;
}
.opp-empty h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-700);
  margin-bottom: 8px;
}
.opp-empty p {
  font-size: 13px;
  color: var(--ink-300);
  line-height: 1.65;
  margin-bottom: 20px;
}

/* -- Responsive (core) --------------------------------------- */
@media (max-width: 900px) {
  .opp-hero { padding: 24px; }
  .opp-hero h1 { font-size: 22px; }
}

@media (max-width: 768px) {
  .opp-filter-bar { flex-wrap: wrap; overflow-x: visible; }
  .opp-filter-bar > .opp-search-wrap { flex: 1 1 100%; min-width: 0; }
  .opp-filter-bar > .opp-type-pills { flex: 1 1 100%; flex-wrap: wrap; }
  .opp-card-head  { flex-direction: column; gap: 10px; }
  .form-grid      { grid-template-columns: 1fr; }
  .form-grid.cols-3 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .opp-hero { flex-direction: column; align-items: flex-start; padding: 20px; }
  .opp-hero-inner { flex-direction: column; align-items: flex-start; }
  .opp-hero-stats { width: 100%; justify-content: space-between; gap: 16px; }
  .opp-hero-actions { width: 100%; }
  .opp-hero-actions .btn { flex: 1; justify-content: center; }
  .opp-filter-bar .form-control { min-width: 0; width: 100%; }
  .opp-grid { grid-template-columns: 1fr; }
  .opp-results-count { margin-left: 0; }
  .modal { padding: 12px; }
  .modal-card { margin: 12px auto; border-radius: var(--radius-xl); }
  .modal-head, .modal-body, .modal-foot { padding: 16px 18px; }
}



/* ============================================================
   AI APIS PAGE � manage-ai-apis.php
   ============================================================ */

.ai-page { max-width: 1280px; margin: 0 auto; padding: 20px 18px 40px; overflow: visible; }

/* Scoped modal (avoids Bootstrap .modal collision) */
.opp-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,17,23,.55);
  z-index: 9999;
  padding: 24px;
  overflow-y: auto;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.opp-modal .modal-card { animation: oppModalSlideUp .25s var(--ease-out); }
@keyframes oppModalSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.table-overflow { overflow-x: auto; }

.api-table { width: 100%; border-collapse: collapse; min-width: 820px; }
.api-table thead th {
  background: var(--ink-50);
  padding: 11px 14px;
  text-align: left;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-300);
  border-bottom: 1px solid var(--ink-100);
  white-space: nowrap;
}
.api-table tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--ink-50);
  font-size: 13px;
  color: var(--ink-500);
  vertical-align: middle;
}
.api-table tbody tr { transition: background .15s; }
.api-table tbody tr:hover { background: var(--surface-hover); }
.api-table tbody tr:last-child td { border-bottom: none; }

.empty-row td {
  text-align: center;
  padding: 52px 24px !important;
  color: var(--ink-300);
}

.api-name {
  font-weight: 800;
  color: var(--ink-700);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.provider-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-100);
  padding: 3px 10px;
  border-radius: 999px;
}

.setting-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--ink-400);
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.key-hint {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--ink-400);
  letter-spacing: .08em;
}

.tbl-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tbl-actions .btn { padding: 7px 10px; font-size: 12px; }

.inline-f { display: inline; margin: 0; padding: 0; }

.toggle-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 14px;
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
}
.toggle-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-500);
  cursor: pointer;
}
.toggle-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-500);
  cursor: pointer;
}

@media (max-width: 768px) {
  .tbl-actions { gap: 4px; }
  .tbl-actions .btn { padding: 6px 8px; }
}


/* ============================================================
   EMPLOYEE REPORTS PAGE � employee-reports.php
   ============================================================ */

.rpt-page { max-width: 1280px; margin: 0 auto; padding: 20px 18px 40px; }

/* Layout of .rpt-filter-form comes from .filters-bar (style.css). */
.rpt-filter-form { margin-bottom: 0; }
.rpt-filter-form .form-group { margin: 0; }

.rpt-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.rpt-chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.rpt-chart-wrap {
  position: relative;
  height: 260px;
  margin: 16px 0 12px;
}

.rpt-progress-row { margin: 14px 0; }

.rpt-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
  font-size: 13px;
  color: var(--ink-500);
}
.rpt-progress-label strong { color: var(--ink-700); font-weight: 700; }
.rpt-progress-label span   { color: var(--ink-300); font-size: 12px; }

.rpt-progress-bg {
  height: 22px;
  background: var(--ink-50);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--ink-100);
}

.rpt-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-400));
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: var(--ink-0);
  font-size: 11px;
  font-weight: 700;
  transition: width .5s var(--ease-out);
  min-width: 36px;
}

.rpt-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.rpt-mini {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--ink-100);
  border-left: 4px solid var(--ink-200);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s var(--ease-out), transform .2s var(--ease-out);
}
.rpt-mini:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.rpt-mini-value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
}
.rpt-mini-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-300);
  line-height: 1.4;
}

.rpt-mini.red    { border-left-color: var(--red-fg);    }
.rpt-mini.amber  { border-left-color: var(--amber-fg);  }
.rpt-mini.blue   { border-left-color: var(--blue-fg);   }
.rpt-mini.purple { border-left-color: var(--purple-fg); }
.rpt-mini.green  { border-left-color: var(--green-fg);  }
.rpt-mini.slate  { border-left-color: var(--slate-fg);  }

.rpt-mini.red    .rpt-mini-value { color: var(--red-fg);    }
.rpt-mini.amber  .rpt-mini-value { color: var(--amber-fg);  }
.rpt-mini.blue   .rpt-mini-value { color: var(--blue-fg);   }
.rpt-mini.purple .rpt-mini-value { color: var(--purple-fg); }
.rpt-mini.green  .rpt-mini-value { color: var(--green-fg);  }
.rpt-mini.slate  .rpt-mini-value { color: var(--slate-fg);  }

.rpt-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.rpt-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-500);
}
.rpt-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}
.rpt-legend-dot-blue   { background: #3b82f6; }
.rpt-legend-dot-brand  { background: var(--brand-500); }
.rpt-legend-dot-purple { background: var(--purple-fg); }
.rpt-legend-dot-slate  { background: var(--slate-fg);  }
.rpt-legend-dot-red    { background: var(--red-fg);    }

.rpt-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  border-left: 4px solid var(--amber-fg);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font-size: 13px;
  color: var(--amber-fg);
  font-weight: 600;
  margin-bottom: 16px;
}
.rpt-warning i { margin-top: 1px; flex-shrink: 0; }
.rpt-warning span { color: var(--ink-500); font-weight: 400; }

.rpt-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.rpt-table thead th {
  background: var(--ink-50);
  padding: 11px 14px;
  text-align: left;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-300);
  border-bottom: 1px solid var(--ink-100);
  white-space: nowrap;
}
.rpt-table tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--ink-50);
  font-size: 13px;
  color: var(--ink-500);
  vertical-align: middle;
}
.rpt-table tbody tr { transition: background .12s; }
.rpt-table tbody tr:hover { background: var(--surface-hover); }
.rpt-table tbody tr:last-child td { border-bottom: none; }

@media (max-width: 900px) {
  .rpt-chart-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rpt-actions .btn { flex: 1; justify-content: center; }
  .rpt-mini-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .rpt-mini-grid { grid-template-columns: 1fr; }
  .rpt-mini-value { font-size: 26px; }
}


/* ============================================================
   SHARED UTILITIES  (used across multiple pages)
   ============================================================ */

.icon-brand  { color: var(--brand-500); }
.icon-amber  { color: var(--amber-fg);  }
.icon-green  { color: var(--green-fg);  }
.icon-red    { color: var(--red-fg);    }
.icon-blue   { color: var(--blue-fg);   }
.icon-purple { color: var(--purple-fg); }
.icon-slate  { color: var(--slate-fg);  }

.text-muted-sm { color: var(--ink-300); font-size: 13px; }

.d-block { display: block; }
.ml-xs  { margin-left:  6px;  }
.mt-xs  { margin-top:   4px;  }
.mb-0   { margin-bottom: 0;   }


/* ============================================================
   USER PROFILE PAGE � user-profile.php
   ============================================================ */

.prof-page { max-width: 1100px; margin: 0 auto; padding: 20px 18px 48px; }

.prof-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 55%, var(--brand-400) 100%);
  color: var(--ink-0);
  border-radius: var(--radius-2xl);
  padding: 32px 36px;
  box-shadow: 0 16px 40px rgba(234,88,12,.30);
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.prof-hero::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: var(--ink-0);
  opacity: .07;
  top: -120px; right: 40px;
  pointer-events: none;
}
.prof-hero::after {
  content: '';
  position: absolute;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--ink-0);
  opacity: .06;
  bottom: -60px; right: 260px;
  pointer-events: none;
}

.prof-avatar {
  position: relative;
  flex-shrink: 0;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--ink-0);
  color: var(--brand-600);
  font-size: 38px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  letter-spacing: -.02em;
  line-height: 1;
}

.prof-hero-info { position: relative; flex: 1; min-width: 0; }

.prof-hero-name {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 6px;
  color: var(--ink-0);
}

.prof-hero-meta { display: flex; flex-direction: column; gap: 4px; }
.prof-hero-meta span {
  font-size: 14px;
  opacity: .85;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.prof-hero-actions {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.prof-tabs-wrap {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,.04);
  overflow: hidden;
  margin-bottom: 24px;
}

.prof-tab-nav {
  display: flex;
  border-bottom: 2px solid var(--ink-50);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.prof-tab-nav::-webkit-scrollbar { display: none; }

.prof-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 22px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-300);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
  letter-spacing: .01em;
}
.prof-tab-btn:hover { color: var(--ink-500); }
.prof-tab-btn.active { color: var(--brand-600); border-bottom-color: var(--brand-500); }
.prof-tab-btn i { font-size: 14px; }

.prof-tab-panel { display: none; padding: 28px 26px; }
.prof-tab-panel.active { display: block; }

.prof-fields { display: flex; flex-direction: column; gap: 0; }

.prof-field {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--ink-50);
}
.prof-field:last-child { border-bottom: none; }

.prof-field-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-300);
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 2px;
}
.prof-field-label i { color: var(--brand-400); font-size: 12px; width: 14px; text-align: center; }

.prof-field-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-700);
  line-height: 1.5;
}
.prof-field-value small {
  display: block;
  font-size: 12px;
  color: var(--ink-300);
  font-weight: 400;
  margin-top: 3px;
}
.prof-field-value .none { color: var(--ink-200); font-weight: 400; font-style: italic; }

.prof-role-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 12px;
  color: var(--ink-400);
  margin-top: 20px;
}
.prof-role-note i { color: var(--ink-300); margin-top: 1px; flex-shrink: 0; }

.prof-activity-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 56px 24px;
  color: var(--ink-300);
  text-align: center;
}
.prof-activity-empty i { font-size: 40px; opacity: .25; }
.prof-activity-empty p { font-size: 14px; }

.prof-act-table { width: 100%; border-collapse: collapse; }
.prof-act-table thead th {
  background: var(--ink-50);
  padding: 10px 14px;
  text-align: left;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-300);
  border-bottom: 1px solid var(--ink-100);
}
.prof-act-table tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--ink-50);
  font-size: 13px;
  color: var(--ink-500);
  vertical-align: middle;
}
.prof-act-table tbody tr { transition: background .12s; }
.prof-act-table tbody tr:hover { background: var(--surface-hover); }
.prof-act-table tbody tr:last-child td { border-bottom: none; }

.pwd-hint {
  font-size: 11px;
  color: var(--ink-300);
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 768px) {
  .prof-hero { padding: 22px 20px; gap: 18px; }
  .prof-hero-actions { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .prof-hero-actions .btn { flex: 1; justify-content: center; }
  .prof-field { grid-template-columns: 1fr; gap: 4px; }
  .prof-field-label { padding-top: 0; }
  .prof-tab-btn { padding: 13px 16px; font-size: 12px; }
}
@media (max-width: 480px) {
  .prof-avatar { width: 70px; height: 70px; font-size: 28px; }
  .prof-hero-name { font-size: 20px; }
}


/* ============================================================
   MANAGE JOBS PAGE � manage-jobs.php
   ============================================================ */

.jm-wrap { padding: 24px 28px 60px; max-width: 1400px; margin: 0 auto; }

.jm-page-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}
.jm-page-hdr h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink-700);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.jm-page-hdr h2 i { color: var(--brand-500); }
.jm-page-hdr p    { font-size: 13px; color: var(--ink-400); margin: 2px 0 0; }
.jm-hdr-actions   { display: flex; gap: 10px; flex-wrap: wrap; }

.jm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}
.jm-stat {
  background: var(--surface-card);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s var(--ease-out), transform .2s var(--ease-out);
}
.jm-stat:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.jm-stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.jm-stat-icon.orange { background: var(--brand-50);   color: var(--brand-600); }
.jm-stat-icon.green  { background: var(--green-bg);   color: var(--green-fg);  }
.jm-stat-icon.amber  { background: var(--amber-bg);   color: var(--amber-fg);  }
.jm-stat-icon.blue   { background: var(--blue-bg);    color: var(--blue-fg);   }

.jm-stat-val { font-size: 26px; font-weight: 800; color: var(--ink-700); line-height: 1; }
.jm-stat-lbl { font-size: 12px; color: var(--ink-200); margin-top: 3px; }

/* .jm-toolbar layout comes from .filters-bar (style.css). */
.jm-toolbar { margin-bottom: 16px; }
.jm-search-wrap { position: relative; }
.jm-search-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-200);
  font-size: 13px;
  pointer-events: none;
}
.jm-search {
  width: 100%;
  padding: 9px 13px 9px 34px;
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  color: var(--ink-700);
  background: var(--surface-card);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-family: var(--font-body);
}
.jm-search::placeholder { color: var(--ink-200); }
.jm-search:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(249,115,22,.1); }
.jm-filter {
  padding: 9px 13px;
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--ink-700);
  background: var(--surface-card);
  outline: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color .2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}
.jm-filter:focus { border-color: var(--brand-500); }

.jm-table-card {
  background: var(--surface-card);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.jm-table { width: 100%; border-collapse: collapse; }
.jm-table thead th {
  background: var(--ink-50);
  padding: 11px 14px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-300);
  text-align: left;
  border-bottom: 1px solid var(--ink-100);
  white-space: nowrap;
}
.jm-table thead th.col-title   { width: 32%; }
.jm-table thead th.col-actions { width: 100px; }
.jm-table tbody tr { border-bottom: 1px solid var(--ink-50); transition: background .13s; }
.jm-table tbody tr:last-child { border-bottom: none; }
.jm-table tbody tr:hover { background: var(--surface-hover); }
.jm-table td { padding: 13px 14px; font-size: 13.5px; vertical-align: middle; }

.jm-job-title {
  font-weight: 800;
  color: var(--ink-700);
  font-size: 14px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.jm-job-sub {
  font-size: 12px;
  color: var(--ink-200);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.jm-job-sub-sep { opacity: .3; }

.jm-deadline     { font-size: 12.5px; color: var(--ink-400); }
.jm-deadline-sub { font-size: 11px; color: var(--ink-200); margin-top: 2px; }
.jm-deadline-sub.soon { color: var(--red-fg); font-weight: 600; }
.jm-no-value { color: var(--ink-200); }

.jm-app-count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-400);
  display: flex;
  align-items: center;
  gap: 5px;
}
.jm-app-count i { font-size: 11px; color: var(--ink-200); }

.jm-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
}
.jm-pill-blue  { background: var(--blue-bg);   color: var(--blue-fg);   border-color: var(--blue-border);   }
.jm-pill-green { background: var(--green-bg);  color: var(--green-fg);  border-color: var(--green-border);  }
.jm-pill-amber { background: var(--amber-bg);  color: var(--amber-fg);  border-color: var(--amber-border);  }
.jm-pill-red   { background: var(--red-bg);    color: var(--red-fg);    border-color: var(--red-border);    }
.jm-pill-gray  { background: var(--slate-bg);  color: var(--slate-fg);  border-color: var(--slate-border);  }

.jm-badge-feat {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--amber-bg); color: var(--amber-fg);
  border: 1px solid var(--amber-border);
  padding: 1px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700;
}
.jm-badge-urgent {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--red-bg); color: var(--red-fg);
  border: 1px solid var(--red-border);
  padding: 1px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700;
}

.jm-status-sel {
  padding: 5px 9px;
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--ink-700);
  background: var(--ink-50);
  cursor: pointer;
  outline: none;
  font-family: var(--font-body);
  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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 26px;
  transition: border-color .15s;
}
.jm-status-sel:focus { border-color: var(--brand-500); }

.jm-toggle {
  width: 32px; height: 18px;
  border-radius: 999px;
  background: var(--ink-100);
  border: none;
  position: relative;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
  display: inline-block;
}
.jm-toggle.on { background: var(--brand-500); }
.jm-toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ink-0);
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.jm-toggle.on::after { transform: translateX(14px); }

.jm-acts { display: flex; align-items: center; gap: 5px; }
.jm-act {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 12px;
  cursor: pointer;
  border: none;
  transition: background .18s, color .18s;
}
.jm-act-view  { background: var(--green-bg);  color: var(--green-fg);  }
.jm-act-view:hover  { background: var(--green-fg);  color: var(--ink-0); }
.jm-act-edit  { background: var(--blue-bg);   color: var(--blue-fg);   }
.jm-act-edit:hover  { background: var(--blue-fg);   color: var(--ink-0); }
.jm-act-del   { background: var(--red-bg);    color: var(--red-fg);    }
.jm-act-del:hover   { background: var(--red-fg);    color: var(--ink-0); }

.jm-empty td { text-align: center; padding: 60px; color: var(--ink-200); }
.jm-empty i  { font-size: 42px; display: block; margin-bottom: 12px; opacity: .3; }
.jm-empty p  { font-size: 14px; }

.jm-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s, transform .15s, box-shadow .15s;
  font-family: var(--font-body);
  white-space: nowrap;
}
.jm-btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

.jm-btn-primary {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-400));
  color: var(--ink-0);
  box-shadow: 0 4px 12px rgba(249,115,22,.25);
}
.jm-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(249,115,22,.35); opacity: 1; }

.jm-btn-ghost { background: var(--ink-50); color: var(--ink-400); border: 1.5px solid var(--ink-100); }
.jm-btn-ghost:hover { background: var(--surface-hover); color: var(--ink-700); opacity: 1; }

.jm-btn-danger { background: var(--red-bg); color: var(--red-fg); border: 1.5px solid var(--red-border); }
.jm-btn-danger:hover { background: var(--red-fg); color: var(--ink-0); border-color: var(--red-fg); opacity: 1; }

.jm-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(13,17,23,.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}
.jm-overlay.open { opacity: 1; pointer-events: all; }

.jm-modal {
  background: var(--surface-card);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-2xl);
  width: 100%;
  max-width: 720px;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(.97);
  transition: transform .28s var(--ease-out);
  overflow: hidden;
  flex-shrink: 0;
}
.jm-overlay.open .jm-modal { transform: none; }
.jm-modal-sm { max-width: 420px; }

.jm-modal-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  border-bottom: 1px solid var(--ink-50);
  background: var(--ink-50);
}
.jm-modal-hdr h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink-700);
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
}
.jm-modal-hdr h3 i { color: var(--brand-500); }

.jm-modal-close {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--ink-100);
  color: var(--ink-400);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 13px;
  transition: background .18s, color .18s;
}
.jm-modal-close:hover { background: var(--red-fg); color: var(--ink-0); }

.jm-modal-body {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 75vh;
  overflow-y: auto;
}
.jm-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 26px;
  border-top: 1px solid var(--ink-50);
  background: var(--ink-50);
}
.jm-modal-foot-center { justify-content: center; gap: 14px; }

.jm-form-grid           { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.jm-form-grid.cols3     { grid-template-columns: 1fr 1fr 1fr; }
.jm-form-full           { grid-column: 1 / -1; }
.jm-form-col-span2      { grid-column: span 2; }

.jm-fg { display: flex; flex-direction: column; gap: 6px; }
.jm-fg label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-400);
}
.jm-fg label span { color: var(--red-fg); }

.jm-fi, .jm-fs, .jm-fta {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  color: var(--ink-700);
  background: var(--surface-card);
  font-family: var(--font-body);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.jm-fi::placeholder, .jm-fta::placeholder { color: var(--ink-200); }
.jm-fi:focus, .jm-fs:focus, .jm-fta:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(249,115,22,.1);
}
.jm-fta { resize: vertical; min-height: 90px; line-height: 1.55; }
.jm-fta-tall { min-height: 110px; }
.jm-fs  {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px;
}

.jm-section-ttl {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-400);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink-50);
  display: flex;
  align-items: center;
  gap: 7px;
}
.jm-section-ttl i { color: var(--brand-500); font-size: 12px; }

.jm-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: var(--ink-50);
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-md);
}
.jm-toggle-row-fill { height: 100%; }

.jm-toggle-row-lbl { font-size: 13.5px; color: var(--ink-400); }
.jm-toggle-row-lbl small { display: block; font-size: 11.5px; color: var(--ink-200); margin-top: 2px; }

.jm-toggle-stack { display: flex; flex-direction: column; gap: 8px; }

.jm-ltoggle {
  width: 42px; height: 24px;
  border-radius: 999px;
  background: var(--ink-100);
  border: none;
  position: relative;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}
.jm-ltoggle.on { background: var(--brand-500); }
.jm-ltoggle::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ink-0);
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.jm-ltoggle.on::after { transform: translateX(18px); }

.jm-confirm-body { padding: 32px 26px; text-align: center; }
.jm-confirm-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--red-bg);
  border: 2px solid var(--red-border);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  font-size: 26px;
  color: var(--red-fg);
}
.jm-confirm-title { font-size: 20px; font-weight: 800; color: var(--ink-700); margin-bottom: 8px; }
.jm-confirm-msg   { font-size: 14px; color: var(--ink-400); line-height: 1.65; }
.jm-confirm-name  { font-weight: 800; color: var(--ink-700); }

.jm-toast {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 9999;
  background: var(--ink-700);
  color: var(--ink-50);
  border-radius: var(--radius-lg);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-xl);
  max-width: 340px;
  min-width: 220px;
  transform: translateY(70px);
  opacity: 0;
  transition: all .3s var(--ease-out);
  font-size: 13.5px;
}
.jm-toast.show { transform: none; opacity: 1; }
.jm-toast.ok  .jt-icon { color: var(--green-fg); }
.jm-toast.err .jt-icon { color: var(--red-fg);   }
.jt-icon { font-size: 16px; flex-shrink: 0; }

@media (max-width: 768px) {
  .jm-wrap { padding: 16px; }
  .jm-form-grid, .jm-form-grid.cols3 { grid-template-columns: 1fr; }
  .jm-form-col-span2 { grid-column: 1; }
}
@media (max-width: 600px) {
  .jm-stats { grid-template-columns: 1fr 1fr; }
}


/* ============================================================
   SUBMIT APPLICATION PAGE � submit-application.php
   Multi-step application wizard. Everything below is scoped
   under .layout (the wizard's own page wrapper) wherever the
   markup uses a generic class name � .section, .nav-bar,
   .form-row, .req, .hint, .radio-group, .alert-* � so it can
   never leak into the admin dashboard pages above, which reuse
   some of the same short names for unrelated things.
   ============================================================ */

/* -- Topbar -------------------------------------------------- */
.apply-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: var(--ink-900);
  color: var(--ink-0);
  font-size: 13px;
}
.apply-topbar__brand { font-weight: 800; letter-spacing: -.02em; font-size: 15px; }
.apply-topbar__deadline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.75);
  font-weight: 600;
  white-space: nowrap;
}
.apply-topbar__deadline i { color: var(--brand-400); }

/* -- Hero ------------------------------------------------------ */
.apply-hero {
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 55%, var(--brand-400) 100%);
  color: var(--ink-0);
  padding: 40px 28px 44px;
}
.apply-hero__inner { max-width: 900px; margin: 0 auto; }

.apply-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.apply-hero h1 {
  font-family: 'Playfair Display', var(--font-body);
  font-weight: 900;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.apply-hero__meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: rgba(255,255,255,.9);
}
.apply-hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.apply-hero__meta i { color: var(--brand-100); }

/* -- Stepper ---------------------------------------------------- */
.stepper-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface-card);
  border-bottom: 1px solid var(--ink-100);
  box-shadow: var(--shadow-sm);
}

.stepper {
  display: flex;
  gap: 4px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.stepper::-webkit-scrollbar { display: none; }

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-300);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  transition: color .15s, border-color .15s;
}
.step:hover { color: var(--ink-500); }

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink-50);
  color: var(--ink-300);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}

.step.active { color: var(--brand-600); border-bottom-color: var(--brand-500); }
.step.active .step-num { background: var(--brand-500); color: var(--ink-0); }

.step.done { color: var(--ink-500); }
.step.done .step-num {
  background: var(--green-fg);
  color: var(--ink-0);
  /* Hide the plain step-number text node so only the checkmark shows;
     restore font-size on the pseudo-element itself, since it would
     otherwise inherit font-size: 0 too. Fixes the checkmark rendering
     on top of / next to the raw number instead of replacing it. */
  font-size: 0;
}
.step.done .step-num::before {
  content: '\2713';
  font-size: 11px;
  font-weight: 800;
}

/* -- Progress bar ------------------------------------------------ */
.progress-bar-wrap { max-width: 1100px; margin: 0 auto; height: 4px; background: var(--ink-50); }
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-400));
  transition: width .35s var(--ease-out);
}

/* -- Layout ------------------------------------------------------ */
.layout { max-width: 900px; margin: 0 auto; padding: 32px 20px 80px; }

/* -- Section (wizard step panels), scoped to .layout -------------- */
.layout .section { display: none; }
.layout .section.active { display: block; }

.layout .section-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink-100);
}

.layout .section-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--brand-50);
  color: var(--brand-600);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.layout .section-title-group h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink-700);
  letter-spacing: -.01em;
  margin-bottom: 3px;
}
.layout .section-title-group p { font-size: 13px; color: var(--ink-300); }

/* -- Form layout, scoped to .layout so admin .form-group / .form-grid
      elsewhere are unaffected ----------------------------------------- */
.layout .form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}
.layout .form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-500);
}
.layout .req { color: var(--red-fg); }
.layout .hint { font-size: 12px; color: var(--ink-300); line-height: 1.5; }

.layout .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.layout .form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

/* -- Radio pills, scoped to .layout -------------------------------- */
.layout .radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.layout .radio-pill { position: relative; }
.layout .radio-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
}
.layout .radio-pill label {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border: 1.5px solid var(--ink-100);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-500);
  cursor: pointer;
  background: var(--surface-card);
  transition: all .15s;
}
.layout .radio-pill input[type="radio"]:checked ~ label,
.layout .radio-pill input[type="radio"]:checked + label {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: var(--ink-0);
}
.layout .radio-pill input[type="radio"]:focus-visible + label { box-shadow: 0 0 0 3px rgba(249,115,22,.25); }

/* -- File upload zones, scoped to .layout --------------------------- */
.layout .file-zone {
  border: 2px dashed var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  text-align: center;
  cursor: pointer;
  background: var(--ink-50);
  transition: border-color .15s, background .15s;
}
.layout .file-zone:hover { border-color: var(--brand-400); background: var(--brand-50); }
.layout .file-zone i { font-size: 26px; color: var(--brand-400); margin-bottom: 8px; display: block; }
.layout .file-zone p { font-size: 12.5px; color: var(--ink-300); }
.layout .file-uploaded {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-fg);
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* -- Nav bar (step controls), scoped to .layout ---------------------- */
.layout .nav-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--ink-100);
}

/* Wizard buttons run slightly larger than the site-wide .btn default �
   scoped here instead of redeclaring the base .btn rule, so pages
   outside the wizard keep their original button sizing. */
.layout .nav-bar .btn {
  padding: 11px 20px;
  font-size: 13.5px;
  gap: 7px;
}

/* -- Responsive -------------------------------------------------------- */
@media (max-width: 768px) {
  .layout .form-row, .layout .form-row-3 { grid-template-columns: 1fr; }
  .apply-topbar { padding: 12px 18px; }
  .apply-hero { padding: 30px 18px 34px; }
  .layout { padding: 24px 16px 60px; }
  .layout .nav-bar { justify-content: stretch; }
  .layout .nav-bar .btn { flex: 1; justify-content: center; }
  .layout .nav-bar > div { display: none; } /* the spacer div stacking oddly on mobile */
}

@media (max-width: 480px) {
  .apply-hero__meta { gap: 12px; font-size: 12.5px; }
  .layout .section-header { flex-direction: column; }
}

html.modal-open,
body.modal-open {
  overflow: hidden !important;
  height: 100%;
}

.opp-modal {
  display: none !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  background: rgba(15,23,42,.72) !important;
  padding: 20px !important;
  overflow: hidden !important;
  align-items: center !important;
  justify-content: center !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.opp-modal.show { display: flex !important; }

.opp-modal .modal-card {
  position: relative !important;
  width: 100% !important;
  max-width: 850px !important;
  max-height: 88vh !important;
  margin: auto !important;
  background: var(--surface-card, #fff) !important;
  border-radius: var(--radius-2xl, 24px) !important;
  box-shadow: 0 25px 80px rgba(0,0,0,.35) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.opp-modal .modal-head,
.opp-modal .modal-foot {
  flex: 0 0 auto !important;
  position: relative !important;
  z-index: 2 !important;
  background: var(--surface-card, #fff) !important;
}

.opp-modal .modal-head {
  padding: 18px 22px !important;
  border-bottom: 1px solid var(--ink-100, #d1d5db) !important;
}

.opp-modal .modal-foot {
  padding: 16px 22px !important;
  border-top: 1px solid var(--ink-100, #d1d5db) !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.opp-modal .modal-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 22px !important;
  max-height: calc(88vh - 142px) !important;
  -webkit-overflow-scrolling: touch;
}

.opp-modal .modal-close { cursor: pointer !important; }

.modal-backdrop { display: none !important; }

@media (max-width: 768px) {
  .opp-modal { padding: 8px !important; align-items: flex-start !important; }

  .opp-modal .modal-card {
    max-width: 100% !important;
    max-height: 96vh !important;
    border-radius: 18px !important;
  }

  .opp-modal .modal-head,
  .opp-modal .modal-body,
  .opp-modal .modal-foot {
    padding: 16px !important;
  }

  .opp-modal .modal-body { max-height: calc(96vh - 134px) !important; }
}

/* ============================================================
   SUBMIT APPLICATION � HEADER / LANGUAGE / 9-TAB FIX
   Append this block to the END of css/opportunities.css
   ============================================================ */

.apply-topbar {
  min-height: 44px;
  padding: 8px 28px;
  gap: 14px;
}

.apply-topbar__brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}

.apply-topbar__brand img {
  display: block;
  width: auto;
  height: 28px;
  max-width: 150px;
  object-fit: contain;
}

.apply-topbar__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
  margin-left: auto;
}

.apply-topbar__deadline {
  flex: 0 0 auto;
}

.apply-language {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  visibility: visible !important;
  opacity: 1 !important;
}

.apply-language label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.apply-language label i {
  color: var(--brand-400);
}

.apply-language select {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto;
  min-width: 118px;
  height: 30px;
  margin: 0;
  border: 1px solid rgba(255,255,255,.30);
  border-radius: 8px;
  padding: 0 30px 0 10px;
  background-color: #fff;
  color: var(--ink-700);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.apply-language select:focus {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(249,115,22,.18);
}

#google_translate_element {
  position: absolute !important;
  left: -99999px !important;
  top: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
}

/* 9 wizard tabs on ONE row on desktop */
.progress-inner {
  max-width: 1180px;
  padding: 9px 14px 0;
}

.stepper {
  display: grid !important;
  grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
  gap: 2px !important;
  width: 100%;
  overflow: visible !important;
}

.step-btn,
.step {
  min-width: 0 !important;
  padding: 8px 2px 9px !important;
  font-size: 11px !important;
  line-height: 1.15;
  white-space: nowrap !important;
}

.step-btn span,
.step span,
.step-num {
  width: 32px;
  height: 32px;
  margin: 0 auto 5px;
}

/* Do not let Declarations fall to a second desktop row */
@media (min-width: 769px) {
  .stepper {
    grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
  }
}

/* Tablet / phone: keep all nine tabs accessible through horizontal scroll */
@media (max-width: 768px) {
  .apply-topbar {
    padding: 8px 14px;
    align-items: center;
  }

  .apply-topbar__brand img {
    height: 25px;
    max-width: 125px;
  }

  .apply-topbar__right {
    gap: 7px;
    flex-wrap: wrap;
  }

  .apply-language label {
    display: none;
  }

  .apply-language select {
    min-width: 104px;
    height: 29px;
  }

  .stepper {
    grid-template-columns: repeat(9, 88px) !important;
    overflow-x: auto !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .stepper::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 480px) {
  .apply-topbar {
    align-items: flex-start;
  }

  .apply-topbar__deadline {
    font-size: 10.5px;
  }

  .apply-language select {
    min-width: 96px;
    font-size: 11px;
  }
}

/* Links: no underlines anywhere (matches style.css); keep a visible keyboard focus ring. */
a,
a:hover,
a:focus,
a:active,
a:visited {
    text-decoration: none;
}

:where(a):focus-visible {
    outline: 2px solid #ea580c;
    outline-offset: 2px;
}
