/* ============================================================
   CYBERSEC CAREERS - MODERN JOB BOARD STYLESHEET
   Light Mode (Default) + Seamless Dark Mode Switcher
   ============================================================ */

:root {
  /* --- LIGHT MODE VARIABLES (DEFAULT) --- */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-card-hover: #f8fafc;
  --bg-header: rgba(255, 255, 255, 0.92);
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent-primary: #2563eb;
  --accent-primary-hover: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.15);
  --featured-bg: #fffbeb;
  --featured-border: #fcd34d;
  --featured-badge-bg: #fef3c7;
  --featured-badge-text: #92400e;
  --remote-badge-bg: #ecfdf5;
  --remote-badge-text: #065f46;
  --tag-bg: #f1f5f9;
  --tag-text: #334155;
  --tag-border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] {
  /* --- DARK MODE VARIABLES --- */
  --bg-page: #090d16;
  --bg-card: #0f172a;
  --bg-card-subtle: #162036;
  --bg-card-hover: #1e293b;
  --bg-header: rgba(15, 23, 42, 0.92);
  --border-color: #1e293b;
  --border-focus: #60a5fa;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-primary: #3b82f6;
  --accent-primary-hover: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.25);
  --featured-bg: rgba(245, 158, 11, 0.08);
  --featured-border: #b45309;
  --featured-badge-bg: #78350f;
  --featured-badge-text: #fde68a;
  --remote-badge-bg: rgba(16, 185, 129, 0.15);
  --remote-badge-text: #6ee7b7;
  --tag-bg: #1e293b;
  --tag-text: #cbd5e1;
  --tag-border: #334155;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   BASE RESET & TYPOGRAPHY
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   NAVIGATION HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.logo-img-wrap {
  background: transparent !important;
  box-shadow: none !important;
}

.brand-img-icon {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: contain;
}

.brand-name {
  color: var(--text-primary);
}

.brand-name .accent {
  color: var(--accent-primary);
}

.brand-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link:hover {
  color: var(--accent-primary);
}

.pill-hot {
  font-size: 0.65rem;
  font-weight: 800;
  background-color: #ef4444;
  color: #ffffff;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .moon-icon {
  display: block;
}
[data-theme="light"] .sun-icon {
  display: none;
}

[data-theme="dark"] .moon-icon {
  display: none;
}
[data-theme="dark"] .sun-icon {
  display: block;
}

/* Common Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  font-size: 0.92rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-hover));
  color: #ffffff;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--accent-glow);
}

.btn-secondary {
  background-color: var(--bg-card-subtle);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--border-color);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background-color: var(--bg-card-subtle);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.84rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  border-radius: 12px;
}

.full-width {
  width: 100%;
}

.post-btn .btn-price-badge {
  font-size: 0.72rem;
  background-color: rgba(255, 255, 255, 0.25);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-weight: 700;
}

/* ============================================================
   HERO BANNER & SEARCH SECTION
   ============================================================ */
.hero-section {
  padding: 3.5rem 0 2.5rem 0;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.06), transparent 70%);
  border-bottom: 1px solid var(--border-color);
}

.hero-container {
  text-align: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.15rem;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 2.25rem auto;
  line-height: 1.55;
}

/* Search Bar Component */
.hero-search-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search-box:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 10px 25px -5px var(--accent-glow);
}

.search-input-group {
  flex: 2;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 0.75rem;
}

.search-icon, .select-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.main-search-input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.98rem;
  outline: none;
}

.search-divider {
  width: 1px;
  height: 32px;
  background-color: var(--border-color);
}

.search-select-group {
  flex: 1.2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.5rem;
}

.main-select {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}

.search-options {
  padding: 0 0.75rem;
}

.remote-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
}

.remote-toggle-label input {
  accent-color: var(--accent-primary);
  width: 16px;
  height: 16px;
}

.search-submit-btn {
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
}

/* Popular search chips */
.popular-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.popular-label {
  color: var(--text-muted);
  font-weight: 600;
}

