/* ============================================================
   auth.css — Login / Register modal, Dashboards, Jobs, Toasts,
              WhatsApp button, Forms, Tables. Layered on top of
              the corporate-blue site.css theme.
   ============================================================ */

/* ── Toast notifications ────────────────────────────── */
.toast-stack {
  position: fixed; top: 80px; right: 20px; z-index: 1100;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
  max-width: calc(100vw - 40px);
}
.toast {
  background: #fff; color: var(--c-ink);
  padding: 14px 20px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  display: flex; gap: 12px; align-items: flex-start;
  min-width: 280px; max-width: 380px;
  font-size: 14px;
  pointer-events: auto;
  border-left: 4px solid var(--c-blue);
  transform: translateX(120%);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), opacity .25s;
}
.toast.is-in { transform: translateX(0); opacity: 1; }
.toast.is-out { transform: translateX(40%); opacity: 0; }
.toast.success { border-left-color: var(--c-success); }
.toast.error { border-left-color: var(--c-danger); }
.toast.warning { border-left-color: var(--c-warning); }
.toast .icon { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--c-blue); color: #fff; font-weight: 700; font-size: 13px; }
.toast.success .icon { background: var(--c-success); }
.toast.error .icon { background: var(--c-danger); }
.toast.warning .icon { background: var(--c-warning); }
.toast .body { flex: 1; line-height: 1.4; }
.toast .title { font-weight: 600; margin-bottom: 2px; }
.toast .msg { color: var(--c-ink-2); font-size: 13px; }
.toast .close { background: transparent; border: 0; color: var(--c-ink-2); padding: 0; line-height: 1; font-size: 18px; opacity: 0.5; }
.toast .close:hover { opacity: 1; }

