@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&family=Inter:wght@400;500;600&family=Unbounded:wght@700&display=swap');

:root {
  --primary:            #4977ea;
  --primary-dark:       #3058c1;
  --primary-light:      #dce5fb;
  --primary-lighter:    #eef3fc;
  --bg:                 #fff;
  --bg-subtle:          #f5f6fa;
  --text:               #0e0e0f;
  --text-secondary:     #3d454e;
  --text-hint:          #858a8f;
  --text-muted:         #a1afbf;
  --border:             #e6e9f0;
  --outline:            #cad4db;
  --success:            #28a745;
  --warning:            #facf3d;
  --danger:             #f33a45;
  --radius-sm:          8px;
  --radius:             12px;
  --radius-lg:          20px;
  --shadow-sm:          0 2px 8px rgba(87,87,87,.10);
  --shadow:             0 4px 20px rgba(87,87,87,.15);
  --shadow-lg:          0 8px 40px rgba(87,87,87,.18);
  --font-main:          "Montserrat", sans-serif;
  --font-body:          "Inter", sans-serif;
  --font-brand:         "Unbounded", "Arial", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); }

/* ── HEADER ──────────────────────────────────────────────── */
.header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  position: sticky; top: 0; z-index: 100;
}
.header-brand {
  font-family: var(--font-brand); font-size: 1.25rem; font-weight: 700;
  color: var(--primary); display: flex; align-items: center; gap: 8px;
  white-space: nowrap; text-decoration: none;
}
.header-brand:hover { text-decoration: none; }
.header-nav { display: flex; align-items: center; gap: 28px; flex: 1; }
.header-nav a {
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  padding: 4px 0; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s; text-decoration: none;
}
.header-nav a:hover, .header-nav a.active { color: var(--primary); border-color: var(--primary); }
.header-right { display: flex; align-items: center; gap: 12px; }
.header-user {
  font-size: 0.82rem; color: var(--text-hint);
  max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: none; border-radius: 24px; padding: 10px 22px;
  font-size: .88rem; font-weight: 600; cursor: pointer; transition: all .2s; line-height: 1;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 12px rgba(73,119,234,.25); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(73,119,234,.4); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 7px 16px; font-size: .8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ── CONTAINER ───────────────────────────────────────────── */
.container { max-width: 980px; margin: 0 auto; padding: 0 40px; }

/* ── BADGES ──────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; border-radius: 20px;
  padding: 3px 11px; font-size: .73rem; font-weight: 600; white-space: nowrap;
}
.badge-new   { border: 1.5px solid var(--primary); color: var(--primary); background: transparent; }
.badge-compat { background: var(--primary-light); color: var(--primary-dark); }
.badge-compat.high { background: #d4edda; color: #155724; }
.badge-compat.mid  { background: #fff3cd; color: #856404; }
.badge-compat.low  { background: #f8d7da; color: #721c24; }

/* ── VACANCY LIST (Sovcombank-style) ─────────────────────── */
.vl-toolbar {
  padding: 24px 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.vl-count { font-size: .95rem; color: var(--text-secondary); }
.vl-count strong { font-weight: 700; color: var(--text); }
.vl-filters { display: flex; gap: 10px; }

.vacancy-item {
  padding: 20px 0; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .15s; position: relative;
}
.vacancy-item:first-of-type { border-top: 1px solid var(--border); }
.vacancy-item-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.vacancy-item-main { flex: 1; min-width: 0; }
.vacancy-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.vacancy-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 5px; }
.vacancy-title {
  font-family: var(--font-main); font-size: 1.05rem; font-weight: 700; color: var(--text);
  transition: color .2s;
}
.vacancy-item:hover .vacancy-title { color: var(--primary); }
.vacancy-meta {
  display: flex; flex-wrap: wrap; font-size: .84rem;
  color: var(--text-hint); line-height: 1.55;
}
.vacancy-meta-item + .vacancy-meta-item::before { content: " • "; color: var(--outline); }
.vacancy-salary { font-size: .88rem; font-weight: 600; color: var(--success); }

/* Expanded accordion */
.vacancy-expanded {
  display: none; padding: 18px 0 6px;
  border-top: 1px dashed var(--border); margin-top: 14px;
  animation: fadeIn .2s ease;
}
.vacancy-item.open .vacancy-expanded { display: block; }
.vacancy-exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ve-section-title {
  font-size: .78rem; font-weight: 700; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 7px;
}
.ve-text { font-size: .875rem; color: var(--text-secondary); line-height: 1.75; }
.ve-text li { margin-left: 16px; margin-bottom: 3px; }
.ve-desc { font-size: .875rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.ve-actions { display: flex; gap: 10px; margin-top: 16px; }

/* Skill chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip { background: var(--primary-light); color: var(--primary-dark); border-radius: var(--radius-sm); padding: 4px 10px; font-size: .78rem; font-weight: 500; }
.chip-gray { background: var(--bg-subtle); color: var(--text-secondary); }

/* Mini compat bars inside list row */
.compat-mini { display: flex; flex-direction: column; gap: 4px; min-width: 120px; }
.compat-bar-row { display: flex; align-items: center; gap: 6px; }
.compat-bar-label { font-size: .7rem; color: var(--text-hint); width: 54px; text-align: right; }
.compat-bar-track { flex: 1; height: 5px; background: var(--bg-subtle); border-radius: 3px; overflow: hidden; }
.compat-bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--primary), #92adf2); transition: width .8s ease; }

/* ── TINDER ──────────────────────────────────────────────── */
.tinder-page {
  min-height: calc(100vh - 64px); background: var(--bg-subtle);
  display: flex; flex-direction: column; align-items: center; padding: 28px 24px 48px;
}
.tinder-topbar {
  width: 100%; max-width: 460px;
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;
}
.tinder-prog-wrap { flex: 1; margin: 0 14px; }
.tinder-prog-label { font-size: .75rem; color: var(--text-hint); text-align: center; margin-bottom: 4px; }
.tinder-prog-track { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.tinder-prog-fill  { height: 100%; background: linear-gradient(90deg, var(--primary), #92adf2); border-radius: 2px; transition: width .4s ease; }

/* Card stack */
.card-stack { position: relative; width: 100%; max-width: 440px; height: 510px; margin-bottom: 24px; }
.v-card {
  position: absolute; width: 100%; bottom: 0;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.v-card.ghost-2 { width: 88%; left: 6%; transform: translateY(-14px) scale(.88); z-index: 0; background: #d9e3f8; height: 56px; pointer-events: none; border-radius: var(--radius-lg); }
.v-card.ghost-1 { width: 94%; left: 3%; transform: translateY(-7px) scale(.94); z-index: 1; background: #e8edf8; height: 80px; pointer-events: none; border-radius: var(--radius-lg); }
.v-card.top-card {
  z-index: 3; padding: 26px 26px 22px;
  cursor: grab; user-select: none; touch-action: none;
  transition: box-shadow .2s;
}
.v-card.top-card:active { cursor: grabbing; }
.v-card.top-card.dragging { transition: none; box-shadow: 0 24px 60px rgba(0,0,0,.22); }

/* Swipe badges */
.swipe-badge {
  position: absolute; top: 26px; border: 3.5px solid; border-radius: var(--radius-sm);
  padding: 5px 12px; font-size: 1.1rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; opacity: 0; transition: opacity .12s; pointer-events: none; z-index: 10;
}
.swipe-badge.like { right: 22px; color: var(--success); border-color: var(--success); transform: rotate(12deg); }
.swipe-badge.nope { left: 22px; color: var(--danger); border-color: var(--danger); transform: rotate(-12deg); }

/* Card content */
.card-match-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, #f33a45, #4977ea);
  color: #fff; border-radius: 20px; padding: 4px 13px;
  font-size: .82rem; font-weight: 700; margin-bottom: 12px;
}
.card-distance-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(0,0,0,.06);
  color: #e6005c;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.card-city {
  font-size: .82rem;
  color: var(--text-hint);
  font-weight: 600;
  margin-top: -6px;
  margin-bottom: 8px;
}
.card-title { font-family: var(--font-main); font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; }
.card-salary { font-size: .95rem; font-weight: 600; color: var(--success); margin-bottom: 11px; }
.card-desc {
  font-size: .865rem; color: var(--text-hint); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px;
}
.card-stats-row {
  display: flex; align-items: center; gap: 14px;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.card-donut-wrap { flex-shrink: 0; position: relative; width: 72px; height: 72px; }
.card-donut-wrap canvas { position: absolute; inset: 0; }
.card-donut-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; color: var(--primary);
}
.card-mini-bars { flex: 1; }
.cmb-row { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.cmb-label { font-size: .7rem; color: var(--text-hint); width: 48px; }
.cmb-track { flex: 1; height: 5px; background: var(--bg-subtle); border-radius: 3px; overflow: hidden; }
.cmb-fill  { height: 100%; border-radius: 3px; background: var(--primary); transition: width .8s ease; }
.cmb-val   { font-size: .7rem; font-weight: 600; color: var(--text-secondary); width: 30px; text-align: right; }

/* Action buttons */
.tinder-actions { display: flex; align-items: center; gap: 18px; }
.tinder-btn {
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%; cursor: pointer; transition: all .2s; font-size: 1.3rem;
}
.tinder-btn-reject { width: 58px; height: 58px; background: #fff; border: 2.5px solid var(--danger); color: var(--danger); box-shadow: var(--shadow-sm); }
.tinder-btn-reject:hover { background: var(--danger); color: #fff; transform: scale(1.1); }
.tinder-btn-info  { width: 44px; height: 44px; background: #fff; border: 2px solid var(--border); color: var(--text-hint); font-size: 1.05rem; box-shadow: var(--shadow-sm); }
.tinder-btn-info:hover  { border-color: var(--primary); color: var(--primary); }
.tinder-btn-apply { width: 70px; height: 70px; background: linear-gradient(135deg, #f33a45, #4977ea); color: #fff; font-size: 1.6rem; box-shadow: 0 6px 24px rgba(73,119,234,.4); }
.tinder-btn-apply:hover { transform: scale(1.12); box-shadow: 0 8px 32px rgba(73,119,234,.55); }
.tinder-hint { font-size: .78rem; color: var(--text-muted); margin-top: 14px; }

/* ── VACANCY DETAIL ──────────────────────────────────────── */
.vd-hero { background: var(--bg); border-bottom: 1px solid var(--border); padding: 28px 0 22px; }
.vd-breadcrumb { display: flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--text-hint); margin-bottom: 14px; }
.vd-breadcrumb a { color: var(--primary); }
.vd-breadcrumb-sep { color: var(--outline); }
.vd-title { font-family: var(--font-main); font-size: 1.75rem; font-weight: 800; margin-bottom: 10px; }
.vd-meta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.vd-salary { font-size: 1.05rem; font-weight: 700; color: var(--success); }
.vd-location { font-size: .88rem; color: var(--text-hint); }
.vd-actions { display: flex; gap: 10px; margin-top: 18px; }
.vd-grid { display: grid; grid-template-columns: 1fr 320px; gap: 28px; padding: 24px 0 52px; align-items: start; }
.vd-section { margin-bottom: 16px; background: var(--bg); border-radius: var(--radius); padding: 20px 22px; border: 1px solid var(--border); }
.vd-section-title { font-family: var(--font-main); font-size: .92rem; font-weight: 700; margin-bottom: 12px; color: var(--text); display: flex; align-items: center; gap: 7px; }
.vd-text { font-size: .875rem; color: var(--text-secondary); line-height: 1.8; }
.vd-text li { margin-left: 16px; margin-bottom: 3px; }

/* Side compatibility card */
.vd-side-card { background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border); padding: 22px; position: sticky; top: 76px; }
.vd-compat-center { text-align: center; padding: 10px 0 6px; }
.vd-compat-number { font-family: var(--font-brand); font-size: 2.8rem; font-weight: 700; color: var(--primary); line-height: 1; }
.vd-compat-label { font-size: .8rem; color: var(--text-hint); margin-top: 4px; }
.vd-radar-wrap { position: relative; height: 220px; margin: 10px 0; }
.vd-bars { margin: 4px 0 14px; }
.vd-bar-item { margin-bottom: 9px; }
.vd-bar-label-row { display: flex; justify-content: space-between; font-size: .78rem; color: var(--text-hint); margin-bottom: 3px; }
.vd-bar-track { height: 7px; background: var(--bg-subtle); border-radius: 4px; overflow: hidden; }
.vd-bar-fill  { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--primary), #92adf2); transition: width 1s ease; }
.vd-recs { padding-top: 14px; border-top: 1px solid var(--border); margin-top: 6px; }
.vd-recs-title { font-size: .82rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 9px; }
.vd-rec-item { font-size: .82rem; color: var(--text-secondary); line-height: 1.6; padding: 5px 0; border-bottom: 1px dashed var(--border); }
.vd-rec-item:last-child { border-bottom: none; }

/* ── LOGIN ───────────────────────────────────────────────── */
.login-wrap { min-height: 100vh; background: var(--bg-subtle); display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { background: var(--bg); border-radius: 20px; padding: 48px 40px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); text-align: center; }
.login-icon  { font-size: 3.2rem; margin-bottom: 2px; }
.login-title { font-family: var(--font-brand); font-size: 1.9rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.login-subtitle { font-size: .88rem; color: var(--text-hint); margin-bottom: 34px; }
.login-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px 18px; border-radius: var(--radius);
  background: var(--bg); border: 1.5px solid var(--border);
  font-size: .9rem; font-weight: 500; color: var(--text);
  cursor: pointer; margin-bottom: 10px; transition: all .2s; font-family: var(--font-body);
}
.login-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-lighter); }
.login-btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 3px 14px rgba(73,119,234,.3); }
.login-btn.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 6px 0 8px; color: var(--text-muted); font-size: .78rem; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ── MODAL ───────────────────────────────────────────────── */
.modal-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.46);
  z-index: 200; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--bg); border-radius: 18px; padding: 28px 28px 24px;
  width: 100%; max-width: 520px; max-height: 80vh; overflow-y: auto;
  position: relative; animation: modalIn .2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-title { font-family: var(--font-main); font-size: 1.15rem; font-weight: 700; margin-bottom: 18px; }
.modal-close { position: absolute; top: 14px; right: 14px; background: none; border: none; font-size: 1.2rem; color: var(--text-hint); cursor: pointer; padding: 4px; line-height: 1; }
.modal-close:hover { color: var(--text); }

/* Candidate items in login modal */
.cand-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: var(--radius); border: 1.5px solid var(--border);
  margin-bottom: 8px; cursor: pointer; transition: all .2s;
}
.cand-item:hover { border-color: var(--primary); background: var(--primary-lighter); }
.cand-name  { font-weight: 600; font-size: .88rem; margin-bottom: 3px; }
.cand-meta  { font-size: .78rem; color: var(--text-hint); }
.cand-skills{ font-size: .76rem; color: var(--primary); margin-top: 3px; }

/* ── FORMS ───────────────────────────────────────────────── */
.form-group   { margin-bottom: 14px; }
.form-label   { display: block; font-size: .83rem; font-weight: 600; margin-bottom: 5px; color: var(--text-secondary); }
.form-input, .form-textarea {
  width: 100%; padding: 9px 13px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .88rem; color: var(--text); background: var(--bg); transition: border-color .2s; outline: none;
}
.form-input:focus, .form-textarea:focus { border-color: var(--primary); }
.form-textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.form-hint { font-size: .75rem; color: var(--text-hint); margin-top: 3px; }
.file-drop {
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 20px;
  text-align: center; cursor: pointer; transition: all .2s; margin-bottom: 10px;
}
.file-drop:hover, .file-drop.dragover { border-color: var(--primary); background: var(--primary-lighter); }
.file-drop-icon { font-size: 1.7rem; margin-bottom: 6px; }
.file-drop-text { font-size: .82rem; color: var(--text-hint); }
.file-drop-text strong { color: var(--primary); }

/* ── HR ANALYTICS ────────────────────────────────────────── */
.hr-page { padding: 32px 0 52px; }
.hr-select-row { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.hr-select { padding: 9px 13px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .88rem; font-family: var(--font-body); background: var(--bg); outline: none; cursor: pointer; }
.hr-select:focus { border-color: var(--primary); }
.hr-grid-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hr-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow-sm);
}
.hr-card:hover { border-color: rgba(73,119,234,.35); box-shadow: var(--shadow); }
.hr-card-title {
  display: block;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: .96rem;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 6px;
  text-decoration: none;
}
.hr-card-title:hover { color: var(--primary); text-decoration: underline; }
.hr-card-meta { font-size: .82rem; color: var(--text-hint); margin-bottom: 10px; }
.hr-card-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.hr-mini { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.hr-mini-row { display: flex; align-items: center; gap: 8px; }
.hr-mini-label { width: 62px; font-size: .78rem; color: var(--text-hint); font-weight: 700; }
.hr-mini-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: auto; }

.hr-table td { line-height: 1.35; }

@media (max-width: 980px) {
  .hr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hr-grid { grid-template-columns: 1fr; }
}
.hr-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.hr-table th { text-align: left; padding: 9px 13px; background: var(--bg-subtle); font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-hint); border-bottom: 2px solid var(--border); }
.hr-table td { padding: 12px 13px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.hr-table tr:hover td { background: var(--primary-lighter); }
.hr-rank { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 700; font-size: .78rem; }
.hr-rank-1 { background: #ffd700; color: #6a5000; }
.hr-rank-2 { background: #c0c0c0; color: #444; }
.hr-rank-3 { background: #cd7f32; color: #5a2a00; }
.hr-rank-n { background: var(--bg-subtle); color: var(--text-hint); }
.hr-score-bar { display: flex; align-items: center; gap: 8px; }
.hr-score-track { flex: 1; height: 6px; background: var(--bg-subtle); border-radius: 3px; overflow: hidden; }
.hr-score-fill  { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--primary), #92adf2); transition: width .8s ease; }
.hr-score-val { font-weight: 700; color: var(--primary-dark); width: 38px; text-align: right; font-size: .82rem; }

/* ── TOAST ───────────────────────────────────────────────── */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--text); color: #fff; border-radius: var(--radius); padding: 11px 18px; font-size: .88rem; font-weight: 500; max-width: 340px; box-shadow: var(--shadow); animation: toastIn .3s ease, toastOut .3s ease 2.7s forwards; display: flex; align-items: center; gap: 9px; }
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
.toast.warning { background: #856404; }
@keyframes toastIn  { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(8px); } }

/* ── MISC ────────────────────────────────────────────────── */
.spinner { width: 30px; height: 30px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-center { display: flex; flex-direction: column; align-items: center; padding: 56px; gap: 14px; color: var(--text-hint); }
.empty-state  { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 72px 24px; color: var(--text-hint); }
.empty-icon   { font-size: 3rem; margin-bottom: 14px; }
.empty-title  { font-family: var(--font-main); font-size: 1.15rem; font-weight: 700; margin-bottom: 7px; color: var(--text); }
.empty-text   { font-size: .88rem; margin-bottom: 22px; }
.hidden { display: none !important; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeIn .22s ease; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .header { padding: 0 16px; }
  .container { padding: 0 16px; }
  .vd-grid { grid-template-columns: 1fr; }
  .vacancy-exp-grid { grid-template-columns: 1fr; }
  .card-stack { height: 460px; }
  .v-card.top-card { padding: 18px; }
  .card-title { font-size: 1.2rem; }
  .login-card { padding: 32px 22px; }
  .vd-side-card { position: static; }
}
