/* ═══════════════════════════════════════════════════════════
   EmploymentHubs — Complete Mobile-First Stylesheet
   www.employmenthubs.com
   ═══════════════════════════════════════════════════════════ */

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --eh-black:      #0a0a0a;
  --eh-white:      #fafafa;
  --eh-green:      #00c851;
  --eh-green-deep: #008a37;
  --eh-amber:      #ffb300;
  --eh-red:        #ff3547;
  --eh-blue:       #1565c0;
  --eh-gray-50:    #fafafa;
  --eh-gray-100:   #f5f5f5;
  --eh-gray-200:   #eeeeee;
  --eh-gray-400:   #bdbdbd;
  --eh-gray-600:   #757575;
  --eh-gray-800:   #424242;
  --eh-surface:    #ffffff;
  --eh-border:     #e0e0e0;
  --eh-shadow:     0 2px 12px rgba(0,0,0,0.08);
  --eh-shadow-lg:  0 8px 40px rgba(0,0,0,0.12);
  --eh-radius:     12px;
  --eh-radius-sm:  6px;
  --eh-radius-lg:  20px;
  --eh-font-display: 'Syne', sans-serif;
  --eh-font-body:    'DM Sans', sans-serif;
  --nav-height:    64px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--eh-font-body);
  background: var(--eh-white);
  color: var(--eh-black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--eh-font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.75rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.4rem,  3.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--eh-gray-800); max-width: 65ch; }
a  { color: var(--eh-green-deep); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--eh-green); }