/* ── Login / Register modal ─────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(10,15,28,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility 0s linear .25s;
}
.modal-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .25s; }

.modal {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 40px 80px -20px rgba(15,40,143,0.45), 0 12px 24px rgba(10,15,28,0.12);
  width: 100%; max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow: hidden;
  display: flex; flex-direction: column;
  transform: translateY(20px) scale(0.96);
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.modal-backdrop.is-open .modal { transform: translateY(0) scale(1); }

.modal-head {
  position: relative;
  padding: 28px 32px 0;
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-deep) 100%);
  color: #fff;
  padding-bottom: 28px;
}
.modal-head::before {
  content: '';
  position: absolute; top: -50%; right: -20%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(93,163,240,0.25) 0%, transparent 60%);
  pointer-events: none;
  filter: blur(8px);
}
.modal-head .brand-row { display: flex; align-items: center; gap: 12px; position: relative; }
.modal-head .brand-row img { width: 36px; height: 36px; background: #fff; padding: 4px; border-radius: 6px; object-fit: contain; }
.modal-head .brand-row span { font-family: var(--f-display); font-weight: 800; font-size: 16px; letter-spacing: 0.01em; }
.modal-head h2 { font-family: var(--f-display); font-weight: 800; font-size: 26px; margin: 18px 0 4px; line-height: 1.15; color: #fff; letter-spacing: -0.01em; position: relative; }
.modal-head p { color: var(--c-gold-soft); font-size: 13px; margin: 0; position: relative; }
.modal-head .close { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; width: 32px; height: 32px; border-radius: 50%; padding: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: background .2s; z-index: 2; }
.modal-head .close:hover { background: rgba(255,255,255,0.2); }

/* Tabs */
.modal-tabs {
  display: flex;
  background: var(--c-paper-2);
  border-bottom: 1px solid var(--c-rule);
}
.modal-tab {
  flex: 1; padding: 14px 12px;
  background: transparent; border: 0; border-bottom: 2px solid transparent;
  font-weight: 600; font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--c-ink-2);
  transition: color .2s, border-color .2s, background .2s;
}
.modal-tab.is-active { color: var(--c-blue); border-bottom-color: var(--c-blue); background: #fff; }

.modal-body { padding: 28px 32px; overflow-y: auto; }
.modal-body h3 { font-family: var(--f-display); font-weight: 700; font-size: 18px; margin: 0 0 6px; }
.modal-body .sub { color: var(--c-ink-2); font-size: 13px; margin: 0 0 22px; }

.role-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.role-row label { cursor: pointer; }
.role-row input { position: absolute; opacity: 0; pointer-events: none; }
.role-row .role-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 12px;
  border: 1.5px solid var(--c-rule-strong); border-radius: var(--r-sm);
  text-align: center;
  background: #fff;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.role-row label:hover .role-card { border-color: var(--c-blue-light); }
.role-row input:checked + .role-card {
  border-color: var(--c-blue); background: var(--c-paper-2);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.role-row .role-card .ic { width: 36px; height: 36px; margin: 0 auto; border-radius: 50%; background: var(--c-paper-2); display: flex; align-items: center; justify-content: center; color: var(--c-blue); font-weight: 700; }
.role-row input:checked + .role-card .ic { background: var(--c-blue); color: #fff; }
.role-row .role-card .ttl { font-weight: 600; font-size: 13px; }
.role-row .role-card .sub-l { font-size: 11px; color: var(--c-ink-2); }

.input-group { margin-bottom: 14px; }
.input-group label { display: block; font-size: 12px; font-weight: 600; color: var(--c-ink); margin-bottom: 6px; }
.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--c-rule-strong);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: 14px;
  font-family: var(--f-body);
  color: var(--c-ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.input-group .hint { font-size: 12px; color: var(--c-ink-2); margin-top: 6px; }
.input-group .error { font-size: 12px; color: var(--c-danger); margin-top: 6px; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.modal-foot {
  display: flex; flex-direction: column; gap: 12px;
  padding: 0 32px 28px;
}
.modal-foot .btn { width: 100%; justify-content: center; padding: 14px 22px; }
.modal-foot .alt { text-align: center; font-size: 13px; color: var(--c-ink-2); }
.modal-foot .alt a { color: var(--c-blue); font-weight: 600; }
.modal-foot .alt a:hover { text-decoration: underline; }
.modal-foot .forgot { text-align: right; font-size: 12px; }
.modal-foot .forgot a { color: var(--c-blue); }

.divider { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--c-ink-2); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--c-rule); }

.social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--c-rule-strong); border-radius: var(--r-sm);
  background: #fff;
  font-weight: 600; font-size: 13px; color: var(--c-ink);
  transition: border-color .2s, background .2s;
}
.social-btn:hover { border-color: var(--c-blue); background: var(--c-paper-2); }
.social-btn .ic { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Header auth state ──────────────────────────── */
.header-cta { display: inline-flex; align-items: center; gap: 12px; }
.header-cta .login-btn {
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85);
  padding: 8px 14px; border-radius: var(--r-sm);
  transition: background .2s, color .2s;
  cursor: pointer;
}
.header-cta .login-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }

