/* ============================================================
   CSS VARIABLES - Light Mode
   ============================================================ */
:root {
  --surface-white: #ffffff;
  --surface-modal: #ffffff;
  --surface-menu-bar: #f8f9fb;
  --surface-gray-1: #f4f5f7;
  --surface-gray-2: #eceef0;
  --surface-gray-3: #e2e4e8;
  --surface-selected: #ffffff;
  --surface-page-bg: #f5f5f5;
  --ink-gray-3: #b4b8bf;
  --ink-gray-4: #9ca0a6;
  --ink-gray-5: #74787e;
  --ink-gray-6: #60646a;
  --ink-gray-7: #4c5056;
  --ink-gray-8: #333538;
  --ink-gray-9: #1a1c1e;
  --ink-blue-4: #2490ef;
  --outline-gray-1: #e8eaed;
  --outline-gray-2: #dfe1e4;
  --outline-gray-3: #c8cacf;
  --sidebar-width: 220px;
}

/* ============================================================
   DARK MODE
   ============================================================ */
.dark {
  --surface-white: #1a1c1e;
  --surface-modal: #222426;
  --surface-menu-bar: #141517;
  --surface-gray-1: #222426;
  --surface-gray-2: #2a2c2e;
  --surface-gray-3: #333538;
  --surface-selected: #2a2c2e;
  --surface-page-bg: #141517;
  --ink-gray-3: #60646a;
  --ink-gray-4: #74787e;
  --ink-gray-5: #9ca0a6;
  --ink-gray-6: #b4b8bf;
  --ink-gray-7: #c8cacf;
  --ink-gray-8: #e2e4e8;
  --ink-gray-9: #f4f5f7;
  --ink-blue-4: #4dabf7;
  --outline-gray-1: #333538;
  --outline-gray-2: #3a3c3e;
  --outline-gray-3: #4c5056;
}

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

html {
  direction: rtl;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background-color: var(--surface-page-bg);
  color: var(--ink-gray-8);
  line-height: 1.5;
  overflow: hidden;
  height: 100vh;
  transition: background-color 0.2s, color 0.2s;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--ink-gray-3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--ink-gray-5); }

/* ============================================================
   APP ROOT LAYOUT
   ============================================================ */
.app-root {
  display: flex;
  height: 100vh;
  overflow: hidden;
  direction: rtl;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.app-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface-menu-bar);
  border-inline-end: 1px solid var(--outline-gray-1);
  flex-shrink: 0;
  overflow: hidden;
  transition: width 0.2s ease, min-width 0.2s ease;
}

.app-sidebar.collapsed {
  width: 56px;
  min-width: 56px;
}

/* Sidebar Toggle Button */
.sidebar-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 8px 4px 8px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--ink-gray-7);
  transition: background 0.15s;
  flex-shrink: 0;
}
.sidebar-toggle-btn:hover { background: var(--surface-gray-2); }

/* Sidebar Nav */
.sidebar-nav {
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink-gray-7);
  transition: background 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-decoration: none;
}
.sidebar-link:hover { background: var(--surface-gray-2); }
.sidebar-link.active {
  background: var(--surface-selected);
  color: var(--ink-gray-8);
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.sidebar-link svg,
.sidebar-link .icon { flex-shrink: 0; }

.app-sidebar.collapsed .sidebar-link {
  justify-content: center;
  gap: 0;
  padding: 6px;
}
.app-sidebar.collapsed .sidebar-link-text { display: none; }
.app-sidebar.collapsed .sidebar-section-header { display: none; }
.app-sidebar.collapsed .sidebar-services { display: none; }

/* Sidebar Categories */
.sidebar-categories-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-top: 24px;
}

.sidebar-section-header {
  padding: 6px 16px;
  font-size: 13px;
  color: var(--ink-gray-5);
  flex-shrink: 0;
}

.sidebar-categories-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-category-link {
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink-gray-7);
  transition: background 0.15s;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-category-link:hover { background: var(--surface-gray-2); }
