/* === SureLoad Light Cream Theme === */
:root {
  /* Core Colors */
  --bg: #FFFDF6;
  --surface: #FFFFFF;
  --surface-2: #FBF9F3;
  --line: #E5E2DA;
  --line-light: #EDE9E0;
  
  /* Text Colors */
  --text: #000000;
  --text-secondary: #333333;
  --muted: #666666;
  
  /* Brand Colors */
  --brand: #FF7A00;
  --brand-hover: #E56D00;
  --brand-light: rgba(255, 122, 0, 0.12);
    
  /* Compatibility aliases */
  --accent: var(--brand);
  --background: var(--bg);
  --brand-2: #FF9933;
  --focus: #FFB366;
  
  /* Semantic Colors */
  --danger: #DC2626;
  --danger-light: rgba(220, 38, 38, 0.1);
  --ok: #16A34A;
  --ok-light: rgba(22, 163, 74, 0.1);
  --warning: #CA8A04;
  --warning-light: rgba(202, 138, 4, 0.1);
  
  /* Spacing & Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { margin: 0 0 0.5rem; font-weight: 700; line-height: 1.25; color: var(--text); }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

/* Layout */
.container { max-width: 1140px; margin: 0 auto; padding: 2rem 1.5rem; }
.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: 1.75rem; font-weight: 700; margin: 0 0 0.25rem 0; }
.page-header p { color: var(--muted); margin: 0; }

/* ======================================
   NAVIGATION
   ====================================== */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.5rem;
  background: rgba(255, 253, 246, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topnav .spacer { flex: 1; }

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.brand:hover { background: var(--brand-light); }

.brand-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brand);
  letter-spacing: -0.02em;
}

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

.navlink {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.navlink svg { opacity: 0.7; flex-shrink: 0; }
.navlink:hover { color: var(--text); background: rgba(0, 0, 0, 0.04); }
.navlink:hover svg { opacity: 1; }
.navlink.active { color: var(--brand); background: var(--brand-light); }
.navlink.nav-admin { color: var(--brand); }

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-left: 0.25rem;
}

.nav-badge--warning {
  background: var(--danger);
  color: #fff;
}

.nav-badge--success {
  background: var(--ok);
  color: #fff;
}

.nav-badge--unread {
  background: #FF7A00;
  color: #fff;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
  margin-left: 4px;
  border-radius: 9px;
}

.nav-user { position: relative; display: flex; align-items: center; gap: 0.5rem; margin-left: 0.5rem; }
.user-link { display: flex; align-items: center; gap: 0.5rem; }

.user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #000;
  font-weight: 600;
  font-size: 0.875rem;
}

.user-name { font-weight: 500; color: var(--text); font-size: 0.9rem; }

.nav-auth { display: flex; align-items: center; gap: 0.5rem; }


/* Desktop vs mobile */
.nav-links--desktop { display: flex; }
.nav-mobile-toggle { display: none; }
.nav-mobile { display: none; }

/* CTA link (contractor) */
.navlink--cta {
  background: var(--brand-light);
  color: var(--brand);
}
.navlink--cta:hover {
  background: rgba(255, 122, 0, 0.18);
}

/* User dropdown */
.nav-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.75);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}
.nav-user-btn:hover { background: rgba(0, 0, 0, 0.04); }
.nav-user-btn .chev { opacity: 0.65; }

.nav-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  display: none;
}
.nav-dropdown.open { display: block; }

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  background: transparent;
  border: none;
  cursor: pointer;
}
.dropdown-item:hover { background: rgba(0, 0, 0, 0.04); }
.dropdown-item--danger { color: var(--danger); }
.dropdown-item--danger:hover { background: var(--danger-light); }

.dropdown-sep {
  height: 1px;
  background: var(--line);
  margin: 0.35rem 0.25rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.pill--ok { background: var(--ok-light); color: var(--ok); }
.pill--warn { background: var(--warning-light); color: var(--warning); }

/* Mobile menu */
.nav-mobile-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-mobile-toggle:hover { background: rgba(0, 0, 0, 0.04); }

.nav-mobile {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: rgba(255, 253, 246, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 1rem;
  display: none;
}
.nav-mobile.open { display: block; }

.nav-mobile-section { display: grid; gap: 0.35rem; }
.nav-mobile-section--footer { margin-top: 0.75rem; }

.nav-mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}
.nav-mobile-link:hover { background: rgba(0, 0, 0, 0.04); }
.nav-mobile-link.active { background: var(--brand-light); color: var(--brand); }
.nav-mobile-link--cta { background: var(--brand-light); color: var(--brand); }

@media (max-width: 980px) {
  .nav-links--desktop { display: none; }
  .nav-user { display: none; }
  .nav-mobile-toggle { display: inline-flex; }
  .topnav { position: sticky; }
}

/* ======================================
   BUTTONS
   ====================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-md);
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
}

.btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #fff;
}

.btn-primary:disabled {
  background: var(--line);
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-outline:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--text-secondary);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--brand);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
}

.btn-secondary:hover {
  background-color: rgba(255, 122, 0, 0.06);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border: 1px solid var(--danger);
}

.btn-danger:hover {
  background: #B91C1C;
  border-color: #B91C1C;
}

.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.85rem; }
.btn-lg { padding: 0.875rem 1.5rem; font-size: 1rem; }
.btn-full { width: 100%; }

.actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }

/* ======================================
   CARDS
   ====================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.card-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.card-b { padding: 0; }

.card-f {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

/* ======================================
   FORMS
   ====================================== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

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

.form-group.has-error input,
.form-group.has-error select {
  border-color: var(--danger);
}

.form-group.has-error label {
  color: var(--danger);
}

.field-error-msg {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--danger);
}

/* ======================================
   TABLES
   ====================================== */
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 0.875rem 1rem;
  text-align: left;
  font-size: 0.95rem;
}

.table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--surface-2);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: rgba(255, 122, 0, 0.03);
}

/* ======================================
   ALERTS
   ====================================== */
.alert {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 1rem;
}

.alert.success,
.alert-success,
.alert-ok {
  background: var(--ok-light);
  border-color: var(--ok);
  color: var(--ok);
  font-weight: 500;
}

.alert.error,
.alert-error,
.alert-err {
  background: var(--danger-light);
  border-color: var(--danger);
  color: var(--danger);
  font-weight: 500;
}