.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 8px 6px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  cursor: pointer;
  color: #fff; font-size: 12px; font-weight: 600;
  transition: background .2s;
  position: relative;
}
.user-chip:hover { background: rgba(255,255,255,0.12); }
.user-chip .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 13px;
  text-transform: uppercase;
}
.user-chip .caret { font-size: 8px; opacity: 0.7; }
.user-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; color: var(--c-ink);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px;
  display: none;
  z-index: 50;
}
.user-chip.is-open .user-menu { display: block; }
.user-menu .header-block {
  padding: 12px 14px 14px;
  border-bottom: 1px solid var(--c-rule);
}
.user-menu .header-block .name { font-weight: 600; font-size: 14px; color: var(--c-ink); }
.user-menu .header-block .role { font-size: 11px; color: var(--c-blue); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px; font-weight: 600; }
.user-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  font-size: 13px; color: var(--c-ink-2);
  border-radius: var(--r-sm);
  transition: background .15s, color .15s;
}
.user-menu a:hover { background: var(--c-paper-2); color: var(--c-blue); }
.user-menu a.logout { color: var(--c-danger); margin-top: 4px; border-top: 1px solid var(--c-rule); border-radius: 0; }
.user-menu a.logout:hover { background: #fef2f2; color: var(--c-danger); }
.user-menu .ic { width: 16px; flex-shrink: 0; text-align: center; }

/* Hidden on auth state */
.auth-only { display: none; }
body.is-authed .auth-only { display: inline-flex; }
body.is-authed .guest-only { display: none; }

/* ── WhatsApp floating button ──────────────────── */
.wa-fab {
  position: fixed; bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -4px rgba(37,211,102,0.5);
  z-index: 80;
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
  animation: wa-pulse 2.4s infinite;
}
.wa-fab:hover { transform: scale(1.08); box-shadow: 0 14px 28px -4px rgba(37,211,102,0.6); }
.wa-fab svg { width: 30px; height: 30px; fill: #fff; }
.wa-fab .label {
  position: absolute; right: 70px; top: 50%;
  transform: translateY(-50%);
  background: #fff; color: var(--c-ink);
  padding: 10px 16px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility 0s linear .25s, transform .25s;
}
.wa-fab .label::after {
  content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
  border: 6px solid transparent; border-left-color: #fff;
}
.wa-fab:hover .label { opacity: 1; visibility: visible; transition: opacity .25s, transform .25s; transform: translateY(-50%) translateX(-4px); }
@keyframes wa-pulse {
  0% { box-shadow: 0 10px 24px -4px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.6); }
  70% { box-shadow: 0 10px 24px -4px rgba(37,211,102,0.5), 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 24px -4px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0); }
}
body.has-sticky-cta .wa-fab { bottom: 80px; }

/* ── Loading spinner ────────────────────────────── */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn.is-loading .spinner { margin-right: 8px; }

/* ============================================================
   JOBS — listing, filters, card
   ============================================================ */
.jobs-shell { display: grid; grid-template-columns: 280px 1fr; gap: 32px; }

.jobs-filter {
  background: #fff;
  border: 1px solid var(--c-rule);
  border-radius: var(--r-md);
  padding: 24px;
  position: sticky; top: 96px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.jobs-filter h4 { font-family: var(--f-display); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 14px; color: var(--c-navy); }
.jobs-filter h4:not(:first-child) { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--c-rule); }
.jobs-filter .filter-group { display: flex; flex-direction: column; gap: 8px; }
.jobs-filter .filter-group label { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--c-ink-2); cursor: pointer; padding: 6px 8px; border-radius: var(--r-sm); transition: background .15s; }
.jobs-filter .filter-group label:hover { background: var(--c-paper-2); }
.jobs-filter .filter-group input[type="checkbox"],
.jobs-filter .filter-group input[type="radio"] { width: 16px; height: 16px; accent-color: var(--c-blue); }
.jobs-filter .filter-group .count { margin-left: auto; font-size: 11px; color: var(--c-ink-2); opacity: 0.6; font-variant-numeric: tabular-nums; }
.jobs-filter .clear-btn {
  width: 100%; padding: 10px;
  background: transparent; border: 1px solid var(--c-rule-strong); border-radius: var(--r-sm);
  font-size: 12px; font-weight: 600; color: var(--c-ink-2);
  margin-top: 18px;
  transition: border-color .2s, color .2s;
}
.jobs-filter .clear-btn:hover { border-color: var(--c-blue); color: var(--c-blue); }

