:root {
  --bg: #f6f1e2;
  --surface: rgba(255, 252, 246, 0.88);
  --surface-strong: #fffaf0;
  --ink: #17351d;
  --muted: #5c7255;
  --line: rgba(30, 65, 35, 0.12);
  --primary: #2f7d32;
  --primary-deep: #1d5d22;
  --secondary: #dca54d;
  --accent: #88b14b;
  --shadow: 0 20px 60px rgba(38, 58, 22, 0.12);
  --card-radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 22%),
    repeating-linear-gradient(
      120deg,
      rgba(82, 134, 48, 0.04) 0,
      rgba(82, 134, 48, 0.04) 12px,
      rgba(255, 255, 255, 0.02) 12px,
      rgba(255, 255, 255, 0.02) 22px
    ),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: auto -8vw -12rem -8vw;
  height: 18rem;
  background:
    radial-gradient(circle at 20% 0%, rgba(83, 150, 61, 0.55), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(146, 186, 72, 0.7), transparent 33%),
    linear-gradient(180deg, rgba(108, 159, 69, 0.85), rgba(48, 102, 46, 0.95));
  clip-path: ellipse(70% 100% at 50% 100%);
  pointer-events: none;
}

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 2rem;
  background: rgba(246, 241, 226, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 20px rgba(38, 58, 22, 0.06);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  color: var(--ink);
}

.nav-logo {
  font-size: 1.4rem;
}

.nav-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.cta-logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  padding: 4px;
}

.nav-tabs {
  display: flex;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
  font-family: inherit;
}

.tab-btn:hover {
  background: rgba(47, 125, 50, 0.08);
  color: var(--ink);
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(47, 125, 50, 0.28);
}

.tab-admin.active {
  background: #3d3d3d;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.tab-icon {
  font-size: 1rem;
}

.view-container {
  flex: 1;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 5rem;
}

.view {
  display: none;
  gap: 1.5rem;
  flex-direction: column;
}

.view.active {
  display: flex;
}

.view-header {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0 0.5rem;
}

.view-header-copy {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 2rem 2.5rem;
  border-radius: 36px;
  background:
    radial-gradient(circle at top, rgba(232, 247, 204, 0.95), rgba(203, 228, 168, 0.65) 28%, transparent 60%),
    linear-gradient(135deg, #f7efdd 0%, #e6f0cf 55%, #cfe0a6 100%);
}

.view-header-copy h1 {
  margin: 0.25rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.view-lead {
  color: var(--muted);
  margin: 0.5rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
}

.view-header-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stat-chip {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  box-shadow: 0 4px 16px rgba(38, 58, 22, 0.07);
}

.stat-chip-operator {
  background: linear-gradient(135deg, rgba(61, 61, 61, 0.06), rgba(40, 40, 40, 0.03));
  border-color: rgba(0, 0, 0, 0.08);
}

.dashboard,
.customer-grid,
.worker-grid,
.economics-grid,
.payment-grid,
.operator-grid,
.metric-row,
.field-row,
.analysis-heading,
.quote-box,
.driver-status,
.rating-duo {
  display: grid;
  gap: 1rem;
}

.panel {
  padding: 1.5rem;
  border-radius: var(--card-radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel-wide {
  padding: 1.75rem;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.panel-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 4vw, 3rem);
}

.panel-copy {
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.98rem;
}

.panel-controls {
  display: flex;
  align-items: end;
  gap: 1rem;
}

.inline-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
}

.inline-label select {
  width: auto;
  padding: 0.6rem 0.9rem;
}

.customer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.worker-grid {
  grid-template-columns: 0.65fr 1fr 1fr;
}

.col-span-2 {
  grid-column: span 2;
}

.economics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.payment-grid {
  grid-template-columns: 1.05fr 0.95fr;
}

.operator-grid {
  grid-template-columns: 1fr;
  margin-bottom: 1rem;
}

.card {
  border-radius: 24px;
  padding: 1.25rem;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.stack > * + * {
  margin-top: 0.9rem;
}

.field-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--ink);
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(25, 59, 28, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(47, 125, 50, 0.18);
  border-color: rgba(47, 125, 50, 0.35);
}

input[type="range"] {
  padding-inline: 0;
}

.range-value {
  color: var(--muted);
  font-weight: 500;
}

.analysis-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(241, 248, 224, 0.95));
}

.analysis-heading {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.analysis-heading a {
  color: var(--primary-deep);
  font-weight: 700;
}

.analysis-map {
  min-height: 270px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(244, 245, 216, 0.95), rgba(190, 219, 137, 0.82)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0.12) 2px, transparent 2px, transparent 52px),
    repeating-linear-gradient(0deg, rgba(61, 109, 42, 0.08) 0, rgba(61, 109, 42, 0.08) 2px, transparent 2px, transparent 42px);
}

.analysis-map::before,
.analysis-map::after {
  content: "";
  position: absolute;
  border-radius: 18px;
  pointer-events: none;
}