/* ── Layout Helpers ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.section    { padding: 3.5rem 0; }
.section-sm { padding: 2rem 0; }
@media (min-width: 768px) {
  .section    { padding: 5rem 0; }
  .section-sm { padding: 3rem 0; }
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Flex helpers */
.flex         { display: flex; flex-wrap: wrap; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.text-center { text-align: center; }

/* Spacing utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.p-0  { padding: 0; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--eh-radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--eh-green);
  color: var(--eh-black);
  border-color: var(--eh-green);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--eh-green-deep);
  border-color: var(--eh-green-deep);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,200,81,0.35);
}
.btn-dark {
  background: var(--eh-black);
  color: #fff;
}
.btn-dark:hover { background: #222; color: #fff; }
.btn-ghost {
  background: transparent;
  border-color: var(--eh-gray-400);
  color: var(--eh-gray-800);
}
.btn-ghost:hover { border-color: var(--eh-black); color: var(--eh-black); background: var(--eh-gray-100); }
.btn-danger { background: var(--eh-red); color: #fff; border-color: var(--eh-red); }
.btn-danger:hover { background: #d32f2f; }
.btn-sm  { padding: 0.4rem 0.85rem; font-size: 0.82rem; }
.btn-lg  { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* Mobile: full-width block buttons in small containers */
@media (max-width: 400px) {
  .btn-block-xs { width: 100%; }
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--eh-surface);
  border-radius: var(--eh-radius);
  border: 1.5px solid var(--eh-border);
  padding: 1.25rem;
  box-shadow: var(--eh-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
@media (min-width: 640px) { .card { padding: 1.5rem; } }
.card:hover         { box-shadow: var(--eh-shadow-lg); }
.card-hover:hover   { transform: translateY(-2px); border-color: var(--eh-green); }
.card-header        { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--eh-border); }
.card-footer        { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--eh-border); }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.badge-urgent   { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
.badge-featured { background: #cce5ff; color: #004085; border: 1px solid #007bff; }
.badge-verified { background: #d4edda; color: #155724; border: 1px solid #28a745; }
.badge-premium  { background: linear-gradient(135deg, #f0c040, #e87722); color: #fff; }
.badge-new      { background: var(--eh-green); color: var(--eh-black); }
.badge-remote   { background: #e8f4fd; color: #0c5460; }
.badge-pill     {
  background: var(--eh-red);
  color: #fff;
  border-radius: 100px;
  padding: 0.1rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.4;
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group   { margin-bottom: 1.1rem; }
.form-label   { display: block; margin-bottom: 0.35rem; font-weight: 500; font-size: 0.88rem; color: var(--eh-gray-800); }
.form-label .required { color: var(--eh-red); }
.form-control {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--eh-border);
  border-radius: var(--eh-radius-sm);
  font-size: 0.95rem;
  color: var(--eh-black);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--eh-green);
  box-shadow: 0 0 0 3px rgba(0,200,81,0.12);
}
.form-control.error { border-color: var(--eh-red); }
.form-hint  { font-size: 0.78rem; color: var(--eh-gray-600); margin-top: 0.25rem; }
.form-error { font-size: 0.78rem; color: var(--eh-red); margin-top: 0.25rem; }
textarea.form-control { resize: vertical; min-height: 96px; }
select.form-control   { cursor: pointer; }

/* Two-column form grids — collapse on mobile */
.form-row-2 { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 600px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
.form-row-3 { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 768px) {
  .form-row-3 { grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
}

/* ── Alerts ───────────────────────────────────────────────── */
.alert {
  padding: 0.9rem 1.1rem;
  border-radius: var(--eh-radius-sm);
  margin-bottom: 1rem;
  border: 1.5px solid;
  font-size: 0.9rem;
  line-height: 1.5;
}
.alert-success { background: #d4edda; color: #155724; border-color: #c3e6cb; }
.alert-danger  { background: #f8d7da; color: #721c24; border-color: #f5c6cb; }
.alert-warning { background: #fff3cd; color: #856404; border-color: #ffc107; }
.alert-info    { background: #cce5ff; color: #004085; border-color: #b8daff; }

/* ── Navigation ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250,250,250,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--eh-black);
  height: var(--nav-height);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--eh-font-display);
  font-size: 1.2rem;
  color: var(--eh-black);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.3rem; }
.logo-text strong { color: var(--eh-green); }

/* Desktop nav */
.main-nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
}
@media (min-width: 900px) {
  .main-nav { display: flex; }
}
.nav-link {
  padding: 0.4rem 0.8rem;
  border-radius: var(--eh-radius-sm);
  font-weight: 500;
  color: var(--eh-gray-800);
  font-size: 0.9rem;
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  background: var(--eh-black);
  color: #fff;
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.nav-actions .btn-ghost { display: none; }
@media (min-width: 640px) { .nav-actions .btn-ghost { display: inline-flex; } }

/* Hamburger */
.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 2px solid var(--eh-border);
  border-radius: var(--eh-radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
@media (min-width: 900px) { .hamburger { display: none; } }

/* Mobile slide-down nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: #fff;
  border-bottom: 2px solid var(--eh-black);
  padding: 1rem;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.8rem 1rem;
  color: var(--eh-black);
  font-weight: 500;
  border-radius: var(--eh-radius-sm);
  margin-bottom: 0.15rem;
  font-size: 0.95rem;
}
.mobile-nav a:hover { background: var(--eh-gray-100); }
.mobile-nav .mobile-nav-divider {
  border: none;
  border-top: 1px solid var(--eh-border);
  margin: 0.75rem 0;
}
.mobile-nav-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* ── User Menu ────────────────────────────────────────────── */
.user-btn {
  background: none;
  border: 1.5px solid var(--eh-border);
  border-radius: 100px;
  padding: 0.3rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 0.88rem;
  transition: border-color 0.15s;
  max-width: 160px;
}
.user-btn span:not(.chevron) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-btn:hover { border-color: var(--eh-black); }
.user-avatar-sm {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.user-avatar-letter {
  background: var(--eh-green);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--eh-font-display);
  letter-spacing: 0;
}
.user-menu { position: relative; }
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1.5px solid var(--eh-border);
  border-radius: var(--eh-radius);
  box-shadow: var(--eh-shadow-lg);
  min-width: 210px;
  display: none;
  overflow: hidden;
  z-index: 200;
}
.user-dropdown.show { display: block; }
.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  color: var(--eh-black);
  font-size: 0.88rem;
  transition: background 0.12s;
}
.user-dropdown a:hover { background: var(--eh-gray-100); }

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  background: var(--eh-black);
  color: #fff;
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .hero { padding: 6rem 0 5rem; } }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 45%, rgba(0,200,81,0.14) 0%, transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(255,179,0,0.07) 0%, transparent 45%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 .highlight { color: var(--eh-green); }
.hero > .container > p {
  color: rgba(255,255,255,0.72);
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  margin-bottom: 1.75rem;
  max-width: 560px;
}

/* Hero search bar */
.hero-search {
  background: #fff;
  border-radius: var(--eh-radius);
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 680px;
  box-shadow: 0 16px 48px rgba(0,200,81,0.18);
}
@media (min-width: 640px) {
  .hero-search { flex-direction: row; align-items: center; }
}
.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  border-radius: var(--eh-radius-sm);
  min-width: 0;
  width: 100%;
}
.hero-search select {
  border: none;
  outline: none;
  padding: 0.7rem 0.75rem;
  font-size: 0.88rem;
  background: var(--eh-gray-100);
  border-radius: var(--eh-radius-sm);
  cursor: pointer;
  width: 100%;
}
@media (min-width: 640px) {
  .hero-search select { width: 180px; }
  .hero-search .btn   { white-space: nowrap; flex-shrink: 0; }
}
.hero-search .btn { width: 100%; }
@media (min-width: 640px) { .hero-search .btn { width: auto; } }

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 1.5rem 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.hero-stat .number {
  font-family: var(--eh-font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--eh-green);
  line-height: 1;
}
.hero-stat .label {
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

/* ── Dashboard Layout ─────────────────────────────────────── */
.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - var(--nav-height));
}
@media (min-width: 1024px) {
  .dashboard-layout { grid-template-columns: 260px 1fr; }
}

/* Sidebar */
.dashboard-sidebar {
  background: var(--eh-black);
  padding: 1.5rem 0.75rem;
  position: fixed;
  top: var(--nav-height);
  left: -280px;
  width: 280px;
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  z-index: 900;
  transition: left 0.28s ease;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 1024px) {
  .dashboard-sidebar {
    position: sticky;
    left: 0;
    top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
  }
}
.dashboard-sidebar.open { left: 0; }
.sidebar-logo {
  color: #fff;
  font-family: var(--eh-font-display);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 0.15rem; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--eh-radius-sm);
  color: rgba(255,255,255,0.68);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.15s;
  text-decoration: none;
}
.sidebar-link:hover, .sidebar-link.active {
  background: rgba(0,200,81,0.14);
  color: var(--eh-green);
}
.sidebar-link .icon { font-size: 1rem; width: 18px; text-align: center; flex-shrink: 0; }
.sidebar-divider { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 0.6rem 0; }

/* Sidebar toggle button — shown on mobile */
.sidebar-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 901;
  background: var(--eh-black);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
@media (min-width: 1024px) { .sidebar-toggle { display: none; } }

/* Sidebar backdrop */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 899;
}
.sidebar-backdrop.show { display: block; }

/* Dashboard content */
.dashboard-content {
  padding: 1.25rem;
  background: var(--eh-gray-100);
  min-height: calc(100vh - var(--nav-height));
}
@media (min-width: 768px) { .dashboard-content { padding: 2rem; } }
.dashboard-header { margin-bottom: 1.5rem; }
.dashboard-header h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px)  { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (min-width: 900px)  { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .stats-grid { grid-template-columns: repeat(5, 1fr); } }
.stat-card {
  background: #fff;
  border-radius: var(--eh-radius);
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--eh-border);
}
.stat-card .stat-value {
  font-family: var(--eh-font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--eh-black);
  line-height: 1;
}
.stat-card .stat-label  { color: var(--eh-gray-600); font-size: 0.78rem; margin-top: 0.3rem; }
.stat-card .stat-change { font-size: 0.75rem; color: var(--eh-green); margin-top: 0.4rem; }

/* ── Tables ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--eh-radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; min-width: 540px; }
thead th {
  background: var(--eh-black);
  color: #fff;
  padding: 0.75rem 0.9rem;
  text-align: left;
  font-family: var(--eh-font-display);
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--eh-border); transition: background 0.12s; }
tbody tr:hover { background: var(--eh-gray-100); }
tbody td { padding: 0.75rem 0.9rem; }

/* ── Job Cards ────────────────────────────────────────────── */
.job-card { position: relative; }
.job-title {
  font-family: var(--eh-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--eh-black);
  margin: 0.4rem 0 0.2rem;
  line-height: 1.2;
}
.company-name { color: var(--eh-gray-600); font-size: 0.88rem; }
.job-meta     { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.6rem 0; }
.job-salary   { font-weight: 700; color: var(--eh-green-deep); font-size: 0.95rem; }

/* ── Pricing Cards ────────────────────────────────────────── */
.pricing-card {
  border: 2px solid var(--eh-border);
  border-radius: var(--eh-radius);
  padding: 1.5rem;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--eh-green);
  box-shadow: 0 12px 36px rgba(0,200,81,0.14);
}
@media (min-width: 768px) {
  .pricing-card.featured { transform: scale(1.03); }
}
.pricing-card .plan-name  { font-family: var(--eh-font-display); font-size: 1.2rem; font-weight: 700; }
.pricing-card .plan-price {
  font-family: var(--eh-font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--eh-green-deep);
  margin: 0.75rem 0;
  line-height: 1;
}
.pricing-card .plan-price sup    { font-size: 1.1rem; }
.pricing-card .plan-price .period{ font-size: 0.9rem; color: var(--eh-gray-600); font-weight: 400; }
.pricing-card ul { list-style: none; margin: 1.25rem 0; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.pricing-card ul li { font-size: 0.88rem; }
.pricing-card ul li::before { content: '✓ '; color: var(--eh-green); font-weight: 700; }

/* ── Auth Pages ───────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .auth-page { grid-template-columns: 1fr 1fr; }
}
.auth-left {
  display: none;
  background: var(--eh-black);
  padding: 3rem;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 900px) { .auth-left { display: flex; } }
.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(0,200,81,0.2) 0%, transparent 60%);
}
.auth-left .content { position: relative; z-index: 1; }
.auth-left h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.auth-left p  { color: rgba(255,255,255,0.7); font-size: 1rem; }
.auth-right {
  padding: 2rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 480px) { .auth-right { padding: 3rem 2rem; } }
.auth-box { width: 100%; max-width: 460px; }
.auth-box h1 { margin-bottom: 0.4rem; font-size: clamp(1.5rem, 4vw, 2rem); }
.auth-box .subtitle { color: var(--eh-gray-600); margin-bottom: 1.75rem; font-size: 0.9rem; }
.auth-tabs {
  display: flex;
  gap: 0.2rem;
  background: var(--eh-gray-100);
  border-radius: var(--eh-radius-sm);
  padding: 0.2rem;
  margin-bottom: 1.75rem;
}
.auth-tab {
  flex: 1;
  padding: 0.55rem;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.88rem;
  transition: all 0.15s;
}
.auth-tab.active { background: #fff; box-shadow: var(--eh-shadow); color: var(--eh-black); }

/* ── Chat ─────────────────────────────────────────────────── */
.chat-container {
  display: grid;
  grid-template-columns: 1fr;
  height: calc(100vh - var(--nav-height) - 3rem);
  border: 1.5px solid var(--eh-border);
  border-radius: var(--eh-radius);
  overflow: hidden;
  min-height: 400px;
}
@media (min-width: 768px) {
  .chat-container { grid-template-columns: 280px 1fr; }
}
.chat-sidebar {
  border-right: 1.5px solid var(--eh-border);
  overflow-y: auto;
  display: none;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 768px) { .chat-sidebar { display: block; } }
.chat-sidebar.mobile-show { display: block; }
.chat-item {
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: background 0.12s;
  border-bottom: 1px solid var(--eh-border);
  display: flex;
  gap: 0.65rem;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}
.chat-item:hover, .chat-item.active { background: var(--eh-gray-100); }
.chat-main { display: flex; flex-direction: column; }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 640px) { .chat-messages { padding: 1.5rem; } }
.chat-bubble {
  max-width: 80%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--eh-radius);
  line-height: 1.5;
  font-size: 0.9rem;
  word-break: break-word;
}
@media (min-width: 640px) { .chat-bubble { max-width: 72%; } }
.chat-bubble.sent     { background: var(--eh-green); color: var(--eh-black); margin-left: auto; border-radius: var(--eh-radius) var(--eh-radius) 0 var(--eh-radius); }
.chat-bubble.received { background: var(--eh-gray-100); color: var(--eh-black); border-radius: var(--eh-radius) var(--eh-radius) var(--eh-radius) 0; }
.chat-bubble.ai       { background: #e8f4fd; border-left: 3px solid var(--eh-blue); }
.chat-input-area {
  padding: 0.75rem;
  border-top: 1.5px solid var(--eh-border);
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}
.chat-input {
  flex: 1;
  border: 1.5px solid var(--eh-border);
  border-radius: 100px;
  padding: 0.6rem 1rem;
  font-size: 0.92rem;
  outline: none;
  resize: none;
  min-width: 0;
}
.chat-input:focus { border-color: var(--eh-green); }

/* ── KYC Steps ────────────────────────────────────────────── */
.kyc-steps { display: flex; gap: 0; margin-bottom: 2rem; }
.kyc-step { flex: 1; text-align: center; position: relative; }
.kyc-step::after {
  content: '';
  position: absolute;
  top: 20px; left: 50%; right: -50%;
  height: 2px;
  background: var(--eh-border);
  z-index: 0;
}
.kyc-step:last-child::after { display: none; }
.kyc-step .step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--eh-border);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.4rem;
  font-weight: 700; font-size: 0.88rem;
  position: relative; z-index: 1;
}
.kyc-step.done   .step-num { background: var(--eh-green); border-color: var(--eh-green); color: #fff; }
.kyc-step.active .step-num { border-color: var(--eh-green); color: var(--eh-green-deep); }
.kyc-step .step-label { font-size: 0.72rem; color: var(--eh-gray-600); }

/* ── Profile Score ────────────────────────────────────────── */
.profile-score-bar { height: 8px; background: var(--eh-gray-200); border-radius: 100px; overflow: hidden; margin: 0.4rem 0; }
.profile-score-fill { height: 100%; border-radius: 100px; background: var(--eh-green); transition: width 1.2s ease; }

/* ── Match Score Ring ─────────────────────────────────────── */
.match-ring {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--eh-font-display);
  font-weight: 800;
  font-size: 0.8rem;
  border: 3px solid var(--eh-green);
  color: var(--eh-green-deep);
  flex-shrink: 0;
}
.match-ring.high   { border-color: var(--eh-green); color: var(--eh-green-deep); }
.match-ring.medium { border-color: var(--eh-amber); color: #856404; }
.match-ring.low    { border-color: var(--eh-gray-400); color: var(--eh-gray-600); }

/* ── CV Preview ───────────────────────────────────────────── */
.cv-preview { background: #fff; border: 1px solid var(--eh-border); border-radius: var(--eh-radius); padding: 1.5rem; box-shadow: var(--eh-shadow); font-size: 0.88rem; }
.cv-header  { border-bottom: 2px solid var(--eh-black); padding-bottom: 0.85rem; margin-bottom: 0.85rem; }
.cv-name    { font-family: var(--eh-font-display); font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 800; }
.cv-section-title {
  font-family: var(--eh-font-display);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--eh-green-deep);
  border-bottom: 1px solid var(--eh-green);
  padding-bottom: 0.2rem;
  margin: 0.85rem 0 0.6rem;
}

/* ── Affiliate Code Box ───────────────────────────────────── */
.affiliate-code-box {
  background: var(--eh-black);
  color: var(--eh-green);
  font-family: monospace;
  font-size: clamp(0.9rem, 3vw, 1.2rem);
  padding: 0.9rem 1.5rem;
  border-radius: var(--eh-radius);
  letter-spacing: 0.08em;
  text-align: center;
  cursor: pointer;
  word-break: break-all;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--eh-black); color: #fff; padding: 3rem 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
}
.footer-brand .logo { color: #fff; margin-bottom: 0.85rem; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.88rem; max-width: 280px; }
.social-links { display: flex; gap: 0.65rem; margin-top: 0.85rem; font-size: 1.25rem; flex-wrap: wrap; }
.social-links a { text-decoration: none; transition: transform 0.15s; display: inline-block; }
.social-links a:hover { transform: scale(1.15); }
.footer-col h4 {
  font-family: var(--eh-font-display);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--eh-green);
  margin-bottom: 0.85rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col ul a { color: rgba(255,255,255,0.6); font-size: 0.88rem; transition: color 0.15s; }
.footer-col ul a:hover { color: var(--eh-green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.09);
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
}
.footer-bottom a { color: var(--eh-green); }

/* ── Toast Notifications ──────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: calc(100vw - 2rem);
}
@media (min-width: 480px) { .toast-container { right: 1.5rem; } }
.toast {
  background: var(--eh-black);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--eh-radius);
  box-shadow: var(--eh-shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 240px;
  max-width: 340px;
  animation: slideUp 0.28s ease;
  font-size: 0.88rem;
}
.toast.success { border-left: 4px solid var(--eh-green); }
.toast.error   { border-left: 4px solid var(--eh-red); }
.toast.warning { border-left: 4px solid var(--eh-amber); }
.toast.info    { border-left: 4px solid var(--eh-blue); }
@keyframes slideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── Utilities ────────────────────────────────────────────── */
.text-green  { color: var(--eh-green-deep); }
.text-red    { color: var(--eh-red); }
.text-muted  { color: var(--eh-gray-600); }
.text-small  { font-size: 0.82rem; }
.text-danger { color: var(--eh-red) !important; }
.hidden      { display: none !important; }
.separator   { border: none; border-top: 1px solid var(--eh-border); margin: 1.25rem 0; }
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid var(--eh-border);
  border-top-color: var(--eh-green);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.55} }