.jobs-search {
  display: grid; grid-template-columns: 2fr 1fr auto;
  gap: 10px;
  margin-bottom: 24px;
  background: #fff; padding: 8px;
  border: 1px solid var(--c-rule); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.jobs-search input, .jobs-search select {
  padding: 12px 14px;
  border: 0; background: transparent;
  font-size: 14px; outline: none;
  font-family: var(--f-body);
  border-right: 1px solid var(--c-rule);
}
.jobs-search input:last-of-type, .jobs-search select:last-of-type { border-right: 0; }
.jobs-search button { padding: 12px 24px; }

.jobs-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: 13px; color: var(--c-ink-2); }
.jobs-meta .count strong { color: var(--c-navy); }
.jobs-meta select { padding: 6px 10px; border: 1px solid var(--c-rule-strong); border-radius: var(--r-sm); background: #fff; font-size: 13px; }

.jobs-list { display: flex; flex-direction: column; gap: 12px; }
.job-card {
  background: #fff;
  border: 1px solid var(--c-rule);
  border-radius: var(--r-md);
  padding: 24px;
  display: grid; grid-template-columns: 56px 1fr auto;
  gap: 18px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  cursor: pointer;
}
.job-card:hover { border-color: var(--c-blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.job-card .co-logo {
  width: 56px; height: 56px;
  background: var(--c-paper-2);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 800; color: var(--c-navy);
  font-size: 22px;
  border: 1px solid var(--c-rule);
}
.job-card .info { min-width: 0; }
.job-card .ttl { font-family: var(--f-display); font-weight: 700; font-size: 18px; color: var(--c-ink); margin: 0 0 4px; line-height: 1.2; }
.job-card .co { font-size: 14px; color: var(--c-ink-2); margin-bottom: 12px; }
.job-card .co .verified { color: var(--c-blue); margin-left: 4px; }
.job-card .pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--c-paper-2);
  border-radius: 100px;
  font-size: 11px; font-weight: 500;
  color: var(--c-ink-2);
}
.pill .ic { font-size: 10px; opacity: 0.7; }
.pill.blue { background: rgba(59,130,246,0.10); color: var(--c-blue); }
.pill.green { background: rgba(16,185,129,0.10); color: var(--c-success); }
.pill.amber { background: rgba(245,158,11,0.10); color: var(--c-warning); }
.pill.red { background: rgba(239,68,68,0.10); color: var(--c-danger); }
.job-card .actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; justify-content: space-between; }
.job-card .salary { font-family: var(--f-display); font-weight: 700; font-size: 16px; color: var(--c-navy); }
.job-card .save-btn {
  background: transparent; border: 1px solid var(--c-rule-strong);
  border-radius: var(--r-sm); padding: 8px 12px;
  font-size: 12px; font-weight: 600; color: var(--c-ink-2);
  display: inline-flex; align-items: center; gap: 6px;
  transition: border-color .2s, color .2s, background .2s;
}
.job-card .save-btn:hover { border-color: var(--c-blue); color: var(--c-blue); }
.job-card .save-btn.is-saved { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }
.job-card .posted { font-size: 11px; color: var(--c-ink-2); opacity: 0.7; }

/* Empty state */
.empty-state {
  text-align: center; padding: 80px 24px;
  background: #fff; border: 1px dashed var(--c-rule-strong); border-radius: var(--r-md);
}
.empty-state .ic {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--c-paper-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--c-blue);
}
.empty-state h3 { font-family: var(--f-display); font-weight: 700; margin: 0 0 8px; }
.empty-state p { color: var(--c-ink-2); font-size: 14px; margin: 0 0 20px; }

/* ============================================================
   DASHBOARD — chrome, sidebar, cards, tables
   ============================================================ */
body.dash-mode {
  background: var(--c-paper-2);
}