.analysis-map::before {
  inset: 16% 13% 18% 10%;
  border: 4px dashed rgba(29, 93, 34, 0.7);
  background: rgba(67, 150, 48, 0.24);
  transform: rotate(-8deg);
}

.analysis-map::after {
  inset: 0;
  background:
    radial-gradient(circle at 14% 20%, rgba(255, 255, 255, 0.65), transparent 8%),
    linear-gradient(120deg, transparent 0 32%, rgba(205, 191, 159, 0.55) 32% 42%, transparent 42% 100%),
    linear-gradient(18deg, transparent 0 65%, rgba(228, 225, 216, 0.75) 65% 80%, transparent 80% 100%);
  mix-blend-mode: multiply;
}

/* Hide decorative overlay once real map is loaded */
#map-wrapper.map-loaded::before,
#map-wrapper.map-loaded::after {
  display: none;
}

.plot-overlay {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  z-index: 1;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(20, 49, 20, 0.72);
  color: #eff5e7;
}

.plot-overlay p,
.plot-overlay strong,
.plot-overlay span {
  color: inherit;
}

#lot-badge {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 0.82rem;
  text-transform: capitalize;
}

.quote-box {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
}

.payment-box strong {
  font-size: clamp(1.15rem, 2vw, 1.7rem);
}

.booking-list,
.worker-job-list {
  display: grid;
  gap: 0.9rem;
}

.booking-card,
.job-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(23, 53, 29, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.booking-card header,
.job-card header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.status-pill {
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.status-asap,
.status-open {
  background: rgba(220, 165, 77, 0.18);
  color: #8c5611;
}

.status-claimed,
.status-enroute {
  background: rgba(47, 125, 50, 0.14);
  color: var(--primary-deep);
}

.status-complete {
  background: rgba(35, 82, 136, 0.14);
  color: #1a4d7f;
}

.booking-meta,
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--muted);
  line-height: 1.55;
}

.booking-actions,
.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.ghost-button {
  border-radius: 999px;
  border: 1px solid rgba(23, 53, 29, 0.12);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  font-weight: 700;
  padding: 0.7rem 1rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  transition: background 180ms ease;
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.95);
}

.recommendation-strip,
.clean-list {
  display: grid;
  gap: 0.65rem;
}

.panel-operator {
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.94), rgba(236, 242, 226, 0.96));
}

.recommendation-chip {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 246, 223, 0.95), rgba(240, 247, 219, 0.95));
  border: 1px solid rgba(199, 172, 103, 0.24);
}

.rating-duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rating-block,
.recommendation-card {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clean-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(23, 53, 29, 0.08);
  color: var(--muted);
  line-height: 1.55;
}

.clean-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tiny-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.9rem;
}

.demo-hint { opacity: 0.65; margin-top: 0.15rem; }
.demo-hint code {
  background: #f0f4f0;
  border-radius: 3px;
  padding: 1px 5px;
  font-family: monospace;
  font-size: 0.85em;
  color: #3a7a3a;
  letter-spacing: 0.05em;
}

.empty-state {
  color: var(--muted);
  padding: 1.5rem;
  text-align: center;
  font-style: italic;
}

.surcharge-strip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(220, 165, 77, 0.14), rgba(255, 200, 80, 0.1));
  border: 1px solid rgba(220, 165, 77, 0.3);
  color: #7a4a0a;
  font-size: 0.92rem;
  font-weight: 600;
}

.surcharge-strip strong {
  font-size: inherit;
  color: #7a4a0a;
}

.surcharge-icon {
  font-size: 1rem;
}

.surcharge-note {
  color: rgba(122, 74, 10, 0.7);
  font-weight: 400;
  font-size: 0.85rem;
}

.surcharge-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  justify-content: flex-end;
}

.surcharge-preview {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 1.3rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  font-family: inherit;
  font-size: 0.98rem;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), #4f9e39);
  color: #fff;
  box-shadow: 0 10px 30px rgba(47, 125, 50, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border: 1px solid rgba(23, 53, 29, 0.1);
}

.eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary-deep);
  font-size: 0.76rem;
  font-weight: 700;
}

.metric-label {
  display: block;
  color: rgba(23, 53, 29, 0.68);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

strong {
  font-size: clamp(1.35rem, 3vw, 2.2rem);
}

.stat-chip strong {
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
}

.admin-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.admin-gate-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow);
  text-align: center;
}