.alert.warning,
.alert-warn {
  background: var(--warning-light);
  border-color: var(--warning);
  color: #92400E;
}

/* ======================================
   PILLS & BADGES
   ====================================== */
.pill,
.badge,
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.pill.open,
.badge-open,
.chip-open {
  background: rgba(59, 130, 246, 0.1);
  color: #2563EB;
}

.pill.assigned,
.pill.in_progress,
.badge-in_progress,
.chip-in_progress {
  background: var(--warning-light);
  color: #92400E;
}

.pill.complete,
.badge-complete,
.chip-complete {
  background: var(--ok-light);
  color: var(--ok);
}

.pill.cancelled,
.badge-cancelled,
.chip-cancelled {
  background: var(--danger-light);
  color: var(--danger);
}

.badge-draft,
.chip-draft {
  background: rgba(0, 0, 0, 0.05);
  color: var(--muted);
}

/* ======================================
   PAGINATION
   ====================================== */
.pagination {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.pagination .page {
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.pagination .page:hover {
  border-color: var(--brand);
  background: var(--brand-light);
}

.pagination .page.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #000;
  font-weight: 600;
}

/* ======================================
   REVIEWS & STARS
   ====================================== */
.stars { display: inline-flex; gap: 0.1rem; }
.star { opacity: 0.3; color: var(--brand); }
.star.on { opacity: 1; }
.review { border-top: 1px solid var(--line); padding: 1rem 0; }
.review .meta { font-size: 0.875rem; color: var(--muted); margin-bottom: 0.5rem; }

/* ======================================
   MESSAGING
   ====================================== */
.thread { display: flex; flex-direction: column; gap: 0.75rem; }

.msg {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.msg .meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.35rem; }
.msg .body { white-space: pre-wrap; line-height: 1.5; word-wrap: break-word; }

textarea.input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.875rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}

/* ======================================
   UTILITIES
   ====================================== */
.mb { margin-bottom: 1rem; }
.mt { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.link { color: var(--brand); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }
a { color: var(--brand); }
a:hover { color: var(--brand-hover); }
.big { font-size: 2rem; font-weight: 700; margin: 0.5rem 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 768px) { .grid-3 { grid-template-columns: 1fr; } }

.inline { display: inline; }

/* ======================================
   FILTERS & SEARCH
   ====================================== */
.filters {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.filters-col,
.filters-field {
  flex: 1 1 160px;
  min-width: 160px;
}

.filters-field { display: flex; flex-direction: column; }
.filters-field label { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.25rem; }

.filters-field input,
.filters-field select {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

.filters-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.filters-inline { margin-top: 1.3rem; }

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.checkbox-row input[type="checkbox"] { cursor: pointer; }

/* ======================================
   JOBS TABLE
   ====================================== */
.jobs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.jobs-table th,
.jobs-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  text-align: left;
}

.jobs-table th {
  font-weight: 600;
  background: var(--surface-2);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--muted);
}

.jobs-table tr:hover td { background: var(--brand-light); }

/* ======================================
   NOTIFICATIONS
   ====================================== */
.notifications-list { display: flex; flex-direction: column; gap: 0.75rem; }

.notification-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.notification-item--unread {
  background: var(--brand-light);
  border-color: rgba(255, 122, 0, 0.3);
}

.notification-content { flex: 1; }
.notification-title { font-size: 0.95rem; font-weight: 600; margin: 0 0 0.3rem; color: var(--text); }
.notification-body { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.4rem; line-height: 1.4; }
.notification-time { font-size: 0.75rem; color: var(--muted); }
.notification-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.btn-xs { padding: 0.25rem 0.5rem; font-size: 0.75rem; }

/* Settings */
.settings-group { display: flex; flex-direction: column; gap: 1rem; }
.settings-item { display: flex; }
.settings-item label { display: flex; flex-direction: column; gap: 0.25rem; cursor: pointer; width: 100%; }
.settings-item input[type="checkbox"] { width: 1rem; height: 1rem; cursor: pointer; margin-bottom: 0.25rem; }
.settings-label { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.settings-desc { font-size: 0.8rem; color: var(--muted); font-weight: 400; }

/* ======================================
   PRICING
   ====================================== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.plan-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.plan-card--highlight {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-light), var(--shadow-md);
}

.plan-price { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
.plan-note { margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted); }

/* ======================================
   ONBOARDING
   ====================================== */
.alert.alert-warning {
  background: var(--warning-light);
  border: 1px solid var(--warning);
  color: #92400E;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.alert.alert-warning strong { display: block; margin-bottom: 0.5rem; }
.alert.alert-warning p { margin: 0.25rem 0 0.5rem; font-size: 0.95rem; }
.missing-fields-list { margin: 0.5rem 0 0; padding-left: 1.25rem; }

/* Onboarding Banner */
.onboarding-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.onboarding-banner--success {
  background: var(--ok-light);
  border: 1px solid var(--ok);
}

.onboarding-banner--incomplete {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.onboarding-banner__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.onboarding-banner__content {
  flex: 1;
  min-width: 200px;
}

.onboarding-banner__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: var(--text);
}

.onboarding-banner--success .onboarding-banner__title {
  color: var(--ok);
}

.onboarding-banner__text {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.onboarding-banner--success .onboarding-banner__text {
  color: #15803D;
}

.onboarding-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Onboarding Checklist */
.onboarding-checklist {
  list-style: none;
  margin: 0.75rem 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.onboarding-checklist__item {
  margin: 0;
}

.onboarding-checklist__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  padding: 0.25rem 0;
  transition: color 0.15s ease;
}

.onboarding-checklist__link:hover {
  color: var(--brand);
}

.onboarding-checklist__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid var(--line);
  font-size: 0.75rem;
  font-weight: 700;
  color: transparent;
  background: var(--surface);
  flex-shrink: 0;
}

.onboarding-checklist__link--complete .onboarding-checklist__check {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}

.onboarding-checklist__link--complete .onboarding-checklist__label {
  color: var(--muted);
  text-decoration: line-through;
}

/* Onboarding Form */
.onboarding-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Onboarding Cards */
.onboarding-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
}

.onboarding-card--required {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand-light), var(--shadow-sm);
}

.onboarding-card__header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.onboarding-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: var(--text);
}

.onboarding-card__title .optional-badge {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
}

