/* ============================================================
   9JATECH — PREMIUM UI/UX UPGRADE
   Same color system preserved exactly, zero logic changes
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Core palette — UNCHANGED, exactly as original */
  --primary: #0F3D91;
  --primary-dark: #0B2F6B;
  --secondary: #111827;
  --accent: #16A34A;
  --light: #f8fafc;
  --muted: #64748b;
  --border: #e5e7eb;
  --white: #ffffff;
  --danger: #dc2626;
  --success: #16a34a;
  --shadow: 0 10px 30px rgba(2, 6, 23, .08);
  --radius: 18px;

  /* Added tokens — spacing, elevation, transitions only */
  --shadow-xs: 0 1px 2px rgba(2, 6, 23, 0.05);
  --shadow-sm: 0 2px 8px rgba(2, 6, 23, 0.06), 0 1px 2px rgba(2, 6, 23, 0.04);
  --shadow-md: 0 8px 32px rgba(2, 6, 23, 0.10), 0 2px 8px rgba(2, 6, 23, 0.05);
  --shadow-lg: 0 20px 60px rgba(2, 6, 23, 0.12), 0 4px 16px rgba(2, 6, 23, 0.06);
  --shadow-primary: 0 8px 24px rgba(15, 61, 145, 0.22);
  --shadow-accent: 0 8px 24px rgba(22, 163, 74, 0.22);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  background: #f6f8fb;
  color: #111827;
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- LAYOUT ---------- */
.container {
  width: min(1180px, 92%);
  margin: auto;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
}

/* ---------- NAVIGATION ---------- */
.nav {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  transition: box-shadow var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  gap: 20px;
}

/* Logo — colors completely unchanged */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--secondary);
  letter-spacing: -0.3px;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  /* Only added a refined shadow — no color change */
  box-shadow: 0 4px 12px rgba(15, 61, 145, 0.30);
  flex-shrink: 0;
  transition: box-shadow var(--transition);
}

.logo:hover .logo-mark {
  box-shadow: 0 6px 18px rgba(15, 61, 145, 0.38);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #334155;
  font-weight: 600;
  font-size: 14px;
}

.nav-links a {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  color: #334155;
}

.nav-links a:hover {
  color: var(--primary);
  background: #eef5ff;
}

.nav-links a.active {
  color: var(--primary);
  background: #eef5ff;
}

/* Nav actions */
.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--secondary);
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.mobile-menu:hover {
  background: #f1f5f9;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 14px;
  white-space: nowrap;
  letter-spacing: 0.1px;
  position: relative;
}

.btn:active {
  transform: translateY(1px);
}

/* Primary — same color, added shadow + hover lift */
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 12px 28px rgba(15, 61, 145, 0.32);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-primary);
}

/* Outline */
.btn-outline {
  border-color: var(--border);
  background: #fff;
  color: #111827;
  box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #eef5ff;
  box-shadow: var(--shadow-sm);
}

/* Dark */
.btn-dark {
  background: #111827;
  color: #fff;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.18);
}

.btn-dark:hover {
  background: #1e293b;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.26);
  transform: translateY(-1px);
}

/* Light */
.btn-light {
  background: #eef5ff;
  color: #0F3D91;
}

.btn-light:hover {
  background: #dbeafe;
}

/* Danger */
.btn-danger {
  background: #fee2e2;
  color: var(--danger);
}

.btn-danger:hover {
  background: #fecaca;
}

/* Button sizes */
.btn-sm {
  padding: 7px 14px;
  font-size: 12px;
  border-radius: 9px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: 14px;
}

/* ---------- HERO ---------- */
.hero {
  padding: 72px 0;
  background: radial-gradient(circle at top left, #dbeafe, transparent 36%),
              radial-gradient(circle at bottom right, #dcfce7, transparent 28%),
              linear-gradient(135deg, #fff, #f8fafc);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Eyebrow — same colors, refined spacing */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: #eef5ff;
  color: #0F3D91;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 18px;
  letter-spacing: 0.4px;
  border: 1px solid rgba(15, 61, 145, 0.12);
}

/* Headings */
h1 {
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.03;
  letter-spacing: -2px;
  margin-bottom: 20px;
  font-weight: 900;
}

h2 {
  font-weight: 800;
  letter-spacing: -0.6px;
}

h3 {
  font-weight: 700;
  letter-spacing: -0.3px;
}

.lead {
  font-size: 18px;
  color: #475569;
  margin-bottom: 28px;
  max-width: 540px;
  line-height: 1.7;
}

/* ---------- SEARCH CARD ---------- */
.search-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 22px;
}

.search-row {
  display: flex;
  gap: 12px;
}

/* ---------- STATS ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.stat {
  padding: 18px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition), transform var(--transition);
}

.stat:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.stat strong {
  display: block;
  font-size: 26px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.8px;
  line-height: 1.1;
}

.stat span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
  display: block;
}

/* ---------- CARDS ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: box-shadow var(--transition), transform var(--transition),
              border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(15, 61, 145, 0.10);
  transform: translateY(-2px);
}

.hero-card {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* Brand card — same accent color */
.brand-card {
  border-top: 3px solid var(--accent);
}

/* Featured card — same primary color */
.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 61, 145, 0.05), var(--shadow-md);
}