.admin-gate-card h2 {
  margin: 0.25rem 0 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.gate-copy {
  color: var(--muted);
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

.pin-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.pin-row input {
  flex: 1;
  text-align: center;
  letter-spacing: 0.2em;
  font-size: 1.1rem;
}

.pin-error {
  color: #b53a2c;
  font-size: 0.9rem;
  min-height: 1.2em;
  margin: 0 0 0.5rem;
}

.pin-save-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.4rem;
}

.hidden {
  display: none !important;
}

.admin-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .view-header,
  .customer-grid,
  .worker-grid,
  .economics-grid,
  .payment-grid,
  .quote-box,
  .metric-row,
  .rating-duo {
    grid-template-columns: 1fr;
  }

  .col-span-2 {
    grid-column: span 1;
  }

  .panel-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .top-nav {
    padding: 0.6rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .tab-btn span:not(.tab-icon) {
    display: none;
  }

  .tab-btn {
    padding: 0.55rem 0.85rem;
  }

  .view-container {
    width: min(100% - 1rem, 1200px);
  }

  .view-header-copy {
    padding: 1.4rem;
  }

  .panel,
  .panel-wide {
    padding: 1rem;
  }

  .field-row,
  .analysis-heading,
  .booking-card header,
  .job-card header {
    grid-template-columns: 1fr;
    display: grid;
  }

  /* Map instructions — hide long text, show just the zone buttons as a compact row */
  .map-instructions {
    justify-content: center;
    padding: 0.4rem 0.6rem;
    gap: 0.5rem;
  }
  .map-instructions > span {
    display: none;
  }
  .btn-draw-mode {
    flex: 1;
    text-align: center;
    padding: 0.45rem 0.5rem;
    font-size: 0.82rem;
  }

  /* Pin row (worker login, admin PIN) — stack on tiny screens */
  .pin-row {
    flex-direction: column;
  }
  .pin-row input {
    width: 100%;
  }

  /* View header stats — single column on phone */
  .view-header-stats {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

/* ── Worker CTA Band ─────────────────────────────────── */
.worker-cta-band {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #2f7d32 0%, #4caf50 100%);
  color: #fff;
  border-radius: var(--card-radius);
  padding: 1.1rem 1.6rem;
  margin-bottom: 1.5rem;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 30px rgba(47, 125, 50, 0.28);
}
.worker-cta-band:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(47, 125, 50, 0.38);
}
.worker-cta-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
  line-height: 1;
}
.worker-cta-copy {
  flex: 1;
}
.worker-cta-copy strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.worker-cta-copy span {
  font-size: 0.88rem;
  opacity: 0.88;
}
.worker-cta-arrow {
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0.92;
  flex-shrink: 0;
}

/* ── Join / Application view ─────────────────────────── */
.tab-join {
  color: var(--primary);
}
.stat-chip-join {
  background: linear-gradient(135deg, rgba(47, 125, 50, 0.14), rgba(76, 175, 80, 0.1));
  border-color: rgba(47, 125, 50, 0.25);
}
.earn-chip {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}
.earn-note {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
  display: block;
  max-width: 260px;
}
.stat-chip-applications {
  background: linear-gradient(135deg, rgba(220, 165, 77, 0.18), rgba(255, 193, 7, 0.12));
  border-color: rgba(220, 165, 77, 0.3);
}
.application-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 2rem;
  text-align: center;
}
.application-success .success-icon {
  font-size: 3.5rem;
}
.application-success h2 {
  font-size: 1.8rem;
  margin: 0;
}
.application-success p {
  color: var(--muted);
  max-width: 36ch;
}
.application-form.hidden-when-success {
  display: block;
}
.application-form.hidden {
  display: none;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.app-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.app-grid label input,
.app-grid label select,
.app-grid label textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface-strong);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}
.app-grid label input:focus,
.app-grid label select:focus,
.app-grid label textarea:focus {
  border-color: var(--primary);
}

