:root {
  --bg: #0a0a0a;
  --sidebar-bg: #111111;
  --card-bg: #181818;
  --card-border: #252525;
  --line: #1e1e1e;
  --muted: #555;
  --text: #f0f0f0;
  --text-dim: #888;
  --brand: #e32028;
  --blue: #3b82f6;
  --yellow: #f59e0b;
  --purple: #a855f7;
  --green: #22c55e;
  --sidebar-w: 230px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

/* ============================================================
   LOGIN
   ============================================================ */
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: radial-gradient(circle at 50% 0%, rgba(227,32,40,.14), transparent 38%), var(--bg);
}

.login-card {
  width: min(420px, 100%);
  background: #141414;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 32px 80px rgba(0,0,0,.5);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.login-brand img { width: 54px; height: 54px; object-fit: contain; }
.login-brand h1  { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.login-brand p   { font-size: 13px; color: var(--text-dim); margin-top: 3px; }

label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 7px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid #222;
  background: #0d0d0d;
  color: #fff;
  border-radius: 8px;
  padding: 11px 13px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(227,32,40,.12);
}

.field { margin-bottom: 22px; }

.btn-primary {
  width: 100%;
  border: none;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s;
  margin-top: 4px;
}

.btn-primary:hover { background: #c41c22; }

.notice {
  display: none;
  margin-top: 14px;
  border: 1px solid rgba(227,32,40,.4);
  background: rgba(227,32,40,.07);
  color: #ffd6d6;
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 13.5px;
  line-height: 1.45;
}

.notice.show { display: block; }

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.admin-layout { display: flex; min-height: 100vh; }

a.nav-item { text-decoration: none; }

.mobile-menu-btn,
.sidebar-backdrop {
  display: none;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-logo { padding: 20px 20px 10px; }
.sidebar-logo img { width: 110px; height: auto; object-fit: contain; }

.sidebar-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--brand);
  text-transform: uppercase;
  padding: 8px 22px 14px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 10px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 14px;
  border: none;
  background: transparent;
  color: #999;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background .15s, color .15s;
}

.nav-item:hover { background: rgba(255,255,255,.05); color: #ddd; }
.nav-item.active { background: var(--brand); color: #fff; font-weight: 600; }

.sidebar-footer {
  padding: 16px 10px 20px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}

.sign-out-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--brand);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}

.sign-out-btn:hover { background: rgba(227,32,40,.1); }

/* ============================================================
   MAIN AREA
   ============================================================ */
.main-wrap {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 36px 40px 60px;
  min-width: 0;
}

/* ── Top header (Overview) ── */
.main-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

.greeting-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #555;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.dashboard-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: #f5f5f5;
  line-height: 1.1;
}

.header-date { font-size: 13px; color: #666; margin-top: 6px; }

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  padding-top: 4px;
}

.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34,197,94,.12);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,.3);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Section label ── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #555;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ── Section visibility ── */
.section        { display: none; }
.section.active { display: block; }

/* ============================================================
   OVERVIEW — STATS GRID
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px 18px 18px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.stat-card:hover { background: #1f1f1f; border-color: #333; }

.stat-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-chevron { color: #444; display: flex; align-items: center; }

.stat-number {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-title { font-size: 13px; font-weight: 600; color: #d0d0d0; margin-bottom: 3px; }
.stat-sub   { font-size: 11.5px; color: #555; }

/* ── Quick actions ── */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.action-btn {
  padding: 18px 16px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: filter .2s;
}

.action-btn:hover { filter: brightness(1.15); }