.onboarding-card__note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* Required field star */
.required-star {
  color: var(--brand);
  font-weight: 400;
}

/* Field hints (before submit) */
.field-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.5rem 0;
}

/* Field errors (after submit) */
.field-error {
  font-size: 0.8rem;
  color: var(--danger);
  margin: 0 0 0.5rem 0;
}

/* Error state styling - subtle */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--danger);
}

.onboarding-status {
  margin-bottom: 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}

.onboarding-status--complete {
  background: var(--ok-light);
  border: 1px solid var(--ok);
  color: var(--ok);
}

.onboarding-status--incomplete {
  background: var(--warning-light);
  border: 1px solid var(--warning);
  color: #92400E;
}

@media (max-width: 600px) {
  .onboarding-banner {
    flex-direction: column;
  }
  
  .onboarding-banner__actions {
    width: 100%;
  }
  
  .onboarding-banner__actions .btn {
    flex: 1;
    justify-content: center;
  }
}

/* ======================================
   EARNINGS
   ====================================== */
.earnings-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.earnings-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.earnings-amount { font-size: 1.75rem; font-weight: 700; margin: 0.25rem 0; color: var(--ok); }
.earnings-meta { font-size: 0.9rem; color: var(--muted); }
.earnings-table-section { margin-top: 1rem; }
.earnings-table { width: 100%; border-collapse: collapse; margin-top: 0.75rem; }
.earnings-table th, .earnings-table td { border-bottom: 1px solid var(--line); padding: 0.625rem 0.875rem; text-align: left; }
.earnings-table th { font-weight: 600; font-size: 0.85rem; color: var(--muted); }

/* ======================================
   AUTH PAGES
   ====================================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--bg);
}

.auth-container {
  width: 100%;
  max-width: 480px;
}

.auth-container.auth-container--narrow {
  max-width: 420px;
}

.auth-container.auth-container-wide {
  max-width: 560px;
}

.form-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 1rem;
}

.form-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-section-title .optional-badge {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-note {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
  padding: 0.75rem;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.form-note-small {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 0.75rem 0;
}

.form-hint {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0.25rem 0 0 0;
}

.optional-text {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.9em;
}

.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.radio-group {
  display: flex;
  gap: 1.5rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.auth-logo-text {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.5rem 0;
  color: var(--text);
}

.auth-subtitle {
  color: var(--muted);
  text-align: center;
  margin: 0 0 1.5rem 0;
}

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

.auth-form .form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.auth-form .form-group input.input-error {
  border-color: var(--danger);
}

.field-error {
  display: block;
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.checkbox-group { margin-top: 1.5rem; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand);
}

/* Role Selection */
.role-selection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.role-option input[type="radio"] { display: none; }

.role-card {
  padding: 1.5rem 1rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--surface);
}

.role-option input:checked + .role-card {
  border-color: var(--brand);
  background: var(--brand-light);
}

.role-card:hover { border-color: var(--text-secondary); }
.role-icon { margin-bottom: 1rem; color: var(--brand); }
.role-card h3 { font-size: 1rem; font-weight: 600; margin: 0 0 0.5rem 0; }
.role-card p { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* Step Progress */
.step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0.5rem 0;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line);
}

.step-dot.active { background: var(--brand); }
.step-dot.completed { background: var(--ok); }

.step-line {
  width: 40px;
  height: 2px;
  background: var(--line);
}

.step-line.completed { background: var(--ok); }

.step-text {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1.5rem 0;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 0.75rem;
}

.form-actions .btn {
  flex: 1;
  padding: 0.875rem;
  font-size: 0.95rem;
}

.form-options {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.forgot-link {
  font-size: 0.875rem;
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}

.forgot-link:hover { text-decoration: underline; }

/* Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-divider span { color: var(--muted); font-size: 0.85rem; }

.auth-footer-text {
  text-align: center;
  margin: 1.5rem 0 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-footer-text a { color: var(--brand); font-weight: 500; text-decoration: none; }
.auth-footer-text a:hover { text-decoration: underline; }

.auth-secure-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.auth-success-hint {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--ok-light);
  border: 1px solid var(--ok);
  border-radius: var(--radius-md);
  color: var(--ok);
  font-size: 0.875rem;
}

.auth-success-hint svg { flex-shrink: 0; }

@media (max-width: 480px) {
  .auth-card { padding: 1.5rem; }
  .role-selection { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column-reverse; }
}

/* ======================================
   DASHBOARD / HOME
   ====================================== */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.welcome-section h1 { font-size: 1.75rem; font-weight: 700; margin: 0 0 0.25rem 0; }
.welcome-subtitle { color: var(--muted); margin: 0; }

.dashboard-actions { display: flex; gap: 0.75rem; }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.dashboard-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

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

.dashboard-card .card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-light);
  border-radius: var(--radius-md);
  color: var(--brand);
  flex-shrink: 0;
}

.dashboard-card .card-icon-earnings {
  background: var(--ok-light);
  color: var(--ok);
}

.dashboard-card .card-content { flex: 1; }
.dashboard-card .card-content h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin: 0 0 0.25rem 0; }
.dashboard-card .card-content p { font-size: 0.875rem; color: var(--muted); margin: 0; }

.dashboard-card .card-arrow { color: var(--muted); transition: transform 0.2s ease; }
.dashboard-card:hover .card-arrow { transform: translateX(4px); color: var(--brand); }

/* Hero with Ghost Truck Watermark (via ::before pseudo-element) */
.hero {
  position: relative;
  overflow: hidden;
  background: #fbf7ef;
  padding: 78px 16px 58px;
  /* No borders, shadows, or outlines - sits directly on cream background */
  border: none;
  box-shadow: none;
  outline: none;
}

.hero-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Ghost tipper watermark */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  /* Stronger left-side fade to protect text */
  background:
    linear-gradient(90deg,
      #fbf7ef 0%,
      #fbf7ef 58%,
      rgba(251,247,239,0.25) 78%,
      rgba(251,247,239,0.0) 100%
    ),
    url("/images/tipper-truck-hero.png");

  background-repeat: no-repeat;
  background-size: 100% 100%, 740px auto;

  /* Bring truck slightly left + higher so wheels don't sit behind CTAs */
  background-position: 0 0, calc(100% - 60px) 46%;

  /* Less dull: more present but still subtle */
  opacity: 0.20;
  filter: brightness(0.98) contrast(1.10) saturate(1.02);
}