.sidebar-category-link.active { background: var(--surface-selected); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }

.sidebar-category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 20px;
  font-size: 16px;
  flex-shrink: 0;
}
.sidebar-category-name {
  margin-inline-start: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sidebar shimmer rows */
.sidebar-shimmer-row {
  height: 28px;
  border-radius: 6px;
  margin-bottom: 2px;
}

/* Sidebar bottom services */
.sidebar-services {
  border-top: 1px solid var(--outline-gray-1);
  padding: 8px;
  flex-shrink: 0;
}

.sidebar-service-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink-gray-7);
  transition: background 0.15s;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-align: start;
}
.sidebar-service-link:hover { background: var(--surface-gray-2); }
.sidebar-service-link.active { background: var(--surface-selected); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }

/* ============================================================
   CONTENT COLUMN
   ============================================================ */
.content-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.app-header {
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--surface-white);
  border-bottom: 1px solid var(--outline-gray-2);
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.app-logo-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-gray-9);
}
.app-logo-tagline {
  font-size: 12px;
  font-weight: 500;
  color: #3b82f6;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.search-trigger-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--outline-gray-2);
  background: var(--surface-gray-1);
  font-size: 14px;
  color: var(--ink-gray-4);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.search-trigger-btn:hover {
  border-color: var(--outline-gray-3);
  background: var(--surface-gray-2);
  color: var(--ink-gray-6);
}
.search-trigger-btn kbd {
  display: inline-block;
  padding: 2px 4px;
  border-radius: 4px;
  border: 1px solid var(--outline-gray-2);
  background: var(--surface-white);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink-gray-4);
  font-family: inherit;
}

.dark-mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--ink-gray-5);
  transition: background 0.15s, color 0.15s;
}
.dark-mode-btn:hover { background: var(--surface-gray-2); color: var(--ink-gray-7); }

/* ============================================================
   MAIN SCROLL CONTAINER
   ============================================================ */
#scrollContainer {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ============================================================
   BODY CONTAINER (content width limit)
   ============================================================ */
.body-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 12px;
  padding-bottom: 160px;
}

/* ============================================================
   PAGE HEADER (title + layout toggle)
   ============================================================ */
.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 12px;
}

.page-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-gray-8);
}

.layout-toggle {
  display: flex;
  align-items: center;
  background: var(--surface-gray-2);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}
.layout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  border-radius: 6px;
  color: var(--ink-gray-5);
  transition: background 0.15s, color 0.15s;
}
.layout-btn:hover { color: var(--ink-gray-7); }
.layout-btn.active {
  background: var(--surface-white);
  color: var(--ink-gray-9);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* ============================================================
   STICKY HEADER (tabs + compact title)
   ============================================================ */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface-page-bg);
}

/* ============================================================
   TABS
   ============================================================ */
.tabs-outer {
  position: relative;
  margin: 0 -12px;
  padding: 0 12px;
}

.tabs-container {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--outline-gray-1);
  gap: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
}
.tabs-container::-webkit-scrollbar { display: none; }

.tab-btn {
  position: relative;
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-gray-5);
  white-space: nowrap;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}
.tab-btn:hover { color: var(--ink-gray-7); }
.tab-btn.active { color: var(--ink-gray-9); }

.tab-indicator {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: var(--ink-gray-9);
  border-radius: 2px 2px 0 0;
  transition: left 0.3s ease, width 0.3s ease;
  pointer-events: none;
}

/* Scroll arrows for tabs */
.tab-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-white);
  color: var(--ink-gray-6);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  transition: color 0.15s;
  border: none;
  cursor: pointer;
}
.tab-arrow:hover { color: var(--ink-gray-9); }
.tab-arrow-start { right: 12px; }
.tab-arrow-end { left: 12px; }

.tabs-fade-start {
  position: absolute;
  top: 0; bottom: 0; right: 12px;
  width: 48px;
  background: linear-gradient(to left, var(--surface-page-bg), transparent);
  pointer-events: none;
  z-index: 10;
}
.tabs-fade-end {
  position: absolute;
  top: 0; bottom: 0; left: 12px;
  width: 48px;
  background: linear-gradient(to right, var(--surface-page-bg), transparent);
  pointer-events: none;
  z-index: 10;
}