.required {
  color: #c62828;
}
.equipment-section {
  margin-top: 1.2rem;
}
.equipment-label {
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 0 0.7rem;
}
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.5rem;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.55rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.checkbox-label:has(input:checked) {
  border-color: var(--primary);
  background: rgba(47, 125, 50, 0.08);
}
.checkbox-label input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.quiz-stack {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
.quiz-question {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.quiz-q {
  font-size: 0.97rem;
  font-weight: 600;
  margin: 0;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  padding: 0.55rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.radio-label:has(input:checked) {
  border-color: var(--primary);
  background: rgba(47, 125, 50, 0.08);
}
.radio-label input[type="radio"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

/* ── Upload area ─────────────────────────────────────── */
.upload-area {
  border: 2px dashed var(--line);
  border-radius: var(--card-radius);
  background: var(--surface);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  transition: border-color 0.15s;
}
.upload-area:hover {
  border-color: var(--primary);
}
.file-input-hidden {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}
.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  text-align: center;
}
.upload-icon {
  font-size: 2rem;
}
.upload-label strong {
  font-size: 0.95rem;
}
.upload-hint {
  font-size: 0.8rem;
  color: var(--muted);
}
.photo-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.app-submit-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0 2rem;
  text-align: center;
}
.app-submit-btn {
  font-size: 1.05rem;
  padding: 0.9rem 2.4rem;
}

/* ── Job photo upload (Worker) ───────────────────────── */
.photo-upload-section {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}
.photo-upload-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.photo-upload-btn {
  display: inline-block;
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  background: transparent;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0.7rem;
  font-family: inherit;
  transition: background 0.15s;
}
.photo-upload-btn:hover {
  background: rgba(47, 125, 50, 0.09);
}
.job-photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.job-photo-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ── Admin job photos ────────────────────────────────── */
.admin-job-photos {
  margin-top: 0.7rem;
  padding: 0.7rem;
  background: rgba(47, 125, 50, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(47, 125, 50, 0.15);
}

/* ── Mapbox map container ────────────────────────────── */
.map-frame {
  position: relative;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-strong);
}
.mapbox-canvas {
  width: 100%;
  height: 100%;
  display: none;
}
.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 1.5px dashed rgba(47, 125, 50, 0.35);
  border-radius: 12px;
  text-align: center;
  padding: 1.5rem;
}
.map-placeholder-icon { font-size: 2.4rem; line-height: 1; }
.map-placeholder-title { font-weight: 700; font-size: 0.95rem; color: #2f7d32; }
.map-placeholder-note { font-size: 0.8rem; color: #4caf50; max-width: 260px; }

.map-instructions {
  font-size: 0.82rem;
  background: rgba(47, 125, 50, 0.06);
  border: 1px solid rgba(47, 125, 50, 0.2);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.map-instr-header { border-bottom: 1px solid rgba(47,125,50,0.15); padding-bottom: 0.5rem; }
.map-instr-title { font-size: 0.85rem; font-weight: 700; color: #2f7d32; margin: 0 0 0.15rem; }
.map-instr-sub { font-size: 0.78rem; color: #555; margin: 0; }
.map-instr-zones { display: flex; flex-direction: column; gap: 0.3rem; }
.map-instr-zone-label { font-size: 0.72rem; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 0.04em; margin: 0; }
.map-instr-btns { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.map-instr-extra-zones:not(:has(.btn-draw-extra:not(.hidden))) { display: none; }

.btn-draw-mode {
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1.5px solid rgba(100, 80, 40, 0.35);
  border-radius: 20px;
  background: rgba(180, 140, 60, 0.1);
  color: #7a5c1e;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.btn-draw-mode:hover { background: rgba(180, 140, 60, 0.2); border-color: rgba(100, 80, 40, 0.6); }
.btn-draw-mode.active {
  background: rgba(180, 140, 60, 0.28);
  border-color: #8a6520;
  color: #5a3e10;
}
.btn-draw-lawn {
  border-color: rgba(47, 125, 50, 0.45);
  background: rgba(47, 125, 50, 0.1);
  color: #2f7d32;
}
.btn-draw-lawn:hover { background: rgba(47, 125, 50, 0.18); }
.btn-draw-lawn.active { background: rgba(47, 125, 50, 0.28); border-color: #2f7d32; color: #1b5e20; }

/* ── Mobile sticky price bar ───────────────────────────── */
.mobile-price-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: linear-gradient(135deg, #1b5e20 0%, #388e3c 100%);
  color: #fff;
  padding: 0.75rem 1.1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.22);
}
.mobile-price-inner { display: flex; flex-direction: column; gap: 0.1rem; }
.mobile-price-label { font-size: 0.72rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.07em; }
.mobile-price-bar strong { font-size: 1.55rem; font-weight: 800; line-height: 1; }
.mobile-price-book {
  flex-shrink: 0;
  background: #fff !important;
  color: #1b5e20 !important;
  border-color: #fff !important;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}
@media (max-width: 900px) {
  .mobile-price-bar:not(.hidden) { display: flex; }
  /* prevent bar from covering page content */
  .view-container { padding-bottom: 80px; }
}

.zone-driveway { color: #6d4c1f; }
.zone-driveway .zone-label-text { color: #7a5c1e; }
.zone-driveway .zone-area-val { color: #8a6520; }
.zone-driveway em { font-size: 0.75rem; opacity: 0.7; }
.zone-dot-driveway { background: #c8a84b; }
.zone-dot-walkway  { background: #a0837a; }
.zone-divider {
  border: none;
  border-top: 1px dashed rgba(180, 140, 60, 0.3);
  margin: 0.2rem 0;
}

.plot-overlay-panel {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.6rem 0;
}
.plot-overlay-panel span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.plot-overlay-panel strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}
.plot-overlay-panel p {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

/* ── Surge pricing strip ─────────────────────────────── */
.surcharge-surge {
  border-color: rgba(192, 57, 43, 0.3);
  background: rgba(192, 57, 43, 0.06);
  color: #b03020;
}
.surcharge-surge .surcharge-note { color: #b03020; }

/* ── Uncertainty surcharge strip ─────────────────────── */
.surcharge-uncertainty {
  border-color: rgba(180, 120, 0, 0.3);
  background: rgba(255, 200, 0, 0.07);
  color: #7a5800;
}
.surcharge-uncertainty .surcharge-note {
  color: #7a5800;
}

/* ── Availability banner ─────────────────────────────── */
.availability-banner {
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid var(--line);
  background: var(--surface-strong);
  color: var(--muted);
}
.availability-ok {
  border-color: rgba(47, 125, 50, 0.4);
  background: rgba(47, 125, 50, 0.07);
  color: #2f7d32;
}
.availability-none {
  border-color: rgba(192, 57, 43, 0.35);
  background: rgba(192, 57, 43, 0.06);
  color: #b03020;
}
.availability-neutral {
  border-color: var(--line);
  background: var(--surface-strong);
  color: var(--muted);
}

/* ── Worker roster (admin) ────────────────────────────── */
.roster-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.workers-avail-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  gap: 0.35rem;
}
.avail-pill-on  { background: rgba(46,125,50,0.1); color: #2e7d32; border: 1.5px solid rgba(46,125,50,0.3); }
.avail-pill-off { background: var(--surface-strong); color: var(--muted); border: 1.5px solid var(--line); }

.worker-roster-list { display: flex; flex-direction: column; gap: 0.75rem; }

.worker-roster-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface-strong);
  transition: border-color 0.15s;
}
.worker-roster-card:hover { border-color: var(--accent-mid); }

.roster-card-left { display: flex; align-items: center; gap: 0.75rem; }

.roster-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.roster-name { display: block; font-size: 0.95rem; font-weight: 700; }
.roster-meta { font-size: 0.78rem; color: var(--muted); }

.roster-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.roster-detail-item { white-space: nowrap; }

.roster-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 72px;
}
.roster-avail-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: block;
}
.dot-green { background: #4caf50; box-shadow: 0 0 0 3px rgba(76,175,80,0.2); }
.dot-gray  { background: #bbb; }
.roster-avail-label { font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.roster-remove-btn { font-size: 0.75rem; padding: 0.2rem 0.6rem; color: var(--muted); }
.roster-remove-btn:hover { color: #c62828; }

@media (max-width: 680px) {
  .worker-roster-card { grid-template-columns: 1fr auto; }
  .roster-details { display: none; }
}

/* ── Worker availability toggle card ─────────────────── */
.worker-avail-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--surface-strong);
  margin-bottom: 1.25rem;
  transition: border-color 0.25s, background 0.25s;
}
.avail-on  { border-color: rgba(46,125,50,0.5); background: rgba(46,125,50,0.06); }
.avail-off { border-color: var(--line); background: var(--surface-strong); }

.avail-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.avail-icon { font-size: 1.5rem; line-height: 1; }
.worker-avail-card strong { display: block; font-size: 0.95rem; }
.avail-sub { font-size: 0.78rem; color: var(--muted); margin: 0.15rem 0 0; }

/* Toggle switch */
.avail-switch { position: relative; display: inline-block; width: 52px; height: 28px; flex-shrink: 0; }
.avail-switch input { opacity: 0; width: 0; height: 0; }
.avail-slider {
  position: absolute; inset: 0;
  background: var(--line);
  border-radius: 28px;
  cursor: pointer;
  transition: background 0.25s;
}
.avail-slider::before {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  left: 4px; bottom: 4px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.avail-switch input:checked + .avail-slider { background: #2e7d32; }
.avail-switch input:checked + .avail-slider::before { transform: translateX(24px); }

/* ── Stripe card element ─────────────────────────────── */
.stripe-card-input {
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 0.15s;
}
.stripe-card-input:focus-within {
  border-color: var(--primary);
}
.card-element-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Zone breakdown ──────────────────────────────────── */
.zone-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.6rem 0.75rem;
  background: rgba(47, 125, 50, 0.05);
  border: 1px solid rgba(47, 125, 50, 0.2);
  border-radius: 10px;
  font-size: 0.83rem;
}
.zone-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.zone-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.zone-label-text {
  flex: 1;
  color: var(--text);
  font-weight: 500;
}
.zone-area-val {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.zone-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 0.88rem;
  border-top: 1px solid rgba(47, 125, 50, 0.2);
  padding-top: 0.3rem;
  margin-top: 0.15rem;
  color: var(--text);
}
.zone-auto-note {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.15rem;
}

/* ── Service add-ons ─────────────────────────────────── */
.addon-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.addon-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: var(--surface);
}
.addon-label:has(input:checked) {
  border-color: var(--primary);
  background: rgba(47, 125, 50, 0.05);
}
.addon-label input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}
.addon-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.addon-text strong { font-size: 0.88rem; }
.addon-text small { font-size: 0.76rem; color: var(--muted); }
.addon-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(47, 125, 50, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── Rating modal ────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  backdrop-filter: blur(4px);
}
.modal-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 2rem 2rem 1.75rem;
  width: min(420px, 92vw);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
}
.rating-card h2 { margin: 0; font-size: 1.4rem; }
.rating-worker-label { font-size: 0.9rem; color: var(--muted); margin: 0; }
.star-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
.star-btn {
  font-size: 2.4rem;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: #d1d5db;
  transition: color 0.1s, transform 0.1s;
  padding: 0.1rem;
}
.star-btn:hover { color: #f59e0b; transform: scale(1.15); }
.star-btn.selected { color: #f59e0b; }
.star-hint {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  min-height: 1.2em;
  margin: -0.4rem 0;
}
.rating-card textarea {
  width: 100%;
  resize: vertical;
  min-height: 72px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface-strong);
  color: var(--text);
}
.rating-actions {
  display: flex;
  gap: 0.75rem;
}
.rating-actions .button { flex: 1; }

/* ── Worker payout banner ────────────────────────────── */
.payout-banner {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  background: rgba(47, 125, 50, 0.07);
  border: 1.5px solid rgba(47, 125, 50, 0.3);
  border-radius: 10px;
  flex-wrap: wrap;
}
.payout-main { font-size: 0.9rem; color: var(--text); }
.payout-main strong { color: #2f7d32; font-size: 1.05rem; }
.payout-tip-note { font-size: 0.78rem; color: #4caf50; }

/* ── Directions button ───────────────────────────────── */
.directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
}

/* ── Size dispute panel ──────────────────────────────── */
.dispute-panel {
  margin-top: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface-strong);
}
.dispute-pending {
  border-color: #e6a817;
  background: rgba(230, 168, 23, 0.07);
}
.dispute-approved {
  border-color: var(--primary);
  background: rgba(47, 125, 50, 0.07);
}
.dispute-declined {
  border-color: #c0392b;
  background: rgba(192, 57, 43, 0.07);
}
.dispute-label {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.dispute-comparison {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.dispute-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.dispute-form input {
  flex: 1;
  min-width: 140px;
  padding: 0.45rem 0.75rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.88rem;
}

/* ── Application list (Admin) ────────────────────────── */
.application-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.empty-state {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1rem 0;
}

/* ── Onboarding mode — hide booking/payment until property is set up ── */
#customer-main-content.onboarding-mode .view-header,
#customer-main-content.onboarding-mode .worker-cta-band,
#customer-main-content.onboarding-mode #booking-form,
#customer-main-content.onboarding-mode #payment-panel,
#customer-main-content.onboarding-mode #bookings-panel {
  display: none !important;
}
/* Keep the property form + map visible during onboarding */
#customer-main-content.onboarding-mode .analysis-card,
#customer-main-content.onboarding-mode #signup-form {
  display: flex;
}

/* ── Onboarding banner ───────────────────────────────── */
.onboarding-banner {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  border: 2px solid #66bb6a;
  border-radius: var(--card-radius);
  padding: 1.6rem 2rem;
  margin: 1.5rem 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: center;
  text-align: center;
}
.onboarding-banner.hidden {
  display: none;
}
.onboarding-steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.onboarding-step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #fff;
  border: 1.5px solid #a5d6a7;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--green-dark);
}
.ob-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.ob-arrow {
  font-size: 1rem;
  color: #81c784;
  font-weight: 700;
}
.onboarding-banner #onboarding-save-btn {
  min-width: 260px;
}
.tiny-note {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin: 0;
}
.age-notice {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin: 0;
  font-style: italic;
}

.join-notice-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.join-notice-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.8rem;
  border-radius: 99px;
  background: rgba(46,125,50,0.1);
  color: #2e7d32;
  border: 1.5px solid rgba(46,125,50,0.3);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ── Insurance upload (join form) ─────────────────────── */
.insurance-upload-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 680px) { .insurance-upload-wrap { grid-template-columns: 1fr; } }

.insurance-why-box {
  background: rgba(255,193,7,0.07);
  border: 1.5px solid rgba(255,193,7,0.3);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.insurance-why-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.insurance-why-list {
  margin: 0 0 0.6rem 1.1rem;
  padding: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}
.insurance-min {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
}

.insurance-file-name {
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2e7d32;
  text-align: center;
}

/* ── Insurance status in admin cards ─────────────────── */
.insurance-admin-tag {
  font-size: 0.8rem;
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  margin: 0.2rem 0;
}
.insurance-admin-ok {
  background: rgba(46,125,50,0.07);
  color: #2e7d32;
  border: 1px solid rgba(46,125,50,0.2);
}
.insurance-admin-missing {
  background: rgba(198,40,40,0.06);
  color: #c62828;
  border: 1px solid rgba(198,40,40,0.15);
}

/* ── Lawn zone picker (booking form) ─────────────────── */
.field-label {
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}
.zone-checks-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.zone-check-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  background: var(--surface-strong);
  transition: border-color 0.15s;
  user-select: none;
}
.zone-check-row:hover {
  border-color: var(--green);
}
.zone-check-row input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--green);
  flex-shrink: 0;
}
.zone-check-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.zone-check-all {
  border-color: #a5d6a7;
  background: #f1f8e9;
  font-weight: 700;
}

/* ── Auth Gate ───────────────────────────────────────── */
.auth-gate-panel {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 1.5rem 2rem;
}
.auth-gate-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--card-radius);
  padding: 2.4rem 2rem 2rem;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.auth-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  align-self: center;
}
.auth-gate-card h2 {
  text-align: center;
  margin: 0;
  font-size: 1.55rem;
}
.auth-gate-card p {
  text-align: center;
  color: var(--ink-muted);
  margin: 0;
  font-size: 0.92rem;
}
.customer-user-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  padding: 0.6rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-dark);
}

/* ── Modal overlay ────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}
.modal-overlay.hidden {
  display: none;
}
.modal-card {
  background: var(--surface);
  border-radius: var(--card-radius);
  padding: 2rem;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}
.modal-card h3 {
  margin: 0;
  font-size: 1.25rem;
}
.modal-card label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.modal-card label select,
.modal-card label textarea,
.modal-card label input {
  font-family: inherit;
  font-size: 0.92rem;
  padding: 0.55rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface-strong);
  color: var(--ink);
}
.modal-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ── Utility ─────────────────────────────────────────── */
.stack {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.stack label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.stack label input,
.stack label textarea {
  font-family: inherit;
  font-size: 0.92rem;
  padding: 0.55rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface-strong);
  color: var(--ink);
}

/* ═══════════════════════════════════════════════════════
   HOME / ABOUT PAGE
   ═══════════════════════════════════════════════════════ */

/* Hero */
.home-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 0 0 20px 20px;
}
.home-hero-bg { position: absolute; inset: 0; }
.home-hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.home-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(10,30,10,0.78) 0%, rgba(10,40,10,0.45) 60%, transparent 100%);
}
.home-hero-content {
  position: relative;
  z-index: 2;
  padding: 3.5rem 2.5rem;
  max-width: 600px;
}
.home-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 99px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.home-hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 0.9rem;
}
.home-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
  margin: 0 0 1.75rem;
  max-width: 480px;
}
.home-hero-ctas {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.home-hero-btn {
  font-size: 1rem;
  padding: 0.75rem 1.6rem;
}
.home-hero-btn-ghost {
  font-size: 1rem;
  padding: 0.75rem 1.6rem;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #fff;
  border-radius: 99px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s;
}
.home-hero-btn-ghost:hover { background: rgba(255,255,255,0.22); }
.home-worker-cta-btn {
  font-size: 1rem;
  padding: 0.75rem 1.6rem;
  background: #2e7d32;
  border: 2px solid #1b5e20;
  color: #fff;
  border-radius: 99px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(46,125,50,0.35);
}
.home-worker-cta-btn:hover { background: #1b5e20; transform: translateY(-1px); }

/* Services strip */
.home-services-strip {
  background: var(--surface-strong);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 0.9rem 1.5rem;
}
.home-services-inner {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}
.home-service-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  border-radius: 99px;
  background: #2e7d32;
  border: 1.5px solid #1b5e20;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
}

/* Generic section wrapper */
.home-section {
  padding: 4rem 2rem;
  max-width: 1080px;
  margin: 0 auto;
}
.home-section-eyebrow { text-align: center; }
.home-section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin: 0.25rem 0 2.5rem;
}