/* Tablet */
@media (max-width: 900px) {
  .hero::before {
    background-size: 100% 100%, 580px auto;
    background-position: 0 0, calc(100% - 20px) 50%;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .hero {
    padding: 56px 16px 42px;
  }
  .hero::before {
    background-size: 100% 100%, 520px auto;
    background-position: 0 0, calc(100% + 120px) 58%;
    opacity: 0.10;
  }
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem 0;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-title .highlight { color: var(--brand); }

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 2rem 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Features */
.features { padding: 4rem 0; border-top: 1px solid var(--line); }
.features-header { text-align: center; margin-bottom: 3rem; }
.features-header h2 { font-size: 1.75rem; font-weight: 700; margin: 0 0 0.5rem 0; }
.features-header p { color: var(--muted); margin: 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-light);
  border-radius: var(--radius-md);
  color: var(--brand);
  margin-bottom: 1rem;
}

.feature-card h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 0.5rem 0; }
.feature-card p { color: var(--muted); margin: 0; font-size: 0.95rem; line-height: 1.5; }

/* CTA */
.cta-section { padding: 4rem 0; border-top: 1px solid var(--line); }
.cta-content { text-align: center; max-width: 480px; margin: 0 auto; }
.cta-content h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.75rem 0; }
.cta-content p { color: var(--muted); margin: 0 0 1.5rem 0; }

@media (max-width: 600px) {
  .hero-title { font-size: 2.25rem; }
  .dashboard-header { flex-direction: column; align-items: stretch; }
  .dashboard-actions { justify-content: stretch; }
  .dashboard-actions .btn { flex: 1; justify-content: center; }
}

/* ======================================
   ADMIN
   ====================================== */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.stat-value { font-size: 2rem; font-weight: 700; color: var(--brand); }
.stat-label { font-size: 0.9rem; color: var(--muted); }

/* Row Layout */
.row { display: flex; gap: 0.75rem; justify-content: space-between; color: var(--text-secondary); font-size: 0.95rem; }
.detail-h { display: flex; align-items: center; gap: 0.75rem; margin: 0.5rem 0; }
.cta .btn { margin-right: 0.5rem; }

/* ======================================
   FOOTER
   ====================================== */
.sl-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--line);
  background-color: var(--bg);
  margin-top: auto;
}

.sl-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.sl-footer-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.75;
}

.sl-footer-social {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.sl-footer-social-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.sl-footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--brand);
  transition: all 0.15s ease;
}

.sl-footer-social a:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.sl-footer-social a svg {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .sl-footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .sl-footer-social {
    flex-wrap: wrap;
    justify-content: center;
  }
}

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

.job-detail-page .container {
  max-width: 1320px;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.job-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.job-header-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.job-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  line-height: 1.2;
}

.job-subtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.job-subtitle .separator {
  color: var(--line);
}

.route-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.route-indicator strong {
  color: var(--text-secondary);
}

.icon-arrow {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

/* Job Summary Strip */
.job-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.summary-item {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 0.5rem;
}

.summary-item.highlight {
  background: var(--brand-light);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
}

.summary-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.summary-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.summary-value small {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
}

.summary-item.highlight .summary-value {
  color: var(--brand);
}

/* Job Cards Grid */
.job-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.job-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.job-card.full-width {
  grid-column: 1 / -1;
}

.job-card.highlight-card {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light), var(--shadow-sm);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.875rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-light);
}

.card-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.card-icon {
  width: 20px;
  height: 20px;
  color: var(--brand);
  flex-shrink: 0;
}

.card-body {
  padding: 1.25rem;
}

.site-name {
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--text);
}

.site-postcode {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0 0 0.75rem;
}

/* Info Rows */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line-light);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 0.875rem;
  color: var(--muted);
}

.info-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-align: right;
}

.info-value.truck-type {
  color: var(--brand);
  font-weight: 600;
}

/* Rate Highlight */
.rate-highlight {
  text-align: center;
  padding: 1rem 0.5rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-light);
}

.rate-amount {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}

.rate-unit {
  font-size: 0.9rem;
  color: var(--muted);
}

.earnings-estimate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  margin-top: 0.75rem;
  background: var(--ok-light);
  border-radius: var(--radius-md);
}

.earnings-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.earnings-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ok);
}

/* PPE Badges */
.ppe-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ppe-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: var(--warning-light);
  color: var(--warning);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 100px;
}

.site-rules-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Contractor Info */
.contractor-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.contractor-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--text);
}

.contractor-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.stars {
  display: inline-flex;
  gap: 0.1rem;
}

.star {
  color: var(--line);
  font-size: 1.1rem;
}

.star.filled {
  color: #F47C20;
}

.rating-text {
  font-size: 0.9rem;
  color: var(--muted);
}

.contractor-stats {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.875rem;
  background: var(--ok-light);
  color: var(--ok);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 100px;
}

.verified-badge svg {
  width: 16px;
  height: 16px;
}