/* ============================================================
   JOB LIST
   ============================================================ */
.jobs-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-gray-6);
  padding: 12px 12px 8px;
}

.jobs-list {
  display: flex;
  flex-direction: column;
  margin: 0 -12px;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  padding: 8px 0;
}

/* ============================================================
   JOB ROW (list layout)
   ============================================================ */
.job-row {
  position: relative;
  display: block;
  transition: background 0.15s;
  border-radius: 10px;
}
.job-row:hover { background: var(--surface-gray-2); }
.job-row.pinned { background: #eff6ff; }
.dark .job-row.pinned { background: rgba(30, 58, 138, 0.2); }
.job-row.pinned:hover { background: #dbeafe; }
.dark .job-row.pinned:hover { background: rgba(30, 58, 138, 0.3); }

.job-row-inner {
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 12px;
  gap: 0;
  text-decoration: none;
  color: inherit;
}

.job-row-logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-gray-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.job-row-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-row-content {
  flex: 1;
  min-width: 0;
  margin-inline-start: 16px;
  margin-inline-end: 16px;
}

.job-row-title {
  font-size: 15px;
  color: var(--ink-gray-8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.job-row-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  font-size: 13px;
  color: var(--ink-gray-5);
}

.job-row-actions {
  margin-inline-start: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.job-row-time {
  font-size: 13px;
  color: var(--ink-gray-5);
  white-space: nowrap;
}

.job-row-separator {
  margin: 0 12px;
  height: 1px;
  background: var(--outline-gray-1);
  transition: opacity 0.15s;
}
.job-row:hover + .job-row-separator,
.job-row:hover .job-row-separator { opacity: 0; }

/* ============================================================
   JOB CARD (card layout)
   ============================================================ */
.job-card {
  background: var(--surface-white);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s;
  display: block;
}
.job-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.job-card.pinned { ring: 1px solid #bfdbfe; }

.job-card-inner {
  display: block;
  padding: 16px;
  text-decoration: none;
  color: inherit;
}

.job-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.job-card-logo {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-gray-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.job-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-card-info {
  flex: 1;
  min-width: 0;
}

.job-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-gray-8);
  line-height: 1.3;
}

.job-card-meta {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  font-size: 13px;
  color: var(--ink-gray-5);
}

.job-card-bookmark {
  flex-shrink: 0;
  margin-top: 2px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--ink-gray-4);
  transition: background 0.15s, color 0.15s;
}
.job-card-bookmark:hover { background: var(--surface-gray-2); color: var(--ink-gray-7); }

.job-card-excerpt {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-gray-6);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-card-bottom {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

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

.job-card-time {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--ink-gray-4);
  white-space: nowrap;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
}
.badge-available {
  background: #f0fdf4;
  color: #15803d;
}
.dark .badge-available {
  background: rgba(22, 101, 52, 0.2);
  color: #4ade80;
}
.badge-expired {
  background: #fef2f2;
  color: #b91c1c;
}
.dark .badge-expired {
  background: rgba(127, 29, 29, 0.2);
  color: #f87171;
}
.badge-direct {
  background: #eff6ff;
  color: #1d4ed8;
}
.dark .badge-direct {
  background: rgba(30, 58, 138, 0.2);
  color: #60a5fa;
}

.job-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--outline-gray-2);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-gray-6);
}

/* ============================================================
   BOOKMARK BUTTON
   ============================================================ */
.bookmark-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--ink-gray-4);
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.bookmark-btn:hover { background: var(--surface-gray-3); color: var(--ink-gray-7); }
.bookmark-btn.saved { color: #2563eb; }
.bookmark-btn.saved svg { fill: currentColor; }

/* ============================================================
   LOAD MORE / INFINITE SCROLL
   ============================================================ */
.load-more-trigger {
  height: 40px;
}

.loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 8px;
  color: var(--ink-gray-5);
  font-size: 14px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--outline-gray-2);
  border-top-color: var(--ink-gray-5);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ============================================================
   SHIMMER LOADING
   ============================================================ */