.dash-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.dash-sidebar {
  background: linear-gradient(180deg, var(--c-navy-deep) 0%, var(--c-navy-darker) 100%);
  color: #fff;
  padding: 28px 18px;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
.dash-sidebar .brand {
  display: flex; align-items: center; gap: 10px;
  padding: 0 8px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 18px;
}
.dash-sidebar .brand img { width: 34px; height: 34px; background: #fff; padding: 4px; border-radius: 6px; object-fit: contain; }
.dash-sidebar .brand .name { font-family: var(--f-display); font-weight: 800; font-size: 15px; }
.dash-sidebar .brand .role { font-size: 9px; color: var(--c-blue-sky); letter-spacing: 0.22em; text-transform: uppercase; margin-top: 3px; font-weight: 600; }

.dash-sidebar .section-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  padding: 14px 12px 8px;
}
.dash-sidebar nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px;
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: background .15s, color .15s;
  margin-bottom: 2px;
}
.dash-sidebar nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.dash-sidebar nav a.is-active { background: var(--c-blue); color: #fff; box-shadow: 0 4px 12px -4px rgba(59,130,246,0.5); }
.dash-sidebar nav a .ic { width: 18px; text-align: center; }
.dash-sidebar nav a .badge { margin-left: auto; background: var(--c-blue); color: #fff; padding: 2px 7px; border-radius: 100px; font-size: 10px; font-weight: 700; }
.dash-sidebar nav a.is-active .badge { background: rgba(255,255,255,0.2); }

.dash-sidebar .foot {
  margin-top: auto; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.dash-sidebar .foot a { font-size: 13px; color: rgba(255,255,255,0.5); padding: 10px 12px; display: flex; align-items: center; gap: 10px; border-radius: var(--r-sm); }
.dash-sidebar .foot a:hover { color: #fff; }

.dash-main { padding: 0; min-width: 0; }
.dash-topbar {
  background: #fff;
  border-bottom: 1px solid var(--c-rule);
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  position: sticky; top: 0; z-index: 50;
}
.dash-topbar .greet h1 { font-family: var(--f-display); font-weight: 800; font-size: 20px; margin: 0; color: var(--c-ink); letter-spacing: -0.01em; }
.dash-topbar .greet p { font-size: 12px; color: var(--c-ink-2); margin: 2px 0 0; }
.dash-topbar .actions { display: flex; align-items: center; gap: 12px; }
.dash-topbar .search { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--c-paper-2); border-radius: var(--r-sm); width: 280px; max-width: 30vw; }
.dash-topbar .search input { border: 0; background: transparent; outline: none; font-size: 13px; flex: 1; }
.dash-topbar .icon-btn { width: 38px; height: 38px; background: var(--c-paper-2); border: 0; border-radius: var(--r-sm); position: relative; }
.dash-topbar .icon-btn:hover { background: var(--c-paper-3); }
.dash-topbar .icon-btn .dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; background: var(--c-danger); border-radius: 50%; border: 2px solid #fff; }
.dash-topbar .user {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 12px 4px 4px;
  background: var(--c-paper-2);
  border-radius: 100px;
  cursor: pointer;
}
.dash-topbar .user .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.dash-topbar .user .name { font-size: 13px; font-weight: 600; color: var(--c-ink); }

.dash-page { padding: 28px 32px 80px; }

.kpi-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 28px;
}
.kpi {
  background: #fff;
  border: 1px solid var(--c-rule);
  border-radius: var(--r-md);
  padding: 22px;
  position: relative; overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.kpi:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.kpi .ic {
  width: 40px; height: 40px;
  background: rgba(59,130,246,0.10); color: var(--c-blue);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  font-size: 18px;
}
.kpi.green .ic { background: rgba(16,185,129,0.10); color: var(--c-success); }
.kpi.amber .ic { background: rgba(245,158,11,0.10); color: var(--c-warning); }
.kpi.indigo .ic { background: rgba(15,40,143,0.10); color: var(--c-navy); }
.kpi .num { font-family: var(--f-display); font-weight: 800; font-size: 34px; color: var(--c-ink); line-height: 1; margin-bottom: 6px; letter-spacing: -0.02em; }
.kpi .lbl { font-size: 12px; color: var(--c-ink-2); font-weight: 500; }
.kpi .trend { font-size: 11px; font-weight: 600; margin-top: 8px; }
.kpi .trend.up { color: var(--c-success); }
.kpi .trend.down { color: var(--c-danger); }

.dash-grid {
  display: grid; grid-template-columns: 2fr 1fr; gap: 20px;
}
.dash-card {
  background: #fff;
  border: 1px solid var(--c-rule);
  border-radius: var(--r-md);
  padding: 22px;
}
.dash-card.full { grid-column: 1 / -1; }
.dash-card .head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-rule);
}
.dash-card .head h3 { font-family: var(--f-display); font-weight: 700; font-size: 16px; margin: 0; color: var(--c-ink); }
.dash-card .head .link { font-size: 12px; }

/* Tables */
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th {
  text-align: left; font-size: 11px;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-ink-2); padding: 10px 14px;
  border-bottom: 1px solid var(--c-rule);
  background: var(--c-paper-2);
}
.dash-table td {
  padding: 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--c-rule);
  color: var(--c-ink);
}
.dash-table tbody tr:hover { background: var(--c-paper-2); }
.dash-table tbody tr:last-child td { border-bottom: 0; }
.dash-table .person { display: flex; align-items: center; gap: 10px; }
.dash-table .person .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.dash-table .person .name { font-weight: 600; }
.dash-table .person .role { font-size: 11px; color: var(--c-ink-2); }
.dash-table .row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.dash-table .row-action {
  width: 30px; height: 30px;
  background: var(--c-paper-2); border: 0; border-radius: var(--r-sm);
  font-size: 13px;
  transition: background .15s, color .15s;
}
.dash-table .row-action:hover { background: var(--c-blue); color: #fff; }
.dash-table .row-action.danger:hover { background: var(--c-danger); }

.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 600;
  background: var(--c-paper-2);
}
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge.active { background: rgba(16,185,129,0.12); color: var(--c-success); }
.status-badge.pending { background: rgba(245,158,11,0.12); color: var(--c-warning); }
.status-badge.draft { background: rgba(10,15,28,0.08); color: var(--c-ink-2); }
.status-badge.closed { background: rgba(239,68,68,0.10); color: var(--c-danger); }
.status-badge.approved { background: rgba(37,99,214,0.12); color: var(--c-blue); }