/* ---------- JOB MINI ---------- */
.job-mini {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 15px;
  margin-top: 14px;
  background: #fff;
  transition: all var(--transition);
  cursor: pointer;
}

.job-mini:hover {
  border-color: var(--primary);
  background: #eef5ff;
  box-shadow: var(--shadow-sm);
  transform: translateX(3px);
}

/* ---------- TAGS ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #f1f5f9;
  border-radius: var(--radius-full);
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  margin: 3px;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.tag:hover {
  background: #eef5ff;
  color: var(--primary);
  border-color: rgba(15, 61, 145, 0.12);
}

/* ---------- FORM ELEMENTS ---------- */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 14px;
  color: #374151;
}

.input,
.select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: #111827;
  transition: all var(--transition-fast);
  outline: none;
  box-shadow: var(--shadow-xs);
}

.input:hover,
.select:hover,
textarea:hover {
  border-color: #c4cedb;
}

.input:focus,
.select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 61, 145, 0.09), var(--shadow-xs);
}

.input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 62px 0;
}

.section-tight {
  padding: 38px 0;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -1px;
  color: var(--secondary);
}

.section-sub {
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 28px;
  line-height: 1.7;
}

/* ---------- GRIDS ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.grid.two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ---------- ICON BOX ---------- */
.icon {
  width: 45px;
  height: 45px;
  border-radius: 14px;
  background: #eef5ff;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 900;
  margin-bottom: 14px;
  font-size: 20px;
  flex-shrink: 0;
  transition: all var(--transition);
}

.card:hover .icon {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

/* ---------- BADGES ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-info {
  background: #dbeafe;
  color: #1e40af;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

/* ---------- ALERTS ---------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 12px;
  margin: 0 auto 18px;
  max-width: 1180px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
}

.alert.success {
  background: #dcfce7;
  color: #166534;
  border-color: rgba(22, 163, 74, 0.18);
}

.alert.error {
  background: #fee2e2;
  color: #991b1b;
  border-color: rgba(220, 38, 38, 0.18);
}

/* ---------- PAGE HEAD ---------- */
.page-head {
  padding: 46px 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.clean-head {
  border-radius: 24px;
  padding: 42px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* ---------- FILTER BAR ---------- */
.filter-bar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  margin: 24px 0;
  align-items: center;
}

/* ---------- JOB CARDS ---------- */
.job-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
}

.job-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(15, 61, 145, 0.12);
  transform: translateY(-2px);
}

/* ---------- PROGRESS ---------- */
.progress {
  height: 9px;
  background: #e5e7eb;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- AUTH ---------- */
.auth-wrap {
  min-height: calc(100vh - 73px);
  display: grid;
  place-items: center;
  padding: 48px 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%,
              rgba(15, 61, 145, 0.04) 0%, transparent 60%), #f6f8fb;
}