/* Job Notes & Payment Terms */
.job-notes,
.job-payment-terms {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.job-notes h3,
.job-payment-terms h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.job-notes p,
.job-payment-terms p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Job Actions */
.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.job-actions .action-form {
  flex: 1;
  min-width: 200px;
}

.job-actions .btn-lg {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

.job-actions .btn-primary {
  width: 100%;
}

.job-actions .btn-outline {
  flex: 1;
  min-width: 150px;
}

.job-actions .btn-ghost {
  color: var(--muted);
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Job Meta Footer */
.job-meta {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--line-light);
}

.job-meta p {
  margin: 0.25rem 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Status Badges */
.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 100px;
}

.badge-success {
  background: var(--ok-light);
  color: var(--ok);
}

.badge-info {
  background: rgba(59, 130, 246, 0.1);
  color: #3B82F6;
}

.badge-warning {
  background: var(--warning-light);
  color: var(--warning);
}

.badge-danger {
  background: var(--danger-light);
  color: var(--danger);
}

.badge-muted {
  background: rgba(102, 102, 102, 0.1);
  color: var(--muted);
}

/* Reviews Section */
.reviews-section {
  margin-top: 2rem;
}

.reviews-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.review-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.review-rating .star {
  font-size: 0.9rem;
}

.review-role {
  font-size: 0.8rem;
  color: var(--muted);
}

.review-comment {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

.review-date {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Review Form */
.job-review-form {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.job-review-form h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.job-review-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.job-review-form select,
.job-review-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  background: var(--bg);
}

.job-review-form select:focus,
.job-review-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}

/* Responsive */
@media (max-width: 768px) {
  .job-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .job-summary-strip {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .summary-item {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: auto;
    border-bottom: 1px solid var(--line-light);
    padding-bottom: 0.75rem;
  }
  
  .summary-item:last-child {
    border-bottom: none;
    padding-bottom: 0.5rem;
  }
  
  .summary-item.highlight {
    flex-direction: row;
    text-align: left;
  }
  
  .summary-label {
    margin-bottom: 0;
  }
  
  .job-actions {
    flex-direction: column;
  }
  
  .job-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .contractor-info {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ======================================
   ACCOUNT PAGE STYLES
   ====================================== */
.account-page {
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.account-page .page-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-light);
}

.account-page .page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.account-page .page-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.account-left,
.account-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.account-page .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.account-page .card:hover {
  box-shadow: var(--shadow-md);
}

.account-page .card-header {
  background: var(--surface-2);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.account-page .card-header h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.account-page .card-body {
  padding: 1.5rem;
}

.profile-avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.input-readonly {
  background: var(--surface-2) !important;
  color: var(--muted) !important;
  cursor: not-allowed;
}

.form-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.checkbox-group {
  margin-bottom: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.checkbox-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-light);
  color: var(--text);
}

.table-trucks {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.table-trucks th,
.table-trucks td {
  padding: 0.625rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--line-light);
}

.table-trucks th {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.table-trucks .actions-cell {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.inline-form {
  display: inline;
}

.add-truck-form {
  margin-top: 1rem;
}

.add-truck-form summary {
  cursor: pointer;
  list-style: none;
}

.add-truck-form summary::-webkit-details-marker {
  display: none;
}

.add-truck-form[open] summary {
  display: none;
}

.add-truck-form form {
  background: var(--surface-2);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-light);
}

.verification-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}

.stats-text {
  color: var(--muted);
  font-size: 0.9rem;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.verify-company-section {
  margin-top: 0;
}

.verify-company-row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

.verify-btn {
  flex-shrink: 0;
  margin-bottom: 0;
}

.card-danger {
  border-color: var(--danger-light);
}

.card-danger .card-header {
  background: var(--danger-light);
}

.card-danger .card-header h2 {
  color: var(--danger);
}

.account-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-label {
  font-weight: 500;
}

.btn-danger {
  background: var(--danger);
  color: white;
  border: none;
}

.btn-danger:hover {
  background: #B91C1C;
}

.btn-danger-ghost {
  color: var(--danger);
  background: transparent;
  border: none;
}

.btn-danger-ghost:hover {
  background: var(--danger-light);
}

.mt-2 {
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .checkbox-inline {
    flex-direction: column;
  }
  
  .table-trucks th:nth-child(4),
  .table-trucks td:nth-child(4) {
    display: none;
  }
  
  .account-page .page-header h1 {
    font-size: 1.5rem;
  }
}

/* ======================================
   POST JOB PAGE STYLES
   ====================================== */
.post-job-page {
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.post-job-page .page-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-light);
}

.post-job-page .page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.post-job-page .page-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
}

.post-job-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.post-job-form .form-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.post-job-form .form-section.full-width {
  grid-column: 1 / -1;
}

.post-job-form .form-section.highlight-card {
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 122, 0, 0.1);
}

.post-job-form .card-header {
  background: var(--surface-2);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-job-form .card-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.post-job-form .card-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.post-job-form .card-body {
  padding: 1.5rem;
}

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

.post-job-form .form-group:last-child {
  margin-bottom: 0;
}

.post-job-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.post-job-form label .required {
  color: var(--danger);
}

.post-job-form label .optional {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.8rem;
}

.post-job-form input[type="text"],
.post-job-form input[type="number"],
.post-job-form input[type="tel"],
.post-job-form input[type="datetime-local"],
.post-job-form select,
.post-job-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.post-job-form input:focus,
.post-job-form select:focus,
.post-job-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
}

.post-job-form .has-error input,
.post-job-form .has-error select,
.post-job-form .has-error textarea,
.post-job-form .has-error input:focus,
.post-job-form .has-error select:focus,
.post-job-form .has-error textarea:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-light);
}

.post-job-form .error-text {
  display: block;
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 0.375rem;
}

.post-job-form .help-text {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.375rem;
}

.post-job-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.post-job-form .input-with-prefix {
  position: relative;
  display: flex;
  align-items: center;
}

.post-job-form .input-prefix {
  position: absolute;
  left: 1rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 1rem;
  pointer-events: none;
}

.post-job-form .input-with-prefix input {
  padding-left: 2rem;
}

.post-job-form .radio-group {
  display: flex;
  gap: 1.5rem;
}

.post-job-form .radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 400;
}

.post-job-form .radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.post-job-form .checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.post-job-form .checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 400;
  font-size: 0.9rem;
}

.post-job-form .checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.post-job-form textarea {
  resize: vertical;
  min-height: 80px;
}

.post-job-form .form-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.post-job-form .btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

.post-job-page .alert {
  margin-bottom: 1.5rem;
}

.post-job-page .alert ul {
  margin: 0.5rem 0 0 1.25rem;
  padding: 0;
}

.post-job-page .alert li {
  margin: 0.25rem 0;
}