/* ── Mobile Bottom Navigation ─────────────────────────────── */
.mobile-bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1.5px solid var(--eh-border);
  z-index: 800;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.07);
}
@media (min-width: 768px) { .mobile-bottom-nav { display: none; } }
.mobile-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.25rem;
  gap: 0.15rem;
  color: var(--eh-gray-600);
  font-size: 0.62rem;
  font-weight: 500;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  border-top: 2px solid transparent;
  transition: all 0.15s;
}
.mobile-bottom-nav a .icon { font-size: 1.25rem; line-height: 1; }
.mobile-bottom-nav a.active { color: var(--eh-green-deep); border-top-color: var(--eh-green); }
.mobile-bottom-nav a:hover  { color: var(--eh-black); }

/* Body padding when bottom nav is visible */
@media (max-width: 767px) {
  body.has-bottom-nav { padding-bottom: 64px; }
}

/* ── WhatsApp Float Button ────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.25rem;
  z-index: 850;
  width: 54px; height: 54px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,0.45);
  text-decoration: none;
  font-size: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 26px rgba(37,211,102,0.6);
}
@media (max-width: 767px) { .whatsapp-float { bottom: 5rem; } }
.whatsapp-float .wa-dot {
  position: absolute;
  top: -3px; right: -3px;
  background: var(--eh-red);
  color: #fff;
  border-radius: 50%;
  width: 17px; height: 17px;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: sans-serif;
}

/* ── Admin-specific ───────────────────────────────────────── */
.admin-section-title {
  font-family: var(--eh-font-display);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  padding: 0.5rem 0.85rem 0.2rem;
  margin-top: 0.5rem;
}