.auth-card {
  width: min(460px, 92%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

/* Subtle top accent bar — uses existing primary color */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.auth-card select,
.auth-card input,
.auth-card textarea,
.card select,
.card input,
.card textarea {
  width: 100%;
}

/* ---------- DASHBOARD ---------- */
.dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: #f6f8fb;
}

/* Sidebar — same background color as original */
.sidebar {
  background: #0f172a;
  color: #cbd5e1;
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.sidebar::-webkit-scrollbar {
  width: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

/* Sidebar nav section label */
.side-section {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #475569;
  padding: 6px 12px;
  margin-top: 14px;
  margin-bottom: 2px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  margin: 3px 0;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

.side-link:hover {
  background: #1e293b;
  color: #fff;
}

.side-link.active {
  background: #1e293b;
  color: #fff;
  /* Left accent bar using existing primary color */
  box-shadow: inset 3px 0 0 var(--primary);
}

/* Main content */
.main {
  padding: 28px 32px;
  min-width: 0;
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* ---------- KPI CARDS ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
}

.kpi:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.kpi strong {
  display: block;
  font-size: 26px;
  font-weight: 900;
  margin-top: 6px;
  letter-spacing: -0.8px;
  color: var(--secondary);
  line-height: 1.1;
}

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- TABLES ---------- */
.table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-xs);
}

table,
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.table {
  min-width: unset;
}

th,
.table th {
  text-align: left;
  padding: 13px 16px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

td,
.table td {
  text-align: left;
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr {
  transition: background var(--transition-fast);
}

tbody tr:hover {
  background: #fafbfd;
}

/* ---------- PROFILE ---------- */
.profile-head {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 22px;
  align-items: center;
}

.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #dbeafe;
  display: grid;
  place-items: center;
  font-size: 36px;
  font-weight: 900;
  color: var(--primary);
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--border);
  flex-shrink: 0;
}

/* ---------- CHAT ---------- */
.chat-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  height: calc(100vh - 74px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.chat-list {
  border-right: 1px solid var(--border);
  overflow-y: auto;
  background: #f8fafc;
}

.chat-list::-webkit-scrollbar {
  width: 3px;
}

.chat-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.chat-item {
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-item:hover {
  background: #f1f5f9;
}

.chat-item.active {
  background: #eef5ff;
  border-left: 3px solid var(--primary);
}

.chat-window {
  display: flex;
  flex-direction: column;
  background: #fff;
}

.messages {
  flex: 1;
  padding: 22px;
  overflow-y: auto;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.messages::-webkit-scrollbar {
  width: 3px;
}

.messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

/* Message bubbles */
.message {
  max-width: 70%;
  padding: 12px 15px;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  margin-bottom: 6px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.55;
  box-shadow: var(--shadow-xs);
}

.message.me {
  margin-left: auto;
  /* Same primary color as original, only the shape improved */
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  border-radius: 18px;
  border-bottom-right-radius: 4px;
  box-shadow: var(--shadow-primary);
}

.chat-input {
  display: flex;
  gap: 10px;
  padding: 15px;
  border-top: 1px solid var(--border);
  background: #fff;
  align-items: center;
}

.chat-input .input {
  border-radius: 20px;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 48px 0 0;
  margin-top: 48px;
  text-align: left;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 40px;
}

.footer-logo {
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer p {
  color: #cbd5e1;
  max-width: 430px;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
}

.footer h4 {
  color: #fff;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.footer a {
  display: block;
  margin: 9px 0;
  color: #cbd5e1;
  font-size: 14px;
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 30px;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #94a3b8;
  font-size: 13px;
}

/* ---------- MISC ---------- */
.muted {
  color: var(--muted);
}

.badge {
  display: inline-block;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.legal-copy {
  max-width: 900px;
  margin: 30px auto;
  line-height: 1.8;
}

.legal-copy h2 {
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--secondary);
}

.legal-copy p {
  color: #4b5563;
  margin-bottom: 12px;
}

.hero-rebrand {
  border-radius: 28px;
  padding: 64px 42px;
  margin-top: 10px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero-grid,
  .grid-3,
  .grid-2,
  .footer-grid,
  .dashboard,
  .chat-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 45px 0;
  }

  h1 {
    font-size: 38px;
  }

  .search-row,
  .filter-bar {
    grid-template-columns: 1fr;
    display: grid;
  }

  .stats,
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    width: 100%;
    border-right: none;
  }

  .main {
    padding: 20px 16px;
  }

  .profile-head,
  .job-card {
    grid-template-columns: 1fr;
  }

  .chat-layout {
    height: auto;
  }

  .chat-list {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .message {
    max-width: 92%;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .nav-open .nav-links,
  .nav-open .nav-actions {
    display: flex;
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    z-index: 50;
    box-shadow: var(--shadow-md);
    gap: 6px;
  }

  .nav-open .nav-links a {
    padding: 11px 14px;
    width: 100%;
    border-radius: var(--radius-sm);
  }
}

@media (max-width: 600px) {
  .stats,
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 28px;
  }

  .auth-card {
    padding: 24px 20px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .main {
    padding: 16px 12px;
  }
}

@media print {
  .nav,
  .sidebar,
  .footer {
    display: none;
  }

  .dashboard {
    grid-template-columns: 1fr;
  }

  .main {
    padding: 0;
  }
}