/* ============================================================
   JobsIndia — Main Stylesheet
   Premium Job Portal UI with Dark/Light Mode
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */

:root {
  /* Primary Palette */
  --primary:        #4f46e5;
  --primary-dark:   #3730a3;
  --primary-light:  #818cf8;
  --secondary:      #7c3aed;
  --accent:         #f59e0b;
  --success:        #10b981;
  --warning:        #f59e0b;
  --danger:         #ef4444;
  --info:           #06b6d4;

  /* Gradients */
  --gradient-hero:  linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  --gradient-primary: linear-gradient(135deg, #4f46e5, #7c3aed);
  --gradient-card:  linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0));

  /* Text */
  --text-primary:   #1e293b;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;
  --text-inverse:   #f8fafc;

  /* Backgrounds */
  --bg-primary:     #ffffff;
  --bg-secondary:   #f8fafc;
  --bg-tertiary:    #f1f5f9;
  --bg-card:        #ffffff;
  --bg-overlay:     rgba(15, 23, 42, 0.6);

  /* Borders */
  --border:         #e2e8f0;
  --border-light:   #f1f5f9;
  --border-focus:   #4f46e5;

  /* Shadows */
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:      0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg:      0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.05);
  --shadow-xl:      0 20px 60px rgba(0,0,0,0.12);
  --shadow-glow:    0 0 40px rgba(79,70,229,0.15);

  /* Radii */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Transitions */
  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;

  /* Z-index scale */
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-modal:    300;
  --z-toast:    400;

  /* Spacing */
  --container-max: 1280px;
  --section-py: 80px;
  --header-h: 72px;
}

/* Dark Mode */
[data-theme="dark"] {
  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;
  --bg-primary:     #0f172a;
  --bg-secondary:   #1e293b;
  --bg-tertiary:    #1e293b;
  --bg-card:        #1e293b;
  --border:         #334155;
  --border-light:   #1e293b;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:      0 4px 6px rgba(0,0,0,0.25);
  --shadow-lg:      0 10px 25px rgba(0,0,0,0.3);
  --shadow-glow:    0 0 40px rgba(79,70,229,0.25);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */

*, *::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(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: background var(--transition-slow), color var(--transition-slow);
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
button { cursor: pointer; font-family: var(--font-sans); }
input, select, textarea { font-family: var(--font-sans); }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { line-height: 1.25; font-weight: 700; color: var(--text-primary); }

/* ============================================================
   3. UTILITY CLASSES
   ============================================================ */

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.section-py { padding: var(--section-py) 0; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   4. TYPOGRAPHY
   ============================================================ */

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header .badge-label {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

/* ============================================================
   5. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}
.btn:hover::after { background: rgba(255,255,255,0.1); }

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(79,70,229,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(79,70,229,0.5); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-tertiary); }

.btn-success { background: var(--success); color: #fff; }
.btn-danger  { background: var(--danger);  color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-info    { background: var(--info);    color: #fff; }

.btn-sm { padding: 8px 16px; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { padding: 10px; border-radius: var(--radius-md); }

.btn-saved { color: var(--accent) !important; }
.btn[disabled], .btn.loading { opacity: 0.7; pointer-events: none; }

/* ============================================================
   6. FORMS
   ============================================================ */

.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.form-label .required { color: var(--danger); margin-left: 3px; }

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-card);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
}
.form-control::placeholder { color: var(--text-muted); }

.form-control-icon { position: relative; }
.form-control-icon .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  width: 18px;
  height: 18px;
}
.form-control-icon .form-control { padding-left: 44px; }

select.form-control { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}

.form-text { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 4px; }

.checkbox-group { display: flex; align-items: center; gap: 10px; }
.checkbox-group input[type="checkbox"] {
  width: 18px; height: 18px; border-radius: 4px; accent-color: var(--primary); cursor: pointer;
}

/* ============================================================
   7. BADGES
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-primary { background: rgba(79,70,229,0.12); color: var(--primary); }
.badge-success { background: rgba(16,185,129,0.12); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.12); color: var(--warning); }
.badge-danger  { background: rgba(239,68,68,0.12);  color: var(--danger); }
.badge-info    { background: rgba(6,182,212,0.12);  color: var(--info); }
.badge-govt    { background: rgba(220,38,38,0.12);  color: #dc2626; }
.badge-featured { background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; }
.badge-premium  { background: linear-gradient(135deg,#7c3aed,#4f46e5); color: #fff; }
.badge-urgent   { background: rgba(239,68,68,0.15); color: var(--danger); animation: pulse 2s infinite; }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.7} }

/* ============================================================
   8. CARDS
   ============================================================ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-featured { border-color: var(--accent); }
.card-premium  { border-color: var(--primary); }

/* ============================================================
   9. HEADER / NAVBAR
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background var(--transition-slow);
}
.header.scrolled { box-shadow: var(--shadow-md); }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo span { color: var(--primary); }
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: white;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-menu a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-menu a:hover, .nav-menu a.active { background: var(--bg-secondary); color: var(--primary); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: var(--z-dropdown);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:focus-within {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-md);
  color: var(--text-secondary); font-size: 0.875rem;
}
.nav-dropdown-menu a:hover { background: var(--bg-secondary); color: var(--primary); }
.nav-dropdown-menu .divider { height: 1px; background: var(--border); margin: 4px 0; }

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

/* Theme Toggle */
.theme-toggle {
  width: 40px; height: 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-secondary);
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }

/* User Menu */
.user-menu { position: relative; }
.user-menu-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}
.user-menu-btn:hover { border-color: var(--primary); }
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: var(--z-dropdown);
}
.user-menu:hover .user-menu-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.user-menu-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-md);
  color: var(--text-secondary); font-size: 0.875rem;
  transition: all var(--transition);
}
.user-menu-dropdown a:hover { background: var(--bg-secondary); color: var(--primary); }
.user-menu-dropdown .menu-divider { height: 1px; background: var(--border); margin: 4px 0; }
.user-menu-dropdown .logout-link { color: var(--danger) !important; }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: none;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============================================================
   10. HERO BANNER
   ============================================================ */

.hero {
  background: var(--gradient-hero);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(79,70,229,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(124,58,237,0.1) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0%   { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.05) rotate(2deg); }
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  animation: float linear infinite;
}

@keyframes float {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

.hero-content { position: relative; z-index: 2; text-align: center; }

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-title .highlight {
  background: linear-gradient(90deg, #f59e0b, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; color: rgba(255,255,255,0.9); }
.hero-stat .num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-stat .label { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ============================================================
   11. SEARCH BOX
   ============================================================ */

.search-box {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 12px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 180px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1.5px solid transparent;
  transition: border-color var(--transition);
}
.search-field:focus-within { border-color: var(--primary); }
.search-field svg { color: var(--text-muted); flex-shrink: 0; width: 18px; height: 18px; }

.search-field input,
.search-field select {
  border: none;
  background: none;
  outline: none;
  font-size: 0.9rem;
  color: var(--text-primary);
  width: 100%;
}
.search-field input::placeholder { color: var(--text-muted); }

.search-divider { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; }

.search-btn {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: all var(--transition);
  white-space: nowrap;
}
.search-btn:hover { transform: scale(1.03); box-shadow: 0 8px 25px rgba(79,70,229,0.4); }

/* Live search suggestions */
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-dropdown);
  display: none;
  max-height: 320px;
  overflow-y: auto;
}
.search-suggestions.show { display: block; }
.suggestion-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--transition);
  font-size: 0.9rem;
  color: var(--text-primary);
}
.suggestion-item:hover { background: var(--bg-secondary); }
.suggestion-item svg { color: var(--text-muted); }

/* Popular searches */
.popular-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}
.popular-searches span { color: rgba(255,255,255,0.7); font-size: 0.875rem; }
.popular-tag {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,0.2);
}
.popular-tag:hover { background: rgba(255,255,255,0.25); color: #fff; }

/* ============================================================
   12. JOB CARDS
   ============================================================ */

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.job-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.job-card:hover::before { transform: scaleX(1); }
.job-card.featured { border-color: var(--accent); }
.job-card.featured::before { background: linear-gradient(90deg, #f59e0b, #d97706); transform: scaleX(1); }
.job-card.government { border-left: 3px solid #dc2626; }

.job-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.job-company-info { display: flex; align-items: center; gap: 12px; }

.company-logo, .company-logo-initial {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: #fff;
  box-shadow: var(--shadow-sm);
}

.job-company-name { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 2px; }
.job-company-verified { color: var(--primary); }

.save-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  color: var(--text-muted);
}
.save-btn:hover, .save-btn.saved { color: var(--accent); border-color: var(--accent); background: rgba(245,158,11,0.08); }

.job-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}
.job-title a { color: inherit; }
.job-title a:hover { color: var(--primary); }

.job-badges { display: flex; flex-wrap: wrap; gap: 6px; }

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.job-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.job-meta-item svg { width: 15px; height: 15px; color: var(--text-muted); }

.job-salary {
  font-size: 1rem;
  font-weight: 700;
  color: var(--success);
}

.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  gap: 8px;
}
.job-posted { font-size: 0.78rem; color: var(--text-muted); }

/* ============================================================
   13. CATEGORY CARDS
   ============================================================ */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}