/* Mission / About */
.home-mission-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding: 4rem 2rem;
}
@media (max-width: 760px) { .home-mission-section { grid-template-columns: 1fr; } }
.home-mission-text h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0.3rem 0 1rem;
}
.home-body-copy {
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 0.85rem;
}
.home-stats-row {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.home-stat {
  display: flex;
  flex-direction: column;
}
.home-stat strong {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.home-stat span {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* Mission gallery */
.home-mission-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  align-items: start;
}
.home-gallery-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
}
.home-gallery-tall {
  grid-column: 1;
  grid-row: 1 / 3;
  aspect-ratio: 3/4;
}
.home-gallery-pair {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.home-gallery-pair .home-gallery-img { aspect-ratio: 4/3; }

/* How it works */
.home-how-section { text-align: center; }
.home-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 680px) { .home-steps { grid-template-columns: 1fr; } }
.home-step {
  background: var(--surface-strong);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 1.75rem 1.25rem;
  text-align: left;
}
.home-step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.home-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}
.home-step p { font-size: 0.88rem; color: var(--muted); margin: 0; line-height: 1.6; }
.home-how-cta { text-align: center; }

/* Founder */
.home-founder-section {
  background: var(--surface-strong);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.home-founder-card {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 3.5rem 2rem;
}
@media (max-width: 640px) { .home-founder-card { flex-direction: column; gap: 1.25rem; } }
.home-founder-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid #2e7d32;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.home-founder-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.35);
  transform-origin: center 45%;
  display: block;
}
.home-founder-copy { flex: 1; }
.home-founder-quote {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 0.5rem 0 0.9rem;
}
.home-founder-name { font-size: 1rem; font-weight: 700; margin: 0; }
.home-founder-title-line { font-size: 0.82rem; color: var(--muted); margin: 0.1rem 0 0; }