@media (max-width: 900px) {
  .post-job-form .form-grid {
    grid-template-columns: 1fr;
  }
  
  .post-job-form .checkbox-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .post-job-form .form-row {
    grid-template-columns: 1fr;
  }
  
  .post-job-form .checkbox-grid {
    grid-template-columns: 1fr;
  }
  
  .post-job-form .radio-group {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .post-job-form .form-actions {
    flex-direction: column;
  }
  
  .post-job-page .page-header h1 {
    font-size: 1.5rem;
  }
}

/* ======================================
   DASHBOARD PAGE STYLES
   ====================================== */
.dashboard-page {
  max-width: 1100px;
  margin: 0 auto;
}

.dashboard-page .page-header {
  margin-bottom: 2rem;
}

.dashboard-page .page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.dashboard-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.dashboard-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.dashboard-card .card-header {
  background: var(--surface-2);
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dashboard-card .card-header h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.dashboard-card .card-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.dashboard-card .card-body {
  padding: 1.5rem;
}

.stat-big {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.stat-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}

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

.stat-value {
  font-weight: 600;
  color: var(--text);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.status-pill.status-open {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
}

.status-pill.status-in-progress {
  background: rgba(255, 122, 0, 0.1);
  color: var(--accent);
}

.status-pill.status-completed {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.status-pill.status-cancelled {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

/* Status pills container for multiple pills */
.status-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Review status pills */
.review-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s;
}

.review-pill.reviewed {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.review-pill.pending {
  background: rgba(255, 122, 0, 0.1);
  color: var(--accent);
  cursor: pointer;
}

.review-pill.pending:hover {
  background: rgba(255, 122, 0, 0.2);
}

/* Review CTA section on job show page */
.review-cta-section {
  margin-bottom: 1.5rem;
}

.review-cta-prompt {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.05) 0%, rgba(255, 122, 0, 0.1) 100%);
  border: 2px solid rgba(255, 122, 0, 0.3);
  border-radius: var(--radius-lg);
}

.review-cta-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--accent);
  border-radius: 50%;
  color: white;
}

.review-cta-content {
  flex: 1;
  min-width: 0;
}

.review-cta-content h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.review-cta-content p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.review-cta-prompt .btn-primary {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.review-cta-done {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-lg);
}

.review-cta-done svg {
  color: #16a34a;
  flex-shrink: 0;
}

.review-cta-done p {
  margin: 0;
  font-size: 0.9rem;
  color: #16a34a;
}

@media (max-width: 640px) {
  .review-cta-prompt {
    flex-direction: column;
    text-align: center;
  }
  
  .review-cta-prompt .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  padding-top: 0.5rem;
}

.card-actions .btn-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.link-secondary {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

.star-rating {
  display: flex;
  gap: 0.125rem;
}

.star {
  font-size: 1.25rem;
  line-height: 1;
}

.star-filled {
  color: #F47C20;
}

.star-empty {
  color: #d1d5db;
}

.empty-state {
  text-align: center;
  padding: 1rem 0;
}

.empty-state .stat-big {
  margin-bottom: 0.5rem;
}

.empty-state .star-rating {
  justify-content: center;
  margin-bottom: 1rem;
}

.empty-message {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.5;
}

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

/* Activity Feed */
.activity-card .card-body {
  padding: 0;
}

.activity-feed {
  max-height: 400px;
  overflow-y: auto;
}

.activity-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line-light);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.activity-row:last-child {
  border-bottom: none;
}

.activity-row:hover {
  background: var(--surface-2);
}

.activity-time {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.activity-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.activity-event {
  font-weight: 500;
  color: var(--text);
}

.activity-job-title {
  font-size: 0.875rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-badge {
  display: flex;
  align-items: center;
}

.activity-badge .status-pill {
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
}

.activity-card .empty-state {
  padding: 2rem 1.5rem;
}

.activity-card .empty-state .btn {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .dashboard-grid-2 {
    grid-template-columns: 1fr;
  }
  
  .activity-row {
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
  }
  
  .activity-time {
    grid-column: 1 / -1;
    order: -1;
  }
  
  .dashboard-page .page-header h1 {
    font-size: 1.5rem;
  }
}

/* ======================================
   MY JOBS PAGE STYLES
   ====================================== */
.my-jobs-page {
  max-width: 1100px;
  margin: 0 auto;
}

.my-jobs-page .page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.my-jobs-page .page-header-content h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.25rem 0;
}

.my-jobs-page .page-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.my-jobs-page .page-header-actions .btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s;
}

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

.filter-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.filter-pill.active .filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.25rem;
  padding: 0 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--surface-2);
  border-radius: 9999px;
}

/* Job List */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.job-card-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s;
}

.job-card-row:hover {
  box-shadow: var(--shadow-md);
}

.job-card-row.job-highlighted {
  border-left: 3px solid var(--accent);
}

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

.job-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.job-card-row .job-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.job-detail-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
}

.detail-icon {
  color: var(--muted);
  flex-shrink: 0;
}

.detail-label {
  color: var(--muted);
}

.detail-value {
  color: var(--text);
  font-weight: 500;
}

.detail-value.driver-assigned {
  color: var(--accent);
}

.detail-value.driver-none {
  color: var(--muted);
  font-style: italic;
  font-weight: 400;
}

.detail-value.rate-value {
  color: var(--accent);
  font-weight: 600;
}

.job-helper-text {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: #b45309;
  background: rgba(251, 191, 36, 0.1);
  border-radius: var(--radius-sm);
  width: fit-content;
}

.job-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
}

.job-card-actions .btn {
  min-width: 80px;
}

.action-links {
  display: flex;
  gap: 1rem;
}

.action-link {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.action-link:hover:not(.disabled) {
  color: var(--accent);
}

.action-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Empty State */
.empty-state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.empty-state-card .empty-icon {
  color: var(--muted);
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.empty-state-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem 0;
}

.empty-state-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.5rem 0;
  max-width: 400px;
}