.shimmer {
  background: linear-gradient(90deg,
    var(--surface-gray-2) 25%,
    var(--surface-gray-3) 50%,
    var(--surface-gray-2) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   SEARCH PALETTE
   ============================================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.search-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.search-palette {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) scale(0.97);
  width: min(600px, calc(100vw - 32px));
  background: var(--surface-modal);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  z-index: 1001;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}
.search-palette.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--outline-gray-1);
}
.search-input-icon { color: var(--ink-gray-4); flex-shrink: 0; }
.search-input {
  flex: 1;
  border: none;
  background: none;
  font-size: 16px;
  color: var(--ink-gray-9);
  outline: none;
  font-family: inherit;
  direction: rtl;
}
.search-input::placeholder { color: var(--ink-gray-4); }
.search-close-btn {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--outline-gray-2);
  font-size: 12px;
  color: var(--ink-gray-5);
  flex-shrink: 0;
  transition: background 0.15s;
}
.search-close-btn:hover { background: var(--surface-gray-2); }

.search-results {
  max-height: 480px;
  overflow-y: auto;
}

.search-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  color: var(--ink-gray-5);
  font-size: 14px;
  gap: 8px;
}

/* ============================================================
   SINGLE JOB PAGE
   ============================================================ */
.job-detail-back {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface-page-bg);
  padding-top: 16px;
  padding-bottom: 8px;
}

.job-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 12px;
}
.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 8px;
  color: var(--ink-gray-5);
  transition: background 0.15s, color 0.15s;
}
.back-btn:hover { background: var(--surface-gray-2); color: var(--ink-gray-7); }
.breadcrumb-link { color: var(--ink-gray-5); }
.breadcrumb-link:hover { color: var(--ink-gray-7); }
.breadcrumb-current { font-weight: 500; color: var(--ink-gray-8); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.job-detail-hero {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 8px;
}
.job-detail-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-gray-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.job-detail-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.job-detail-title {
  flex: 1;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-gray-8);
  line-height: 1.3;
}

.job-detail-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.badge-available-lg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  font-size: 14px;
  font-weight: 500;
  color: #15803d;
}
.dark .badge-available-lg {
  border-color: #166534;
  background: rgba(22, 101, 52, 0.2);
  color: #4ade80;
}

.badge-expired-lg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  font-size: 14px;
  font-weight: 500;
  color: #b91c1c;
}
.dark .badge-expired-lg {
  border-color: #7f1d1d;
  background: rgba(127, 29, 29, 0.2);
  color: #f87171;
}

.badge-expiry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fef3c7;
  font-size: 14px;
  font-weight: 500;
  color: #92400e;
}
.dark .badge-expiry {
  background: rgba(120, 53, 15, 0.2);
  color: #fcd34d;
}

