/* ═══════════════════════════════════════════════════════════════
   JOBFLIXS — Premium Dark Job Board
   Design System & Component Styles
   ═══════════════════════════════════════════════════════════════ */

/* ─── FONTS ─────────────────────────────────────────────────── */
/* Fonts loaded asynchronously from HTML for zero render-blocking */

/* ─── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  /* Colors */
  --bg-base:        #080b14;
  --bg-surface:     #0d1117;
  --bg-card:        #111827;
  --bg-card-hover:  #151f2e;
  --bg-elevated:    #1a2332;

  --accent-primary:   #6366f1;  /* Indigo */
  --accent-secondary: #8b5cf6;  /* Violet */
  --accent-tertiary:  #06b6d4;  /* Cyan */
  --accent-glow:      rgba(99, 102, 241, 0.3);

  --text-primary:   #f0f4ff;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;
  --text-accent:    #818cf8;

  --border-subtle:  rgba(255, 255, 255, 0.06);
  --border-medium:  rgba(255, 255, 255, 0.12);
  --border-accent:  rgba(99, 102, 241, 0.4);

  /* Gradients */
  --grad-primary:   linear-gradient(135deg, #6366f1, #8b5cf6);
  --grad-hero:      linear-gradient(180deg, #080b14 0%, #0d1117 100%);
  --grad-text:      linear-gradient(135deg, #818cf8, #c084fc, #22d3ee);
  --grad-card-glow: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.05));

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 40px rgba(99,102,241,0.25);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);

  /* Typography */
  --font-sans:    'Inter', system-ui, sans-serif;
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    18px;
  --radius-xl:    24px;
  --radius-full:  9999px;

  /* Transitions */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:       150ms var(--ease);
  --t-mid:        250ms var(--ease);
  --t-slow:       400ms var(--ease);
}

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, button, textarea, select { font-family: inherit; }

/* ─── LAYOUT ─────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--t-mid);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(99,102,241,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99,102,241,0.55);
  filter: brightness(1.1);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
  background: rgba(99,102,241,0.08);
}
.btn-outline {
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(99,102,241,0.1);
  border-color: var(--accent-primary);
  color: var(--text-accent);
}
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.full-width { width: 100%; justify-content: center; }

/* ─── GRADIENT TEXT ──────────────────────────────────────────── */
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: all var(--t-mid);
}
.navbar.scrolled {
  background: rgba(8,11,20,0.85);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.brand-icon { font-size: 1.2rem; }
.brand-accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--t-fast);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--t-fast);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--t-mid);
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION (Compact Height & Zero Spacing Bug)
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 130px 24px 50px;
  overflow: hidden;
}

/* Background blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: blobFloat 8s ease-in-out infinite;
}
.hero-blob--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.3), transparent 70%);
  top: -200px; left: -200px;
  animation-delay: 0s;
}
.hero-blob--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.25), transparent 70%);
  top: 50%; right: -150px;
  animation-delay: -3s;
}
.hero-blob--3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(6,182,212,0.2), transparent 70%);
  bottom: -100px; left: 40%;
  animation-delay: -6s;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black, transparent);
}

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

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-accent);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #10b981; }
  50% { opacity: 0.6; box-shadow: 0 0 16px #10b981; }
}

/* Hero Title */
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.hero-title-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* ─── SEARCH BAR ─────────────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  background: rgba(17,24,39,0.9);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 6px;
  gap: 0;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(99,102,241,0.15);
  max-width: 680px;
  margin: 0 auto 24px;
  transition: border-color var(--t-mid), box-shadow var(--t-mid);
}
.search-bar:focus-within {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg), 0 0 0 3px rgba(99,102,241,0.15), var(--shadow-glow);
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 12px 20px;
}
.search-field--keyword { border-right: none; }
.search-icon {
  width: 18px; height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.search-field input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  min-width: 0;
}
.search-field input::placeholder { color: var(--text-muted); }
.search-divider {
  width: 1px;
  height: 36px;
  background: var(--border-medium);
  flex-shrink: 0;
}
.search-btn {
  flex-shrink: 0;
  border-radius: var(--radius-full) !important;
  padding: 12px 28px !important;
}