.category-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow-md), var(--shadow-glow); }
.category-card:hover .cat-icon { background: var(--gradient-primary); color: #fff; }
.category-card:hover .cat-name { color: var(--primary); }

.cat-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: rgba(79,70,229,0.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  transition: all var(--transition);
  color: var(--primary);
}
.cat-name { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.cat-count { font-size: 0.75rem; color: var(--text-muted); }

/* ============================================================
   14. COMPANY CARDS
   ============================================================ */

.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.company-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
  color: var(--text-primary);
}
.company-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); color: var(--text-primary); }
.company-card .company-logo, .company-card .company-logo-initial {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}
.company-card-name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.company-card-industry { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }
.company-card-jobs { font-size: 0.85rem; color: var(--primary); font-weight: 600; }
.company-verified-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.75rem; color: var(--primary);
  background: rgba(79,70,229,0.08);
  padding: 2px 8px; border-radius: var(--radius-full);
  margin-bottom: 8px;
}

/* ============================================================
   15. HERO JOB TYPE SECTIONS
   ============================================================ */

.job-section { padding: 60px 0; }
.job-section:nth-child(even) { background: var(--bg-secondary); }

.section-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.tab-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-secondary);
}
.tab-btn:hover, .tab-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ============================================================
   16. TESTIMONIALS
   ============================================================ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px; left: 24px;
  font-size: 80px;
  color: var(--primary);
  opacity: 0.15;
  line-height: 1;
  font-family: Georgia, serif;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.testimonial-text { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author .avatar, .testimonial-author .avatar-initial {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 1.1rem;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 0.95rem; }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }
.stars { display: flex; gap: 2px; margin-bottom: 8px; }
.star { color: var(--border); font-size: 1rem; }
.star.filled { color: var(--accent); }

/* ============================================================
   17. NEWSLETTER
   ============================================================ */

.newsletter-section {
  background: var(--gradient-primary);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.05), transparent 60%),
              radial-gradient(circle at 80% 50%, rgba(255,255,255,0.05), transparent 60%);
}
.newsletter-content { position: relative; z-index: 2; }
.newsletter-title { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.newsletter-sub { color: rgba(255,255,255,0.8); margin-bottom: 32px; }
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 0.9rem;
  outline: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-form input:focus { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.2); }
.newsletter-form .btn { background: #fff; color: var(--primary); font-weight: 700; white-space: nowrap; }
.newsletter-form .btn:hover { background: var(--bg-secondary); transform: scale(1.02); }

/* ============================================================
   18. FAQ
   ============================================================ */

.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--primary); }

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}
.faq-icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  color: var(--primary);
  transition: transform var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}
.faq-answer-inner { padding: 0 24px 20px; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 400px; }

/* ============================================================
   19. FOOTER
   ============================================================ */