@media (max-width: 768px) {
  .my-jobs-page .page-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .my-jobs-page .page-header-actions {
    width: 100%;
  }
  
  .my-jobs-page .page-header-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 0.75rem;
    -webkit-overflow-scrolling: touch;
  }
  
  .filter-pill {
    flex-shrink: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .job-card-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .job-card-actions {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .job-card-details {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ======================================
   MARKETPLACE LOOP STYLES
   ====================================== */

/* Flash Messages */
.flash-message {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.flash-success {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.flash-error {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.flash-warning {
  background: rgba(251, 191, 36, 0.1);
  color: #b45309;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.flash-info {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Assigned Driver Banner */
.assigned-driver-banner {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.assigned-driver-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.assigned-driver-icon {
  width: 48px;
  height: 48px;
  background: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.assigned-driver-info h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #15803d;
  margin: 0 0 0.25rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.assigned-driver-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.assigned-driver-location {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0.25rem 0 0 0;
}

.assigned-badge-you {
  margin-left: auto;
  background: #22c55e;
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Interested Drivers Section */
.interested-drivers-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.interested-drivers-section .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.interested-drivers-section .section-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.driver-count {
  background: var(--accent);
  color: white;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.interested-drivers-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.driver-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: box-shadow 0.2s;
}

.driver-card:hover {
  box-shadow: var(--shadow-sm);
}

.driver-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.driver-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.driver-avatar .avatar-initials {
  color: white;
  font-weight: 600;
  font-size: 1.25rem;
}

.driver-details {
  flex: 1;
  min-width: 0;
}

.driver-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.25rem 0;
}

.driver-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.driver-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.driver-rating .star.filled {
  color: #F47C20;
}

.driver-interested-time {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.375rem 0 0 0;
}

.driver-actions {
  flex-shrink: 0;
}

.empty-drivers-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
}

.empty-drivers-state svg {
  opacity: 0.4;
  margin-bottom: 0.75rem;
}

.empty-drivers-state p {
  margin: 0 0 0.25rem 0;
  font-weight: 500;
}

.empty-drivers-state small {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Driver Interest Actions */
.interest-status-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-success {
  background: #22c55e;
  border-color: #22c55e;
  color: white;
}

.btn-success:hover:not(.disabled) {
  background: #16a34a;
  border-color: #16a34a;
}

.btn-success.disabled {
  opacity: 1;
  cursor: default;
}

.assigned-to-you-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.1) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #15803d;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
}

.job-assigned-info {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border-radius: var(--radius-md);
}

@media (max-width: 768px) {
  .assigned-driver-content {
    flex-wrap: wrap;
  }
  
  .assigned-badge-you {
    margin-left: 0;
    margin-top: 0.5rem;
    order: 3;
    width: 100%;
    text-align: center;
  }
  
  .driver-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  
  .driver-actions {
    width: 100%;
    margin-top: 0.5rem;
  }
  
  .driver-actions .btn {
    width: 100%;
  }
  
  .interest-status-group {
    flex-direction: column;
    width: 100%;
  }
  
  .interest-status-group .btn {
    width: 100%;
  }
}

/* ========================
   EXPLORE PAGE STYLES
   ======================== */

.explore-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.explore-filters {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.filter-section {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.filter-section-main {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.filter-section-secondary {
  justify-content: space-between;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 140px;
  flex: 1;
  max-width: 200px;
}

.filter-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-search {
  flex: 2;
  max-width: 320px;
}

.search-input-wrapper {
  position: relative;
}

.search-input-wrapper svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-input-wrapper input {
  padding-left: 2.5rem;
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.results-count {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* Job Cards Grid */
.job-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.job-card-explore {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.job-card-explore:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.job-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.interest-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.job-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.job-card-rate {
  margin-bottom: 0.75rem;
}

.rate-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.rate-unit {
  font-size: 0.875rem;
  color: var(--muted);
  margin-left: 0.125rem;
}

.job-card-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex: 1;
}

.job-card-details > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text);
}

.job-card-details svg {
  color: var(--muted);
  flex-shrink: 0;
}

.job-route .route-text {
  font-weight: 500;
}

.job-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.job-contractor {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.contractor-name {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.contractor-rating {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

.btn-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--muted);
  cursor: not-allowed;
  border: none;
}

/* Empty State */
.empty-state-card {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

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

.empty-state-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem 0;
}

.empty-state-card p {
  color: var(--muted);
  margin: 0 0 1.5rem 0;
}

/* Quick Filters & Saved Searches */
.quick-filters-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quick-filters-row,
.saved-searches-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.quick-filters-label,
.saved-searches-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.quick-filter-chips,
.saved-search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip,
.saved-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 9999px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: all 0.15s ease;
}

.filter-chip:hover,
.saved-chip:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.filter-chip.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.saved-chip {
  background: rgba(255, 122, 0, 0.08);
  border-color: rgba(255, 122, 0, 0.2);
  color: var(--accent);
}

.saved-chip:hover {
  background: var(--accent);
  color: white;
}

.clear-searches-form {
  margin-left: auto;
}

.clear-searches-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.clear-searches-btn:hover {
  color: var(--danger);
}

/* Save Search Bar */
.save-search-bar {
  background: rgba(255, 122, 0, 0.05);
  border: 1px dashed rgba(255, 122, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.save-search-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.save-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: white;
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.save-search-btn:hover {
  background: var(--accent);
  color: white;
}

.save-search-hint {
  font-size: 0.75rem;
  color: var(--muted);
}

.save-search-name-input {
  flex: 1;
  max-width: 200px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.clear-filters-link {
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  margin-left: auto;
  padding: 0.25rem 0.5rem;
  transition: color 0.15s ease;
}

.clear-filters-link:hover {
  color: var(--danger);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .filter-section {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    max-width: none;
  }
  
  .filter-search {
    max-width: none;
  }
  
  .filter-actions {
    margin-left: 0;
    width: 100%;
  }
  
  .filter-actions .btn {
    flex: 1;
  }
  
  .job-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .job-card-footer {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .job-contractor {
    width: 100%;
  }
  
  .job-card-footer .btn {
    width: 100%;
  }
}

/* Sticky Action Bar */
.sticky-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 253, 246, 0.98);
  border-top: 1px solid var(--line);
  padding: 1rem;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
}

.sticky-action-bar-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.sticky-form {
  display: flex;
  width: 100%;
  justify-content: center;
}

.sticky-cta {
  min-width: 200px;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.sticky-interest-sent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: center;
}

.sticky-helper-text {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

.btn-submitting {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-icon.spin {
  animation: spin 1s linear infinite;
}

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

/* Site contact card (full-width section below the grid) */
.job-site-contact {
  margin-bottom: 1.5rem;
}

/* Add padding to body for sticky bar */
.job-detail-page {
  padding-bottom: 100px;
}

/* Inline actions section (status badges, withdraw, messaging) */
.job-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.job-inline-actions:empty {
  display: none;
}

.interest-status-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.assigned-to-you-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--success-light, #e8f5e9);
  color: var(--success);
  border-radius: var(--radius-md);
  font-weight: 500;
}

.job-assigned-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  color: var(--muted);
  border-radius: var(--radius-md);
}

/* Secondary actions styling */
.job-secondary-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .sticky-action-bar {
    padding: 0.75rem 1rem;
  }
  
  .sticky-cta {
    width: 100%;
    min-width: auto;
  }
  
  .sticky-interest-sent button {
    width: 100%;
  }
}

/* ======================================
   JOB CARD PARTIAL (job_card.ejs)
   ====================================== */
.jc-card {
  padding: 1.75rem;
}

.jc-title a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.jc-title a:hover {
  color: var(--brand);
}

.jc-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.jc-rate {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.jc-rate-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
}

.jc-rate-unit {
  font-size: 0.875rem;
  color: var(--muted);
}

.jc-rpm {
  font-size: 0.875rem;
  color: var(--muted);
  margin-left: 0.125rem;
}

.jc-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text);
}

.jc-details div strong {
  font-weight: 600;
  margin-right: 0.25rem;
}

/* ======================================
   EXPLORE — RESULTS HEADER & VIEW TOGGLE
   ====================================== */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

/* Override standalone margin-bottom when results-count is a flex child */
.results-header .results-count {
  margin-bottom: 0;
}

.view-toggle {
  display: flex;
  gap: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px;
}

.view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.view-btn.active {
  background: var(--brand);
  color: #fff;
}

.view-btn:hover:not(.active) {
  background: var(--brand-light);
  color: var(--brand);
}

/* ======================================
   EXPLORE — LIST VIEW
   ====================================== */
.job-cards-grid.view-list {
  grid-template-columns: 1fr;
  gap: 0.625rem;
}

.job-cards-grid.view-list .job-card-explore {
  display: grid;
  grid-template-columns: 1fr 180px;
  grid-template-areas:
    "header  rate"
    "title   rate"
    "details rate"
    "footer  footer";
  column-gap: 2rem;
  row-gap: 0;
  padding: 1.25rem 1.5rem;
  align-items: start;
}

.job-cards-grid.view-list .job-card-header {
  grid-area: header;
  margin-bottom: 0.25rem;
}

.job-cards-grid.view-list .job-card-title {
  grid-area: title;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.job-cards-grid.view-list .job-card-rate {
  grid-area: rate;
  text-align: right;
  align-self: center;
  margin-bottom: 0;
  border-left: 1px solid var(--line);
  padding-left: 1.5rem;
}

.job-cards-grid.view-list .job-card-rate .rate-rpm {
  display: block;
  margin-top: 0.2rem;
}

.job-cards-grid.view-list .job-card-details {
  grid-area: details;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-bottom: 0;
}

.job-cards-grid.view-list .job-card-footer {
  grid-area: footer;
  margin-top: 0.75rem;
}

/* rate-rpm span in explore cards */
.rate-rpm {
  font-size: 0.875rem;
  color: var(--muted);
  margin-left: 0.25rem;
}
}

/* ========================================================================
   9.18 UI OVERHAUL — polish layer
   Refines brand mark, typography, cards, buttons, forms, and tables without
   disturbing the existing selectors above.
   ======================================================================== */

/* ── Topnav presence (slightly taller, cleaner border) ──────────────── */
.topnav { padding: 1.05rem 1.5rem; }

/* ── Brand mark (truck icon + two-tone wordmark) ─────────────────────── */
.brand { gap: 0.6rem; padding: 0.4rem 0.65rem; }
.brand:hover { background: transparent; }
.brand:hover .brand-mark { transform: translateX(-1px); }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  transition: transform 0.15s ease;
}
.brand-text {
  font-size: 1.55rem;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--text);
  display: inline-flex;
  align-items: baseline;
}
.brand-text-load { font-weight: 500; color: var(--text); }
.brand-text-haus { font-weight: 800; color: var(--brand); }

/* ── Navlink hover/active states ──────────────────────────────────── */
.navlink {
  position: relative;
  padding: 0.55rem 0.95rem;
}
.navlink:hover { background: transparent; color: var(--brand); }
.navlink:hover svg { opacity: 1; }
.navlink::after {
  content: "";
  position: absolute;
  left: 0.9rem; right: 0.9rem;
  bottom: 4px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: center;
  transition: opacity 0.15s ease, transform 0.18s ease;
}
.navlink:hover::after { opacity: 1; transform: scaleX(1); }
.navlink.active { background: transparent; color: var(--brand); }
.navlink.active::after { opacity: 1; transform: scaleX(1); }

/* ── User pill refinement ──────────────────────────────────────────── */
.nav-user-btn { padding: 6px 10px 6px 6px; border-radius: 999px; }
.nav-user-btn:hover { background: var(--brand-light); }
.user-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 720px) {
  .topnav { padding: 0.85rem 1rem; }
  .brand-text { font-size: 1.3rem; }
  .brand-mark svg { width: 28px; height: 18px; }
}

/* ── Typography hierarchy ────────────────────────────────────────────── */
h1 { font-size: 2.1rem; letter-spacing: -0.02em; }
h2 { font-size: 1.55rem; letter-spacing: -0.015em; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
.page-header { margin-bottom: 2.25rem; }
.page-header h1 { font-size: 2.1rem; font-weight: 800; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  transition: transform 0.08s ease, background 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 1px 2px rgba(255, 122, 0, 0.25);
}
.btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #fff;
  box-shadow: 0 4px 10px rgba(255, 122, 0, 0.28);
}

/* ── Cards ───────────────────────────────────────────────────────────── */
.card,
.dashboard-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s ease, box-shadow 0.15s, border-color 0.15s;
}
.dashboard-card { padding: 1.35rem 1.35rem; }
.dashboard-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-light);
}

/* ── Tables ──────────────────────────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
table th {
  text-align: left;
  padding: 11px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
}
table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-light);
  vertical-align: middle;
}
table tbody tr:nth-child(even) td { background: var(--surface-2); }
table tbody tr:hover td { background: var(--brand-light); }
table tr:last-child td { border-bottom: none; }

/* ── Forms ───────────────────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="search"],
input[type="date"],
select,
textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  box-sizing: border-box;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

/* ── Spacing tweaks ─────────────────────────────────────────────────── */
.container { padding-top: 2.25rem; padding-bottom: 3rem; }

/* ── Mobile responsiveness polish ───────────────────────────────────── */
@media (max-width: 720px) {
  h1, .page-header h1 { font-size: 1.65rem; }
  h2 { font-size: 1.3rem; }
  .container { padding: 1.25rem 1rem 2rem; }
  table { font-size: 0.88rem; }
  table th, table td { padding: 9px 10px; }
  .brand-text { font-size: 1.3rem; }
  .brand-mark svg { width: 24px; height: 17px; }
}