/* Profile/Edit forms */
.profile-card {
  background: #fff;
  border: 1px solid var(--c-rule);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 20px;
}
.profile-cover {
  height: 120px;
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-blue) 60%, var(--c-blue-sky) 100%);
  position: relative;
}
.profile-cover::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(255,255,255,0.18) 0%, transparent 60%);
}
.profile-body { padding: 0 24px 24px; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: end; }
.profile-avatar {
  width: 96px; height: 96px;
  background: #fff; border: 4px solid #fff;
  border-radius: 50%;
  margin-top: -48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--f-display); font-weight: 800; font-size: 36px;
  box-shadow: var(--shadow-md);
}
.profile-name h2 { font-family: var(--f-display); font-weight: 800; font-size: 24px; margin: 18px 0 4px; }
.profile-name .meta { font-size: 13px; color: var(--c-ink-2); }
.profile-name .meta .pill { margin-left: 6px; }
.profile-actions { display: flex; gap: 8px; padding-top: 18px; }

/* Resume drop */
.drop-zone {
  border: 2px dashed var(--c-rule-strong);
  border-radius: var(--r-md);
  padding: 28px 24px;
  text-align: center;
  background: var(--c-paper-2);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.drop-zone:hover, .drop-zone.is-drag { border-color: var(--c-blue); background: rgba(59,130,246,0.04); }
.drop-zone .ic { width: 48px; height: 48px; margin: 0 auto 12px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--c-blue); font-size: 22px; box-shadow: var(--shadow-sm); }
.drop-zone .ttl { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.drop-zone .sub { font-size: 12px; color: var(--c-ink-2); }
.drop-zone input { display: none; }

.file-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  background: #fff; border: 1px solid var(--c-rule); border-radius: var(--r-sm);
  margin-top: 12px;
}
.file-row .ic { width: 36px; height: 36px; background: rgba(59,130,246,0.10); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; color: var(--c-blue); font-weight: 700; font-size: 11px; }
.file-row .info { flex: 1; }
.file-row .name { font-size: 13px; font-weight: 600; }
.file-row .meta { font-size: 11px; color: var(--c-ink-2); }
.file-row .actions { display: flex; gap: 6px; }
.file-row .row-action { background: transparent; border: 0; color: var(--c-ink-2); font-size: 13px; }