.job-detail-info-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-gray-6);
}
.job-detail-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.job-detail-content-card {
  margin-top: 16px;
  border-radius: 12px;
  background: var(--surface-white);
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* Prose styles for job content */
.job-content {
  font-size: 14px;
  color: var(--ink-gray-8);
  line-height: 1.7;
}
.job-content p { margin-bottom: 12px; }
.job-content h1, .job-content h2, .job-content h3 {
  font-weight: 600;
  color: var(--ink-gray-9);
  margin-bottom: 8px;
  margin-top: 16px;
}
.job-content h2 { font-size: 18px; }
.job-content h3 { font-size: 16px; }
.job-content ul, .job-content ol {
  margin-bottom: 12px;
  padding-inline-start: 20px;
}
.job-content li { margin-bottom: 4px; }
.job-content a {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #7c3aed;
  color: white;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}
.job-content a:hover { background: #6d28d9; }
.job-content img { border-radius: 8px; max-width: 100%; }

.apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 24px;
  border-radius: 12px;
  background: #16a34a;
  color: white;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.apply-btn:hover { background: #15803d; }
.apply-btn:active { transform: scale(0.98); }

.job-code {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  font-size: 13px;
  color: var(--ink-gray-5);
}
.job-code span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   SINGLE PRODUCT PAGE (WooCommerce)
   ============================================================ */
.product-detail-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}
@media (min-width: 769px) {
  .product-detail-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }
  .product-detail-gallery { flex: 0 0 42%; max-width: 420px; }
  .product-detail-summary { flex: 1; min-width: 0; }
}

.product-detail-gallery .woocommerce-product-gallery {
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-gray-1);
}
.product-detail-gallery img { border-radius: 12px; }
.product-detail-gallery .flex-control-thumbs {
  margin-top: 10px;
  gap: 8px;
}
.product-detail-gallery .flex-control-thumbs li img {
  border-radius: 8px;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.product-detail-gallery .flex-control-thumbs li img.flex-active,
.product-detail-gallery .flex-control-thumbs li img:hover { opacity: 1; }

.product-detail-price {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 700;
  color: #16a34a;
}
.product-detail-price ins { text-decoration: none; }
.product-detail-price del {
  color: var(--ink-gray-4);
  font-size: 15px;
  font-weight: 400;
  margin-inline-end: 10px;
}

.product-detail-cart-card {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  background: var(--surface-white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.product-detail-cart-card form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.product-detail-cart-card .stock {
  flex-basis: 100%;
  font-size: 13px;
  color: var(--ink-gray-5);
  margin: 0 0 4px;
}
.product-detail-cart-card .stock.out-of-stock { color: #b91c1c; }
.product-detail-cart-card .quantity { margin: 0; }
.product-detail-cart-card .quantity .qty {
  width: 72px;
  border: 1px solid var(--outline-gray-2);
  border-radius: 8px;
  background: var(--surface-gray-1);
  color: var(--ink-gray-8);
  padding: 10px 12px;
  font-size: 14px;
  text-align: center;
}
.product-detail-cart-card .single_add_to_cart_button {
  flex: 1;
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  background: #16a34a !important;
  border: none;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s, transform 0.1s;
  cursor: pointer;
}
.product-detail-cart-card .single_add_to_cart_button:hover { background: #15803d !important; }
.product-detail-cart-card .single_add_to_cart_button:active { transform: scale(0.98); }
.product-detail-cart-card .single_add_to_cart_button.disabled,
.product-detail-cart-card .single_add_to_cart_button.disabled:hover {
  background: var(--surface-gray-3) !important;
  color: var(--ink-gray-5) !important;
  cursor: not-allowed;
}

/* ============================================================
   SHOP ARCHIVE PAGE (WooCommerce)
   ============================================================ */
.shop-loop-wrap { margin-top: 4px; }

.woocommerce-result-count,
.woocommerce-ordering {
  font-size: 13px;
  color: var(--ink-gray-5);
}
.woocommerce-ordering select.orderby {
  border: 1px solid var(--outline-gray-2);
  border-radius: 8px;
  background: var(--surface-gray-1);
  color: var(--ink-gray-8);
  padding: 6px 10px;
  font-size: 13px;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
/* WC's clearfix ::before/::after (content:" "; display:table) become real
   grid items once the parent is display:grid, silently eating extra
   tracks — kill them off. */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  content: none !important;
  display: none !important;
}
.woocommerce ul.products li.product {
  /* WooCommerce's own woocommerce-layout.css ships `ul.products.columns-N
     li.product { width: 22.05%; float: left; margin: 0 3.8% ... }` — that
     selector (4 classes) outranks ours (3 classes) regardless of stylesheet
     order, so it still wins even loaded after main.css. !important forces
     our CSS Grid (not WC's float/percentage columns) to own the layout. */
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  background: var(--surface-white);
  border: 1px solid var(--outline-gray-1);
  border-radius: 14px;
  padding-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
}
.woocommerce ul.products li.product:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

/* Image + title + price all live inside this link (WC wraps them,
   the add-to-cart button is a sibling rendered after it) */
.woocommerce ul.products li.product a.woocommerce-loop-product__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.woocommerce ul.products li.product img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--surface-gray-1);
  padding: 24px;
  box-sizing: border-box;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-gray-8);
  margin: 14px 16px 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.woocommerce ul.products li.product .price {
  display: block;
  margin: 0 16px;
  color: #16a34a;
  font-weight: 700;
  font-size: 15px;
}
.woocommerce ul.products li.product .price del {
  display: block;
  color: var(--ink-gray-4);
  font-weight: 400;
  font-size: 12.5px;
}
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .button {
  margin: 14px 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 32px);
  border-radius: 10px;
  background: #16a34a;
  color: #fff !important;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s;
}
.woocommerce ul.products li.product .button:hover { background: #15803d; }
.woocommerce ul.products li.product .onsale {
  /* WC's own .onsale rule sets physical top/right/left/margin + a large
     min-height/min-width (its round "Sale!" badge). Logical properties
     (inset-inline-start) and WC's physical right/left don't reliably
     cascade against each other, so mirror WC's own physical properties
     here and force every dimension with !important to fully own it. */
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  z-index: 2 !important;
  display: inline-block !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  background: #16a34a !important;
  color: #fff !important;
  border-radius: 999px !important;
  height: auto !important;
  line-height: 1 !important;
  padding: 5px 10px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

.woocommerce-pagination { margin-top: 24px; text-align: center; }
.woocommerce-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.woocommerce-pagination .page-numbers li { display: inline-block; }
.woocommerce-pagination a.page-numbers,
.woocommerce-pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-gray-6);
}
.woocommerce-pagination span.page-numbers.current {
  background: #16a34a;
  color: #fff;
  font-weight: 700;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.hidden { display: none !important; }
.text-muted { color: var(--ink-gray-5); }
.separator-dot { color: var(--ink-gray-3); }

/* ============================================================
   EMPTY / ERROR STATES
   ============================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  gap: 16px;
}
.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface-gray-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-gray-4);
}
.empty-state-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-gray-8);
}
.empty-state-desc {
  font-size: 14px;
  color: var(--ink-gray-5);
  max-width: 360px;
}

.btn-primary {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--ink-gray-9);
  color: white;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { opacity: 0.85; }

.btn-secondary {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--outline-gray-2);
  color: var(--ink-gray-7);
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s;
  background: none;
  cursor: pointer;
}
.btn-secondary:hover { background: var(--surface-gray-1); }

/* ============================================================
   RESPONSIVE - Mobile
   ============================================================ */
@media (max-width: 768px) {
  .app-logo-tagline { display: none; }
  .search-trigger-btn kbd { display: none; }
  .search-trigger-btn span { display: none; }

  .app-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.25s ease, width 0.2s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  }
  .app-sidebar.mobile-open {
    transform: translateX(0);
  }
  .app-sidebar.collapsed {
    width: 220px;
    min-width: 220px;
  }

  .mobile-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 199;
    display: none;
  }
  .mobile-sidebar-overlay.visible { display: block; }

  .mobile-menu-btn {
    display: flex !important;
  }

  .content-column { width: 100%; }

  .body-container {
    padding: 0 8px;
    padding-bottom: 120px;
  }

  .jobs-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) {
  .mobile-menu-btn { display: none !important; }
  .mobile-sidebar-overlay { display: none !important; }
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--ink-gray-5);
  transition: background 0.15s;
}
.mobile-menu-btn:hover { background: var(--surface-gray-2); }