/* Hero Tags */
.hero-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}
.tags-label { color: var(--text-muted); }
.tag {
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  transition: all var(--t-fast);
  cursor: pointer;
}
.tag:hover {
  background: rgba(99,102,241,0.12);
  border-color: var(--accent-primary);
  color: var(--text-accent);
}

/* ─── FLOATING JOB CARDS (decorative) ───────────────────────── */
.hero-floating-cards {
  position: absolute;
  right: max(24px, calc(50% - 680px));
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
}
.float-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(17,24,39,0.85);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  min-width: 240px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255,255,255,0.04);
  animation: cardFloat 6s ease-in-out infinite;
}
.float-card--1 { animation-delay: 0s; }
.float-card--2 { animation-delay: -2s; }
.float-card--3 { animation-delay: -4s; }
@keyframes cardFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.float-card-logo {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #4285F4, #34A853);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: #fff;
  flex-shrink: 0;
}
.float-card-logo--purple { background: linear-gradient(135deg, #E50914, #141414); }
.float-card-logo--orange { background: linear-gradient(135deg, #FF5A5F, #FF385C); }
.float-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.float-card-info strong { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.float-card-info span { font-size: 0.75rem; color: var(--text-muted); }
.float-badge {
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(99,102,241,0.2);
  color: var(--text-accent);
  border: 1px solid rgba(99,102,241,0.3);
  white-space: nowrap;
}
.float-badge--green {
  background: rgba(16,185,129,0.15);
  color: #34d399;
  border-color: rgba(16,185,129,0.3);
}
.float-badge--purple {
  background: rgba(139,92,246,0.2);
  color: #c4b5fd;
  border-color: rgba(139,92,246,0.3);
}

/* ═══════════════════════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════════════════════ */
.stats-bar {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 32px 0;
}
.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 40px;
  text-align: center;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -2px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border-subtle);
}

/* ═══════════════════════════════════════════════════════════════
   SECTIONS (Generic)
   ═══════════════════════════════════════════════════════════════ */
.section { padding: 80px 0; }
.section--dark { background: var(--bg-surface); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 16px;
  padding: 4px 14px;
  background: rgba(99,102,241,0.1);
  border-radius: var(--radius-full);
  border: 1px solid rgba(99,102,241,0.2);
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORY CARDS
   ═══════════════════════════════════════════════════════════════ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.category-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--t-mid);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-card-glow);
  opacity: 0;
  transition: opacity var(--t-mid);
}
.category-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(99,102,241,0.2);
}
.category-card:hover::before { opacity: 1; }
.cat-icon-wrap {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--cat-color) 15%, transparent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--t-mid);
  border: 1px solid color-mix(in srgb, var(--cat-color) 30%, transparent);
}
.cat-icon-wrap svg {
  width: 22px; height: 22px;
  color: var(--cat-color);
}
.category-card:hover .cat-icon-wrap {
  background: color-mix(in srgb, var(--cat-color) 25%, transparent);
  transform: scale(1.05);
}
.cat-info {
  flex: 1;
}
.cat-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.cat-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.cat-arrow {
  width: 18px; height: 18px;
  color: var(--text-muted);
  transition: all var(--t-fast);
  flex-shrink: 0;
}
.category-card:hover .cat-arrow {
  color: var(--accent-primary);
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════════
   FILTER PILLS
   ═══════════════════════════════════════════════════════════════ */
.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
  margin-bottom: 0;
}
.filter-pill {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  background: transparent;
  transition: all var(--t-fast);
  cursor: pointer;
}
.filter-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}
.filter-pill.active {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(99,102,241,0.35);
}

/* ═══════════════════════════════════════════════════════════════
   JOB CARDS
   ═══════════════════════════════════════════════════════════════ */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--t-mid);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.job-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid);
}
.job-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(99,102,241,0.15);
}
.job-card:hover::after { transform: scaleX(1); }