/* Tag input */
.tag-input { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1.5px solid var(--c-rule-strong); border-radius: var(--r-sm); background: #fff; min-height: 44px; align-items: center; }
.tag-input:focus-within { border-color: var(--c-blue); }
.tag-input .tag { background: var(--c-blue); color: #fff; padding: 4px 10px; border-radius: 100px; font-size: 12px; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.tag-input .tag button { background: transparent; border: 0; color: rgba(255,255,255,0.8); padding: 0; font-size: 14px; line-height: 1; }
.tag-input input { border: 0; outline: none; font-size: 13px; flex: 1; min-width: 100px; padding: 4px; background: transparent; }

/* Section title in dashboard */
.dash-page-head { margin-bottom: 22px; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.dash-page-head h1 { font-family: var(--f-display); font-weight: 800; font-size: 26px; margin: 0 0 4px; color: var(--c-ink); letter-spacing: -0.02em; }
.dash-page-head p { font-size: 13px; color: var(--c-ink-2); margin: 0; }

/* Tabs inside dashboard */
.dash-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--c-rule); margin-bottom: 22px; }
.dash-tabs a { padding: 12px 18px; font-size: 13px; font-weight: 600; color: var(--c-ink-2); border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.dash-tabs a:hover { color: var(--c-blue); }
.dash-tabs a.is-active { color: var(--c-blue); border-bottom-color: var(--c-blue); }

/* Application status pill stack */
.app-status { display: flex; gap: 4px; align-items: center; }
.app-status .step { width: 22px; height: 4px; background: var(--c-rule); border-radius: 100px; }
.app-status .step.done { background: var(--c-success); }
.app-status .step.current { background: var(--c-blue); }
.app-status .lbl { font-size: 11px; color: var(--c-ink-2); margin-left: 8px; }

/* Mobile dashboard */
.dash-mobile-toggle {
  display: none;
  background: transparent; border: 0; color: var(--c-ink);
  padding: 8px; font-size: 20px;
}

@media (max-width: 1100px) {
  .jobs-shell { grid-template-columns: 1fr; }
  .jobs-filter { position: static; max-height: none; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 260px; height: 100vh; z-index: 200;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.2,.7,.3,1);
  }
  .dash-sidebar.is-open { transform: translateX(0); }
  .dash-mobile-toggle { display: inline-flex; }
  .dash-topbar { padding: 14px 18px; }
  .dash-topbar .search { display: none; }
  .dash-topbar .greet h1 { font-size: 16px; }
  .dash-topbar .user .name { display: none; }
  .dash-page { padding: 20px 18px 80px; }
  .jobs-search { grid-template-columns: 1fr; gap: 0; }
  .jobs-search input, .jobs-search select { border-right: 0; border-bottom: 1px solid var(--c-rule); }
  .jobs-search button { width: 100%; }
  .job-card { grid-template-columns: 48px 1fr; }
  .job-card .actions { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--c-rule); }
  .role-row { grid-template-columns: 1fr; }
  .modal { max-height: calc(100vh - 16px); }
  .modal-head, .modal-body, .modal-foot { padding-left: 20px; padding-right: 20px; }
  .input-row { grid-template-columns: 1fr; }
  .profile-body { grid-template-columns: 1fr; text-align: center; gap: 12px; }
  .profile-avatar { margin: -48px auto 0; }
  .profile-actions { justify-content: center; padding-top: 8px; }
  .dash-table th:nth-child(n+4), .dash-table td:nth-child(n+4) { display: none; }
  .dash-table { font-size: 13px; }
  .kpi-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 16px; }
  .kpi .num { font-size: 26px; }
  .wa-fab { width: 52px; height: 52px; bottom: 80px; right: 16px; }
  .wa-fab svg { width: 26px; height: 26px; }
}

@media (max-width: 520px) {
  .kpi-row { grid-template-columns: 1fr; }
  .dash-table th:nth-child(n+3), .dash-table td:nth-child(n+3) { display: none; }
}