/* ============================================================
   404 / Generic Page
   ============================================================ */
.page-content-card {
  background: var(--surface-white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-top: 32px;
}

/* Saved page */
.saved-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface-gray-1);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-gray-6);
  margin-bottom: 16px;
}

/* ============================================================
   APPLICATION FORM MODAL
   ============================================================ */
.app-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.app-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.app-modal {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface-white);
  border-radius: 16px 16px 0 0;
  z-index: 1001;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -4px 32px rgba(0,0,0,.15);
}
.app-modal.open {
  transform: translateX(-50%) translateY(0);
}
@media (min-width: 600px) {
  .app-modal {
    top: 50%;
    bottom: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 16px;
    max-height: 88vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .3s cubic-bezier(.4,0,.2,1);
  }
  .app-modal.open {
    transform: translate(-50%, -50%);
    opacity: 1;
    pointer-events: auto;
  }
}

.app-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 0;
  position: sticky;
  top: 0;
  background: var(--surface-white);
  z-index: 1;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--outline-gray-1);
}
.app-modal-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-blue-4);
  margin-bottom: 3px;
}
.app-modal-job-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-gray-9);
  line-height: 1.3;
}
.app-modal-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--outline-gray-2);
  background: var(--surface-gray-1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-gray-6);
  transition: background .15s;
}
.app-modal-close:hover { background: var(--surface-gray-2); }