.job-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.job-logo {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem; color: #fff;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.job-meta { flex: 1; min-width: 0; }
.job-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--t-fast);
}
.job-card:hover .job-title { color: var(--text-accent); }
.job-company {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.bookmark-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all var(--t-fast);
}
.bookmark-btn:hover {
  background: rgba(99,102,241,0.1);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}
.bookmark-btn.saved {
  background: rgba(99,102,241,0.15);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}
.bookmark-btn svg { width: 16px; height: 16px; }
.bookmark-btn.saved svg { fill: var(--accent-primary); }

.job-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.job-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.job-tag--type {
  background: rgba(99,102,241,0.12);
  color: var(--text-accent);
  border-color: rgba(99,102,241,0.25);
}
.job-tag--remote {
  background: rgba(16,185,129,0.12);
  color: #34d399;
  border-color: rgba(16,185,129,0.25);
}
.job-tag--contract {
  background: rgba(245,158,11,0.12);
  color: #fbbf24;
  border-color: rgba(245,158,11,0.25);
}
.job-tag--part {
  background: rgba(6,182,212,0.12);
  color: #22d3ee;
  border-color: rgba(6,182,212,0.25);
}
.job-tag--location {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  border-color: var(--border-subtle);
}
.job-tag--new {
  background: rgba(249,115,22,0.12);
  color: #fb923c;
  border-color: rgba(249,115,22,0.25);
}

.job-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
.job-salary {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}
.job-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.job-posted {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.job-card.hidden { display: none; }

.view-all-wrap {
  text-align: center;
  margin-top: 48px;
}

/* Loading State */
.loading-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  gap: 16px;
  color: var(--text-secondary);
}
.spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(99,102,241,0.2);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════
   MODAL WINDOWS & BACKDROPS
   ═══════════════════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-mid);
}
.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(99,102,241,0.2);
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform var(--t-mid);
  overflow: hidden;
}
.modal-backdrop.active .modal-window {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px; right: 20px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast);
  z-index: 10;
}
.modal-close:hover {
  background: rgba(239,68,68,0.2);
  color: #ef4444;
}

/* Job Detail Modal specific */
.modal-header {
  padding: 28px 28px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.modal-company-logo {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 900; color: #fff;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.modal-title-wrap h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}
.modal-company-name {
  font-size: 0.9rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.modal-meta-pills {
  padding: 14px 28px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0,0,0,0.2);
}

.modal-body-scroll {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.modal-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.modal-summary, .modal-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.modal-description p { margin-bottom: 12px; }
.modal-description ul { margin: 10px 0 16px 20px; list-style: disc; }
.modal-description li { margin-bottom: 6px; }

.modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(13,17,23,0.9);
}

/* Apply Modal & Post Modal */
.apply-header {
  padding: 28px 28px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.apply-header h2 { font-size: 1.4rem; font-weight: 800; }
.apply-subtitle { font-size: 0.9rem; color: var(--text-muted); }

.apply-form {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.form-group input, .form-group textarea, .form-group select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--t-fast);
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
  background: rgba(255,255,255,0.07);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* File Upload Box */
.file-upload-box {
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  position: relative;
  transition: all var(--t-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}
.file-upload-box:hover {
  border-color: var(--accent-primary);
  background: rgba(99,102,241,0.05);
  color: var(--text-accent);
}
.file-upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   TOAST NOTIFICATION
   ═══════════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: rgba(17,24,39,0.95);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg), 0 0 20px rgba(99,102,241,0.3);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   COMPANIES TICKER
   ═══════════════════════════════════════════════════════════════ */
.companies-ticker-wrap {
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.02);
  padding: 8px 0;
}
.companies-ticker-wrap::before,
.companies-ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
}
.companies-ticker-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-base), transparent);
}
.companies-ticker-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-base), transparent);
}
.ticker-inner {
  display: flex;
  gap: 0;
  animation: tickerScroll 35s linear infinite;
  width: max-content;
}
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-inner:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 16px 36px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-right: 1px solid var(--border-subtle);
  transition: color var(--t-fast);
  white-space: nowrap;
  cursor: default;
}
.ticker-item:hover { color: var(--text-primary); }

