:root {
  --red: #e30613;
  --red-dark: #bd0712;
  --red-soft: #fff0f1;
  --ink: #09111f;
  --text: #253044;
  --muted: #687386;
  --line: #e8edf4;
  --panel: #ffffff;
  --bg: #f7f9fc;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.07);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1328px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Public layout */
.site-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 0 0, rgba(227, 6, 19, .04), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.site-header {
  height: 68px;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, .78);
  transition: box-shadow .22s ease, background-color .22s ease, border-color .22s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .98);
  border-bottom-color: rgba(203, 213, 225, .92);
  box-shadow: 0 14px 35px rgba(15, 23, 42, .08);
}
.header-inner {
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 230px;
  align-items: center;
  gap: 18px;
  padding: 0 36px;
}
.brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  width: fit-content;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  width: 146px;
  height: 40px;
}
.brand-logo img {
  display: block;
  width: 100%;
  height: auto;
}
.site-nav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 4px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 999px;
  background: rgba(248, 250, 252, .86);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 8px 22px rgba(15,23,42,.035);
  font-size: 14px;
  font-weight: 750;
  color: #182132;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.nav-link:hover { color: var(--red); background: #fff; }
.nav-link.is-active {
  color: #fff;
  background: linear-gradient(180deg, #ef1f2b 0%, var(--red) 100%);
  box-shadow: 0 10px 18px rgba(227, 6, 19, .20);
}
.nav-link::after { display: none; }
.header-contact {
  justify-self: end;
  min-height: 44px;
  display: inline-grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 6px;
  border: 1px solid rgba(227, 6, 19, .16);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff 0%, #fff8f8 100%);
  color: #0f172a;
  box-shadow: 0 10px 22px rgba(227, 6, 19, .08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.header-contact:hover {
  transform: translateY(-1px);
  border-color: rgba(227, 6, 19, .30);
  box-shadow: 0 14px 28px rgba(227, 6, 19, .13);
}
.header-contact .icon {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  stroke-width: 2.2;
}
.header-contact span { display: grid; gap: 1px; }
.header-contact small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
}
.header-contact strong {
  display: block;
  color: #0c1424;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.05;
}
.header-contact-placeholder { justify-self: end; width: 1px; height: 1px; }
.site-main {
  max-width: var(--container);
  margin: 0 auto 18px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .8);
  border-top: 0;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  box-shadow: 0 18px 65px rgba(15, 23, 42, .06);
}
.hero {
  height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 30px 52px 48px;
  background-image: url('../img/akfa-plast-hero.jpg');
  background-size: cover;
  background-position: center 47%;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 29%, rgba(255,255,255,.38) 50%, rgba(255,255,255,.04) 100%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(7, 11, 20, .12));
}
.hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.86));
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  color: #061021;
  font-size: clamp(42px, 4.05vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 900;
}
.hero h1 span { color: var(--red); }
.hero-content > p:not(.eyebrow) {
  margin: 18px 0 0;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.45;
  color: #182132;
}
.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  margin-top: 20px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ef1f2b 0%, var(--red) 100%);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 12px 26px rgba(227, 6, 19, .24);
  transition: transform .2s ease, box-shadow .2s ease;
}
.primary-cta:hover { transform: translateY(-1px); box-shadow: 0 18px 36px rgba(227, 6, 19, .28); }
.primary-cta .icon { width: 20px; height: 20px; }
.cta-arrow { font-size: 24px; line-height: 1; }
.value-strip {
  position: relative;
  z-index: 2;
  width: calc(100% - 92px);
  min-height: 78px;
  margin: -38px auto 0;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.value-item {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 12px;
  align-items: center;
  padding: 0 20px;
  border-right: 1px solid var(--line);
}
.value-item:last-child { border-right: 0; }
.value-item > .icon {
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 15px;
  background: var(--red-soft);
  color: var(--red);
}
.value-item strong {
  display: block;
  color: #111827;
  font-size: 15px;
  margin-bottom: 3px;
}
.value-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}
.jobs-section {
  padding: 24px 52px 10px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 12px;
}
.section-head h2 {
  position: relative;
  margin: 0;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #070d19;
}
.section-head h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 10px;
  border-radius: 99px;
  background: var(--red);
}
.section-head p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 650;
}
.red-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}
.filters {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-chip, .filter-chip-admin {
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #1f2937;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .03);
  transition: .2s ease;
}
.filter-chip:hover, .filter-chip.is-active, .filter-chip-admin:hover, .filter-chip-admin.is-active {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 20px rgba(227, 6, 19, .18);
}
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.job-card {
  height: 158px;
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr 38px;
  gap: 12px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff 72%, #fbfcff 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .065);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.job-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--red);
  opacity: 0;
  transition: opacity .2s ease;
}
.job-card:hover, .job-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(227, 6, 19, .34);
  box-shadow: 0 18px 36px rgba(15, 23, 42, .10);
}
.job-card:hover::before, .job-card:focus-within::before { opacity: 1; }
.job-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--red-soft);
  color: var(--red);
}
.job-icon .icon { width: 32px; height: 32px; stroke-width: 1.85; }
.job-info h3 {
  margin: 0 0 4px;
  color: #0b1220;
  font-size: 17px;
  line-height: 1.14;
  letter-spacing: -0.02em;
}
.job-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: #556071;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}
.job-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.badge-red { background: #fff0f1; color: var(--red); }
.badge-muted { background: #eef2f7; color: #536073; }
.job-info p {
  margin: 8px 0 0;
  color: #344052;
  font-size: 12.5px;
  line-height: 1.36;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.job-small-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.job-arrow {
  align-self: end;
  justify-self: end;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  transition: .2s ease;
}
.job-card:hover .job-arrow, .job-arrow:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.contact-strip {
  width: calc(100% - 92px);
  margin: 8px auto 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15,23,42,.05);
}
.contact-item {
  min-height: 64px;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-right: 1px solid var(--line);
}
.contact-item:last-child { border-right: 0; }
.contact-item > .icon {
  width: 42px;
  height: 42px;
  padding: 11px;
  border-radius: 13px;
  background: var(--red-soft);
  color: var(--red);
}
.contact-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 4px;
}
.contact-item strong {
  display: block;
  color: #101827;
  font-size: 13.5px;
  line-height: 1.22;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 26px;
  background: rgba(7, 12, 22, .62);
  backdrop-filter: blur(10px);
}
.modal-backdrop.is-open { display: grid; }
.modal-panel {
  width: min(1040px, 94vw);
  max-height: min(780px, 92vh);
  overflow: hidden;
  position: relative;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 95px rgba(0, 0, 0, .28);
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  z-index: 4;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  display: grid;
  place-items: center;
}
.modal-close .icon { width: 20px; height: 20px; }
.modal-content { max-height: min(780px, 92vh); overflow: auto; }
.modal-grid {
  display: grid;
  grid-template-columns: 1fr .92fr;
  gap: 30px;
  padding: 34px;
}
.modal-kicker { color: var(--red); font-weight: 850; margin: 0 0 8px; }
.modal-title { margin: 0; color: #080f1e; font-size: 36px; letter-spacing: -0.05em; line-height: 1; }
.modal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; color: #556070; font-weight: 700; }
.modal-description { font-size: 16px; line-height: 1.55; margin: 0 0 22px; }
.modal-section { margin-top: 20px; }
.modal-section h3 { margin: 0 0 10px; font-size: 17px; color: #0e1729; }
.modal-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.modal-list li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; color: #2f3b4f; line-height: 1.35; }
.modal-list li::before { content: "✓"; color: var(--red); font-weight: 900; }
.video-box {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #0b1220;
  min-height: 260px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.video-box iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.video-placeholder { text-align: center; padding: 34px; }
.video-play {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 16px;
  border-radius: 22px;
  background: var(--red);
  color: #fff;
  font-size: 34px;
}
.modal-side-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fbfcfe;
  margin-top: 18px;
}
.modal-side-card strong { display: block; margin-bottom: 8px; color: #101827; }
.modal-actions { margin-top: 24px; display: grid; gap: 12px; }
.modal-actions .primary-cta { margin: 0; width: 100%; }

/* Interview */
.interview-page {
  min-height: calc(100vh - 74px);
  max-width: var(--container);
  margin: 0 auto;
  padding: 34px 52px;
  background: #fff;
}
.interview-hero-mini {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 28px;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(90deg, #fff, #fff7f7);
  border: 1px solid var(--line);
}
.interview-hero-mini h1 { margin: 0; font-size: 42px; letter-spacing: -.05em; color: #0a1020; }
.interview-hero-mini p:not(.eyebrow) { margin: 10px 0 0; color: var(--muted); font-weight: 700; }
.interview-card {
  margin-top: 20px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 34px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.interview-info h2 { margin: 0 0 10px; font-size: 30px; letter-spacing: -.04em; color: #0a1020; }
.interview-info p { color: var(--muted); line-height: 1.6; }
.mini-contact { margin-top: 24px; display: grid; gap: 8px; }
.mini-contact strong { font-size: 20px; color: #0e1729; }
.mini-contact span { color: var(--muted); }
.candidate-form, .login-card form, .admin-form { display: grid; gap: 16px; }
.candidate-form label, .login-card label, .admin-form label {
  display: grid;
  gap: 8px;
  color: #111827;
  font-weight: 750;
  font-size: 14px;
}
input, textarea, select {
  width: 100%;
  border: 1px solid #dce3ed;
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  color: #0f172a;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(227, 6, 19, .55);
  box-shadow: 0 0 0 4px rgba(227, 6, 19, .08);
}
.form-submit { width: 100%; margin-top: 4px; }
.form-errors {
  padding: 14px 16px;
  border: 1px solid #fecaca;
  border-radius: 14px;
  background: #fff1f2;
  color: #9f1239;
  font-size: 14px;
}
.form-errors ul { margin: 8px 0 0; padding-left: 18px; }
.hp-field { display: none !important; }
.success-card { max-width: 620px; margin: 80px auto; grid-template-columns: 1fr; text-align: center; }
.success-icon .icon { width: 72px; height: 72px; padding: 16px; border-radius: 22px; background: var(--red-soft); color: var(--red); }
.error-page { max-width: 760px; margin: 100px auto; text-align: center; padding: 40px; }
.error-page h1 { font-size: 42px; letter-spacing: -.05em; color: #0a1020; }

/* Login */
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0b1220 0%, #111827 60%, #2a0509 100%);
}
.login-shell { width: min(460px, calc(100vw - 32px)); }
.login-card {
  padding: 34px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0,0,0,.26);
}
.login-card h1 { margin: 26px 0 8px; color: #0d1526; font-size: 34px; letter-spacing: -.05em; }
.login-card p { margin: 0 0 24px; color: var(--muted); line-height: 1.55; }
.login-brand .brand-logo { width: 142px; }
.login-card small { display: block; margin-top: 18px; color: var(--muted); line-height: 1.45; }

/* Admin */
.admin-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  background: #f3f6fa;
}
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  background: #0b1220;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.admin-brand .brand-logo { width: 138px; filter: brightness(0) invert(1); }
.admin-user {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}
.admin-user span { display: block; color: #9aa4b2; font-size: 13px; margin-bottom: 4px; }
.admin-user strong { font-size: 18px; }
.admin-nav { display: grid; gap: 8px; }
.admin-nav-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 12px;
  color: #d7dde7;
  font-weight: 750;
}
.admin-nav-link:hover, .admin-nav-link.is-active { background: var(--red); color: #fff; }
.admin-logout { margin-top: auto; }
.admin-ghost, .admin-view-site {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font-weight: 750;
}
.admin-view-site { margin-top: -10px; }
.admin-main { padding: 30px; overflow: auto; }
.admin-page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.admin-page-head h1 { margin: 0; font-size: 34px; letter-spacing: -.05em; color: #0b1220; }
.admin-page-head p { margin: 8px 0 0; color: var(--muted); }
.admin-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(227,6,19,.18);
}
.admin-btn.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: #111827;
  box-shadow: none;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card, .admin-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.stat-card { padding: 22px; }
.stat-card span { color: var(--muted); font-weight: 700; }
.stat-card strong { display: block; margin-top: 10px; color: #0a1020; font-size: 38px; letter-spacing: -.05em; }
.admin-card { padding: 20px; margin-bottom: 20px; }
.admin-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.admin-card-head h2 { margin: 0; color: #0b1220; }
.table-wrap { overflow: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 860px; }
.admin-table th, .admin-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { color: #667085; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.admin-table td { color: #111827; font-size: 14px; }
.admin-table small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.35; }
.status-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 99px;
  background: #eef2f7;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}
.status-active, .status-hired { background: #ecfdf5; color: #047857; }
.status-closed, .status-rejected { background: #f1f5f9; color: #64748b; }
.status-new { background: #fff1f2; color: #be123c; }
.status-contacted { background: #eff6ff; color: #1d4ed8; }
.status-interview { background: #fffbeb; color: #b45309; }
.actions-cell { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions-cell form { display: inline; }
.icon-action {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-weight: 750;
  font-size: 13px;
}
.icon-action.danger { color: #be123c; }
.admin-form { gap: 18px; }
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: repeat(2, 1fr); }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.check-row { display: inline-flex !important; grid-template-columns: 20px 1fr; align-items: center; }
.check-row input { width: 18px; height: 18px; }
.form-actions { display: flex; gap: 12px; align-items: center; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.inline-status-form select { min-width: 130px; height: 36px; padding: 0 10px; border-radius: 10px; }


@media (max-height: 860px) and (min-width: 1000px) {
  .site-header { height: 60px; }
  .header-inner { grid-template-columns: 166px minmax(0, 1fr) 206px; gap: 14px; padding-left: 36px; padding-right: 36px; }
  .brand-logo { width: 126px; }
  .site-nav { min-height: 38px; padding: 3px; font-size: 12.6px; }
  .nav-link { min-height: 30px; padding-left: 12px; padding-right: 12px; }
  .header-contact { min-height: 38px; grid-template-columns: 30px 1fr; gap: 8px; padding: 4px 10px 4px 5px; }
  .header-contact .icon { width: 28px; height: 28px; padding: 7px; }
  .header-contact small { font-size: 9px; }
  .header-contact strong { font-size: 11.8px; }
  .hero { height: 232px; padding-top: 22px; padding-bottom: 38px; }
  .hero h1 { font-size: clamp(36px, 3.45vw, 50px); max-width: 640px; }
  .hero-content > p:not(.eyebrow) { margin-top: 12px; font-size: 15px; max-width: 460px; }
  .primary-cta { min-height: 42px; margin-top: 14px; padding-left: 18px; padding-right: 18px; }
  .value-strip { min-height: 58px; margin-top: -29px; padding: 8px 14px; }
  .value-item { grid-template-columns: 38px 1fr; gap: 9px; padding-left: 14px; padding-right: 14px; }
  .value-item > .icon { width: 36px; height: 36px; padding: 9px; border-radius: 12px; }
  .value-item strong { font-size: 13.5px; margin-bottom: 0; }
  .value-item span { display: none; }
  .jobs-section { padding-top: 16px; padding-bottom: 6px; }
  .section-head { margin-bottom: 8px; }
  .section-head h2 { font-size: 22px; }
  .section-head h2::after { margin-top: 8px; }
  .section-head p { margin-top: 6px; font-size: 12px; }
  .filter-chip { min-height: 30px; padding: 0 12px; font-size: 12px; }
  .job-card { height: 132px; grid-template-columns: 50px 1fr 32px; padding: 12px 14px; }
  .job-icon { width: 46px; height: 46px; border-radius: 13px; }
  .job-icon .icon { width: 27px; height: 27px; }
  .job-info h3 { font-size: 15px; }
  .job-meta { font-size: 11.5px; }
  .job-badges { margin-top: 4px; }
  .badge { height: 18px; font-size: 9.5px; }
  .job-info p { margin-top: 5px; font-size: 11px; line-height: 1.28; }
  .job-small-note { display: none; }
  .job-arrow { width: 30px; height: 30px; font-size: 19px; border-radius: 10px; }
  .contact-strip { margin-top: 4px; margin-bottom: 10px; }
  .contact-item { min-height: 52px; grid-template-columns: 36px 1fr; gap: 9px; padding: 7px 14px; }
  .contact-item > .icon { width: 32px; height: 32px; padding: 8px; border-radius: 11px; }
  .contact-item span { font-size: 10.5px; margin-bottom: 1px; }
  .contact-item strong { font-size: 12px; }
}

@media (max-width: 1180px) {
  .header-inner { grid-template-columns: 154px minmax(0, 1fr); padding-left: 24px; padding-right: 24px; }
  .brand-logo { width: 126px; }
  .site-nav { justify-self: end; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .header-contact { display: none; }
}

@media (max-width: 980px) {
  .hero { padding-left: 34px; }
  .value-strip, .contact-strip { width: calc(100% - 48px); }
  .jobs-section { padding-left: 34px; padding-right: 34px; }
  .jobs-grid { grid-template-columns: repeat(2, 1fr); }
  .value-strip { grid-template-columns: repeat(2, 1fr); }
  .value-item:nth-child(2) { border-right: 0; }
  .value-item:nth-child(-n+2) { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .value-item:nth-child(n+3) { padding-top: 12px; }
  .contact-strip { grid-template-columns: repeat(2, 1fr); }
  .contact-item:nth-child(2) { border-right: 0; }
  .contact-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 780px) {
  .site-header { height: auto; }
  .header-inner { height: auto; grid-template-columns: 1fr; gap: 10px; padding: 14px 18px; }
  .site-nav { justify-self: start; width: 100%; justify-content: flex-start; overflow-x: auto; }
  .nav-link { min-height: 32px; padding-left: 14px; padding-right: 14px; }
  .brand-logo { width: 132px; }
  .site-main { border-radius: 0; }
  .hero { height: auto; min-height: 430px; padding: 42px 22px; align-items: start; }
  .hero h1 { font-size: 42px; }
  .value-strip { margin-top: -28px; grid-template-columns: 1fr; }
  .value-item, .value-item:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px; }
  .value-item:last-child { border-bottom: 0; }
  .jobs-section { padding: 28px 22px; }
  .section-head { display: grid; }
  .filters { justify-content: flex-start; }
  .jobs-grid { grid-template-columns: 1fr; }
  .job-card { grid-template-columns: 58px 1fr 42px; padding: 16px; }
  .contact-strip { grid-template-columns: 1fr; }
  .contact-item, .contact-item:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-item:last-child { border-bottom: 0; }
  .modal-grid { grid-template-columns: 1fr; padding: 24px; }
  .modal-title { font-size: 30px; }
  .interview-page { padding: 22px; }
  .interview-hero-mini, .interview-card { grid-template-columns: 1fr; }
  .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-nav { grid-template-columns: repeat(2, 1fr); }
  .admin-main { padding: 20px; }
  .admin-stats, .form-grid.two, .form-grid.three { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   Final header pass — aligned with actual HTML structure (.header-inner)
--------------------------------------------------------------------------- */
.site-header {
  width: 100%;
  height: 72px;
  max-width: none;
  margin: 0;
  padding: 0;
  display: block;
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid rgba(226, 232, 240, .92);
  box-shadow: 0 10px 34px rgba(15, 23, 42, .055);
  backdrop-filter: saturate(160%) blur(16px);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(227, 6, 19, .18), rgba(226, 232, 240, .72) 20%, rgba(226, 232, 240, .55) 80%, rgba(227, 6, 19, .16));
  pointer-events: none;
}
.header-inner {
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 190px minmax(600px, 1fr) 230px;
  align-items: center;
  gap: 24px;
  padding: 0 52px;
}
.brand-logo {
  width: 148px;
  height: 42px;
  display: inline-flex;
  align-items: center;
}
.brand-logo img {
  display: block;
  width: 100%;
  height: auto;
}
.brand-tagline { display: none; }
.site-nav {
  justify-self: center;
  height: 46px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(226, 232, 240, .96);
  border-radius: 999px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f6f8fb 100%);
  color: #253044;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 22px rgba(15, 23, 42, .035);
}
.nav-link {
  height: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 999px;
  color: #303a4c;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.nav-link.is-active {
  color: #fff;
  background: linear-gradient(180deg, #ef1f2b 0%, var(--red) 100%);
  box-shadow: 0 10px 20px rgba(227, 6, 19, .20);
}
.nav-link:hover {
  color: var(--red);
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .055);
}
.header-contact {
  justify-self: end;
  min-height: 46px;
  display: inline-grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 6px;
  border: 1px solid rgba(227, 6, 19, .15);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff 0%, #fff7f7 100%);
  color: #111827;
  box-shadow: 0 8px 22px rgba(227, 6, 19, .055);
}
.header-contact:hover {
  transform: translateY(-1px);
  border-color: rgba(227, 6, 19, .34);
  box-shadow: 0 12px 28px rgba(227, 6, 19, .11);
}
.header-contact .icon {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  stroke-width: 2.2;
}
.header-contact span { display: grid; gap: 2px; }
.header-contact small {
  display: block;
  color: #667085;
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.header-contact strong {
  display: block;
  color: #0b1220;
  font-size: 12.8px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}
.header-contact-placeholder { display: block; }

@media (max-height: 860px) and (min-width: 1000px) {
  .site-header { height: 62px; }
  .header-inner {
    grid-template-columns: 166px minmax(560px, 1fr) 206px;
    gap: 16px;
    padding-left: 36px;
    padding-right: 36px;
  }
  .brand-logo { width: 128px; height: 36px; }
  .site-nav { height: 40px; min-height: 40px; padding: 3px; font-size: 12.6px; }
  .nav-link { height: 32px; min-height: 32px; padding: 0 12px; font-size: 12.4px; }
  .header-contact { min-height: 38px; grid-template-columns: 30px 1fr; gap: 8px; padding: 4px 10px 4px 5px; }
  .header-contact .icon { width: 28px; height: 28px; padding: 7px; }
  .header-contact small { font-size: 8.8px; }
  .header-contact strong { font-size: 11.6px; }
}

@media (max-width: 1180px) {
  .site-header { height: auto; }
  .header-inner {
    height: auto;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 24px;
  }
  .brand-logo { width: 126px; height: 36px; }
  .site-nav {
    justify-self: end;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .header-contact { display: none; }
}

@media (max-width: 780px) {
  .header-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 18px;
  }
  .brand-logo { width: 132px; height: 38px; }
  .site-nav {
    justify-self: start;
    width: 100%;
    justify-content: flex-start;
  }
  .nav-link { padding: 0 14px; }
}

/* -------------------------------------------------------------------------
   Professional v4 polish: tablet-first enterprise HR terminal
--------------------------------------------------------------------------- */
:root {
  --pro-ink: #08111f;
  --pro-slate: #172033;
  --pro-muted: #667085;
  --pro-line: #e4eaf2;
  --pro-soft: #f8fafc;
  --pro-card-shadow: 0 14px 38px rgba(15, 23, 42, .075);
  --pro-hover-shadow: 0 18px 44px rgba(15, 23, 42, .12);
}
.skip-link {
  position: fixed;
  left: 18px;
  top: 12px;
  z-index: 999;
  transform: translateY(-140%);
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }
.professional-ui {
  background:
    radial-gradient(circle at 78% 0%, rgba(227, 6, 19, .055), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
}
.pro-header { border-bottom-color: rgba(219, 226, 236, .95); }
.pro-header .header-inner { grid-template-columns: 190px minmax(560px, 1fr) 222px; }
.pro-header .brand-logo { width: 150px; }
.pro-header .site-nav { box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 10px 26px rgba(15,23,42,.045); }
.pro-header .nav-link { min-width: 104px; }
.pro-header .header-contact {
  min-width: 204px;
  background: linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
}
.pro-main {
  border-radius: 0 0 32px 32px;
  box-shadow: 0 22px 70px rgba(15, 23, 42, .08);
}
.pro-hero {
  height: 318px;
  padding: 38px 52px 62px;
  background-position: center 44%;
}
.pro-hero::before {
  background:
    linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.96) 32%, rgba(255,255,255,.55) 52%, rgba(255,255,255,.10) 100%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(8, 17, 31, .08));
}
.pro-hero-content .eyebrow {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff1f2;
  color: var(--red);
  letter-spacing: .06em;
}
.pro-hero h1 {
  max-width: 760px;
  font-size: clamp(46px, 4.15vw, 64px);
  letter-spacing: -.065em;
}
.pro-hero-content > p:not(.eyebrow) {
  max-width: 560px;
  color: #1f2937;
  font-weight: 520;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}
.hero-actions .primary-cta { margin-top: 0; }
.hero-trust {
  min-height: 48px;
  display: grid;
  align-content: center;
  padding: 7px 16px;
  border: 1px solid rgba(227, 6, 19, .12);
  border-radius: 14px;
  background: rgba(255,255,255,.80);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
}
.hero-trust strong {
  color: var(--red);
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
}
.hero-trust span {
  color: #4b5563;
  font-size: 12px;
  font-weight: 750;
}
.hero-status-card {
  position: absolute;
  right: 52px;
  bottom: 62px;
  width: 260px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .10);
}
.hero-status-card > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--red);
  color: #fff;
}
.hero-status-card .icon { width: 22px; height: 22px; }
.hero-status-card strong { display: block; color: #0b1220; font-size: 14px; font-weight: 900; }
.hero-status-card small { display: block; margin-top: 2px; color: #586374; font-size: 11px; font-weight: 750; line-height: 1.25; }
.pro-value-strip {
  width: calc(100% - 104px);
  border-radius: 22px;
  border-color: rgba(225, 231, 240, .95);
}
.pro-value-strip .value-item > .icon,
.pro-contact-strip .contact-item > .icon,
.pro-job-card .job-icon {
  background: linear-gradient(180deg, #fff1f2 0%, #fff7f7 100%);
  box-shadow: inset 0 0 0 1px rgba(227, 6, 19, .05);
}
.pro-jobs { padding-top: 26px; }
.pro-section-head {
  align-items: start;
  gap: 18px;
}
.jobs-tools {
  display: grid;
  gap: 10px;
  justify-items: end;
}
.job-search {
  width: 300px;
  height: 42px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  border: 1px solid var(--pro-line);
  border-radius: 14px;
  background: #fff;
  color: #667085;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .035);
}
.job-search .icon { justify-self: center; width: 18px; height: 18px; }
.job-search input {
  height: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 12px 0 0;
  font-weight: 700;
}
.job-search input:focus { box-shadow: none; }
.filter-chip { min-width: 76px; }
.pro-jobs-grid { gap: 12px; }
.pro-job-card {
  height: 162px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  grid-template-columns: none;
  padding: 16px;
  border-color: rgba(225, 231, 240, .98);
  background:
    radial-gradient(circle at 100% 0%, rgba(227, 6, 19, .035), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  box-shadow: var(--pro-card-shadow);
  cursor: pointer;
}
.pro-job-card[hidden] { display: none !important; }
.pro-job-card .job-card-top {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: start;
}
.pro-job-card .job-info h3 { font-size: 17.5px; }
.pro-job-card .job-icon { width: 54px; height: 54px; }
.pro-job-card > p {
  margin: 8px 0 0;
  color: #344052;
  font-size: 12.5px;
  line-height: 1.34;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.job-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
}
.job-card-bottom > span {
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pro-job-card .job-arrow {
  flex: 0 0 auto;
  align-self: center;
  justify-self: auto;
  display: grid;
  place-items: center;
  color: #0f172a;
}
.pro-job-card .job-arrow .icon { width: 18px; height: 18px; }
.pro-job-card:hover,
.pro-job-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(227, 6, 19, .42);
  box-shadow: var(--pro-hover-shadow);
}
.pro-job-card:focus-visible,
.filter-chip:focus-visible,
.primary-cta:focus-visible,
.header-contact:focus-visible,
.nav-link:focus-visible,
.job-search:focus-within {
  outline: 3px solid rgba(227, 6, 19, .16);
  outline-offset: 3px;
}
.empty-state {
  margin-top: 18px;
  padding: 34px;
  border: 1px dashed #d8e0eb;
  border-radius: 22px;
  text-align: center;
  background: #fbfcfe;
}
.empty-state div {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: #fff1f2;
  color: var(--red);
}
.empty-state strong { color: #0b1220; font-size: 18px; }
.empty-state p { margin: 8px 0 0; color: var(--pro-muted); }
.pro-contact-strip { width: calc(100% - 104px); border-radius: 20px; }
body.modal-lock { overflow: hidden; }
.pro-modal-backdrop { background: rgba(6, 12, 23, .66); backdrop-filter: blur(14px); }
.pro-modal-panel {
  width: min(1080px, 94vw);
  max-height: min(760px, 92vh);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.16);
  overflow: hidden;
}
.pro-modal-panel .modal-content { max-height: min(760px, 92vh); }
.modal-shell { padding: 30px 34px 34px; }
.modal-hero-line {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: start;
  padding-right: 56px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--pro-line);
}
.modal-icon-badge {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, #ef1f2b, var(--red));
  color: #fff;
  font-size: 28px;
  font-weight: 950;
  box-shadow: 0 16px 32px rgba(227, 6, 19, .22);
}
.modal-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.modal-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f3f6fa;
  color: #344052;
  font-size: 12px;
  font-weight: 850;
}
.pro-modal-grid {
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 30px;
  padding: 24px 0 0;
}
.modal-primary { min-width: 0; }
.modal-secondary { min-width: 0; }
.modal-description { color: #1f2937; font-weight: 520; }
.modal-section {
  padding: 16px 0 0;
  margin-top: 0;
}
.modal-section + .modal-section { border-top: 1px solid #edf1f6; margin-top: 16px; }
.modal-list { gap: 8px; }
.modal-list li::before {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff1f2;
  font-size: 12px;
}
.video-box {
  min-height: 236px;
  border-radius: 22px;
  border: 0;
  background:
    linear-gradient(135deg, rgba(9,17,31,.78), rgba(9,17,31,.96)),
    url('../img/akfa-plast-hero.jpg') center/cover;
}
.pro-video-placeholder p { color: rgba(255,255,255,.78); }
.modal-side-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border-color: #e2e8f0;
}
.modal-next-step { background: #fff9f9; border-color: rgba(227, 6, 19, .13); }
.modal-loading {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  color: #0b1220;
}
.modal-loading div {
  width: 54px;
  height: 54px;
  border: 4px solid #f1f5f9;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: modalSpin .8s linear infinite;
}
@keyframes modalSpin { to { transform: rotate(360deg); } }

@media (max-height: 860px) and (min-width: 1000px) {
  .pro-header .header-inner { grid-template-columns: 160px minmax(560px, 1fr) 198px; }
  .pro-header .nav-link { min-width: 92px; }
  .pro-header .header-contact { min-width: 188px; }
  .pro-hero { height: 238px; padding: 20px 52px 44px; }
  .pro-hero-content .eyebrow { height: 22px; font-size: 10.5px; margin-bottom: 6px; }
  .pro-hero h1 { font-size: clamp(36px, 3.35vw, 48px); max-width: 660px; }
  .hero-actions { margin-top: 12px; }
  .hero-trust { display: none; }
  .hero-status-card { display: none; }
  .pro-value-strip { width: calc(100% - 92px); }
  .jobs-tools { grid-template-columns: 230px 1fr; align-items: center; }
  .job-search { width: 230px; height: 34px; border-radius: 12px; }
  .job-search input { font-size: 12px; }
  .pro-job-card { height: 132px; padding: 12px 14px; }
  .pro-job-card .job-card-top { grid-template-columns: 48px 1fr; gap: 12px; }
  .pro-job-card .job-icon { width: 46px; height: 46px; }
  .pro-job-card .job-info h3 { font-size: 15px; }
  .pro-job-card > p { margin-top: 5px; font-size: 11px; line-height: 1.28; }
  .job-card-bottom { padding-top: 4px; }
  .job-card-bottom > span { display: none; }
  .pro-modal-panel { width: min(1040px, 94vw); }
  .modal-shell { padding: 24px 30px 28px; }
  .modal-hero-line { grid-template-columns: 54px 1fr; padding-bottom: 16px; }
  .modal-icon-badge { width: 50px; height: 50px; font-size: 24px; border-radius: 16px; }
  .modal-title { font-size: 30px; }
  .modal-meta { margin: 10px 0 8px; }
  .modal-chips { margin-top: 8px; }
  .pro-modal-grid { grid-template-columns: minmax(0, 1fr) 390px; gap: 24px; padding-top: 18px; }
  .modal-description { margin-bottom: 12px; font-size: 14px; }
  .modal-section { padding-top: 12px; }
  .modal-section + .modal-section { margin-top: 12px; }
  .modal-list { gap: 6px; }
  .modal-list li { font-size: 13px; }
  .video-box { min-height: 202px; }
  .modal-side-card { margin-top: 12px; padding: 15px; }
  .modal-actions { margin-top: 14px; }
}

@media (max-width: 1180px) {
  .pro-header .header-inner { grid-template-columns: 150px minmax(0, 1fr); }
  .pro-header .nav-link { min-width: auto; }
  .jobs-tools { justify-items: stretch; width: 100%; }
  .job-search { width: 100%; max-width: 360px; justify-self: end; }
}

@media (max-width: 980px) {
  .pro-section-head { display: grid; }
  .jobs-tools { justify-items: start; }
  .job-search { justify-self: start; max-width: 100%; }
  .pro-modal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .pro-hero { min-height: 420px; padding: 36px 22px 54px; }
  .hero-actions { align-items: stretch; flex-direction: column; max-width: 320px; }
  .hero-status-card { display: none; }
  .modal-shell { padding: 22px; }
  .modal-hero-line { grid-template-columns: 1fr; padding-right: 46px; }
}

/* v4.1 tablet density correction: preserve description text in 768px kiosk view */
@media (max-height: 860px) and (min-width: 1000px) {
  .pro-job-card { height: 134px; padding: 12px 14px 10px; }
  .pro-job-card .job-badges { display: none; }
  .pro-job-card > p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 7px;
    max-width: 92%;
  }
  .pro-job-card .job-meta { font-size: 11.6px; }
  .job-card-bottom { justify-content: flex-end; padding-top: 2px; }
  .job-card-bottom > span { display: none; }
}

/* v4.2 card readability correction */
@media (max-height: 860px) and (min-width: 1000px) {
  .pro-job-card {
    justify-content: flex-start;
    padding-bottom: 42px;
  }
  .pro-job-card > p {
    flex: 0 0 auto;
    display: block;
    max-height: 29px;
    min-height: 28px;
    overflow: hidden;
  }
  .pro-job-card .job-card-bottom {
    position: absolute;
    right: 14px;
    bottom: 10px;
    padding: 0;
  }
}

/* v4.3 modal conversion correction: CTA visible on 1366×768 tablet */
.modal-secondary .modal-actions { margin-top: 12px; }
@media (max-height: 860px) and (min-width: 1000px) {
  .video-box { min-height: 178px; }
  .modal-side-card { padding: 12px 14px; }
  .modal-side-card p { margin: 0; font-size: 13px; line-height: 1.3; }
  .modal-side-card strong { margin-bottom: 6px; }
  .modal-secondary .modal-actions .primary-cta { min-height: 42px; }
}

/* PHP Easy Install additions */
.install-body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top left, rgba(227,6,19,.08), transparent 30%), linear-gradient(135deg,#ffffff,#f5f7fb);
  color: var(--text);
  font-family: var(--font);
  padding: 32px;
}
.install-card {
  width: min(980px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.install-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 28px 34px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg,#fff,#fff8f8);
}
.install-head img { width: 136px; }
.install-head h1 { margin: 0; font-size: 28px; color: var(--ink); letter-spacing: -.04em; }
.install-head p { margin: 6px 0 0; color: var(--muted); }
.install-content { padding: 30px 34px 34px; }
.install-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.install-full { grid-column: 1 / -1; }
.install-form label { display: grid; gap: 8px; font-weight: 800; color: #111827; }
.install-form input, .install-form select, .install-form textarea,
.admin-form input, .admin-form textarea, .admin-form select,
.login-card input, .candidate-form input, .candidate-form textarea, .candidate-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  padding: 11px 13px;
  color: #111827;
  background: #fff;
  outline: none;
}
.install-form textarea, .admin-form textarea, .candidate-form textarea { min-height: 110px; resize: vertical; }
.install-form input:focus, .install-form textarea:focus, .install-form select:focus,
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus,
.login-card input:focus, .candidate-form input:focus, .candidate-form textarea:focus, .candidate-form select:focus {
  border-color: rgba(227,6,19,.55);
  box-shadow: 0 0 0 4px rgba(227,6,19,.08);
}
.install-note, .notice {
  border: 1px solid #fde2e4;
  border-radius: 16px;
  background: #fff5f5;
  color: #7f1d1d;
  padding: 14px 16px;
  margin-bottom: 18px;
  line-height: 1.5;
}
.notice.success { background: #ecfdf3; border-color: #bbf7d0; color: #14532d; }
.notice.error { background: #fff1f2; border-color: #fecdd3; color: #881337; }
.check-list { display: grid; gap: 10px; margin: 18px 0; }
.check-item { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fbfdff; }
.check-item strong { color: var(--ink); }
.check-ok { color: #15803d; font-weight: 900; }
.check-bad { color: var(--red); font-weight: 900; }
.install-actions { display: flex; gap: 12px; align-items: center; margin-top: 22px; }
.install-actions .primary-cta { margin-top: 0; }
.admin-notice { margin: 0 0 18px; }
.admin-mini-actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.admin-link-btn, .danger-link-btn {
  display:inline-flex; align-items:center; justify-content:center;
  min-height:34px; padding:0 12px; border-radius:10px; border:1px solid var(--line);
  background:#fff; color:#111827; font-weight:800; font-size:13px;
}
.danger-link-btn { color:#b91c1c; border-color:#fecdd3; background:#fff5f5; }
.inline-form { display:inline; }
.form-grid { display:grid; gap:16px; }
.form-grid.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.form-grid.three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.admin-tabs { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 18px; }
.admin-tabs a { padding:10px 14px; border-radius:999px; border:1px solid var(--line); background:#fff; font-weight:800; }
.admin-tabs a.is-active { background:var(--red); color:#fff; border-color:var(--red); }
.status-pill { display:inline-flex; padding:4px 9px; border-radius:999px; background:#f1f5f9; color:#334155; font-size:12px; font-weight:850; }
.status-pill.active { color:#166534; background:#dcfce7; }
.status-pill.inactive { color:#991b1b; background:#fee2e2; }
.admin-table-wrap { overflow:auto; }
.candidate-page { min-height: calc(100vh - 68px); display:grid; place-items:center; padding:28px; background:linear-gradient(180deg,#fff,#f8fafc); }
.candidate-card { width:min(720px,100%); background:#fff; border:1px solid var(--line); border-radius:26px; box-shadow:var(--shadow-soft); padding:28px; }
.candidate-card h1 { margin:0 0 8px; font-size:32px; letter-spacing:-.04em; color:var(--ink); }
.candidate-card p { color:var(--muted); }
.required { color:var(--red); }
@media (max-width: 760px) {
  .install-grid, .form-grid.two, .form-grid.three { grid-template-columns:1fr; }
  .install-head { flex-direction:column; align-items:flex-start; }
}

/* Uploaded AKFA logo integration */
.brand-logo img,
.install-head img {
  object-fit: contain;
}
.admin-brand .brand-logo {
  width: 154px;
  height: 48px;
  padding: 6px 10px;
  border-radius: 14px;
  background: #fff;
  filter: none;
}
.admin-brand .brand-logo img {
  max-height: 100%;
}

/* =========================================================
   Admin Analytics Update v1.1 — 2026-07
   ========================================================= */

.filter-chip small {
  margin-left: 4px;
  font-size: .82em;
  opacity: .72;
}
.contact-item[href] { color: inherit; }
.contact-item[href]:hover { background: #fff8f8; }
.secondary-cta {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid #e1e7f0;
  border-radius: 13px;
  background: #fff;
  color: #111827;
  font-weight: 850;
  transition: .2s ease;
}
.secondary-cta:hover { border-color: var(--red); color: var(--red); background: #fff7f7; }
.modal-salary { margin-top: 8px; color: #0f172a; font-size: 17px; font-weight: 900; }
.consent-row {
  display: grid !important;
  grid-template-columns: 22px 1fr !important;
  align-items: start !important;
  gap: 10px !important;
  padding: 13px 14px;
  border: 1px solid #e1e7f0;
  border-radius: 14px;
  background: #f8fafc;
  font-weight: 650 !important;
  line-height: 1.45;
}
.consent-row input { width: 18px !important; min-height: 18px !important; margin-top: 2px; }
.candidate-success { text-align: center; }
.candidate-success .brand { justify-content: center; }
.candidate-success-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 28px auto 16px;
  border-radius: 24px;
  background: #ecfdf3;
  color: #15803d;
}
.candidate-success-icon .icon { width: 38px; height: 38px; }
.application-number {
  display: inline-grid;
  gap: 4px;
  margin: 16px auto;
  padding: 14px 24px;
  border: 1px solid #fecdd3;
  border-radius: 16px;
  background: #fff1f2;
}
.application-number span { color: #64748b; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.application-number strong { color: #be123c; font-size: 24px; letter-spacing: .04em; }
.candidate-help { margin-bottom: 8px; }

/* Admin shell */
.admin-body {
  grid-template-columns: 264px minmax(0, 1fr);
  background: #f4f6f9;
  color: #0f172a;
}
.admin-sidebar {
  width: 264px;
  padding: 20px 16px;
  gap: 18px;
  background:
    radial-gradient(circle at 0 0, rgba(227, 6, 19, .2), transparent 32%),
    linear-gradient(180deg, #101827 0%, #080d17 100%);
  box-shadow: 12px 0 40px rgba(2, 6, 23, .08);
  z-index: 50;
}
.admin-sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-sidebar-close {
  display: none;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 11px;
  background: rgba(255,255,255,.06);
  color: #fff;
}
.admin-sidebar-close .icon { width: 19px; height: 19px; }
.admin-brand .brand-logo { width: 146px; height: 44px; }
.admin-user {
  position: relative;
  padding: 16px 16px 16px 52px;
  border-radius: 16px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
}
.admin-user::before {
  content: "A";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.admin-user span { margin-bottom: 2px; color: #9ba7b8; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.admin-user strong { display: block; font-size: 15px; }
.admin-user small { display: block; margin-top: 2px; color: #94a3b8; font-size: 11px; }
.admin-nav { gap: 5px; }
.admin-nav-link {
  min-height: 46px;
  gap: 12px;
  padding: 0 14px;
  border-radius: 13px;
  color: #cbd5e1;
  font-size: 14px;
  transition: .18s ease;
}
.admin-nav-link .icon { width: 19px; height: 19px; opacity: .82; }
.admin-nav-link:hover { transform: translateX(2px); background: rgba(255,255,255,.08); color: #fff; }
.admin-nav-link.is-active { background: linear-gradient(135deg, #e30613, #bc0711); color: #fff; box-shadow: 0 12px 24px rgba(227, 6, 19, .22); }
.admin-nav-link.is-active .icon { opacity: 1; }
.admin-sidebar-footer { margin-top: auto; display: grid; gap: 10px; }
.admin-view-site, .admin-ghost {
  min-height: 42px;
  gap: 9px;
  border-radius: 12px;
  font-size: 13px;
}
.admin-view-site { margin: 0; }
.admin-view-site .icon { width: 17px; height: 17px; }
.admin-main { min-width: 0; padding: 0; overflow: visible; }
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(226,232,240,.9);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
}
.admin-topbar > div:first-of-type { display: grid; gap: 1px; }
.admin-topbar strong { color: #0f172a; font-size: 15px; }
.admin-topbar span { color: #64748b; font-size: 12px; }
.admin-menu-button {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
}
.admin-menu-button .icon { width: 20px; height: 20px; }
.admin-topbar-meta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.admin-topbar-meta span { padding-right: 14px; border-right: 1px solid #e2e8f0; }
.admin-topbar-meta a { color: var(--red); font-size: 13px; font-weight: 850; }
.admin-content { max-width: 1680px; margin: 0 auto; padding: 28px; }
.admin-backdrop { display: none; }
.admin-eyebrow {
  margin: 0 0 5px !important;
  color: var(--red) !important;
  font-size: 11px !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.admin-page-head { margin-bottom: 22px; }
.admin-page-head h1 { font-size: clamp(28px, 3vw, 38px); }
.admin-page-head > div:first-child > p:last-child { max-width: 760px; }
.admin-page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.admin-btn { min-height: 44px; border-radius: 12px; padding: 0 17px; font-size: 13px; cursor: pointer; }
.admin-btn .icon { width: 17px; height: 17px; }
.admin-btn.full { width: 100%; margin-top: 14px; }
.admin-text-link { color: var(--red); font-size: 13px; font-weight: 850; white-space: nowrap; }
.admin-card {
  border-color: #e5eaf1;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, .045);
  padding: 22px;
}
.admin-card-head { gap: 16px; }
.admin-card-head h2 { font-size: 20px; letter-spacing: -.025em; }
.admin-card-head p { margin: 5px 0 0; color: #64748b; font-size: 13px; line-height: 1.45; }
.admin-grid { display: grid; gap: 20px; }
.admin-grid.analytics-main-grid { grid-template-columns: minmax(0, 1.55fr) minmax(360px, .8fr); }
.admin-grid.analytics-secondary-grid { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); }
.admin-grid.dashboard-main-grid { grid-template-columns: minmax(0, 1.55fr) minmax(330px, .65fr); }
.admin-grid.settings-grid { grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr); align-items: start; }
.settings-grid > aside { display: grid; gap: 20px; }

/* KPI */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.admin-kpi {
  position: relative;
  min-height: 142px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 19px;
  border: 1px solid #e5eaf1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .045);
  overflow: hidden;
}
.admin-kpi::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -42px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(227, 6, 19, .035);
}
.admin-kpi-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff1f2;
  color: var(--red);
}
.admin-kpi-icon .icon { width: 24px; height: 24px; }
.admin-kpi-main { min-width: 0; display: grid; gap: 4px; }
.admin-kpi-main > span { color: #64748b; font-size: 12px; font-weight: 800; }
.admin-kpi-main strong { color: #0f172a; font-size: 29px; line-height: 1.05; letter-spacing: -.045em; }
.admin-kpi-main small { color: #94a3b8; font-size: 11px; line-height: 1.35; }
.kpi-delta {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}
.kpi-delta.up { background: #ecfdf3; color: #047857; }
.kpi-delta.down { background: #fff1f2; color: #be123c; }
.kpi-delta.neutral { background: #f1f5f9; color: #64748b; }

/* Analytics */
.admin-range {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #fff;
}
.admin-range a { padding: 8px 11px; border-radius: 9px; color: #64748b; font-size: 12px; font-weight: 850; }
.admin-range a:hover, .admin-range a.is-active { background: #0f172a; color: #fff; }
.analytics-privacy-note {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #f0f7ff;
  color: #1e3a5f;
}
.analytics-privacy-note > .icon { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: #fff; color: #2563eb; }
.analytics-privacy-note strong { display: block; margin-bottom: 3px; font-size: 13px; }
.analytics-privacy-note p { margin: 0; color: #4b6584; font-size: 12px; line-height: 1.45; }
.analytics-chart {
  position: relative;
  min-height: 270px;
  display: grid;
  grid-template-columns: 38px minmax(560px, 1fr);
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 0 4px;
}
.analytics-chart-grid {
  height: 224px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #94a3b8;
  font-size: 9px;
}
.analytics-days {
  min-width: 580px;
  height: 248px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(12px, 1fr);
  align-items: end;
  gap: 4px;
  padding-top: 8px;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 54px, #edf1f6 55px, transparent 56px);
}
.analytics-day { min-width: 10px; height: 240px; display: grid; grid-template-rows: 220px 20px; align-items: end; }
.analytics-bars { height: 210px; display: flex; align-items: end; justify-content: center; gap: 2px; }
.analytics-bar { width: 28%; min-width: 2px; max-width: 8px; border-radius: 5px 5px 1px 1px; transition: opacity .15s ease; }
.analytics-day:hover .analytics-bar { opacity: .72; }
.analytics-bar.visitors, .analytics-legend i.visitors { background: #111827; }
.analytics-bar.views, .analytics-legend i.views { background: #94a3b8; }
.analytics-bar.applications, .analytics-legend i.applications { background: var(--red); }
.analytics-day small { align-self: end; justify-self: center; color: #94a3b8; font-size: 8px; white-space: nowrap; transform: rotate(-35deg); transform-origin: center; }
.analytics-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; padding-left: 48px; color: #64748b; font-size: 11px; font-weight: 750; }
.analytics-legend span { display: inline-flex; align-items: center; gap: 6px; }
.analytics-legend i { width: 10px; height: 10px; display: inline-block; border-radius: 3px; }
.analytics-funnel { display: grid; gap: 15px; }
.funnel-row { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(100px, .8fr) 58px; gap: 12px; align-items: center; }
.funnel-label { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; }
.funnel-label > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: #fff1f2; color: var(--red); font-size: 12px; font-weight: 900; }
.funnel-label strong { display: block; color: #0f172a; font-size: 12px; }
.funnel-label small { display: block; margin-top: 2px; color: #94a3b8; font-size: 9px; line-height: 1.25; }
.funnel-track { height: 10px; border-radius: 99px; background: #edf1f5; overflow: hidden; }
.funnel-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f43f5e, var(--red)); }
.funnel-row b { text-align: right; color: #0f172a; font-size: 16px; }
.analytics-progress-row { display: grid; gap: 7px; margin-bottom: 15px; }
.analytics-progress-row > div:first-child { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.analytics-progress-row strong { color: #1e293b; font-size: 12px; }
.analytics-progress-row span { color: #64748b; font-size: 11px; }
.analytics-progress { height: 8px; border-radius: 99px; background: #edf1f5; overflow: hidden; }
.analytics-progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0f172a, #64748b); }
.analytics-progress.status-new > span { background: #e11d48; }
.analytics-progress.status-contacted > span { background: #2563eb; }
.analytics-progress.status-screening > span { background: #7c3aed; }
.analytics-progress.status-interview > span { background: #f59e0b; }
.analytics-progress.status-offer > span { background: #0891b2; }
.analytics-progress.status-hired > span { background: #059669; }
.analytics-progress.status-reserve > span { background: #64748b; }
.analytics-progress.status-rejected > span { background: #94a3b8; }
.analytics-subsection { margin-top: 24px; padding-top: 20px; border-top: 1px solid #edf1f5; }
.analytics-subsection h3 { margin: 0 0 12px; color: #1e293b; font-size: 14px; }
.analytics-tag-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f1f5f9; }
.analytics-tag-row span { color: #475569; font-size: 12px; }
.analytics-tag-row strong { color: #0f172a; font-size: 13px; }
.analytics-empty { min-height: 160px; display: grid; place-content: center; text-align: center; color: #64748b; }
.analytics-empty.small { min-height: 80px; }
.analytics-empty strong { color: #1e293b; }
.analytics-empty p { margin: 5px 0 0; font-size: 12px; }
.analytics-table small { display: block; color: #94a3b8; }

/* Tables and filters */
.admin-table { min-width: 900px; }
.admin-table.compact { min-width: 680px; }
.admin-table th { color: #64748b; font-size: 10px; }
.admin-table td { padding-top: 13px; padding-bottom: 13px; }
.admin-table tbody tr:hover { background: #fbfcfe; }
.admin-table a[href^="tel:"] { color: #2563eb; }
.admin-table-search {
  width: min(300px, 100%);
  min-height: 42px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}
.admin-table-search .icon { width: 17px; height: 17px; justify-self: center; color: #64748b; }
.admin-table-search input { min-height: 40px; border: 0; box-shadow: none; padding: 0 12px 0 0; }
.admin-table-search input:focus { box-shadow: none; }
.admin-filter-panel {
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) repeat(3, minmax(150px, 1fr)) minmax(130px, .7fr) minmax(130px, .7fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid #e5eaf1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15,23,42,.04);
}
.admin-filter-panel label { display: grid; gap: 7px; color: #475569; font-size: 11px; font-weight: 850; }
.admin-filter-panel input, .admin-filter-panel select { min-height: 42px; padding: 9px 11px; }
.admin-filter-actions { display: flex; gap: 8px; }
.admin-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; }
.admin-pagination a { min-width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #e2e8f0; border-radius: 9px; background: #fff; color: #475569; font-size: 12px; font-weight: 850; }
.admin-pagination a:hover, .admin-pagination a.is-active { border-color: var(--red); background: var(--red); color: #fff; }

/* Candidate management */
.candidate-status-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.candidate-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 70px;
  padding: 14px;
  border: 1px solid #e5eaf1;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(15,23,42,.035);
}
.candidate-status-card span { color: #64748b; font-size: 11px; font-weight: 800; }
.candidate-status-card strong { color: #0f172a; font-size: 24px; }
.candidate-status-card:hover { transform: translateY(-1px); border-color: #cbd5e1; }
.candidate-details { position: relative; }
.candidate-details summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #dbe3ed;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}
.candidate-details summary::-webkit-details-marker { display: none; }
.candidate-details[open] summary { border-color: var(--red); color: var(--red); }
.candidate-detail-panel {
  position: fixed;
  z-index: 100;
  right: 24px;
  top: 82px;
  width: min(560px, calc(100vw - 48px));
  max-height: calc(100vh - 106px);
  overflow: auto;
  padding: 22px;
  border: 1px solid #e5eaf1;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(15,23,42,.22);
}
.candidate-detail-panel::before { content: "Карточка кандидата"; display: block; margin-bottom: 16px; color: #0f172a; font-size: 20px; font-weight: 900; }
.candidate-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.candidate-detail-grid > div { min-height: 76px; padding: 12px; border-radius: 12px; background: #f8fafc; }
.candidate-detail-grid span { color: #94a3b8; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.candidate-detail-grid p { margin: 7px 0 0; color: #334155; font-size: 12px; line-height: 1.45; word-break: break-word; }
.candidate-admin-form { display: grid; gap: 13px; padding-top: 16px; border-top: 1px solid #edf1f5; }
.candidate-admin-form label { display: grid; gap: 7px; color: #334155; font-size: 12px; font-weight: 850; }
.candidate-admin-form textarea { min-height: 92px; }
.candidate-delete-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid #f1f5f9; }
.source-pill { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-size: 10px; font-weight: 850; }
.status-screening { background: #f3e8ff; color: #7e22ce; }
.status-offer { background: #ecfeff; color: #0e7490; }
.status-reserve { background: #f1f5f9; color: #475569; }

/* Vacancy editor */
.vacancy-editor { scroll-margin-top: 86px; }
.admin-fieldset { margin: 0; padding: 0 0 20px; border: 0; border-bottom: 1px solid #edf1f5; }
.admin-fieldset:last-of-type { border-bottom: 0; padding-bottom: 0; }
.admin-fieldset legend { margin-bottom: 15px; color: #0f172a; font-size: 15px; font-weight: 900; }
.stacked-fields { display: grid; gap: 16px; }
.admin-checks { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 15px; }
.admin-checks .check-row { min-height: 42px; padding: 0 13px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
.admin-checks .check-row span { color: #334155; font-size: 12px; }

/* Dashboard */
.dashboard-alert {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #fde68a;
  border-radius: 16px;
  background: #fffbeb;
}
.dashboard-alert > .icon { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: #fff; color: #d97706; }
.dashboard-alert strong { color: #92400e; font-size: 13px; }
.dashboard-alert p { margin: 3px 0 0; color: #a16207; font-size: 11px; }
.dashboard-alert a { color: #92400e; font-size: 12px; font-weight: 900; }
.quick-action-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quick-action-grid > a { min-height: 94px; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 15px; border: 1px solid #e5eaf1; border-radius: 15px; background: #fbfcfe; }
.quick-action-grid > a:hover { border-color: rgba(227,6,19,.34); background: #fff8f8; transform: translateY(-1px); }
.quick-action-grid > a > .icon { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: #fff1f2; color: var(--red); }
.quick-action-grid strong { display: block; color: #0f172a; font-size: 13px; }
.quick-action-grid span { display: block; margin-top: 4px; color: #64748b; font-size: 10px; line-height: 1.35; }

/* Settings and login */
.system-card dl { display: grid; gap: 0; margin: 0; }
.system-card dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid #edf1f5; }
.system-card dt { color: #64748b; font-size: 11px; }
.system-card dd { margin: 0; color: #0f172a; font-size: 11px; font-weight: 800; text-align: right; word-break: break-word; }
.system-note { margin: 15px 0 0; padding: 12px; border-radius: 12px; background: #f8fafc; color: #64748b; font-size: 11px; line-height: 1.5; }
.system-url { display: block; padding: 12px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; color: #0f172a; font-size: 12px; word-break: break-all; }
.password-field { position: relative; }
.password-field input { padding-right: 52px !important; }
.password-toggle { position: absolute; right: 7px; top: 50%; width: 36px; height: 36px; display: grid; place-items: center; transform: translateY(-50%); border: 0; border-radius: 9px; background: #f1f5f9; color: #64748b; }
.password-toggle .icon { width: 18px; height: 18px; }
.login-card .eyebrow { margin: 24px 0 6px; }
.login-card .eyebrow + h1 { margin-top: 0; }

@media (max-width: 1360px) {
  .admin-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-filter-panel { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .admin-filter-actions { grid-column: 1 / -1; }
  .candidate-status-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quick-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1120px) {
  .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-105%);
    transition: transform .22s ease;
  }
  .admin-menu-open .admin-sidebar { transform: translateX(0); }
  .admin-sidebar-close, .admin-menu-button { display: grid; }
  .admin-backdrop {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(2,6,23,.52);
    backdrop-filter: blur(3px);
  }
  .admin-menu-open .admin-backdrop { display: block; }
  .admin-grid.analytics-main-grid,
  .admin-grid.analytics-secondary-grid,
  .admin-grid.dashboard-main-grid,
  .admin-grid.settings-grid { grid-template-columns: 1fr; }
  .candidate-detail-panel { right: 18px; top: 78px; }
}

@media (max-width: 760px) {
  .admin-topbar { min-height: 62px; padding: 0 15px; }
  .admin-topbar-meta span { display: none; }
  .admin-content { padding: 18px 14px 28px; }
  .admin-page-head { align-items: flex-start; flex-direction: column; }
  .admin-page-actions { justify-content: flex-start; width: 100%; }
  .admin-kpi-grid { grid-template-columns: 1fr; }
  .admin-kpi { min-height: 126px; }
  .admin-card { padding: 16px; border-radius: 17px; }
  .admin-card-head { align-items: flex-start; flex-direction: column; }
  .admin-table-search { width: 100%; }
  .admin-filter-panel { grid-template-columns: 1fr; padding: 14px; }
  .admin-filter-actions { grid-column: auto; flex-wrap: wrap; }
  .candidate-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .candidate-detail-panel { inset: 70px 10px 10px; width: auto; max-height: none; }
  .candidate-detail-grid { grid-template-columns: 1fr; }
  .quick-action-grid { grid-template-columns: 1fr; }
  .funnel-row { grid-template-columns: 1fr 62px; }
  .funnel-track { grid-column: 1 / -1; grid-row: 2; }
  .analytics-privacy-note { grid-template-columns: 34px 1fr; }
  .analytics-privacy-note > .icon { width: 32px; height: 32px; padding: 7px; }
  .dashboard-alert { grid-template-columns: 36px 1fr; }
  .dashboard-alert a { grid-column: 2; }
  .admin-range { width: 100%; }
  .admin-range a { flex: 1; text-align: center; }
}

/* Candidate filter layout correction */
.admin-filter-panel {
  grid-template-columns: minmax(200px, 1.4fr) repeat(3, minmax(150px, 1fr));
}
.admin-filter-actions { grid-column: auto; }
@media (max-width: 1360px) {
  .admin-filter-panel { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .admin-filter-actions { grid-column: auto; }
}
@media (max-width: 900px) {
  .admin-filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-filter-actions { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .admin-filter-panel { grid-template-columns: 1fr; }
  .admin-filter-actions { grid-column: auto; }
}
.candidate-detail-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #64748b;
  cursor: pointer;
}
.candidate-detail-close:hover { border-color: var(--red); color: var(--red); }
.candidate-detail-close .icon { width: 18px; height: 18px; }


/* Video analytics: load the external player only after a real user action. */
.video-launch {
  width: 100%;
  min-height: inherit;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.video-launch:hover .video-play,
.video-launch:focus-visible .video-play { transform: scale(1.06); box-shadow: 0 15px 32px rgba(227, 6, 19, .32); }
.video-launch:focus-visible { outline: 3px solid rgba(255, 255, 255, .82); outline-offset: -6px; }
.video-launch .video-play { transition: transform .18s ease, box-shadow .18s ease; }

/* MySQL migration and database status */
.database-warning {
  border-color: #fed7aa;
  background: #fff7ed;
}
.database-warning > .icon {
  color: #c2410c;
  background: #ffedd5;
}
.database-warning strong { color: #9a3412; }
.database-warning p { color: #9a3412; }
.database-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.database-success > .icon {
  color: #15803d;
  background: #dcfce7;
}
.database-success strong { color: #166534; }
.database-success p { color: #166534; }
.database-kpis { margin: 18px 0; }
.database-details { display: grid; gap: 0; margin: 0; }
.database-details > div {
  display: grid;
  grid-template-columns: minmax(130px, .7fr) minmax(0, 1.3fr);
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid #edf1f5;
}
.database-details > div:last-child { border-bottom: 0; }
.database-details dt { color: #64748b; font-size: 11px; font-weight: 750; }
.database-details dd {
  min-width: 0;
  margin: 0;
  color: #0f172a;
  font-size: 11px;
  font-weight: 850;
  text-align: right;
  overflow-wrap: anywhere;
}
.migration-steps {
  display: grid;
  gap: 12px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: migration-step;
}
.migration-steps li {
  position: relative;
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 9px 12px 9px 48px;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  background: #fbfcfe;
  color: #334155;
  font-size: 12px;
  line-height: 1.45;
  counter-increment: migration-step;
}
.migration-steps li::before {
  content: counter(migration-step);
  position: absolute;
  left: 11px;
  top: 50%;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 9px;
  background: #fff1f2;
  color: var(--red);
  font-size: 11px;
  font-weight: 950;
}
.migration-existing {
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}
.database-migration-alert { border-color: #fdba74; background: #fff7ed; }
.database-migration-alert > .icon { color: #c2410c; }
.database-migration-alert strong,
.database-migration-alert a { color: #9a3412; }
.database-migration-alert p { color: #c2410c; }
.admin-form label > small,
.admin-form .field-help {
  display: block;
  margin-top: 5px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.45;
}

/* Five dashboard actions should wrap evenly without leaving a narrow orphan. */
.quick-action-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

@media (max-width: 760px) {
  .database-details > div { grid-template-columns: 1fr; gap: 5px; }
  .database-details dd { text-align: left; }
  .migration-steps li { padding-right: 10px; }
}

/* v3 bilingual interface */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 5px 7px;
  border: 1px solid #e7eaf0;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #9299a8;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.language-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 28px;
  border-radius: 999px;
  color: #697186;
  text-decoration: none;
}
.language-link:hover,
.language-link:focus-visible { color: #e30613; background: #fff1f2; }
.language-link.is-active { color: #fff; background: #e30613; }
.locale-fieldset { position: relative; overflow: hidden; }
.locale-fieldset::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; }
.locale-fieldset.locale-uz::before { background: #18a06d; }
.locale-fieldset.locale-ru::before { background: #5b5ce2; }
.fieldset-note { margin: -4px 0 18px; color: #7e879b; font-size: 13px; }
.translation-warning {
  margin-top: 15px;
  padding: 13px 15px;
  border: 1px solid #f1c9cb;
  border-radius: 13px;
  background: #fff7f7;
  color: #8a3036;
  font-size: 13px;
  line-height: 1.5;
}
.translation-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 2px 4px 2px 0;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.translation-status.ready { color: #167653; background: #eaf8f2; }
.translation-status.missing { color: #a3343b; background: #fff0f1; }
.notice.warning { border-color: #f0d18c; background: #fffaf0; color: #7b5610; }

@media (max-width: 1050px) {
  .pro-header .header-inner { gap: 12px; }
  .language-switch { margin-left: 0; }
}
@media (max-width: 760px) {
  .site-nav { display: none; }
  .language-switch { margin-left: auto; }
  .header-contact span { display: none; }
  .header-contact { width: 42px; height: 42px; padding: 0; justify-content: center; }
}

/* =========================================================
   v3.1 — vacancy editor and vacancy list usability update
   ========================================================= */

.vacancy-editor-card {
  padding: 0;
  overflow: visible;
  border-radius: 22px;
}
.vacancy-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 26px;
  border-bottom: 1px solid #e9edf3;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, #fff, #fbfcfe);
}
.vacancy-editor-head-copy { min-width: 0; }
.vacancy-editor-head-copy h2 {
  margin: 4px 0 7px;
  color: #0f172a;
  font-size: clamp(23px, 2.1vw, 31px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.vacancy-editor-head-copy > p:last-child {
  max-width: 780px;
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}
.vacancy-editor-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}
.vacancy-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}
.vacancy-back-link:hover { color: var(--red); }
.vacancy-back-link .icon { width: 16px; height: 16px; }

.vacancy-form { display: block; }
.vacancy-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
}
.vacancy-editor-main {
  min-width: 0;
  padding: 24px 26px 30px;
  border-right: 1px solid #e9edf3;
}
.vacancy-editor-aside {
  min-width: 0;
  display: grid;
  gap: 16px;
  padding: 24px 22px 26px;
  background: #fafbfd;
  border-radius: 0 0 22px 0;
}

.vacancy-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
  padding: 7px;
  border: 1px solid #e5eaf1;
  border-radius: 16px;
  background: #f8fafc;
}
.vacancy-step {
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 9px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #64748b;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.vacancy-step > span {
  grid-row: 1 / 3;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e9eef5;
  color: #64748b;
  font-size: 12px;
  font-weight: 950;
}
.vacancy-step strong {
  min-width: 0;
  overflow: hidden;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vacancy-step small {
  min-width: 0;
  overflow: hidden;
  color: #94a3b8;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vacancy-step:hover { background: #fff; border-color: #dfe5ed; }
.vacancy-step.is-active {
  border-color: rgba(227, 6, 19, .18);
  background: #fff;
  color: var(--red);
  box-shadow: 0 5px 18px rgba(15, 23, 42, .06);
}
.vacancy-step.is-active > span { background: var(--red); color: #fff; }
.vacancy-step.is-active strong { color: #0f172a; }

.vacancy-dirty-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 11px;
  font-weight: 800;
}
.vacancy-dirty-banner > span { display: inline-flex; align-items: center; gap: 8px; }
.vacancy-dirty-banner i { width: 7px; height: 7px; border-radius: 50%; background: #f97316; box-shadow: 0 0 0 4px rgba(249, 115, 22, .12); }
.vacancy-dirty-banner kbd { padding: 2px 6px; border: 1px solid #fdba74; border-bottom-width: 2px; border-radius: 6px; background: #fff; color: #9a3412; font: inherit; font-size: 10px; }

.vacancy-step-panel {
  min-width: 0;
  padding: 24px;
  border: 1px solid #e5eaf1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, .035);
}
.vacancy-step-panel[hidden] { display: none !important; }
.vacancy-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 21px;
  padding-bottom: 18px;
  border-bottom: 1px solid #edf1f5;
}
.vacancy-panel-head h3 {
  margin: 4px 0 6px;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.vacancy-panel-head p {
  max-width: 760px;
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}
.vacancy-panel-kicker {
  color: var(--red);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.vacancy-panel-kicker.locale-uz { color: #138a61; }
.vacancy-panel-kicker.locale-ru { color: #5155c9; }
.vacancy-panel-head-with-actions { align-items: center; }
.vacancy-panel-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.vacancy-template-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 15px;
  background: #f8fbff;
}
.vacancy-template-box strong { color: #1e3a5f; font-size: 13px; }
.vacancy-template-box p { margin: 5px 0 0; color: #64748b; font-size: 11px; line-height: 1.45; }
.vacancy-template-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.vacancy-template-actions select { min-width: 0; }

.vacancy-section {
  min-width: 0;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  background: #fcfdff;
}
.vacancy-section:first-of-type { margin-top: 0; }
.vacancy-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.vacancy-section-head h4 { margin: 0; color: #172033; font-size: 14px; font-weight: 900; }
.vacancy-section-head p { margin: 4px 0 0; color: #7c8799; font-size: 11px; line-height: 1.45; }

.vacancy-editor .admin-form label,
.vacancy-form label {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  color: #253047;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
}
.vacancy-editor .admin-form input,
.vacancy-editor .admin-form select,
.vacancy-editor .admin-form textarea,
.vacancy-form input,
.vacancy-form select,
.vacancy-form textarea {
  min-width: 0;
  min-height: 48px;
  border-color: #dce4ee;
  border-radius: 12px;
  padding: 11px 13px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
.vacancy-form textarea { min-height: 118px; resize: vertical; }
.vacancy-form textarea[rows="4"] { min-height: 108px; }
.vacancy-form textarea[rows="5"] { min-height: 132px; }
.vacancy-form textarea[rows="6"] { min-height: 156px; }
.vacancy-form textarea[rows="8"] { min-height: 190px; }
.vacancy-form input::placeholder,
.vacancy-form textarea::placeholder { color: #b1bac8; font-weight: 500; }
.vacancy-form label > small {
  min-height: 14px;
  margin: -1px 0 0;
  color: #8d98aa;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;
}
.vacancy-form .inline-help { display: inline; margin-left: 5px; color: #94a3b8; font-size: 9px; font-weight: 700; }
.vacancy-form-grid { align-items: start; }
.vacancy-bullet-grid textarea { font-family: inherit; }

.translation-warning.compact { margin: 0 0 18px; }
.vacancy-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #edf1f5;
}
.vacancy-panel-footer .admin-btn { gap: 7px; }
.vacancy-panel-footer .icon { width: 16px; height: 16px; }

.vacancy-advanced {
  margin-top: 18px;
  border: 1px solid #e5eaf1;
  border-radius: 15px;
  background: #fff;
  overflow: hidden;
}
.vacancy-advanced summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  gap: 11px;
  align-items: center;
  padding: 15px 16px;
  cursor: pointer;
  list-style: none;
}
.vacancy-advanced summary::-webkit-details-marker { display: none; }
.vacancy-advanced summary > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #f1f5f9;
  color: #64748b;
}
.vacancy-advanced summary > span .icon { width: 19px; height: 19px; }
.vacancy-advanced summary strong { display: block; color: #253047; font-size: 12px; }
.vacancy-advanced summary small { display: block; margin-top: 3px; color: #94a3b8; font-size: 10px; }
.vacancy-advanced summary > .icon { width: 18px; height: 18px; color: #94a3b8; transition: transform .2s ease; }
.vacancy-advanced[open] summary > .icon { transform: rotate(180deg); }
.vacancy-advanced-body { padding: 0 16px 16px; border-top: 1px solid #edf1f5; }
.vacancy-advanced-body .form-grid { margin-top: 16px; }

.vacancy-publish-card,
.vacancy-help-card {
  border: 1px solid #e5eaf1;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(15, 23, 42, .04);
}
.vacancy-publish-card {
  position: sticky;
  top: 86px;
  padding: 18px;
}
.vacancy-publish-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 13px;
  border-bottom: 1px solid #edf1f5;
}
.vacancy-publish-head span { color: #64748b; font-size: 11px; font-weight: 800; }
.vacancy-publish-head strong { padding: 5px 8px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 10px; font-weight: 900; }
.vacancy-publish-head strong.is-active { background: #dcfce7; color: #166534; }
.vacancy-status-field { margin-bottom: 13px; }
.vacancy-side-toggles { display: grid; gap: 9px; }
.vacancy-side-toggles .check-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 56px;
  padding: 10px 11px;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  background: #fafbfd;
}
.vacancy-side-toggles .check-row input { width: 18px; min-height: 18px; margin: 0; padding: 0; accent-color: var(--red); }
.vacancy-side-toggles .check-row span { min-width: 0; display: block; }
.vacancy-side-toggles .check-row strong { display: block; color: #334155; font-size: 11px; }
.vacancy-side-toggles .check-row small { display: block; min-height: 0; margin-top: 2px; color: #94a3b8; font-size: 9px; font-weight: 650; }

.vacancy-completeness {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid #e5eaf1;
  border-radius: 13px;
  background: #fbfcfe;
}
.vacancy-completeness-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vacancy-completeness-head span { color: #64748b; font-size: 10px; font-weight: 800; }
.vacancy-completeness-head strong { color: #0f172a; font-size: 16px; }
.vacancy-progress { height: 7px; margin: 10px 0; border-radius: 999px; background: #e9eef5; overflow: hidden; }
.vacancy-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f97316, var(--red)); transition: width .25s ease; }
.vacancy-completeness ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.vacancy-completeness li { position: relative; padding-left: 13px; color: #7c8799; font-size: 9px; line-height: 1.35; }
.vacancy-completeness li::before { content: ""; position: absolute; left: 0; top: .48em; width: 5px; height: 5px; border-radius: 50%; background: #cbd5e1; }
.vacancy-completeness.is-complete li { color: #15803d; }
.vacancy-completeness.is-complete li::before { background: #22c55e; }
.vacancy-save-note { margin: 9px 0 0; color: #94a3b8; font-size: 9px; line-height: 1.45; text-align: center; }
.vacancy-preview-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 13px; }
.vacancy-preview-links a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; border: 1px solid #e2e8f0; border-radius: 10px; color: #475569; font-size: 10px; font-weight: 850; }
.vacancy-preview-links a:hover { border-color: rgba(227, 6, 19, .3); color: var(--red); }
.vacancy-preview-links .icon { width: 14px; height: 14px; }
.vacancy-help-card { padding: 16px; }
.vacancy-help-card > strong { color: #334155; font-size: 11px; }
.vacancy-help-card ul { display: grid; gap: 7px; margin: 11px 0 0; padding-left: 17px; color: #64748b; font-size: 10px; line-height: 1.45; }

/* Vacancy list */
.vacancy-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.vacancy-summary-card {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 74px;
  padding: 15px 16px;
  border: 1px solid #e5eaf1;
  border-radius: 16px;
  background: #fff;
  color: #64748b;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(15, 23, 42, .035);
}
.vacancy-summary-card span { font-size: 11px; font-weight: 850; }
.vacancy-summary-card strong { color: #0f172a; font-size: 25px; letter-spacing: -.035em; }
.vacancy-summary-card:hover { border-color: #cbd5e1; transform: translateY(-1px); }
.vacancy-summary-card.is-active { border-color: rgba(227, 6, 19, .28); background: #fff8f8; color: #991b1b; }
.vacancy-summary-card.is-active strong { color: var(--red); }
.vacancy-list-head { align-items: center; }
.vacancy-list-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.vacancy-list-tools .admin-table-search { width: min(330px, 100%); }
.vacancy-table td:first-child strong { display: block; color: #0f172a; }
.vacancy-table td:first-child small,
.vacancy-table td:nth-child(2) small { display: block; margin-top: 4px; color: #64748b; }
.vacancy-table td:first-child em { display: block; margin-top: 6px; color: #a0a9b8; font-size: 9px; font-style: normal; }
.category-pill { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 10px; font-weight: 850; }
.vacancy-row-actions { min-width: 205px; }
.admin-link-btn.primary-link { border-color: rgba(227, 6, 19, .24); background: #fff6f6; color: var(--red); }

@media (max-width: 1280px) {
  .vacancy-editor-layout { grid-template-columns: minmax(0, 1fr) 292px; }
  .vacancy-editor-main { padding: 22px; }
  .vacancy-editor-aside { padding: 22px 18px; }
  .vacancy-step small { display: none; }
  .vacancy-step { grid-template-rows: auto; }
  .vacancy-step > span { grid-row: auto; }
}

@media (max-width: 1080px) {
  .vacancy-editor-layout { grid-template-columns: 1fr; }
  .vacancy-editor-main { border-right: 0; }
  .vacancy-editor-aside { grid-template-columns: minmax(0, 1fr) minmax(260px, .65fr); border-top: 1px solid #e9edf3; border-radius: 0 0 22px 22px; }
  .vacancy-publish-card { position: static; }
  .vacancy-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vacancy-template-box { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .vacancy-editor-head { flex-direction: column; }
  .vacancy-editor-head-actions { justify-content: flex-start; }
  .vacancy-stepper { display: flex; overflow-x: auto; scrollbar-width: thin; }
  .vacancy-step { flex: 0 0 170px; }
  .vacancy-panel-head,
  .vacancy-panel-head-with-actions { flex-direction: column; align-items: flex-start; }
  .vacancy-panel-actions { justify-content: flex-start; }
  .vacancy-form .form-grid.two,
  .vacancy-form .form-grid.three { grid-template-columns: 1fr; }
  .vacancy-editor-aside { grid-template-columns: 1fr; }
  .vacancy-list-head { align-items: flex-start; }
  .vacancy-list-tools { width: 100%; justify-content: flex-start; }
  .vacancy-list-tools .admin-table-search { flex: 1 1 260px; }
}

@media (max-width: 620px) {
  .vacancy-editor-head { padding: 20px 17px; }
  .vacancy-editor-main { padding: 16px; }
  .vacancy-editor-aside { padding: 16px; }
  .vacancy-step-panel { padding: 17px; border-radius: 15px; }
  .vacancy-section { padding: 15px; }
  .vacancy-template-actions { grid-template-columns: 1fr; }
  .vacancy-panel-footer { align-items: stretch; flex-direction: column-reverse; }
  .vacancy-panel-footer .admin-btn { width: 100%; }
  .vacancy-panel-actions { width: 100%; }
  .vacancy-panel-actions .admin-btn { width: 100%; }
  .vacancy-summary-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .vacancy-summary-card { min-height: 66px; padding: 12px; }
  .vacancy-summary-card span { font-size: 10px; }
  .vacancy-summary-card strong { font-size: 21px; }
  .vacancy-preview-links { grid-template-columns: 1fr; }
  .vacancy-list-tools { align-items: stretch; flex-direction: column; }
  .vacancy-list-tools .admin-table-search,
  .vacancy-list-tools .admin-btn { width: 100%; }
}
.vacancy-step.is-complete:not(.is-active) > span { background: #dcfce7; color: #15803d; }
.vacancy-step.is-complete:not(.is-active) strong { color: #166534; }
.vacancy-dirty-banner[hidden] { display: none !important; }
.vacancy-dirty-shortcut { margin-left: auto; }
.vacancy-dirty-shortcut kbd { white-space: nowrap; }

/* =========================================================
   AKFA Careers 3.2 — catalog, structured salary and workflow
   ========================================================= */

/* Workflow statuses */
.workflow-pill,
.role-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
}
.workflow-draft { background: #f1f5f9; border-color: #e2e8f0; color: #475569; }
.workflow-changes_requested { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.workflow-review { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.workflow-approved { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.workflow-published { background: #dcfce7; border-color: #86efac; color: #166534; }
.workflow-archived { background: #f8fafc; border-color: #cbd5e1; color: #64748b; }
.workflow-table-note {
  display: block;
  max-width: 230px;
  margin-top: 6px;
  color: #9a5b18;
  font-size: 9px;
  line-height: 1.4;
  white-space: normal;
}
.workflow-summary-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.workflow-actions { display: grid; gap: 9px; }
.workflow-actions .admin-btn.full { width: 100%; min-height: 42px; }
.approval-note {
  display: grid;
  gap: 6px;
  margin: 13px 0;
  color: #334155;
  font-size: 10px;
  font-weight: 850;
}
.approval-note textarea {
  width: 100%;
  min-height: 82px;
  padding: 10px 11px;
  border: 1px solid #dbe2ea;
  border-radius: 11px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-weight: 600;
  resize: vertical;
}
.admin-btn.success { background: #16803c; border-color: #16803c; color: #fff; }
.admin-btn.success:hover { background: #126b33; border-color: #126b33; }
.admin-btn.warning { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.admin-btn.warning:hover { background: #d97706; border-color: #d97706; }
.admin-btn.danger-outline { background: #fff; border-color: #fecaca; color: #b91c1c; }
.admin-btn.danger-outline:hover { background: #fff1f2; border-color: #fca5a5; }

/* Structured salary editor */
.structured-salary-section {
  position: relative;
  border-color: #dbeafe;
  background: linear-gradient(180deg, #fbfdff 0%, #f8fbff 100%);
}
.structured-salary-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 15px 0 0 15px;
  background: #2563eb;
}
.structured-salary,
.structured-salary-section [data-structured-salary] { min-width: 0; }
.salary-control-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.salary-control-row + .salary-control-row { margin-top: 12px; }
.salary-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px 10px;
  align-items: center;
  margin-top: 14px;
  padding: 12px 13px;
  border: 1px dashed #bfdbfe;
  border-radius: 12px;
  background: rgba(239, 246, 255, .72);
}
.salary-preview span {
  display: inline-grid;
  place-items: center;
  min-width: 27px;
  min-height: 22px;
  padding: 3px 6px;
  border-radius: 7px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 9px;
  font-weight: 900;
}
.salary-preview strong { min-width: 0; color: #0f172a; font-size: 11px; line-height: 1.45; }
.form-readonly-field {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 11px 13px;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  background: #f8fafc;
}
.form-readonly-field > span { color: #64748b; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.form-readonly-field > strong { color: #1e293b; font-size: 12px; line-height: 1.4; }
.form-readonly-field > small { color: #94a3b8; font-size: 9px; line-height: 1.35; }
.structured-salary.compact {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  background: #fafcff;
}
.vacancy-table-salary { min-width: 165px; }
.vacancy-table-salary strong { display: block; color: #0f172a; font-size: 11px; line-height: 1.4; }
.vacancy-table-salary small { display: block; margin-top: 3px; color: #94a3b8; font-size: 9px; }

/* Read-only vacancy mode */
.vacancy-editor-card.is-readonly { border-color: #dbe3ec; }
.vacancy-editor-card.is-readonly .vacancy-editor-head { background: linear-gradient(90deg, #f8fafc, #fff); }
.vacancy-form[data-readonly="1"] input:not([type="hidden"]),
.vacancy-form[data-readonly="1"] select,
.vacancy-form[data-readonly="1"] textarea,
.vacancy-form[data-readonly="1"] button[type="button"] {
  cursor: not-allowed;
}
.vacancy-form[data-readonly="1"] input:not([type="hidden"]):disabled,
.vacancy-form[data-readonly="1"] select:disabled,
.vacancy-form[data-readonly="1"] textarea:disabled {
  opacity: 1;
  color: #475569;
  background: #f8fafc;
  -webkit-text-fill-color: #475569;
}

/* Shared catalog summaries */
.category-summary-grid,
.template-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.category-summary-grid article,
.template-summary-grid article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 74px;
  padding: 15px 17px;
  border: 1px solid #e5eaf1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(15, 23, 42, .035);
}
.category-summary-grid span,
.template-summary-grid span { color: #64748b; font-size: 11px; font-weight: 850; }
.category-summary-grid strong,
.template-summary-grid strong { color: #0f172a; font-size: 25px; letter-spacing: -.035em; }

/* Category manager */
.catalog-grid { grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr); align-items: start; }
.catalog-editor-card,
.template-editor-card,
.user-editor-card { position: sticky; top: 86px; }
.category-admin-name { display: flex; align-items: center; gap: 11px; min-width: 200px; }
.category-admin-name > span {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: color-mix(in srgb, var(--category-color, #e30613) 10%, white);
  color: var(--category-color, #e30613);
  border: 1px solid color-mix(in srgb, var(--category-color, #e30613) 20%, white);
}
.category-admin-name .icon { width: 18px; height: 18px; }
.category-admin-name div { min-width: 0; }
.category-admin-name strong,
.category-admin-name small { display: block; }
.category-admin-name strong { color: #0f172a; font-size: 11px; }
.category-admin-name small { margin-top: 3px; color: #94a3b8; font-size: 9px; }
.catalog-check { min-height: 72px; align-self: end; }
.catalog-editor-card input[type="color"] { min-height: 44px; padding: 5px; cursor: pointer; }

/* Template manager */
.template-layout { grid-template-columns: minmax(0, 1.25fr) minmax(380px, .85fr); align-items: start; }
.template-source-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 15px;
  padding: 13px;
  border: 1px solid #e5eaf1;
  border-radius: 13px;
  background: #f8fafc;
}
.template-source-form label { display: grid; gap: 6px; color: #334155; font-size: 10px; font-weight: 850; }
.template-source-form select { min-height: 42px; border: 1px solid #dbe2ea; border-radius: 10px; background: #fff; padding: 0 11px; }
.template-form details {
  margin-top: 13px;
  border: 1px solid #e5eaf1;
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
}
.template-form details summary {
  padding: 13px 14px;
  cursor: pointer;
  color: #1e293b;
  font-size: 11px;
  font-weight: 900;
  list-style: none;
}
.template-form details summary::-webkit-details-marker { display: none; }
.template-form details summary::after { content: "+"; float: right; color: #94a3b8; font-size: 16px; line-height: .8; }
.template-form details[open] summary::after { content: "–"; }
.template-details-body { display: grid; gap: 12px; padding: 14px; border-top: 1px solid #edf1f5; background: #fbfcfe; }
.template-toggle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.template-toggle-grid .check-row { min-height: 58px; padding: 10px; border: 1px solid #e5eaf1; border-radius: 11px; background: #fafbfd; }

/* Users and roles */
.user-role-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.role-card {
  min-width: 0;
  min-height: 112px;
  padding: 14px;
  border: 1px solid #e5eaf1;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(15, 23, 42, .03);
}
.role-card span { display: block; color: #0f172a; font-size: 11px; font-weight: 900; }
.role-card p { margin: 7px 0 0; color: #64748b; font-size: 9px; line-height: 1.5; }
.users-layout { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); align-items: start; }
.role-pill { background: #f1f5f9; border-color: #e2e8f0; color: #475569; }
.role-administrator { background: #fff1f2; border-color: #fecdd3; color: #be123c; }
.role-hr_editor { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.role-approver { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.role-recruiter { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.role-analyst { background: #f5f3ff; border-color: #ddd6fe; color: #6d28d9; }
.users-layout .admin-table td:first-child strong,
.users-layout .admin-table td:first-child small { display: block; }
.users-layout .admin-table td:first-child small { margin-top: 4px; color: #94a3b8; font-size: 9px; }
.permission-denied { max-width: 720px; }
.permission-denied > p { color: #64748b; line-height: 1.65; }

/* Sidebar role label */
.admin-user-card .admin-user-role,
.admin-user-card small { overflow-wrap: anywhere; }

@media (max-width: 1380px) {
  .workflow-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .user-role-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .template-layout { grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); }
}

@media (max-width: 1120px) {
  .catalog-grid,
  .template-layout,
  .users-layout { grid-template-columns: 1fr; }
  .catalog-editor-card,
  .template-editor-card,
  .user-editor-card { position: static; }
  .user-role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .category-summary-grid,
  .template-summary-grid { grid-template-columns: 1fr; }
  .workflow-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .salary-control-row,
  .template-toggle-grid { grid-template-columns: 1fr; }
  .template-source-form { grid-template-columns: 1fr; }
  .template-source-form .admin-btn { width: 100%; }
  .user-role-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .workflow-summary-grid { grid-template-columns: 1fr 1fr; }
  .workflow-pill,
  .role-pill { white-space: normal; text-align: center; }
  .salary-preview { grid-template-columns: 1fr; }
  .salary-preview span { width: fit-content; }
  .category-admin-name { min-width: 160px; }
}

/* =========================================================
   AKFA Careers 4.0 — final responsive audit
   Fixes the four-element public header, tablet layouts and
   the post-application interview conversion block.
   ========================================================= */

html, body { max-width: 100%; overflow-x: clip; }

.header-tools {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}
.header-tools .language-switch { flex: 0 0 auto; margin-left: 0; }
.header-tools .header-contact { flex: 0 0 auto; }

/* Desktop: the header has exactly three grid items: logo, nav and tools. */
.pro-header .header-inner,
.header-inner {
  grid-template-columns: 170px minmax(0, 1fr) auto;
  grid-template-areas: "brand nav tools";
  gap: 20px;
}
.header-inner > .brand { grid-area: brand; }
.header-inner > .site-nav { grid-area: nav; }
.header-inner > .header-tools { grid-area: tools; }

/* Application success and interview invitation */
.candidate-success-page {
  min-height: calc(100svh - 72px);
  padding: clamp(24px, 4vh, 46px) 24px;
  align-items: center;
}
.candidate-success {
  width: min(760px, 100%);
  padding: clamp(26px, 3vw, 38px);
}
.candidate-success > p { max-width: 620px; margin-left: auto; margin-right: auto; line-height: 1.55; }
.success-interview-invite {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin: 22px 0 18px;
  padding: 20px;
  text-align: left;
  border: 1px solid rgba(227, 6, 19, .18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(227, 6, 19, .09), transparent 38%),
    linear-gradient(180deg, #fff 0%, #fff8f8 100%);
  box-shadow: 0 14px 32px rgba(227, 6, 19, .08);
}
.success-interview-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, #ef2631 0%, #e30613 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(227, 6, 19, .22);
}
.success-interview-icon .icon { width: 28px; height: 28px; }
.success-interview-copy h2 {
  margin: 0;
  color: #0b1220;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.035em;
}
.success-interview-copy p {
  margin: 8px 0 14px;
  color: #536074;
  font-size: 14px;
  line-height: 1.55;
}
.success-interview-copy small {
  display: block;
  margin-top: 8px;
  color: #7c8799;
  font-size: 11px;
  font-weight: 700;
}
.success-interview-cta {
  width: fit-content;
  min-height: 46px;
  margin-top: 0;
  padding-inline: 20px;
}
.success-interview-unavailable {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  margin: 20px 0 16px;
  padding: 14px 16px;
  text-align: left;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
}
.success-interview-unavailable .icon { width: 26px; height: 26px; color: #64748b; }
.success-interview-unavailable p { margin: 0; color: #64748b; font-size: 13px; line-height: 1.45; }
.success-secondary-actions { display: flex; justify-content: center; margin-top: 14px; }
.success-secondary-actions .secondary-cta { min-width: 250px; }

/* Landscape tablets and compact laptops: 1024–1280 px. */
@media (min-width: 981px) and (max-width: 1280px) {
  .site-header,
  .pro-header { height: 64px; }
  .header-inner,
  .pro-header .header-inner {
    height: 64px;
    grid-template-columns: 142px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 0 20px;
  }
  .brand-logo,
  .pro-header .brand-logo { width: 126px; height: 36px; }
  .site-nav,
  .pro-header .site-nav {
    justify-self: center;
    width: max-content;
    max-width: 100%;
    min-height: 40px;
    height: 40px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .nav-link,
  .pro-header .nav-link {
    min-width: 0;
    min-height: 32px;
    height: 32px;
    padding: 0 11px;
    font-size: 12.5px;
  }
  .header-tools { gap: 7px; }
  .language-switch { padding: 4px 5px; gap: 3px; }
  .language-link { min-width: 27px; min-height: 27px; }
  .header-contact {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 0;
  }
  .header-contact span { display: none; }
  .header-contact .icon { width: 30px; height: 30px; padding: 7px; }
  .site-main,
  .pro-main { margin-top: 0; border-radius: 0 0 22px 22px; }
  .pro-section-head { align-items: start; }
  .jobs-tools { width: 100%; }
  .candidate-page { min-height: calc(100svh - 64px); }
}

/* Portrait tablets: explicit two-row header instead of accidental wrapping. */
@media (min-width: 641px) and (max-width: 980px) {
  .site-header,
  .pro-header { height: auto; }
  .header-inner,
  .pro-header .header-inner {
    height: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand tools"
      "nav nav";
    gap: 10px 14px;
    padding: 11px 24px 12px;
  }
  .header-inner > .brand { align-self: center; }
  .brand-logo,
  .pro-header .brand-logo { width: 132px; height: 38px; }
  .header-tools { align-self: center; }
  .header-contact {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 0;
  }
  .header-contact span { display: none; }
  .header-contact .icon { width: 30px; height: 30px; padding: 7px; }
  .site-nav,
  .pro-header .site-nav {
    display: flex;
    justify-self: stretch;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    min-height: 42px;
    height: 42px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .nav-link,
  .pro-header .nav-link { min-width: max-content; height: 34px; min-height: 34px; padding: 0 14px; font-size: 13px; }
  .site-main,
  .pro-main { margin-top: 0; border-radius: 0; }
  .pro-hero { min-height: 360px; height: auto; padding: 34px 30px 52px; }
  .pro-hero h1 { font-size: clamp(38px, 6.5vw, 54px); max-width: 640px; }
  .pro-value-strip { width: calc(100% - 48px); }
  .pro-jobs { padding-left: 30px; padding-right: 30px; }
  .pro-section-head { display: grid; }
  .jobs-tools { width: 100%; justify-items: stretch; }
  .job-search { width: 100%; max-width: none; justify-self: stretch; }
  .filters { justify-content: flex-start; }
  .pro-jobs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pro-modal-panel { width: min(92vw, 760px); max-height: 92svh; }
  .pro-modal-panel .modal-content { max-height: 92svh; }
  .pro-modal-grid { grid-template-columns: 1fr; }
  .candidate-page { min-height: calc(100svh - 108px); padding: 24px; }
}

/* Phones and narrow tablets. Navigation stays available as a horizontal row. */
@media (max-width: 640px) {
  .site-header,
  .pro-header { height: auto; }
  .header-inner,
  .pro-header .header-inner {
    height: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand tools"
      "nav nav";
    gap: 9px 10px;
    padding: 10px 15px 11px;
  }
  .brand-logo,
  .pro-header .brand-logo { width: 122px; height: 36px; }
  .header-contact { display: none; }
  .site-nav,
  .pro-header .site-nav {
    display: flex;
    justify-self: stretch;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    height: 40px;
    min-height: 40px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .nav-link,
  .pro-header .nav-link { min-width: max-content; height: 32px; min-height: 32px; padding: 0 12px; font-size: 12px; }
  .language-switch { padding: 3px 5px; }
  .language-link { min-width: 26px; min-height: 26px; }
  .pro-hero { min-height: 390px; padding: 34px 20px 50px; background-position: 62% center; }
  .pro-hero::before { background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.91) 62%, rgba(255,255,255,.38) 100%); }
  .pro-hero h1 { font-size: clamp(34px, 10vw, 44px); }
  .pro-value-strip { width: calc(100% - 28px); }
  .pro-jobs { padding-left: 18px; padding-right: 18px; }
  .pro-jobs-grid { grid-template-columns: 1fr; }
  .candidate-page,
  .candidate-success-page { min-height: calc(100svh - 104px); padding: 16px; align-items: start; }
  .candidate-card,
  .candidate-success { padding: 22px 18px; border-radius: 20px; }
  .candidate-success-icon { margin-top: 20px; }
  .success-interview-invite { grid-template-columns: 1fr; padding: 17px; text-align: center; }
  .success-interview-icon { margin: 0 auto; }
  .success-interview-cta { width: 100%; }
  .success-secondary-actions .secondary-cta { width: 100%; min-width: 0; }
  .application-number { width: min(100%, 280px); }
  .pro-modal-panel { width: 100vw; max-height: 100svh; border-radius: 0; }
  .pro-modal-panel .modal-content { max-height: 100svh; }
}

/* Admin tablet audit: avoid horizontal overflow and collapse dense managers cleanly. */
@media (min-width: 761px) and (max-width: 1180px) {
  .admin-body { grid-template-columns: 224px minmax(0, 1fr); }
  .admin-sidebar { width: 224px; padding-inline: 12px; }
  .admin-content { padding: 20px; }
  .admin-topbar { padding-inline: 20px; }
  .admin-grid,
  .settings-grid,
  .catalog-grid,
  .template-layout,
  .users-layout { min-width: 0; }
  .admin-card { min-width: 0; }
  .admin-table-wrap { max-width: 100%; overflow-x: auto; }
}

/* Tablet audit refinements after visual regression tests. */
@media (min-width: 981px) and (max-width: 1280px) {
  .pro-header .header-contact,
  .header-tools .header-contact {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    flex: 0 0 40px;
  }
}

@media (min-width: 641px) and (max-width: 980px) {
  .pro-header .header-contact,
  .header-tools .header-contact {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    flex: 0 0 40px;
  }
  .pro-value-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px 16px;
  }
  .pro-value-strip .value-item,
  .pro-value-strip .value-item:nth-child(n) {
    min-width: 0;
    padding: 12px 14px;
    border-right: 0;
    border-bottom: 0;
  }
  .pro-value-strip .value-item:nth-child(odd) { border-right: 1px solid var(--line); }
  .pro-value-strip .value-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Correct the admin drawer breakpoint: do not reserve a hidden sidebar column. */
@media (min-width: 761px) and (max-width: 1120px) {
  .admin-body { grid-template-columns: minmax(0, 1fr); }
  .admin-sidebar {
    width: 264px;
    position: fixed;
    left: 0;
    top: 0;
    height: 100svh;
    padding: 20px 16px;
    transform: translateX(-105%);
  }
  .admin-menu-open .admin-sidebar { transform: translateX(0); }
  .admin-content { padding: 22px; }
  .admin-topbar { padding-inline: 22px; }
}

@media (min-width: 1121px) and (max-width: 1280px) {
  .admin-body { grid-template-columns: 224px minmax(0, 1fr); }
  .admin-sidebar { width: 224px; padding-inline: 12px; }
  .admin-content { padding: 22px; }
  .admin-topbar { padding-inline: 22px; }
}

/* -------------------------------------------------------------------------
   v4.1.1 improvements: simplified HR workflow + richer application form
--------------------------------------------------------------------------- */
.salary-control-row,
.vacancy-side-toggles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.salary-control-row .check-row,
.vacancy-side-toggles .check-row,
.admin-checks .check-row {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}
.salary-control-row .check-row input,
.vacancy-side-toggles .check-row input,
.admin-checks .check-row input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}
.salary-control-row .check-row span,
.vacancy-side-toggles .check-row span,
.admin-checks .check-row span { min-width: 0; display: block; }
.salary-control-row .check-row strong,
.vacancy-side-toggles .check-row strong,
.admin-checks .check-row strong { display: block; color: #0f172a; font-size: 13px; line-height: 1.2; }
.salary-control-row .check-row small,
.vacancy-side-toggles .check-row small,
.admin-checks .check-row small { display: block; margin-top: 4px; color: #64748b; font-size: 11px; line-height: 1.4; }
.vacancy-side-caption {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7f7;
  border: 1px solid rgba(227, 6, 19, .12);
  color: #7f1d1d;
  font-size: 12px;
  line-height: 1.45;
}
.candidate-card-wide {
  width: min(1040px, calc(100vw - 32px));
  padding: 28px;
}
.candidate-application-form { gap: 22px; }
.candidate-form-section {
  padding: 20px;
  border: 1px solid #e4eaf2;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}
.candidate-form-head { margin-bottom: 14px; }
.candidate-form-head h2 { margin: 0 0 6px; font-size: 18px; }
.candidate-form-head p { margin: 0; color: #64748b; font-size: 13px; line-height: 1.45; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.candidate-form-footer {
  display: grid;
  gap: 14px;
  align-items: center;
}
.consent-row {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.consent-row input { width: 18px; height: 18px; margin-top: 2px; }
.auto-redirect { align-items: center; }
.redirect-countdown {
  margin: 12px 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff1f2;
  color: #991b1b;
  font-weight: 700;
}
.redirect-countdown strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e30613;
  color: #fff;
  font-size: 16px;
}
.application-number {
  margin: 16px auto 6px;
  display: grid;
  gap: 6px;
  justify-items: center;
}
.application-number span { color: #64748b; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.application-number strong { font-size: 22px; color: #0f172a; }
.success-secondary-actions { margin-top: 18px; }
.candidate-action-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 16px;
}
.candidate-action-toolbar .admin-btn { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 920px) {
  .salary-control-row,
  .vacancy-side-toggles,
  .admin-checks { grid-template-columns: 1fr; }
  .candidate-card-wide { width: min(100vw - 20px, 900px); padding: 20px; }
}
@media (max-width: 640px) {
  .candidate-form-section { padding: 16px; border-radius: 16px; }
  .candidate-card-wide { padding: 16px; }
}

/* v4.1.1 — candidate form layout corrections */
.candidate-application-form .form-grid.two {
  align-items: start;
}
.candidate-application-form label {
  min-width: 0;
}
.candidate-application-form input,
.candidate-application-form select,
.candidate-application-form textarea {
  font-size: 15px;
}
.candidate-application-form input[type="date"] {
  min-width: 0;
}
.candidate-form-section > label + label,
.candidate-form-section .form-grid + label {
  margin-top: 14px;
}
@media (max-width: 780px) {
  .candidate-application-form .form-grid.two {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .candidate-card-wide {
    width: calc(100vw - 24px);
    margin-left: auto;
    margin-right: auto;
  }
  .candidate-form-section {
    padding: 18px;
  }
  .candidate-form-head h2 {
    font-size: 17px;
  }
}
@media (max-width: 520px) {
  .candidate-page {
    padding-left: 10px;
    padding-right: 10px;
  }
  .candidate-card-wide {
    width: 100%;
    padding: 15px;
    border-radius: 18px;
  }
  .candidate-form-section {
    padding: 14px;
  }
  .candidate-application-form input,
  .candidate-application-form select,
  .candidate-application-form textarea {
    min-height: 48px;
    font-size: 16px;
  }
  .candidate-form-footer .primary-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* v4.1.1 — application form tablet audit */
.candidate-card-wide { width: min(920px, calc(100vw - 32px)); }
.candidate-application-form input,
.candidate-application-form select,
.candidate-application-form textarea { min-width: 0; }
.candidate-application-form label { min-width: 0; }
@media (max-width: 1100px) {
  .candidate-application-form .form-grid.two,
  .candidate-application-form .form-grid.three { grid-template-columns: 1fr; }
  .candidate-page { align-items: start; padding-top: 24px; }
  .candidate-card-wide { width: min(760px, calc(100vw - 28px)); }
}
@media (max-width: 680px) {
  .candidate-page { padding: 14px 10px 28px; }
  .candidate-card-wide { width: 100%; padding: 16px; border-radius: 20px; }
  .candidate-form-section { padding: 15px; }
  .candidate-form-head h2 { font-size: 17px; }
  .candidate-form-head p { font-size: 12px; }
  .candidate-application-form input,
  .candidate-application-form select,
  .candidate-application-form textarea { font-size: 16px; }
  .candidate-form-footer .primary-cta { width: 100%; text-align: center; justify-content: center; }
}

/* -------------------------------------------------------------------------
   AKFA Careers 4.2 — configurable, tablet-first application workflow
--------------------------------------------------------------------------- */
.application-page {
  min-height: calc(100vh - 76px);
  padding: 32px 24px 56px;
  background:
    radial-gradient(circle at 10% 0%, rgba(227, 6, 19, .045), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, #f3f6fa 100%);
}
.application-shell {
  width: min(1220px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.application-summary {
  position: sticky;
  top: 92px;
  min-width: 0;
  padding: 24px;
  border: 1px solid #e1e8f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .075);
}
.application-summary-brand {
  display: inline-flex;
  margin-bottom: 26px;
}
.application-summary .eyebrow { margin: 0 0 10px; }
.application-summary-label {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.application-summary h2 {
  margin: 0 0 20px;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.application-summary-meta { display: grid; gap: 10px; }
.application-summary-meta > div {
  min-height: 44px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e8edf3;
  border-radius: 13px;
  background: #fbfcfe;
  color: #334155;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}
.application-summary-meta .icon { width: 18px; height: 18px; color: var(--red); }
.application-summary-note {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  margin-top: 18px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff1f2, #fff);
  color: #7f1d1d;
}
.application-summary-note .icon { width: 25px; height: 25px; color: var(--red); }
.application-summary-note p { margin: 0; font-size: 12px; line-height: 1.5; font-weight: 650; }
.application-autosave-state {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}
.application-autosave-state .icon { width: 16px; height: 16px; color: #16a34a; }
.application-form-card {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 28px;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .075);
}
.application-form-header { margin-bottom: 22px; }
.application-form-header h1 {
  margin: 4px 0 9px;
  color: #0f172a;
  font-size: clamp(29px, 3.2vw, 42px);
  line-height: 1.06;
  letter-spacing: -.045em;
}
.application-form-header > p:last-child {
  max-width: 720px;
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}
.application-error { margin-bottom: 18px; }
.application-progress {
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid #e6ebf2;
  border-radius: 18px;
  background: #f9fbfd;
}
.application-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: #475569;
  font-size: 12px;
}
.application-progress-top strong { color: #0f172a; }
.application-progress-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ecf2;
}
.application-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e30613, #f04438);
  transition: width .25s ease;
}
.application-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.application-step {
  min-width: 0;
  min-height: 56px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: #64748b;
  text-align: left;
  cursor: pointer;
}
.application-step:disabled { cursor: default; opacity: .55; }
.application-step span {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8edf3;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
}
.application-step strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.25;
}
.application-step.is-active {
  border-color: rgba(227, 6, 19, .16);
  background: #fff;
  color: #991b1b;
  box-shadow: 0 7px 18px rgba(227, 6, 19, .07);
}
.application-step.is-active span { background: var(--red); color: #fff; }
.application-step.is-complete span { background: #dcfce7; color: #15803d; }
.application-step-panel {
  padding: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
  animation: applicationStepIn .2s ease;
}
.application-step-panel[hidden] { display: none !important; }
@keyframes applicationStepIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.application-step-head { margin-bottom: 20px; }
.application-step-head > span {
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.application-step-head h2 {
  margin: 5px 0 6px;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.2;
}
.application-step-head p {
  max-width: 660px;
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}
.candidate-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.candidate-field {
  min-width: 0;
  display: grid !important;
  align-content: start;
  gap: 7px;
}
.candidate-field-full { grid-column: 1 / -1; }
.candidate-field-label {
  min-height: 19px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: #172033;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
}
.candidate-field-label .required { color: var(--red); }
.optional-badge {
  padding: 2px 6px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 9px;
  font-weight: 750;
}
.candidate-field input,
.candidate-field select,
.candidate-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d7e0ea;
  border-radius: 13px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.candidate-field textarea { min-height: 104px; resize: vertical; }
.candidate-field input:focus,
.candidate-field select:focus,
.candidate-field textarea:focus {
  border-color: rgba(227, 6, 19, .65);
  box-shadow: 0 0 0 4px rgba(227, 6, 19, .08);
}
.candidate-field input:invalid:not(:placeholder-shown),
.candidate-field select:invalid:not(:focus) { border-color: #fca5a5; }
.candidate-field-help {
  min-height: 0;
  color: #94a3b8;
  font-size: 10.5px;
  line-height: 1.4;
}
.application-step-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #edf0f4;
}
.application-step-actions .primary-cta,
.application-step-actions .secondary-cta {
  min-width: 178px;
  min-height: 48px;
  margin: 0;
  justify-content: center;
}
.application-consent {
  margin-top: 22px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}
.success-vacancy-name {
  display: inline-flex;
  margin: 8px auto 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

/* Admin form builder */
.form-builder { gap: 18px; padding-bottom: 84px; }
.form-builder-intro { overflow: visible; }
.form-builder-head-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }
.form-builder-notice {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #eff6ff;
}
.form-builder-notice .icon { width: 25px; height: 25px; color: #2563eb; }
.form-builder-notice strong { display: block; color: #1e3a8a; }
.form-builder-notice p { margin: 3px 0 0; color: #475569; font-size: 12px; }
.form-builder-group { padding: 0; overflow: hidden; }
.form-builder-group > summary,
.form-builder-section > summary,
.form-builder-field > summary {
  list-style: none;
  cursor: pointer;
}
.form-builder-group > summary::-webkit-details-marker,
.form-builder-section > summary::-webkit-details-marker,
.form-builder-field > summary::-webkit-details-marker { display: none; }
.form-builder-group > summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
}
.form-builder-group > summary strong { display: block; font-size: 17px; }
.form-builder-group > summary span { display: block; margin-top: 4px; color: #64748b; font-size: 12px; }
.form-builder-group > summary .icon { width: 20px; height: 20px; transition: transform .18s ease; }
.form-builder-group[open] > summary .icon { transform: rotate(180deg); }
.form-builder-group-body { padding: 0 22px 22px; display: grid; gap: 18px; }
.form-builder-group-body .admin-fieldset { margin: 0; }
.form-builder-toggle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.form-builder-toggle-grid .check-row,
.form-builder-field-controls .check-row,
.form-builder-section-settings .check-row {
  min-height: 68px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #fff;
}
.form-builder-small-field { width: min(280px, 100%); }
.form-builder-catalog { padding: 20px; }
.form-builder-sections { display: grid; gap: 14px; }
.form-builder-section {
  overflow: hidden;
  border: 1px solid #dfe6ee;
  border-radius: 17px;
  background: #fbfcfe;
}
.form-builder-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  background: #fff;
}
.form-builder-section-summary { display: flex; align-items: center; gap: 12px; min-width: 0; }
.form-builder-section-summary strong { display: block; color: #0f172a; }
.form-builder-section-summary small { display: block; margin-top: 3px; color: #94a3b8; }
.form-builder-section-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff1f2;
  color: var(--red);
  font-weight: 900;
}
.form-builder-section > summary > .icon,
.form-builder-field > summary .icon { width: 18px; height: 18px; transition: transform .18s ease; }
.form-builder-section[open] > summary > .icon,
.form-builder-field[open] > summary .icon { transform: rotate(180deg); }
.form-builder-section-body { display: grid; gap: 16px; padding: 16px; border-top: 1px solid #e5eaf1; }
.form-builder-section-settings {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 160px;
  gap: 12px;
  align-items: end;
}
.form-builder-fields { display: grid; gap: 10px; }
.form-builder-field {
  border: 1px solid #e4e9f0;
  border-radius: 14px;
  background: #fff;
}
.form-builder-field > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
}
.form-builder-field > summary strong { display: block; color: #172033; font-size: 13px; }
.form-builder-field > summary small { display: block; margin-top: 3px; color: #94a3b8; font-size: 10px; }
.form-builder-field-flags { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.system-lock {
  padding: 4px 7px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 9px;
  font-weight: 850;
}
.form-builder-field-body { display: grid; gap: 14px; padding: 14px; border-top: 1px solid #edf0f4; }
.form-builder-field-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form-builder-sticky-actions {
  position: fixed;
  z-index: 30;
  right: 28px;
  bottom: 18px;
  max-width: calc(100vw - 340px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px 12px 18px;
  border: 1px solid #dfe6ee;
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 42px rgba(15,23,42,.14);
}
.form-builder-sticky-actions span { color: #64748b; font-size: 12px; }
.form-builder-reset-form { margin-top: 10px; text-align: right; }

@media (max-width: 1180px) {
  .application-shell { grid-template-columns: 270px minmax(0, 1fr); gap: 18px; }
  .application-summary { padding: 20px; }
  .application-stepper { grid-template-columns: repeat(5, 150px); overflow-x: auto; padding-bottom: 4px; }
  .form-builder-toggle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-builder-sticky-actions { max-width: calc(100vw - 36px); right: 18px; left: 18px; }
}
@media (max-width: 1024px) {
  .application-page { padding: 22px 16px 46px; }
  .application-shell { grid-template-columns: 1fr; }
  .application-summary {
    position: static;
    display: grid;
    grid-template-columns: minmax(150px, .7fr) minmax(0, 1.3fr);
    gap: 18px;
    align-items: start;
  }
  .application-summary-brand,
  .application-summary .eyebrow,
  .application-summary-label,
  .application-summary h2 { grid-column: 1; }
  .application-summary-meta,
  .application-summary-note,
  .application-autosave-state { grid-column: 2; }
  .application-summary-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .candidate-field-grid { grid-template-columns: 1fr; }
  .candidate-field-full { grid-column: auto; }
  .form-builder-section-settings { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .application-page { padding: 14px 10px 34px; }
  .application-summary { display: block; border-radius: 18px; padding: 18px; }
  .application-summary-brand { margin-bottom: 16px; }
  .application-summary-meta { grid-template-columns: 1fr 1fr; }
  .application-form-card { padding: 18px; border-radius: 18px; }
  .application-progress { padding: 13px; }
  .application-stepper { display: flex; gap: 7px; }
  .application-step { flex: 0 0 54px; min-height: 46px; grid-template-columns: 1fr; justify-items: center; padding: 7px; }
  .application-step strong { display: none; }
  .application-step-panel { padding: 16px; border-radius: 16px; }
  .candidate-field input,
  .candidate-field select,
  .candidate-field textarea { font-size: 16px; }
  .application-step-actions { grid-template-columns: 1fr; }
  .application-step-actions > span { display: none; }
  .application-step-actions .primary-cta,
  .application-step-actions .secondary-cta { width: 100%; min-width: 0; }
  .form-builder-head-actions { justify-content: flex-start; }
  .form-builder-toggle-grid,
  .form-builder-field-controls { grid-template-columns: 1fr; }
  .form-builder-group > summary,
  .form-builder-group-body,
  .form-builder-catalog { padding-left: 14px; padding-right: 14px; }
  .form-builder-field > summary { align-items: flex-start; }
  .form-builder-field-flags { justify-content: flex-end; }
  .form-builder-sticky-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .form-builder-sticky-actions .admin-btn { width: 100%; }
}
@media (max-width: 480px) {
  .application-summary-meta { grid-template-columns: 1fr; }
  .application-form-card { padding: 14px; }
  .application-step-panel { padding: 14px; }
  .application-form-header h1 { font-size: 28px; }
}

/* 4.2 compact tablet summary and stepper refinement */
@media (max-width: 1024px) {
  .application-summary { display: block; }
  .application-summary-brand { margin-bottom: 14px; }
  .application-summary h2 { margin-bottom: 14px; }
  .application-summary-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .application-stepper { grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; }
  .application-step { min-height: 46px; grid-template-columns: 1fr; justify-items: center; padding: 7px; }
  .application-step strong { display: none; }
}
@media (max-width: 760px) {
  .application-summary-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .application-summary-meta { grid-template-columns: 1fr; }
}
.application-summary-meta > div[hidden] { display: none !important; }

/* Keep the closed admin drawer completely outside narrow viewports. */
@media (max-width: 1120px) {
  .admin-sidebar {
    transform: translateX(-120%);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .18s ease, visibility .18s ease;
  }
  .admin-menu-open .admin-sidebar {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
}

/* AKFA 4.2.5: supplied white admin logo on the login card. */
.login-brand:has(.admin-brand-logo) {
  width: fit-content;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 15px;
  background: linear-gradient(135deg, #111827, #080d17);
  box-shadow: 0 10px 26px rgba(15,23,42,.16);
}
.login-brand .admin-brand-logo {
  width: 166px;
  height: 38px;
  display: block;
}
.login-brand .admin-brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

/* AKFA Careers 4.2.5 — official logo on administrator login */
.admin-login-brand {
  width: min(100%, 230px);
  min-height: 66px;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #101827, #080d17);
  box-shadow: 0 14px 28px rgba(2,6,23,.16);
}
.admin-login-brand .admin-sidebar-logo { width: 100%; display: block; line-height: 0; }
.admin-login-brand .admin-sidebar-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 44px;
  object-fit: contain;
  object-position: left center;
}

/* AKFA Careers 5.2.0 — Telegram assistant after application */
.success-telegram-invite{display:grid;grid-template-columns:54px minmax(0,1fr);gap:16px;align-items:start;margin:20px 0;padding:18px;border:1px solid #b8d7ff;border-radius:18px;background:linear-gradient(145deg,#f2f8ff,#fff);text-align:left}.success-telegram-icon{width:52px;height:52px;display:flex;align-items:center;justify-content:center;border-radius:16px;background:#229ed9;color:#fff}.success-telegram-icon .icon{width:27px;height:27px}.success-telegram-invite h2{margin:0;color:#111827;font-size:18px}.success-telegram-invite p{margin:7px 0;color:#5d6b7f;font-size:13px;line-height:1.5}.success-telegram-invite small{display:block;margin-top:9px;color:#8490a1;font-size:10px}.success-telegram-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:13px}.telegram-assistant-btn{margin:0!important;min-height:44px}.success-telegram-actions .primary-cta{background:#229ed9;box-shadow:0 10px 24px rgba(34,158,217,.22)}
@media(max-width:640px){.success-telegram-invite{grid-template-columns:1fr;text-align:center}.success-telegram-icon{margin:auto}.success-telegram-actions{display:grid}.telegram-assistant-btn{width:100%}}

/* Telegram status inside candidate management (v5.2.0) */
.candidate-telegram-pill {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 5px 8px;
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  color: #64748b;
  background: #f8fafc;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}
.candidate-telegram-pill .icon { width: 13px; height: 13px; }
.candidate-telegram-pill.is-connected {
  color: #0f766e;
  border-color: #99f6e4;
  background: #f0fdfa;
}
.candidate-telegram-pill.is-connected:hover { transform: translateY(-1px); box-shadow: 0 7px 16px rgba(13,148,136,.10); }
.candidate-telegram-workspace {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  background: linear-gradient(135deg,#f8fafc,#fff);
}
.candidate-telegram-workspace > div { min-width: 0; display: flex; align-items: center; gap: 12px; }
.candidate-telegram-workspace > div > span {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #ede9fe;
  color: #6d28d9;
}
.candidate-telegram-workspace .icon { width: 20px; height: 20px; }
.candidate-telegram-workspace strong { display: block; color: #0f172a; font-size: 13px; }
.candidate-telegram-workspace p { margin: 4px 0 0; color: #64748b; font-size: 11px; line-height: 1.45; }
.candidate-telegram-workspace.is-connected { border-color: #99f6e4; background: linear-gradient(135deg,#f0fdfa,#fff); }
.candidate-telegram-workspace.is-connected > div > span { background: #ccfbf1; color: #0f766e; }
.tg-invite-page { max-width: 980px; margin: 0 auto; }
.tg-invite-notice,
.tg-invite-connected {
  margin-bottom: 16px;
  padding: 15px 16px;
  border: 1px solid #c7d2fe;
  border-radius: 16px;
  background: #eef2ff;
}
.tg-invite-notice strong,
.tg-invite-connected strong { display: block; color: #1e1b4b; }
.tg-invite-notice p,
.tg-invite-connected p { margin: 5px 0 0; color: #475569; line-height: 1.55; }
.tg-invite-option {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
}
.tg-invite-option strong { color: #0f172a; font-size: 15px; }
.tg-invite-option p { margin: 4px 0 0; color: #64748b; font-size: 12px; line-height: 1.5; }
.tg-invite-option input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #dbe4ef; border-radius: 12px; background: #f8fafc; color: #334155; }
@media (max-width: 720px) {
  .candidate-telegram-workspace { align-items: stretch; flex-direction: column; }
  .candidate-telegram-workspace .admin-btn { width: 100%; }
}