/* Photo grid */
.home-gallery-section {
  padding: 4rem 2rem;
  max-width: 1080px;
  margin: 0 auto;
}
.home-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}
@media (max-width: 760px) { .home-photo-grid { grid-template-columns: repeat(2, 1fr); } }
.home-photo-grid-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
  filter: brightness(1.18);
}
.home-gallery-img { filter: brightness(1.18); }

/* Booking benefits section */
.home-benefits-section { background: var(--surface-strong); border-radius: 16px; padding: 3rem 2.5rem; }
.home-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (max-width: 800px) { .home-benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .home-benefits-grid { grid-template-columns: 1fr; } }
.home-benefit-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.1rem;
}
.home-benefit-icon { font-size: 1.6rem; margin-bottom: 0.5rem; }
.home-benefit-card h3 { font-size: 0.95rem; font-weight: 700; margin: 0 0 0.35rem; color: var(--text); }
.home-benefit-card p { font-size: 0.82rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* For companies section */
.home-company-section {
  background: linear-gradient(135deg, #1b3a1c 0%, #2e7d32 100%);
  border-radius: 16px;
  color: #fff;
  overflow: hidden;
}
.home-company-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 2.5rem;
}
@media (max-width: 760px) { .home-company-inner { grid-template-columns: 1fr; } }
.home-company-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 99px;
  padding: 0.25rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}