/* ═══════════════════════════════════════════════════════════════
   CTA SECTION & NEWSLETTER
   ═══════════════════════════════════════════════════════════════ */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: 80px 24px;
  background: linear-gradient(135deg, #0a0f1e, #0f1929);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.cta-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.cta-blob--1 {
  width: 500px; height: 500px;
  background: rgba(99,102,241,0.2);
  top: -200px; left: -100px;
}
.cta-blob--2 {
  width: 400px; height: 400px;
  background: rgba(139,92,246,0.15);
  bottom: -200px; right: -100px;
}
.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-text h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.cta-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
}
.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.newsletter-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.newsletter-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-primary);
}
.newsletter-icon { font-size: 2.5rem; margin-bottom: 24px; }
.newsletter-box h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.newsletter-box p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto 16px;
}
.newsletter-form input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 12px 20px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--t-fast);
}
.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.newsletter-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 60px;
}
.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 16px;
  margin-bottom: 24px;
  line-height: 1.7;
  max-width: 280px;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.social-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--t-fast);
}
.social-btn:hover {
  background: rgba(99,102,241,0.1);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--text-accent); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-floating-cards { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(8,11,20,0.95);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px;
    gap: 20px;
  }
  .search-bar {
    flex-direction: column;
    border-radius: var(--radius-xl);
    padding: 8px;
    gap: 4px;
  }
  .search-divider { width: 100%; height: 1px; }
  .search-btn { width: 100%; justify-content: center; border-radius: var(--radius-lg) !important; }
  .stat-item { padding: 16px 24px; }
  .stat-number { font-size: 1.8rem; }
  .jobs-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-box { padding: 40px 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-badge { font-size: 0.72rem; }
  .hero-title { letter-spacing: -1px; }
  .section { padding: 50px 0; }
  .categories-grid { grid-template-columns: 1fr; }
}

/* ─── CSS VAR ALIASES for job.php ───────────────────────────── */
:root {
  --surface-2:      #111827;
  --surface-3:      #1a2332;
  --border-default: rgba(255,255,255,0.08);
  --bg-deep:        #080b14;
}

/* ─── JOB TITLE LINK IN CARDS ───────────────────────────────── */
.job-title-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
  display: block;
}
.job-title-link:hover {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── FULL WIDTH UTILITY ─────────────────────────────────────── */
.full-width {
  width: 100%;
}

/* ─── CARD CURSOR POINTER ─────────────────────────────────────── */
.job-card { cursor: pointer; }

/* ─── ADSTERRA AD SLOTS STYLING ───────────────────────────────── */
.ad-slot-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto;
  padding: 0.5rem 0;
  text-align: center;
  max-width: 100%;
  position: relative;
  overflow: hidden;
}
.ad-slot-container::before {
  content: 'SPONSORED';
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  opacity: 0.6;
}

.ad-slot-728x90 {
  min-height: 110px;
  width: 100%;
  max-width: 760px;
}
.ad-slot-300x250 {
  min-height: 270px;
  width: 100%;
  max-width: 340px;
}
.ad-slot-native {
  width: 100%;
  min-height: 140px;
}
.ad-code-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.ad-placeholder-hint {
  color: var(--text-secondary);
  font-size: 0.82rem;
  padding: 0.75rem;
  background: rgba(99, 102, 241, 0.08);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ─── PAGINATION STYLES (12 Jobs Per Page) ─────────────────────── */
.pagination-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-medium);
}
.pagination-info {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.85rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
  user-select: none;
}
.pagination-btn:hover:not(:disabled) {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.pagination-btn.active {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}
.pagination-dots {
  color: var(--text-muted);
  font-weight: 700;
  padding: 0 0.25rem;
}