.action-blue  { background: rgba(30,58,138,.55);  color: #93c5fd; border: 1px solid rgba(59,130,246,.2); }
.action-olive { background: rgba(66,60,8,.55);    color: #fcd34d; border: 1px solid rgba(245,158,11,.2); }
.action-red   { background: rgba(90,10,12,.55);   color: #fca5a5; border: 1px solid rgba(227,32,40,.2); }

/* ============================================================
   PAGE HEADER  (Clients, Reviews, etc.)
   ============================================================ */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.page-header-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #555;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.page-header-title {
  font-size: 28px;
  font-weight: 900;
  color: #f5f5f5;
  letter-spacing: -.01em;
}

.page-header-sub {
  font-size: 13.5px;
  color: #666;
  margin-top: 5px;
}

.btn-add {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s;
}

.btn-add:hover { background: #c41c22; }

/* ============================================================
   PANEL BOX  (shared card wrapper)
   ============================================================ */
.panel-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
}

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

.panel-head h2 { font-size: 17px; font-weight: 700; }

/* sub-panel head (inside clients panel) */
.sub-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.sub-panel-title { font-size: 15px; font-weight: 600; color: #e0e0e0; }

.item-count {
  background: #222;
  color: #888;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  padding: 3px 10px;
}

/* ============================================================
   CLIENTS GRID
   ============================================================ */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 20px;
}

.client-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: border-color .2s;
}

.client-card:hover { border-color: #333; }

.client-card:hover .client-delete { opacity: 1; }

.client-logo-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0d0d;
  position: relative;
}

.client-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.client-delete {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(227,32,40,.85);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s;
  padding: 0;
}

.client-name {
  padding: 10px 8px 12px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #ccc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-overlay.hidden { display: none; }

.modal {
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  width: min(480px, 100%);
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px 20px;
  border-bottom: 1px solid #222;
}

.modal-head h3 { font-size: 17px; font-weight: 700; }

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #222;
  color: #aaa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.modal-close:hover { background: #2a2a2a; color: #fff; }

.modal-body {
  padding: 28px 32px 12px;
  overflow-y: auto;
  flex: 1;
}

/* Upload area */
.upload-area {
  display: block;
  border: 2px dashed #2a2a2a;
  border-radius: 10px;
  padding: 28px 16px;
  cursor: pointer;
  text-align: center;
  transition: border-color .2s;
  position: relative;
  overflow: hidden;
}

.upload-area:hover { border-color: #444; }

.upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.upload-placeholder p { font-size: 14px; color: #888; margin: 0; }
.upload-hint { font-size: 12px !important; color: #555 !important; }

.image-preview {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 6px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 22px;
}

.btn-cancel {
  border: 1px solid #2a2a2a;
  background: transparent;
  color: #aaa;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}

.btn-cancel:hover { border-color: #444; color: #ddd; }

.btn-save {
  border: none;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}

.btn-save:hover { background: #c41c22; }

/* ============================================================
   EMPTY STATE / TABLE UTILITIES
   ============================================================ */
.empty-state { padding: 40px 20px; text-align: center; color: #444; font-size: 14px; }

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

table { width: 100%; border-collapse: collapse; min-width: 640px; }

th, td {
  padding: 11px 14px;
  border-bottom: 1px solid #1e1e1e;
  text-align: left;
  vertical-align: top;
  font-size: 13.5px;
}

th { color: #666; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
td { color: #ccc; }

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  padding: 3px 9px;
  color: #aaa;
  font-size: 11.5px;
}

.pill.ok   { border-color: rgba(34,197,94,.35);   color: #86efac; }
.pill.warn { border-color: rgba(245,158,11,.35); color: #fde68a; }

.muted { color: #555; }

.hidden { display: none !important; }

/* ============================================================
   GOOGLE REVIEWS LIST
   ============================================================ */
.reviews-list { padding: 4px 0; }

.review-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.review-item:last-child { border-bottom: none; }

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.review-body { flex: 1; min-width: 0; }

.review-name {
  font-size: 15px;
  font-weight: 700;
  color: #f0f0f0;
  margin-bottom: 2px;
}

.review-role {
  font-size: 12.5px;
  color: #666;
  margin-bottom: 8px;
}

.review-stars {
  font-size: 16px;
  color: #f59e0b;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.review-stars .star-off { color: #2a2a2a; }

.review-text {
  font-size: 13.5px;
  color: #aaa;
  line-height: 1.65;
  white-space: pre-wrap;
}

.review-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 2px;
}

.btn-edit {
  border: 1px solid #2a2a2a;
  background: #111;
  color: #ccc;
  border-radius: 7px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}

.btn-edit:hover { border-color: #444; color: #fff; }

.btn-delete-icon {
  width: 34px;
  height: 34px;
  border: none;
  background: rgba(227,32,40,.15);
  color: #e32028;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
}

.btn-delete-icon:hover { background: rgba(227,32,40,.3); }

/* ── employee photo row ── */
.emp-photo-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.emp-photo-thumb {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  background: #141414;
  border: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.emp-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.btn-choose-photo {
  border: 1px solid #2a2a2a;
  background: #181818;
  color: #ccc;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  display: inline-block;
}

.btn-choose-photo:hover { border-color: #444; color: #fff; }

input[readonly] { opacity: .55; cursor: default; }

/* ── review modal overrides ── */
.review-modal { width: min(580px, 100%); }

.modal-close-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #333;
  background: #222;
  color: #aaa;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}

.modal-close-circle:hover { background: #333; color: #fff; }

.req { color: var(--brand); }

/* ── star selector in modal ── */
.star-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.star-selector { display: flex; gap: 4px; }

.star-btn {
  font-size: 26px;
  background: none;
  border: none;
  color: #2a2a2a;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color .12s, transform .1s;
}

.star-btn.active { color: var(--brand); }
.star-btn:hover  { color: var(--brand); transform: scale(1.18); }

.star-count {
  font-size: 13px;
  font-weight: 600;
  color: #888;
  white-space: nowrap;
}

/* ── review modal footer buttons ── */
.modal-footer-review {
  display: flex;
  gap: 10px;
  padding: 16px 32px 28px;
}

.btn-save-review {
  flex: 1;
  border: none;
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s;
}

.btn-save-review:hover { background: #c41c22; }

.btn-cancel-review {
  border: 1px solid #2a2a2a;
  background: #111;
  color: #aaa;
  border-radius: 10px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .2s, color .2s;
}

.btn-cancel-review:hover { border-color: #444; color: #ddd; }

/* ── two-column form row ── */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ============================================================
   SEARCH INPUT
   ============================================================ */
.search-input {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: #ccc;
  padding: 14px 18px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}

.search-input:focus { border-color: #3a3a3a; }
.search-input::placeholder { color: #444; }

/* ============================================================
   EMPLOYEES LIST
   ============================================================ */
.employees-list { padding: 4px 0; }

.emp-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}

.emp-row:last-child { border-bottom: none; }
.emp-row:hover { background: rgba(255,255,255,.02); }

.emp-photo-wrap { flex-shrink: 0; }

.emp-photo {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.emp-avatar {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.emp-info { flex: 1; min-width: 0; }

.emp-name {
  font-size: 15px;
  font-weight: 700;
  color: #f0f0f0;
  margin-bottom: 3px;
}

.emp-role {
  font-size: 12.5px;
  color: #666;
}

.emp-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.emp-id-text {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  min-width: 70px;
  text-align: right;
}

.emp-status {
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
}

.status-active   { background: rgba(34,197,94,.12);  color: #22c55e; border: 1px solid rgba(34,197,94,.25); }
.status-inactive { background: rgba(156,163,175,.1); color: #9ca3af; border: 1px solid rgba(156,163,175,.2); }

.emp-photo-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56,189,248,.1);
  border: 1px solid rgba(56,189,248,.2);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.btn-delete-red {
  border: none;
  background: rgba(227,32,40,.15);
  color: #e32028;
  border-radius: 7px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}

.btn-delete-red:hover { background: rgba(227,32,40,.3); }

/* ============================================================
   HIRING / JOB OPENINGS
   ============================================================ */
.jobs-list { padding: 4px 0; }

.job-row {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}

.job-row:last-child { border-bottom: none; }
.job-row:hover { background: rgba(255,255,255,.02); }

.job-row-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.job-title {
  font-size: 15px;
  font-weight: 700;
  color: #f0f0f0;
  margin-right: 2px;
}

.job-type-badge {
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 10px;
}

.job-type-fulltime   { background: rgba(227,32,40,.15);   color: #e32028; }
.job-type-parttime   { background: rgba(245,158,11,.15);  color: #f59e0b; }
.job-type-internship { background: rgba(249,115,22,.15);  color: #fb923c; }
.job-type-contract   { background: rgba(168,85,247,.15);  color: #a855f7; }

.job-exp-badge {
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 10px;
  background: #1e1e1e;
  color: #999;
  border: 1px solid #2a2a2a;
}

.job-row-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.job-body { flex: 1; min-width: 0; }

.job-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 760px;
}

.job-reqs-count {
  font-size: 12px;
  color: #444;
  margin-top: 5px;
}

.job-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

.field-hint {
  font-size: 11px;
  color: #555;
  font-weight: 400;
  margin-left: 4px;
}

/* ── requirement inputs ── */
.req-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-req-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  color: #ccc;
  padding: 13px 16px;
  font-size: 13.5px;
  outline: none;
  transition: border-color .2s;
}

.job-req-input:focus { border-color: #3a3a3a; }
.job-req-input::placeholder { color: #444; }

/* ── active checkbox ── */
.job-active-check {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin-top: 4px;
  margin-bottom: 8px;
  user-select: none;
}

.job-active-check input[type="checkbox"] { display: none; }

.check-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid #333;
  background: transparent;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
}

.job-active-check input:checked + .check-box {
  background: var(--brand);
  border-color: var(--brand);
}

.job-active-check input:checked + .check-box::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

.check-label {
  font-size: 13.5px;
  color: #bbb;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .stats-grid    { grid-template-columns: repeat(3, 1fr); }
  .clients-grid  { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .clients-grid  { grid-template-columns: repeat(3, 1fr); }
  .quick-actions { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 260px; }

  body.sidebar-open {
    overflow: hidden;
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: #f0f0f0;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
  }

  .mobile-menu-btn:hover {
    border-color: #333;
    background: #1f1f1f;
  }

  .sidebar {
    display: flex;
    width: var(--sidebar-w);
    transform: translateX(-100%);
    transition: transform .24s ease;
    box-shadow: 18px 0 55px rgba(0,0,0,.45);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    display: block;
    border: 0;
    padding: 0;
    background: rgba(0,0,0,.62);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 90;
  }

  body.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .main-wrap { margin-left: 0; padding: 24px 18px 48px; }

  .main-header {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    justify-content: stretch;
  }

  .page-header > div:first-child {
    min-width: 0;
  }

  .main-header > div:first-child {
    min-width: 0;
  }

  .main-header .header-right {
    grid-column: 1 / -1;
    justify-content: space-between;
    width: 100%;
    padding-top: 0;
  }

  .page-header {
    align-items: flex-start;
  }

  .dashboard-title { font-size: 24px; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
}