.app-modal-body { padding: 20px; }

/* Form fields */
.app-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 440px) { .app-grid-2 { grid-template-columns: 1fr; } }
.app-group { margin-bottom: 14px; }
.app-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-gray-8);
  margin-bottom: 5px;
}
.app-req { color: var(--ink-blue-4); }
.app-hint-inline { font-weight: 400; font-size: 12px; color: var(--ink-gray-5); }
.app-input {
  width: 100%;
  padding: 9px 12px;
  background: var(--surface-gray-1);
  border: 1px solid var(--outline-gray-2);
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-gray-9);
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.app-input:focus {
  outline: none;
  border-color: var(--ink-blue-4);
  box-shadow: 0 0 0 3px rgba(36,144,239,.12);
  background: var(--surface-white);
}
.app-textarea { min-height: 90px; resize: vertical; }

/* File upload */
.app-file-label {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  background: var(--surface-gray-1);
  border: 1.5px dashed var(--outline-gray-2);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-gray-6);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.app-file-label:hover,
.app-file-label.has-file {
  border-color: var(--ink-blue-4);
  background: var(--surface-white);
  color: var(--ink-gray-8);
}
.app-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

/* Error / Success */
.app-error {
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #dc2626;
  margin-bottom: 12px;
}
.app-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 0;
  gap: 8px;
}
.app-success-title { font-size: 18px; font-weight: 700; color: var(--ink-gray-9); }
.app-success-msg   { font-size: 14px; color: var(--ink-gray-6); max-width: 300px; }

/* ============================================================
   POST-JOB FORM PAGE
   ============================================================ */
.pjf-page-header {
  text-align: center;
  padding: 24px 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.pjf-page-title    { font-size: 22px; font-weight: 700; color: var(--ink-gray-9); }
.pjf-page-subtitle { font-size: 14px; color: var(--ink-gray-5); }

.company-job-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  margin-bottom: 12px;
}
.dark .company-job-badge {
  background: #052e16;
  color: #4ade80;
  border-color: #166534;
}

.pjf-wrap {
  background: var(--surface-white);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  border: 1px solid var(--outline-gray-1);
}
.pjf-group { margin-bottom: 16px; }
.pjf-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-gray-8);
  margin-bottom: 5px;
}
.pjf-req { color: var(--ink-blue-4); }
.pjf-hint { font-size: 12px; color: var(--ink-gray-5); margin-top: 4px; }
.pjf-input {
  width: 100%;
  padding: 9px 12px;
  background: var(--surface-gray-1);
  border: 1px solid var(--outline-gray-2);
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-gray-9);
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.pjf-input:focus {
  outline: none;
  border-color: var(--ink-blue-4);
  box-shadow: 0 0 0 3px rgba(36,144,239,.12);
  background: var(--surface-white);
}
.pjf-textarea { min-height: 160px; resize: vertical; }
.pjf-grid-2   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .pjf-grid-2 { grid-template-columns: 1fr; } }