.home-company-text h2 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); font-weight: 800; color: #fff; margin: 0 0 0.75rem; }
.home-company-text .home-body-copy { color: rgba(255,255,255,0.85); font-size: 0.9rem; margin: 0 0 1rem; }
.home-company-perks { color: rgba(255,255,255,0.8); font-size: 0.83rem; padding-left: 1.1rem; margin: 0 0 1.5rem; line-height: 1.8; }
.home-company-perks li { margin-bottom: 0.1rem; }
.home-company-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.home-company-stat-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 1rem 0.85rem;
  text-align: center;
}
.home-company-stat-card strong { display: block; font-size: 1.4rem; font-weight: 800; color: #fff; }
.home-company-stat-card span { font-size: 0.73rem; color: rgba(255,255,255,0.75); line-height: 1.3; }

/* Join landing screen */
.join-landing { padding: 2rem 0; max-width: 900px; margin: 0 auto; }
.join-landing-header { text-align: center; margin-bottom: 2.5rem; }
.join-landing-header h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0.4rem 0 0.6rem; }
.join-landing-header .view-lead { max-width: 560px; margin: 0 auto; }
.join-path-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 640px) { .join-path-cards { grid-template-columns: 1fr; } }
.join-path-card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.join-path-card:hover { border-color: #2e7d32; box-shadow: 0 4px 20px rgba(46,125,50,0.12); transform: translateY(-2px); }
.join-path-card-company { border-color: rgba(46,125,50,0.35); background: rgba(46,125,50,0.04); }
.join-path-card-company:hover { border-color: #1b5e20; }
.join-path-icon { font-size: 2.2rem; margin-bottom: 0.25rem; }
.join-path-card h3 { font-size: 1.15rem; font-weight: 800; margin: 0; color: var(--text); }
.join-path-card > p { font-size: 0.85rem; color: var(--muted); margin: 0; line-height: 1.5; }
.join-path-perks { list-style: none; padding: 0; margin: 0.5rem 0 0; flex: 1; }
.join-path-perks li { font-size: 0.8rem; color: var(--muted); padding: 0.2rem 0; padding-left: 1.1rem; position: relative; }
.join-path-perks li::before { content: "✓"; position: absolute; left: 0; color: #2e7d32; font-weight: 700; }
.join-path-cta { margin-top: 1rem; pointer-events: none; }
.join-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
  transition: color 0.15s;
}
.join-back-btn:hover { color: var(--text); }

/* Company form quiz hints */
.quiz-hint { font-size: 0.78rem; color: var(--muted); margin: 0.1rem 0 0.5rem; font-style: italic; }


/* Company logo upload preview */
.comp-logo-upload-area { max-width: 420px; }
.comp-logo-preview-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.8rem;
  margin-top: 0.5rem;
  background: rgba(46,125,50,0.05);
  border-radius: 8px;
  border: 1px solid rgba(46,125,50,0.2);
}
.comp-logo-preview-img {
  height: 64px;
  width: 64px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}
.comp-logo-preview-label { font-size: 0.78rem; color: var(--muted); margin: 0; }

/* Bottom CTA */
.home-bottom-cta {
  text-align: center;
  padding: 4rem 2rem 5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(46,125,50,0.05) 100%);
}
.home-bottom-cta h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
}
.home-bottom-cta p { color: var(--muted); margin: 0 0 1.75rem; font-size: 1rem; }