.tag-pill {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.tag-pill:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* ============================================================
   CATEGORY TABS & LISTINGS
   ============================================================ */
.listings-section {
  padding: 2.5rem 1.5rem;
  flex: 1;
}

.category-filter-bar {
  margin-bottom: 2rem;
}

.category-scroll-container {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.category-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.15s ease;
}

.category-tab:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
}

.category-tab.active {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.tab-count {
  font-size: 0.75rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background-color: var(--bg-card-subtle);
  color: var(--text-muted);
}

.category-tab.active .tab-count {
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Active filter indicator */
.active-filters-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.filter-indicator-label {
  color: var(--text-muted);
  font-weight: 600;
}

.active-tag {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-weight: 600;
  color: var(--text-primary);
}

.active-tag a {
  margin-left: 0.35rem;
  color: var(--text-muted);
  font-weight: 800;
}

.active-tag a:hover {
  color: #ef4444;
}

.clear-all-link {
  color: var(--accent-primary);
  font-weight: 600;
  text-decoration: underline;
}

/* Results Layout Grid */
.results-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.results-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.results-count {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ============================================================
   JOB CARDS & GROUPS
   ============================================================ */
.featured-group {
  margin-bottom: 2rem;
}

.group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.featured-badge-header {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #d97706;
}

.group-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.standard-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.featured-cards-grid, .standard-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.job-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.job-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md);
}

/* Featured Card Distinction ($199 Tier) */
.featured-job-card {
  background-color: var(--featured-bg);
  border: 1.5px solid var(--featured-border);
  position: relative;
}

.featured-ribbon {
  font-size: 0.68rem;
  font-weight: 800;
  background-color: var(--featured-badge-bg);
  color: var(--featured-badge-text);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

/* Company Logo / Avatar */
.company-logo-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #ffffff;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.avatar-lg {
  width: 68px;
  height: 68px;
  font-size: 1.5rem;
  border-radius: 16px;
}

.color-rose { background: linear-gradient(135deg, #e11d48, #be123c); }
.color-emerald { background: linear-gradient(135deg, #059669, #047857); }
.color-blue { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.color-red { background: linear-gradient(135deg, #dc2626, #991b1b); }
.color-orange { background: linear-gradient(135deg, #ea580c, #c2410c); }
.color-amber { background: linear-gradient(135deg, #d97706, #b45309); }
.color-slate { background: linear-gradient(135deg, #475569, #1e293b); }
.color-teal { background: linear-gradient(135deg, #0d9488, #0f766e); }
.color-violet { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.color-indigo { background: linear-gradient(135deg, #4f46e5, #4338ca); }
.color-purple { background: linear-gradient(135deg, #9333ea, #7e22ce); }
.color-zinc { background: linear-gradient(135deg, #52525b, #27272a); }
.color-cyan { background: linear-gradient(135deg, #0891b2, #0e7490); }
.color-sky { background: linear-gradient(135deg, #0284c7, #0369a1); }

/* Card Content Details */
.card-top-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.company-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.remote-badge {
  background-color: var(--remote-badge-bg);
  color: var(--remote-badge-text);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
}

.category-pill-sm {
  font-size: 0.74rem;
  font-weight: 600;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.12rem 0.5rem;
  border-radius: 6px;
}

.job-title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.45rem;
}

.job-title a:hover {
  color: var(--accent-primary);
}

.job-meta-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.salary-item {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--text-primary);
}

.job-tags-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.job-tag {
  background-color: var(--tag-bg);
  color: var(--tag-text);
  border: 1px solid var(--tag-border);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
}

.card-right {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 130px;
}

/* ============================================================
   SIDEBAR COMPONENTS
   ============================================================ */
.sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.35rem;
  box-shadow: var(--shadow-card);
}

.sidebar-heading {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

/* Employer CTA Card */
.employer-cta-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(6, 182, 212, 0.05));
  border-color: rgba(37, 99, 235, 0.3);
}

.card-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: var(--accent-glow);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.employer-cta-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.employer-cta-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.pricing-mini-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mini-price-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.6rem;
  text-align: center;
  transition: all 0.15s ease;
}

.mini-price-box:hover {
  border-color: var(--accent-primary);
}

.mini-price-box.featured-mini {
  border-color: var(--featured-border);
  background-color: var(--featured-bg);
}

.box-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.box-price {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.box-desc {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.sidebar-guarantee {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  justify-content: center;
}

.sidebar-guarantee svg {
  color: #10b981;
}

/* Domain List Widget */
.domain-sidebar-list {
  list-style: none;
}

.domain-sidebar-list li {
  margin-bottom: 0.4rem;
}

.domain-sidebar-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.12s ease;
}

.domain-sidebar-list a:hover {
  background-color: var(--bg-card-subtle);
  color: var(--accent-primary);
}

.domain-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  background-color: var(--bg-card-subtle);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
}

/* Newsletter Widget */
.newsletter-card h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.newsletter-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}

.sidebar-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-card-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  outline: none;
}

.sidebar-input:focus {
  border-color: var(--accent-primary);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background-color: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: 12px;
}

.empty-icon {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   JOB DETAIL PAGE
   ============================================================ */
.job-detail-page {
  padding: 2rem 1.5rem 4rem 1.5rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--accent-primary);
}

.bc-current {
  color: var(--text-primary);
  font-weight: 600;
}

.job-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
}

.job-detail-header-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
}

.header-top-flex {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.header-badges {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.company-name-lg {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.job-title-lg {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

.job-header-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.job-header-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.header-actions-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.job-detail-body {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

/* Rendered markdown description styling */
.description-rendered {
  color: var(--text-primary);
  font-size: 0.98rem;
  line-height: 1.7;
}

.desc-heading {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 1.5rem 0 0.75rem 0;
  color: var(--text-primary);
}

.desc-subheading {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.35rem 0 0.6rem 0;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.35rem;
}

.desc-p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.desc-list {
  margin: 0.5rem 0 1.25rem 1.5rem;
  color: var(--text-secondary);
}

.desc-list li {
  margin-bottom: 0.45rem;
}

.job-skills-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.job-skills-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.tags-lg .tag-lg {
  font-size: 0.85rem;
  padding: 0.3rem 0.75rem;
}

.apply-bottom-callout {
  margin-top: 2.5rem;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.callout-text h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.callout-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Job Detail Sidebar */
.job-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.6rem;
}

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

.summary-item dt {
  color: var(--text-muted);
  font-weight: 500;
}

.summary-item dd {
  font-weight: 600;
  text-align: right;
}

.salary-highlight {
  font-family: 'JetBrains Mono', monospace;
  color: #059669;
}

.portal-link {
  color: var(--accent-primary);
  font-weight: 700;
}

.related-jobs-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.related-job-item {
  display: block;
  padding: 0.75rem;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.15s ease;
}

.related-job-item:hover {
  border-color: var(--accent-primary);
}

.rel-company {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.rel-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0.2rem 0;
}

.rel-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ============================================================
   EMPLOYER POST A JOB FLOW & STRIPE MODAL
   ============================================================ */
.post-job-page {
  padding: 2.5rem 1.5rem 4rem 1.5rem;
}

.post-job-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
}

.post-job-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  background-color: var(--accent-glow);
  color: var(--accent-primary);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.post-job-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

.post-job-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Plan Selection Cards ($99 vs $199) */
.plan-selection-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 950px;
  margin: 0 auto 2.5rem auto;
}

.plan-card {
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.plan-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.plan-card.selected {
  border-color: var(--accent-primary);
  background-color: rgba(37, 99, 235, 0.03);
  box-shadow: 0 4px 18px var(--accent-glow);
}

.plan-card.featured-plan.selected {
  border-color: #f59e0b;
  background-color: var(--featured-bg);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.25);
}

.plan-popular-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.plan-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.plan-radio input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.plan-title-group h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.plan-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.plan-price {
  margin-left: auto;
  text-align: right;
}

.price-val {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.price-dur {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.plan-features svg {
  color: #10b981;
  flex-shrink: 0;
}

/* Post Job Form & Sticky Preview */
.post-job-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

.form-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.form-section {
  margin-bottom: 2rem;
}

.form-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.required {
  color: #ef4444;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.align-center {
  align-items: center;
}

.flex-1 {
  flex: 1;
}

input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background-color: var(--bg-card);
}

.help-text {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Custom Checkbox */
.custom-checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.4rem;
}

.custom-checkbox-container input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-primary);
}

/* Form Checkout Footer */
.form-checkout-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-color);
}

.checkout-summary {
  display: flex;
  flex-direction: column;
}

.summary-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.summary-amount {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.summary-note {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Live Preview Sticky Sidebar */
.sticky-preview {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-label {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.preview-status {
  font-size: 0.75rem;
  font-weight: 700;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}

.preview-card {
  box-shadow: var(--shadow-md);
}

.preview-tips {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
}

.preview-tips h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.preview-tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ============================================================
   STRIPE CHECKOUT MODAL
   ============================================================ */
.stripe-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.hidden {
  display: none !important;
}

.stripe-modal-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.stripe-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-card-subtle);
}

.stripe-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stripe-secure-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
}

.stripe-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.stripe-close-btn:hover {
  color: var(--text-primary);
}

.stripe-modal-body {
  padding: 1.5rem;
}

.order-summary-box {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.os-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 700;
}

.os-sub {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.os-badge-live {
  font-size: 0.7rem;
  font-weight: 700;
  background-color: var(--remote-badge-bg);
  color: var(--remote-badge-text);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.test-card-banner {
  background-color: rgba(37, 99, 235, 0.08);
  border: 1px dashed var(--accent-primary);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.autofill-btn {
  background-color: var(--accent-primary);
  color: #ffffff;
  border: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
}

.stripe-field {
  margin-bottom: 1rem;
}

.stripe-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text-secondary);
}

.card-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cc-icon {
  position: absolute;
  left: 0.75rem;
  color: var(--text-muted);
}

.card-input-wrapper input {
  padding-left: 2.5rem;
  font-family: 'JetBrains Mono', monospace;
}

.stripe-field-row {
  display: flex;
  gap: 0.75rem;
}

.stripe-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.stripe-pay-button {
  height: 48px;
  margin-top: 0.5rem;
  font-size: 1rem;
  background: #635bff;
  box-shadow: 0 4px 12px rgba(99, 91, 255, 0.3);
}

.stripe-pay-button:hover {
  background: #5348e0;
}

.stripe-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.85rem;
  line-height: 1.4;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   CHECKOUT SUCCESS PAGE
   ============================================================ */
.checkout-success-page {
  padding: 3rem 1.5rem 5rem 1.5rem;
  max-width: 680px;
}

.success-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.success-icon-wrap {
  width: 72px;
  height: 72px;
  background-color: #ecfdf5;
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.2);
}

.success-card h1 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.success-sub {
  font-size: 0.98rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.receipt-box {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
  margin-bottom: 2rem;
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.receipt-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
}

.badge-status-paid {
  font-size: 0.72rem;
  font-weight: 800;
  background-color: #d1fae5;
  color: #065f46;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.receipt-details {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.88rem;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.receipt-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.next-steps-banner {
  background-color: var(--bg-card-subtle);
  border-radius: 10px;
  padding: 1rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  text-align: left;
}

.next-steps-banner h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem 0;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 1rem 0 1.25rem 0;
  max-width: 380px;
  line-height: 1.5;
}

.stripe-badge-footer {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  background-color: var(--bg-card-subtle);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.footer-links-col h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 1.15rem;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.footer-links-col a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.footer-legal a:hover {
  color: var(--text-primary);
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================ */
@media (max-width: 992px) {
  .results-layout,
  .job-detail-layout,
  .post-job-grid {
    grid-template-columns: 1fr;
  }
  
  .sticky-preview {
    position: static;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .plan-selection-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-search-box {
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem;
  }

  .search-divider {
    display: none;
  }

  .job-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card-right {
    flex-direction: row;
    width: 100%;
  }

  .card-right .btn {
    flex: 1;
  }

  .form-row {
    flex-direction: column;
  }
}