.pjf-msg-success {
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.3);
  border-radius: 10px;
  padding: 16px;
  font-size: 14px;
  color: #15803d;
  margin-bottom: 16px;
  text-align: center;
}
.pjf-msg-error {
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.2);
  border-radius: 10px;
  padding: 14px;
  font-size: 13px;
  color: #dc2626;
  margin-bottom: 16px;
}

/* ============================================================
   ONBOARDING PAGE (onb-*)
   ============================================================ */
.onb-wrap {
  padding-top: 8px;
}

/* Hero */
.onb-hero {
  background: var(--surface-white);
  border: 1px solid var(--outline-gray-1);
  border-radius: 16px;
  padding: 40px 32px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
.onb-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(22,163,74,.06) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(36,144,239,.05) 0%, transparent 50%);
  pointer-events: none;
}
.onb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(22,163,74,.1);
  color: #15803d;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  margin-bottom: 20px;
  letter-spacing: .02em;
}
.dark .onb-eyebrow { background: rgba(22,163,74,.15); color: #4ade80; }
.onb-headline {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink-gray-9);
  line-height: 1.25;
  text-wrap: balance;
  margin-bottom: 14px;
}
.onb-headline em {
  font-style: normal;
  color: #16a34a;
}
.onb-sub {
  font-size: 15px;
  color: var(--ink-gray-6);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 28px;
  text-wrap: balance;
}
.onb-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.onb-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #16a34a;
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s, transform .1s;
  border: none;
  cursor: pointer;
}
.onb-btn-primary:hover { background: #15803d; }
.onb-btn-primary:active { transform: scale(.98); }
.onb-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--ink-gray-8);
  border: 1.5px solid var(--outline-gray-2);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.onb-btn-outline:hover { border-color: var(--ink-gray-6); color: var(--ink-gray-9); }

/* Steps */
.onb-steps-wrap {
  background: var(--surface-gray-1);
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 20px;
}
.onb-steps-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-gray-7);
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: .01em;
}
.onb-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  position: relative;
}
.onb-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  right: calc(16.6% + 10px);
  left: calc(16.6% + 10px);
  height: 1px;
  background: var(--outline-gray-2);
  z-index: 0;
}
.onb-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 0 8px;
  position: relative;
  z-index: 1;
}
.onb-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.onb-step-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-gray-8);
  line-height: 1.35;
}
.onb-step-desc {
  font-size: 12px;
  color: var(--ink-gray-5);
  line-height: 1.5;
}

/* Benefits */
.onb-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.onb-benefit {
  background: var(--surface-white);
  border: 1px solid var(--outline-gray-1);
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.onb-benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(22,163,74,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #16a34a;
  flex-shrink: 0;
}
.dark .onb-benefit-icon { background: rgba(22,163,74,.15); color: #4ade80; }
.onb-benefit-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-gray-9);
}
.onb-benefit-desc {
  font-size: 12px;
  color: var(--ink-gray-5);
  line-height: 1.6;
}

/* Pending notice (logged-in, no employer role) */
.onb-pending {
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 4px;
}
.dark .onb-pending { background: #1c1a05; border-color: #854d0e; }
.onb-pending-icon { color: #d97706; flex-shrink: 0; margin-top: 2px; }
.dark .onb-pending-icon { color: #fbbf24; }
.onb-pending-title { font-size: 14px; font-weight: 700; color: #92400e; margin-bottom: 4px; }
.dark .onb-pending-title { color: #fde68a; }
.onb-pending-msg { font-size: 13px; color: #78350f; line-height: 1.6; }
.dark .onb-pending-msg { color: #fcd34d; }

@media (max-width: 560px) {
  .onb-hero { padding: 28px 20px 24px; }
  .onb-headline { font-size: 22px; }
  .onb-steps { grid-template-columns: 1fr; gap: 16px; }
  .onb-steps::before { display: none; }
  .onb-step { flex-direction: row; text-align: right; }
  .onb-benefits { grid-template-columns: 1fr; }
}

/* Tabs are now <a> links (server-rendered) */
a.tab-btn { text-decoration: none; display: inline-flex; align-items: center; }