.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid #1e293b;
}
.footer-brand .logo { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-brand .logo span { color: var(--primary-light); }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; max-width: 280px; }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-link {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: #1e293b;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8;
  transition: all var(--transition);
}
.social-link:hover { background: var(--primary); color: #fff; }

.footer-col h4 { font-size: 0.9rem; font-weight: 700; color: #e2e8f0; margin-bottom: 20px; }
.footer-col ul li a {
  display: block;
  color: #94a3b8;
  font-size: 0.875rem;
  padding: 5px 0;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--primary-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.8rem;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-links a { color: #64748b; }
.footer-bottom-links a:hover { color: var(--primary-light); }

/* ============================================================
   20. ALERTS / NOTIFICATIONS
   ============================================================ */

.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.alert svg { flex-shrink: 0; width: 20px; height: 20px; }
.alert-success { background: rgba(16,185,129,0.1); color: #065f46; border: 1px solid rgba(16,185,129,0.2); }
.alert-error   { background: rgba(239,68,68,0.1);  color: #7f1d1d; border: 1px solid rgba(239,68,68,0.2); }
.alert-warning { background: rgba(245,158,11,0.1); color: #78350f; border: 1px solid rgba(245,158,11,0.2); }
.alert-info    { background: rgba(6,182,212,0.1);  color: #0c4a6e; border: 1px solid rgba(6,182,212,0.2); }

[data-theme="dark"] .alert-success { color: #6ee7b7; }
[data-theme="dark"] .alert-error   { color: #fca5a5; }
[data-theme="dark"] .alert-warning { color: #fcd34d; }
[data-theme="dark"] .alert-info    { color: #67e8f9; }

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: var(--z-toast);
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-xl);
  display: flex; align-items: center; gap: 12px;
  min-width: 280px; max-width: 380px;
  font-size: 0.875rem;
  animation: slideInRight 0.3s ease;
}
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============================================================
   21. MODALS
   ============================================================ */

.modal-overlay {
  position: fixed; inset: 0;
  background: var(--bg-overlay);
  z-index: var(--z-modal);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
  padding: 20px;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 540px; width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-title { font-size: 1.2rem; font-weight: 700; }
.modal-close { width: 32px; height: 32px; border: none; background: var(--bg-secondary); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.modal-close:hover { background: var(--danger); color: #fff; }

/* ============================================================
   22. LOADING
   ============================================================ */

.page-loader {
  position: fixed; inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 16px;
  transition: opacity 0.4s ease;
}
.page-loader.hidden { opacity: 0; pointer-events: none; }

.loader-logo { font-size: 2rem; font-weight: 800; color: var(--primary); }
.loader-bar {
  width: 200px; height: 3px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.loader-bar::after {
  content: '';
  display: block;
  width: 60%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  animation: loading 1.2s ease-in-out infinite;
}
@keyframes loading { 0%{transform:translateX(-100%)} 100%{transform:translateX(250%)} }

.spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}
@keyframes shimmer { to { background-position: -200% center; } }

/* ============================================================
   23. PAGINATION
   ============================================================ */

.pagination { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 48px 0; }
.pagination ul { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.page-link {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  transition: all var(--transition);
  text-decoration: none;
}
.page-link:hover, .page-link.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-dots { display: flex; align-items: center; padding: 0 8px; color: var(--text-muted); }
.page-info { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   24. BREADCRUMB
   ============================================================ */

.breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
}
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb li a:hover { color: var(--primary); }
.breadcrumb li::after { content: '/'; margin: 0 8px; color: var(--text-muted); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb li.active span { color: var(--text-primary); font-weight: 500; }

/* ============================================================
   25. SIDEBAR & LAYOUT
   ============================================================ */

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); }

/* ============================================================
   26. SCROLL TO TOP
   ============================================================ */

.scroll-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(10px);
  z-index: var(--z-sticky);
}
.scroll-top.show { opacity: 1; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ============================================================
   27. COOKIE BANNER
   ============================================================ */

.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 20px;
  z-index: var(--z-toast);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-lg);
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 0.875rem; color: var(--text-secondary); flex: 1; }
.cookie-actions { display: flex; gap: 10px; }

/* ============================================================
   28. JOB DETAIL PAGE
   ============================================================ */

.job-detail-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 24px;
}
.job-detail-top {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.job-detail-info { flex: 1; }
.job-detail-title { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800; margin-bottom: 8px; }
.job-detail-company { font-size: 1rem; color: var(--primary); font-weight: 600; margin-bottom: 16px; }
.job-detail-meta { display: flex; flex-wrap: wrap; gap: 16px; }
.job-detail-meta-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.9rem; color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-full);
}
.job-detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.job-detail-body { display: flex; gap: 24px; }
.job-detail-main { flex: 1; min-width: 0; }
.job-detail-sidebar { width: 320px; flex-shrink: 0; }

.detail-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}
.detail-section h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.detail-content { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.8; }
.detail-content ul { padding-left: 20px; list-style: disc; }
.detail-content li { margin-bottom: 6px; }
.detail-content h3 { font-size: 1rem; color: var(--text-primary); margin: 20px 0 8px; }

.skills-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  padding: 6px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.skill-tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); cursor: pointer; }

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.overview-item { display: flex; flex-direction: column; gap: 4px; }
.overview-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.overview-value { font-size: 0.9rem; color: var(--text-primary); font-weight: 600; }

/* Share buttons */
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-secondary);
  text-decoration: none;
}
.share-btn:hover { transform: translateY(-2px); }
.share-whatsapp:hover { background: #25d366; border-color: #25d366; color: #fff; }
.share-twitter:hover  { background: #1da1f2; border-color: #1da1f2; color: #fff; }
.share-linkedin:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.share-copy:hover     { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ============================================================
   29. SEARCH PAGE — FILTER SIDEBAR
   ============================================================ */

.filter-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.filter-group { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border-light); }
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-group-title { font-size: 0.875rem; font-weight: 700; color: var(--text-primary); margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.filter-clear { font-size: 0.75rem; color: var(--primary); cursor: pointer; font-weight: 500; }

.filter-option { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; }
.filter-option input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); flex-shrink: 0; }
.filter-option label { font-size: 0.85rem; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: space-between; width: 100%; }
.filter-count { font-size: 0.75rem; color: var(--text-muted); background: var(--bg-secondary); padding: 2px 8px; border-radius: var(--radius-full); }

.salary-range { display: flex; flex-direction: column; gap: 8px; }
.salary-range input[type="range"] {
  width: 100%; height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  appearance: none;
  cursor: pointer;
}
.salary-range input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.2);
}
.salary-display { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   30. DASHBOARD (SEEKER/EMPLOYER)
   ============================================================ */

.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - var(--header-h));
  gap: 0;
}

.dashboard-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 32px 0;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

.dash-nav { padding: 0 16px; }
.dash-nav-section { margin-bottom: 8px; }
.dash-nav-title { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); padding: 8px 12px; }
.dash-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  margin-bottom: 2px;
}
.dash-nav a:hover, .dash-nav a.active { background: rgba(79,70,229,0.1); color: var(--primary); }
.dash-nav a .icon { width: 18px; height: 18px; flex-shrink: 0; }
.dash-nav a .badge-count {
  margin-left: auto;
  font-size: 0.7rem;
  background: var(--primary);
  color: #fff;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.dashboard-main { padding: 32px; background: var(--bg-secondary); }

.dash-header { margin-bottom: 32px; }
.dash-title { font-size: 1.5rem; font-weight: 800; }
.dash-subtitle { font-size: 0.875rem; color: var(--text-muted); margin-top: 4px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; align-items: center; gap: 16px;
  transition: transform var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon.blue   { background: rgba(79,70,229,0.1);  color: var(--primary); }
.stat-icon.green  { background: rgba(16,185,129,0.1); color: var(--success); }
.stat-icon.amber  { background: rgba(245,158,11,0.1); color: var(--warning); }
.stat-icon.red    { background: rgba(239,68,68,0.1);  color: var(--danger); }
.stat-icon.cyan   { background: rgba(6,182,212,0.1);  color: var(--info); }
.stat-icon.purple { background: rgba(124,58,237,0.1); color: var(--secondary); }

.stat-info { flex: 1; }
.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.stat-change { font-size: 0.75rem; font-weight: 600; margin-top: 2px; }
.stat-change.up   { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* Profile completeness */
.profile-progress { background: var(--bg-secondary); border-radius: var(--radius-full); height: 8px; overflow: hidden; margin: 8px 0; }
.profile-progress-bar { height: 100%; background: var(--gradient-primary); border-radius: var(--radius-full); transition: width 1s ease; }

/* ============================================================
   31. TABLE
   ============================================================ */

.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  font-size: 0.875rem;
}
.data-table th {
  text-align: left;
  padding: 14px 16px;
  background: var(--bg-secondary);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-secondary); }
.data-table .actions { display: flex; gap: 6px; }

/* ============================================================
   32. ANIMATIONS (Scroll Reveal)
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left  { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-left.visible, .reveal-right.visible { transform: translateX(0); }

.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s ease; }
.stagger.visible > *:nth-child(1)  { opacity:1; transform:translateY(0); transition-delay:0.05s; }
.stagger.visible > *:nth-child(2)  { opacity:1; transform:translateY(0); transition-delay:0.1s; }
.stagger.visible > *:nth-child(3)  { opacity:1; transform:translateY(0); transition-delay:0.15s; }
.stagger.visible > *:nth-child(4)  { opacity:1; transform:translateY(0); transition-delay:0.2s; }
.stagger.visible > *:nth-child(5)  { opacity:1; transform:translateY(0); transition-delay:0.25s; }
.stagger.visible > *:nth-child(6)  { opacity:1; transform:translateY(0); transition-delay:0.3s; }
.stagger.visible > *:nth-child(n+7){ opacity:1; transform:translateY(0); transition-delay:0.35s; }

/* Counter animation */
.counter { transition: all 0.05s linear; }

/* ============================================================
   33. BLOG
   ============================================================ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-secondary);
}
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.blog-card-title { font-size: 1rem; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.blog-card-title a { color: var(--text-primary); }
.blog-card-title a:hover { color: var(--primary); }
.blog-card-excerpt { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; flex: 1; }
.blog-card-meta { display: flex; align-items: center; gap: 12px; font-size: 0.78rem; color: var(--text-muted); margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border-light); }

/* ============================================================
   34. MEMBERSHIP/PRICING
   ============================================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
}
.pricing-card.popular { border-color: var(--primary); box-shadow: var(--shadow-glow); transform: scale(1.02); }
.pricing-card .popular-label {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.pricing-name { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.pricing-price { margin: 16px 0; }
.pricing-price .amount { font-size: 2.5rem; font-weight: 900; color: var(--primary); }
.pricing-price .period { font-size: 0.875rem; color: var(--text-muted); }
.pricing-price .free { font-size: 2rem; font-weight: 900; color: var(--success); }
.pricing-features { margin: 24px 0; }
.pricing-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.875rem; color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}
.pricing-feature:last-child { border-bottom: none; }
.pricing-feature .check { color: var(--success); flex-shrink: 0; }
.pricing-feature .cross { color: var(--text-muted); flex-shrink: 0; }

/* ============================================================
   35. RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .layout-with-sidebar { grid-template-columns: 240px 1fr; }
  .job-detail-body { flex-direction: column; }
  .job-detail-sidebar { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .dashboard-layout { grid-template-columns: 220px 1fr; }
}

@media (max-width: 768px) {
  :root { --section-py: 50px; --header-h: 64px; }

  .nav-menu { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); flex-direction: column; padding: 12px; gap: 4px; box-shadow: var(--shadow-lg); z-index: var(--z-dropdown); }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-outline { display: none; }

  .hero { padding: 70px 0 60px; }
  .hero-stats { gap: 20px; }

  .search-box { flex-direction: column; }
  .search-field { width: 100%; min-width: 0; }
  .search-divider { display: none; }
  .search-btn { width: 100%; justify-content: center; }

  .layout-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }

  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { display: none; position: fixed; top: 0; left: 0; z-index: var(--z-modal); height: 100vh; width: 280px; transform: translateX(-100%); transition: transform var(--transition); }
  .dashboard-sidebar.open { display: block; transform: translateX(0); box-shadow: var(--shadow-xl); }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .jobs-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .companies-grid { grid-template-columns: 1fr 1fr; }

  .overview-grid { grid-template-columns: 1fr; }
  .job-detail-header { padding: 24px; }
  .job-detail-top { flex-direction: column; }

  .modal { padding: 24px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { width: 100%; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.popular { transform: scale(1); }

  .blog-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .companies-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .share-btns { gap: 6px; }
  .share-btn span { display: none; }
}

/* ============================================================
   36. PRINT STYLES
   ============================================================ */

@media print {
  .header, .footer, .cookie-banner, .scroll-top, .save-btn,
  .job-detail-actions, .share-btns, .related-jobs { display: none !important; }
  body { font-size: 12pt; }
  .job-detail-header { box-shadow: none; border: 1px solid #ccc; }
  a { color: #000; }
}

/* ============================================================
   37. MISC PREMIUM TOUCHES
   ============================================================ */

/* Glass morphism cards */
.glass-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
}

/* Gradient text */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hover scale */
.hover-scale { transition: transform var(--transition); }
.hover-scale:hover { transform: scale(1.03); }

/* Verified badge */
.verified-icon { color: var(--primary); display: inline-flex; }

/* Image placeholder */
.img-placeholder { background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; color: var(--text-muted); }

/* No results */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state .empty-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); font-size: 0.9rem; }

/* Input search clear */
.input-clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer; color: var(--text-muted); display: none; }
.input-clear.show { display: block; }