/* ── Responsive Overrides (last) ─────────────────────────── */

/* Small phones */
@media (max-width: 380px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 1rem; }
  .btn-lg     { padding: 0.75rem 1.25rem; font-size: 0.92rem; }
}

/* Tablets */
@media (max-width: 768px) {
  /* Tables scroll horizontally */
  .table-wrap table { min-width: 480px; }

  /* Cards in tight grids go full width */
  .card.job-card .flex-between { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  /* Auth tabs smaller text */
  .auth-tab { font-size: 0.82rem; padding: 0.5rem 0.25rem; }

  /* Pricing grid single column */
  #plans-employee .grid-3,
  #plans-employer .grid-4 { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }

  /* Job filters sidebar — becomes top bar */
  .jobs-layout { display: block; }
  .jobs-filter-panel {
    margin-bottom: 1rem;
    border-radius: var(--eh-radius);
    overflow: hidden;
  }
  .jobs-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.1rem;
    background: var(--eh-black);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: var(--eh-radius-sm);
    -webkit-tap-highlight-color: transparent;
  }
  .jobs-filter-body { display: none; }
  .jobs-filter-body.open { display: block; background: #fff; border: 1.5px solid var(--eh-border); border-top: none; padding: 1rem; border-radius: 0 0 var(--eh-radius-sm) var(--eh-radius-sm); }

  /* Dashboard grid stacks */
  .dashboard-header .flex-between { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .dashboard-header .flex-between > div:last-child { align-self: flex-start; }

  /* KYC steps smaller */
  .kyc-step .step-num  { width: 32px; height: 32px; font-size: 0.78rem; }
  .kyc-step .step-label{ display: none; }
  .kyc-step::after { top: 16px; }

  /* Chat on mobile: full screen */
  .chat-container { height: calc(100vh - var(--nav-height) - 80px); }

  /* Hero adjustments */
  .hero { padding: 2.5rem 0 2rem; }

  /* Footer stacks */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .flex-between { flex-direction: column; gap: 0.75rem; text-align: center; }
}

/* Large screens — 2-col job filter layout */
@media (min-width: 960px) {
  .jobs-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; }
  .jobs-filter-toggle { display: none; }
  .jobs-filter-body   { display: block !important; padding: 0; border: none; background: none; }
  .jobs-filter-panel  { position: sticky; top: calc(var(--nav-height) + 1rem); }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .sidebar-toggle,
  .mobile-bottom-nav, .whatsapp-float, .toast-container { display: none !important; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { display: none; }
  body { padding: 0; background: #fff; }
}
