/* ============================================================
   STREET TASKERS — Design System v2
   Sprint 1 Refresh: Minimal / Modern / High-contrast
   ============================================================
   Future Sprint: CSS custom properties extended for dark-mode
   toggle and user theming preferences.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
@import url('tokens.css');   /* design tokens: see DESIGN-SYSTEM.md */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --white:          #FFFFFF;
  --black:          #0A0A0A;
  --charcoal:       #121212;
  --gray-800:       #1E1E1E;
  --gray-600:       #4A4A4A;
  --gray-400:       #7A7A7A;
  --gray-200:       #E5E5E5;
  --gray-100:       var(--color-bg-muted);
  --gray-50:        #FAFAFA;

  /* v3: primary brand color repointed from blue to StreetTasker green.
     Variable names kept as --blue* for backward compatibility across every
     page that already references them — this single change re-themes the
     whole site to the new homepage design system.
     NOTE: this must be the bright button/price green from the reference
     image (not the dark hero-green below) — that was the bug last round. */
  --blue:           var(--color-accent);
  --blue-hover:     var(--color-accent-hover);
  --blue-light:     var(--color-accent-soft);
  --blue-border:    var(--color-accent-border);

  --forest-deep:    var(--color-forest-900);
  --forest:         var(--color-forest-800);
  --forest-mid:     var(--color-forest-700);
  --mint:           var(--color-mint);
  --mint-border:    var(--color-mint-border);

  --bg:             var(--color-bg);
  --bg-subtle:      var(--color-bg-subtle);
  --bg-card:        #FFFFFF;
  --text-primary:   var(--color-text);
  --text-secondary: var(--color-text-secondary);
  --text-muted:     var(--color-text-muted);
  --border:         var(--color-border);
  --border-strong:  var(--color-border-strong);

  --green:          var(--color-primary);
  --green-light:    var(--color-accent-soft);
  --amber:          var(--color-warning);
  --amber-light:    var(--color-warning-soft);
  --red:            var(--color-danger);
  --red-light:      var(--color-danger-soft);

  --shadow-xs:   0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 8px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:   0 10px 24px rgba(0,0,0,0.09), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-xl:   0 20px 48px rgba(0,0,0,0.12);

  --nav-height: 64px;
  --radius-xs:  4px;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --radius-pill:999px;

  --font: var(--font-body);
  --font-heading: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t:    0.18s;
  --gutter: 16px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* The reset above also removes the browser's margin:auto on <dialog>, which is what centres a modal dialog.
   Without this line every dialog opened with showModal() sticks to a corner of the screen. */
dialog:modal { margin: auto; }
html {
  scroll-behavior: smooth; -webkit-text-size-adjust: 100%;
  overflow-x: hidden; max-width: 100%;
  overscroll-behavior-x: none;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; max-width: 100%; position: relative;
  overscroll-behavior-x: none;
  -moz-osx-font-smoothing: grayscale;
}
/* Installed web app (iPhone): html AND body both set to overflow-x:hidden turns the body into its own scroll box, and iOS then lets
   position:fixed things (the bottom nav) drift with the page until the app is closed and reopened. "clip" cuts off sideways overflow
   the same way without making a scroll box, so the nav stays pinned. Browsers without "clip" keep the old rule above. */
@supports (overflow-x: clip) {
  body { overflow-x: clip; }
}

/* Capitalize first letter of user-facing content */
.tc-name, .tc-service, .live-name, .task-row-title,
.booking-row-title, .task-live-title, .trend-author,
.panel-name, .profile-name, .previewName,
.task-row-card .task-row-title,
.dashboard-nav-item {
  text-transform: capitalize;
}
/* Exceptions — these should NOT be capitalized */
.nav-logo-text, .eyebrow, .form-label, input, textarea,
select, .task-row-meta, code, .badge, a[href^="mailto:"],
a[href^="tel:"], .loc-row-primary { text-transform: none; }

/* Prevent auth state flash — hide role-specific nav items
   until syncNavbarAuthState runs and reveals the correct ones */
.nav-customer, .nav-tasker { display: none; }
#navUserName, #navLogout    { display: none; }
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; color: var(--text-primary); }
h1 { font-size: var(--text-hero); font-weight: 800; }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); font-weight: 600; }
p  { color: var(--text-secondary); font-weight: 400; }

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 88px 0; }
.section-sm { padding: 56px 0; }

.section-header { max-width: 560px; margin-bottom: 52px; }
.section-header.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header h2 { margin-bottom: 10px; }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ── Eyebrow ─────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2); padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  font-size: var(--text-base-sm); font-weight: 600; line-height: 1;
  cursor: pointer; border: none; white-space: nowrap;
  transition: background var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease);
  letter-spacing: -0.01em;
}
.btn:active { transform: scale(0.98); }

.btn-primary  { background: var(--color-primary); color: var(--color-text-on-primary); box-shadow: var(--shadow-primary-sm); }
.btn-primary:hover { background: var(--color-primary-hover); box-shadow: var(--shadow-primary-md); }

.btn-dark   { background: var(--forest-deep); color: var(--white); }
.btn-dark:hover { background: var(--color-forest-950); }

.btn-mint {
  background: var(--mint); color: var(--blue);
  border: 1.5px solid var(--mint-border);
}
.btn-mint:hover { background: var(--color-mint-hover); border-color: var(--blue); }

.btn-outline {
  background: transparent; color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
}
.btn-outline:hover { border-color: var(--text-primary); background: var(--gray-50); }

.btn-ghost {
  background: transparent; color: var(--text-secondary);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--gray-100); color: var(--text-primary); border-color: var(--border-strong); }

.btn-white { background: var(--white); color: var(--charcoal); }
.btn-white:hover { background: var(--gray-100); }

.btn-text {
  background: transparent; color: var(--text-secondary); padding: var(--space-2) var(--space-3);
  font-weight: 600;
}
.btn-text:hover { color: var(--text-primary); }

.btn-sm  { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }
.btn-lg  { padding: var(--space-3) var(--space-6); font-size: var(--text-base); }
.btn-xl  { padding: var(--space-4) var(--space-6); font-size: var(--text-base); }
.btn-full { width: 100%; }
.btn-oauth {
  width: 100%; justify-content: center; gap: var(--space-2);
  background: var(--white); color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn-oauth:hover { background: var(--gray-50); border-color: var(--border-strong); }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.02em;
  padding: var(--space-1) var(--space-2); border-radius: var(--radius-pill);
}
.badge-blue  { background: var(--blue-light);  color: var(--blue);  border: 1px solid var(--blue-border); }
.badge-green { background: var(--green-light); color: var(--green); border: 1px solid var(--color-accent-border); }
.badge-amber { background: var(--amber-light); color: var(--amber); border: 1px solid var(--color-warning-border); }
.badge-gray  { background: var(--gray-100);    color: var(--gray-600); border: 1px solid var(--border); }

/* ── Navigation auth state — controlled by auth.js ────────────── */
/* Default: show login/signup, hide logged-in elements.
   initNavbarInstant() and syncNavbarAuthState() update these instantly. */
#navUserName   { display: none; }
#navLogout     { display: none; }

/* ── Navigation ──────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height); z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
#navbar.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-height); max-width: 1160px;
  margin: 0 auto; padding: 0 24px; gap: 32px;
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 24px; width: auto; display: block; }
.nav-logo-text { font-size: var(--text-base); font-weight: 800; letter-spacing: -0.04em; color: var(--charcoal); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link.logged-in-only { display: none; }

/* Post a Task / Become a Tasker — pinned to a shared 40px height per Figma */
.nav-post-btn, .nav-become-btn {
  height: 40px; padding: 0 20px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 10px;
}

/* Nav items with no destination page yet (Gift Cards, Local Taskers, Become a Tasker) */
.nav-link-disabled { cursor: default; opacity: 0.5; pointer-events: none; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: var(--radius-sm);
  font-size: var(--text-sm); font-weight: 500; color: var(--text-secondary);
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
  white-space: nowrap; position: relative;
}
.nav-link:hover  { color: var(--text-primary); background: var(--gray-100); }
.nav-link.active { color: var(--text-primary); font-weight: 600; }
.nav-link-soon::after {
  content: 'Soon'; position: absolute; top: -3px; right: 0;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.04em;
  background: var(--amber); color: var(--white);
  padding: 1px 4px; border-radius: 3px;
}
.nav-divider { width: 1px; height: 18px; background: var(--border); margin: 0 8px; }
.nav-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; border-radius: var(--radius-sm);
  background: none; border: none; -webkit-tap-highlight-color: transparent;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all var(--t) var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile drawer (#navDrawer) — the one mobile menu ───────────
   Structure and open/close only. Looks (colour, type, rows) are in the
   "MOBILE DRAWER — look" block at the end of this file. Mobile only. */
.nav-drawer,
.nav-drawer-overlay { display: none; }
@media (max-width: 768px) {
  .nav-drawer {
    display: flex; flex-direction: column;
    position: fixed; top: 0; bottom: 0; left: 0;
    width: min(var(--drawer-width), calc(100% - var(--space-6)));
    z-index: 1200;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform var(--t) var(--ease), visibility 0s linear var(--t);
  }
  .nav-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform var(--t) var(--ease), visibility 0s;
  }
  .nav-drawer [hidden] { display: none; }

  .nav-drawer-overlay {
    display: block;
    position: fixed; inset: 0; z-index: 1190;
    background: var(--drawer-overlay);
    opacity: 0; visibility: hidden;
    transition: opacity var(--t) var(--ease), visibility 0s linear var(--t);
  }
  .nav-drawer-overlay.is-open {
    opacity: 1; visibility: visible;
    transition: opacity var(--t) var(--ease), visibility 0s;
  }
  /* Page behind the open drawer does not scroll */
  body.nav-drawer-open { overflow: hidden; }

  .nav-drawer-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; }
  .nav-drawer-list { list-style: none; margin: 0; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-drawer, .nav-drawer-overlay { transition: none; }
}

/* ── Icon boxes (service cards) ──────────────────────────────── */
.icon-box {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  background: var(--gray-50);
  margin-bottom: 18px;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.card:hover .icon-box { background: var(--blue-light); border-color: var(--blue-border); }
.card:hover .icon-box svg { stroke: var(--blue); }
.icon-box svg { transition: stroke var(--t) var(--ease); }

/* ── Hero (v3 — matches homepage reference design) ──────────────── */
.hero { padding: calc(var(--nav-height) + 18px) 0 0; background: var(--bg); }
.hero-frame {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 120% 100% at 15% 0%, var(--forest-mid) 0%, var(--forest) 45%, var(--forest-deep) 100%);
  border-radius: var(--radius-xl);
  padding: 54px 40px 46px;
  min-height: 560px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.hero-eyebrow {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.hero-banner-img {
  width: 100%; max-width: 900px; height: auto;
  display: block; margin: 0 auto; position: relative; z-index: 2;
}
.hero-sub {
  color: rgba(255,255,255,0.6); font-size: var(--text-base);
  margin: 26px 0 0; max-width: 420px;
}
.hero-frame-actions {
  display: flex; align-items: center; gap: 14px; margin-top: 30px; position: relative; z-index: 3;
}
.hero-frame-actions .btn-lg { padding: 14px 30px; }
.hero-mascot { position: absolute; top: 50%; width: 230px; pointer-events: none; z-index: 1; }
.hero-mascot-left  { left: -10px; transform: translateY(-42%); }
.hero-mascot-right { right: -10px; transform: translateY(-42%) scaleX(-1); }
.hero-pill-float {
  position: absolute; top: 78px;
  background: rgba(255,255,255,0.94); color: var(--forest-deep);
  border-radius: var(--radius-pill); padding: 9px 18px;
  font-size: var(--text-sm); font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: var(--shadow-lg); z-index: 4;
}
.hero-pill-float.left  { left: 40px; }
.hero-pill-float.right { right: 40px; }
.hero-float-card {
  position: absolute; bottom: 78px; left: 30px;
  background: var(--white); border-radius: var(--radius-lg);
  padding: 12px 16px; box-shadow: var(--shadow-xl);
  display: flex; align-items: center; gap: 10px; z-index: 4;
  text-align: left;
}
.hero-float-card .fc-icon {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: var(--mint); display: flex; align-items: center; justify-content: center;
  color: var(--blue); flex-shrink: 0;
}
.hero-float-card .fc-title { font-size: var(--text-xs); font-weight: 700; color: var(--text-primary); }
.hero-float-card .fc-price { font-size: var(--text-xs); color: var(--blue); font-weight: 700; }
.hero-float-badge2 {
  position: absolute; bottom: 78px; right: 30px;
  background: var(--forest-mid); border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-pill); padding: 10px 18px; z-index: 4;
  color: var(--white); font-size: var(--text-xs); font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.hero-float-badge2 .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-live); }

@media (max-width: 768px) {
  .hero-mascot { display: none; }
  .hero-frame { padding: 40px 20px 34px; }
  .hero-pill-float, .hero-float-card, .hero-float-badge2 { display: none; }
}

/* ── Need-help search section ───────────────────────────────────── */
.need-help-section { padding: 88px 0 70px; text-align: center; }
.need-help-section h2 { margin-bottom: 10px; }
.need-help-section > .container-home > p { color: var(--text-secondary); margin-bottom: 34px; }
.need-help-search {
  display: flex; max-width: 640px; margin: 0 auto 22px;
  background: var(--white); border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill); box-shadow: var(--shadow-md);
  padding: 6px 6px 6px 22px; align-items: center; gap: 10px;
  position: relative;
}
.need-help-search input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: var(--text-sm); padding: 10px 0; color: var(--text-primary);
}
.need-help-search .btn { border-radius: var(--radius-pill); flex-shrink: 0; }
.need-help-chips { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 768px) {
  .need-help-chips {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    padding: 2px var(--gutter) 6px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .need-help-chips::-webkit-scrollbar { display: none; }
  .nh-chip { flex-shrink: 0; }
}
.nh-chip {
  background: var(--mint); color: var(--blue);
  border: 1px solid var(--mint-border); border-radius: var(--radius-pill);
  padding: 8px 18px; font-size: var(--text-sm); font-weight: 600;
  cursor: pointer; transition: all var(--t) var(--ease);
}
.nh-chip:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ── Popular tasks grid ──────────────────────────────────────────── */
.popular-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pop-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 22px; min-height: 158px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease), border-color var(--t) var(--ease);
}
.pop-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--border-strong); }
.pop-card .pop-icon { color: var(--text-primary); margin-bottom: 26px; }
.pop-card h3 { font-size: var(--text-base); margin-bottom: 4px; }
.pop-card p  { font-size: var(--text-xs); color: var(--text-muted); line-height: 1.5; }
.pop-card.pop-more { justify-content: center; }

/* Photo card variant: the category photo on the right, a dark green fade over the left for the text, white "Learn More" pill. */
.pop-card--photo {
  position: relative; overflow: hidden; isolation: isolate; min-height: var(--pop-card-height);
  background: var(--color-forest-900); border: 2px solid var(--white); border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg); padding: var(--space-5);
}
.pop-card--photo:hover { border-color: var(--white); box-shadow: var(--shadow-lg); }
.pop-card--photo::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--color-forest-900) 0%, var(--color-forest-900) 30%, transparent 85%);
}
.pop-photo { position: absolute; top: 0; right: 0; width: var(--pop-photo-share); height: 100%; max-width: none; object-fit: cover; z-index: -1; pointer-events: none; }
.pop-card--photo .pop-text { position: relative; z-index: 1; max-width: 55%; }
.pop-card--photo h3 { color: var(--white); font-size: var(--text-lg); }
.pop-card--photo p  { color: var(--color-mint-border); }
.pop-card--photo .pop-link {
  position: relative; z-index: 1; align-self: flex-start; display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--space-6); padding: 0 var(--space-5); border-radius: var(--radius-pill);
  background: var(--white); color: var(--color-forest-900); font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 700;
}
.pop-card--photo.pop-more { justify-content: space-between; }
.pop-card--more .pop-photo { object-position: center 78%; }   /* general TASK picture: keep the letter blocks in the crop */
.pop-go {
  position: relative; z-index: 1; align-self: flex-start; display: inline-flex; align-items: center; justify-content: center;
  width: var(--space-7); height: var(--space-7); border-radius: 50%; background: var(--white); color: var(--color-forest-900);
}
@media (max-width: 768px) {
  /* Phones: smaller cards (shorter, tighter, smaller type and button) */
  .pop-card--photo { min-height: var(--pop-card-height-sm); padding: var(--space-4); border-radius: var(--radius-2xl); }
  .pop-card--photo .pop-text { max-width: 60%; }
  .pop-card--photo h3 { font-size: var(--text-base); margin-bottom: var(--space-1); }
  .pop-card--photo p { font-size: var(--text-xs); line-height: 1.4; }
  .pop-card--photo .pop-link { min-height: var(--space-5); padding: 0 var(--space-4); font-size: var(--text-xs); }
  .pop-go { width: var(--space-6); height: var(--space-6); }
  .pop-go svg { width: var(--text-base); height: var(--text-base); }
}
.pop-more-link { display: flex; align-items: center; justify-content: space-between; color: var(--blue); font-weight: 700; }

/* ── Getting help / steps (simple) ──────────────────────────────── */
.steps-simple { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-simple-card {
  background: var(--bg-subtle); border: 1.5px solid transparent;
  border-radius: var(--radius-lg); padding: 28px 26px;
}
.step-simple-card.highlight { background: var(--white); border-color: var(--blue); }
.step-simple-num { font-size: var(--text-xs); font-weight: 700; color: var(--text-muted); margin-bottom: 14px; }
.step-simple-card.highlight .step-simple-num { color: var(--blue); }
.step-simple-plus {
  width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: var(--text-base);
}
.step-simple-card h3 { font-size: var(--text-lg); margin-bottom: 8px; }
.step-simple-card p  { font-size: var(--text-sm); line-height: 1.6; }

/* ── Task showcase grid ("People are getting things done") ──────── */
.task-showcase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.task-showcase-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer; transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.task-showcase-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.task-showcase-thumb { height: 128px; background: var(--gray-100); }
.task-showcase-body { padding: 16px 16px 18px; }
.task-showcase-cat { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.task-showcase-title { font-size: var(--text-base); font-weight: 700; margin-bottom: 4px; }
.task-showcase-loc  { font-size: var(--text-xs); color: var(--text-muted); margin-bottom: 10px; }
.task-showcase-price { font-size: var(--text-base); font-weight: 800; color: var(--blue); }
.task-showcase-offers { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }

/* ── How it works ─────────────────────────────────────────────────── */
.how-it-works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how-it-works-card {
  background: var(--mint); border-radius: var(--radius-lg); padding: 26px 24px;
}
.how-it-works-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 34px; }
.how-it-works-num { font-size: var(--text-base); font-weight: 800; color: var(--blue); }
.how-it-works-icon { color: var(--forest); display: flex; }
.how-it-works-card h3 { font-size: var(--text-base); margin-bottom: 6px; }
.how-it-works-card p  { font-size: var(--text-sm); line-height: 1.6; color: var(--text-secondary); }
@media (max-width: 768px) {
  .how-it-works-grid { grid-template-columns: 1fr; gap: 14px; }
  .how-it-works-top { margin-bottom: 22px; }
}

/* ── Trust section ───────────────────────────────────────────────── */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust-card {
  background: var(--bg-subtle); border-radius: var(--radius-lg); padding: 28px 26px;
}
.trust-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--mint); margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center; color: var(--forest);
}
.trust-card h3 { font-size: var(--text-base); margin-bottom: 6px; }
.trust-card p  { font-size: var(--text-sm); line-height: 1.6; }

/* ── Tasker split CTA ("Turn your skills into opportunities") ────── */
.tasker-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.tasker-split-eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.tasker-split h2 { font-size: var(--text-h2); margin-bottom: 18px; }
.tasker-split p { font-size: var(--text-base); line-height: 1.7; margin-bottom: 26px; max-width: 440px; }
.tasker-split-visual {
  background: var(--gray-100); border-radius: var(--radius-xl);
  aspect-ratio: 16 / 9; position: relative; overflow: hidden;
}
.tasker-split-visual .hero-pill-float { position: absolute; top: 24px; right: 24px; }

/* ── Homepage service cards (after "For Taskers"): 3-up grid, one swipeable row on phones ── */
.home-svc-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
@media (max-width: 768px) {
  .home-svc-row {
    display: flex; gap: var(--space-4); overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    margin-inline: calc(var(--home-pad, var(--space-4)) * -1); padding-inline: var(--home-pad, var(--space-4)); padding-bottom: var(--space-3);
    scrollbar-width: none;
  }
  .home-svc-row::-webkit-scrollbar { display: none; }
  .home-svc-row > * { flex: 0 0 min(82%, 320px); scroll-snap-align: start; }
}

/* ── Become a Tasker (v3) ─────────────────────────────────────────── */
.become-tasker { text-align: center; }
.become-tasker .tasker-split-eyebrow { margin-bottom: 10px; }
.become-tasker h2 { font-size: var(--text-h2); margin-bottom: 14px; }
.become-tasker p.become-tasker-sub { font-size: var(--text-base); color: var(--text-secondary); max-width: 420px; margin: 0 auto 26px; }
.become-tasker-btn { max-width: 340px; margin: 0 auto; }
.become-tasker-photo {
  margin-top: 40px; border-radius: var(--radius-xl); overflow: hidden;
  background: var(--gray-100); aspect-ratio: 4 / 3;
}
.become-tasker-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ── Final CTA banner (v4 — background/radius set in the v4 block below) ── */
.final-cta { text-align: center; }
.final-cta h2 { font-size: var(--text-h2); margin-bottom: 10px; }
.final-cta p  { font-size: var(--text-base); margin-bottom: 30px; }

@media (max-width: 768px) {
  .popular-grid, .task-showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-simple, .trust-grid { grid-template-columns: 1fr; }
  .tasker-split { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .popular-grid { grid-template-columns: 1fr; }
}
/* Mobile landing page: show only the first two popular tasks, then Explore More */
@media (max-width: 768px) {
  .popular-grid .pop-card--extra { display: none; }
  .popular-grid .pop-more { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .task-showcase-grid {
    display: flex; grid-template-columns: none; overflow-x: auto;
    gap: 14px; scroll-snap-type: x mandatory; padding: 2px var(--gutter) 6px;
    margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .task-showcase-grid::-webkit-scrollbar { display: none; }
  .task-showcase-card { flex: 0 0 78%; scroll-snap-align: start; }
}

/* ── Services section ─────────────────────────────────────────── */
.services-section { background: var(--bg-subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.service-card { padding: 26px 22px; cursor: pointer; }
.service-card h3 { margin-bottom: 8px; }
.service-card p  { font-size: var(--text-sm); margin-bottom: 12px; line-height: 1.55; }
.service-count { font-size: var(--text-xs); font-weight: 600; color: var(--blue); }

/* ── Steps section ────────────────────────────────────────────── */
.steps-section { background: var(--charcoal); }
.steps-section .section-header h2 { color: var(--white); }
.steps-section .section-header p  { color: rgba(255,255,255,0.5); }

.step-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: rgba(255,255,255,0.06);
  border-radius: var(--radius-xl); overflow: hidden; border: 1px solid rgba(255,255,255,0.06);
}
.step-block { background: var(--gray-800); padding: 40px 32px; }
.step-num {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 22px;
  display: flex; align-items: center; gap: 8px;
}
.step-num::before { content: ''; display: block; width: 20px; height: 1px; background: var(--blue); }
.step-block h3 { color: var(--white); margin-bottom: 10px; }
.step-block p  { color: rgba(255,255,255,0.45); font-size: var(--text-sm); line-height: 1.6; }

/* ── Trending / social preview ───────────────────────────────── */
.trend-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.trend-card { border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; }
.trend-thumb {
  height: 196px; display: flex; align-items: center;
  justify-content: center; position: relative;
}
.trend-bg-1 { background: var(--charcoal); }
.trend-bg-2 { background: #0F1F30; }
.trend-bg-3 { background: #0E1F15; }
.trend-thumb-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
}
.trend-like {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(6px);
  color: var(--white); font-size: var(--text-xs); font-weight: 600;
  padding: 4px 10px; border-radius: var(--radius-pill);
  display: flex; align-items: center; gap: 5px;
}
.trend-body { padding: 16px; border-top: 1px solid var(--border); }
.trend-author { font-weight: 600; font-size: var(--text-sm); }
.trend-role   { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }

/* ── CTA Banner ──────────────────────────────────────────────── */
.cta-banner {
  background: var(--charcoal);
  border-radius: var(--radius-xl);
  padding: 60px 52px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 8px; font-size: var(--text-h2); }
.cta-banner p  { color: rgba(255,255,255,0.5); font-size: var(--text-base); }
.cta-actions   { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }

/* ── Page hero (inner pages) ──────────────────────────────────── */
.page-hero {
  background: var(--bg-subtle); border-bottom: 1px solid var(--border);
  padding: calc(var(--nav-height) + 44px) 0 44px;
}
@media (max-width: 768px) {
  /* On mobile the fixed navbar is 64px tall — add extra breathing room
     so the eyebrow badge / h1 are never clipped behind the bar */
  .page-hero {
    padding-top: calc(var(--nav-height) + 24px) !important;
    padding-bottom: 32px !important;
  }
}
.page-hero h1 { margin-bottom: 8px; }
.page-hero p  { font-size: var(--text-base); }

/* Search bar — find taskers */
.search-bar {
  display: flex; background: var(--white);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); overflow: visible; margin-top: 28px;
  position: relative;
}
.search-bar .sf {
  display: flex; align-items: center; gap: 10px;
  flex: 1; padding: 0 16px; min-width: 0;
}
.search-bar .sf + .sf { border-left: 1px solid var(--border); }
.search-bar .sf svg  { stroke: var(--text-muted); flex-shrink: 0; }
.search-bar input {
  width: 100%; border: none; outline: none;
  font-size: var(--text-sm); color: var(--text-primary);
  background: transparent; padding: 14px 0;
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar .btn { border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 14px 24px; flex-shrink: 0; }

/* ── Taskers layout ───────────────────────────────────────────── */
.taskers-layout { display: grid; grid-template-columns: 252px 1fr; gap: 28px; padding: 48px 0; align-items: start; }
.filter-sidebar { position: sticky; top: calc(var(--nav-height) + 20px); }

.filter-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.filter-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.filter-panel-head span { font-size: var(--text-sm); font-weight: 700; }
.filter-reset { font-size: var(--text-xs); font-weight: 500; color: var(--red); cursor: pointer; background: none; border: none; padding: 0; }
.filter-reset:hover { text-decoration: underline; }
.filter-group-label-row { display: flex; align-items: center; justify-content: space-between; }

.filter-group { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.filter-group:last-child { border-bottom: none; }
.filter-group-label { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }

.filter-opt {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 0; cursor: pointer;
  font-size: var(--text-sm); color: var(--text-secondary);
  transition: color var(--t) var(--ease);
}
.filter-opt:hover { color: var(--text-primary); }
.filter-opt input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--blue); cursor: pointer; }

.range-wrap { padding-top: 4px; }
.filter-range { width: 100%; accent-color: var(--blue); cursor: pointer; margin-top: 10px; }
.range-labels { display: flex; justify-content: space-between; font-size: var(--text-xs); color: var(--text-muted); margin-top: 6px; }

.taskers-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(264px,1fr)); gap: 16px; align-content: start; }
.tasker-card { padding: 20px; }
.tasker-card-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.tasker-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--charcoal); color: var(--white);
  font-size: var(--text-base); font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  border: 2px solid var(--border);
}
.av-1{background:#0F172A} .av-2{background:#1E3A5F} .av-3{background:#1A3320} .av-4{background:#2D1B00} .av-5{background:#1A0A2E} .av-6{background:#0A1F2E}

.tasker-name { font-weight: 700; font-size: var(--text-sm); margin-bottom: 3px; }
.tasker-service { font-size: var(--text-xs); color: var(--blue); font-weight: 500; display: flex; align-items: center; gap: 5px; margin-bottom: 3px; }
.tasker-location { font-size: var(--text-xs); color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.tasker-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tasker-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.stars { font-size: var(--text-xs); color: var(--amber); letter-spacing: 1px; }
.review-count { font-size: var(--text-xs); color: var(--text-muted); margin-left: 5px; }
.tasker-rate { font-weight: 700; font-size: var(--text-sm); }
.tasker-actions { display: flex; gap: 8px; }
.tasker-actions .btn { flex: 1; }

.results-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.results-count { font-weight: 600; font-size: var(--text-sm); }
.spg-results-heading { font-size: var(--text-xl); font-weight: 800; letter-spacing: -0.01em; color: var(--text-primary); }
.sort-select {
  padding: 8px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-pill); font-family: var(--font);
  font-size: var(--text-sm); color: var(--text-primary);
  background: var(--white); cursor: pointer; outline: none;
}
.sort-select:focus { border-color: var(--blue); }

/* ── Form pages ───────────────────────────────────────────────── */
.auth-page { min-height: 100vh; padding-top: var(--nav-height); background: var(--bg-subtle); display: flex; align-items: center; }
.auth-container { max-width: 436px; margin: 0 auto; padding: 48px 0; width: 100%; }
.auth-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow-lg); }

.auth-logo-wrap { text-align: center; margin-bottom: 28px; }
.auth-logo-wrap img { height: 44px; margin: 0 auto; display: block; }
.auth-logo-text { font-size: var(--text-base); font-weight: 800; letter-spacing: -0.04em; color: var(--charcoal); text-transform: uppercase; }

.auth-heading { text-align: center; margin-bottom: 28px; }
.auth-heading h1 { font-size: var(--text-xl); margin-bottom: 6px; }
.auth-heading p  { font-size: var(--text-sm); }

.form-group { margin-bottom: var(--space-4); }
.form-label { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); margin-bottom: var(--space-2); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: var(--space-3);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: var(--text-base-sm); color: var(--text-primary);
  background: var(--white); outline: none;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.form-input:hover, .form-select:hover, .form-textarea:hover { border-color: var(--border-strong); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 96px; }
.form-helper { font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--space-1); }

.input-wrap { position: relative; }
.input-wrap .form-input { padding-left: 42px; }
.input-icon-left { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); stroke: var(--text-muted); pointer-events: none; }
.pwd-toggle { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; display: flex; align-items: center; stroke: var(--text-muted); transition: stroke var(--t) var(--ease); }
.pwd-toggle:hover { stroke: var(--text-primary); }

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

.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
/* Hide the actual radio input but keep it accessible */
.role-opt {
  position: relative;
  display: block;
}
.role-opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.role-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 14px 18px;
  min-height: 110px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease), box-shadow var(--t) var(--ease);
  background: var(--white);
  /* Prevent overflow */
  overflow: visible;
}
.role-card:hover {
  border-color: var(--border-strong);
  background: var(--gray-50);
}
.role-opt input[type="radio"]:checked + .role-card {
  border-color: var(--blue);
  background: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(10,132,255,0.1);
}
.role-card-icon {
  width: 40px;
  height: 40px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  flex-shrink: 0;
  transition: background var(--t) var(--ease);
}
.role-opt input[type="radio"]:checked + .role-card .role-card-icon {
  background: rgba(10,132,255,0.15);
}
.role-opt input[type="radio"]:checked + .role-card .role-card-icon svg {
  stroke: var(--blue);
}
.role-name { font-weight: 700; font-size: var(--text-sm); color: var(--text-primary); margin-bottom: 5px; line-height: 1.2; }
.role-desc { font-size: var(--text-xs); color: var(--text-muted); line-height: 1.4; margin: 0; }

.form-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: var(--text-xs); color: var(--text-muted); }
.form-divider::before, .form-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.check-row { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 18px; }
.check-row input { width: 15px; height: 15px; accent-color: var(--blue); cursor: pointer; flex-shrink: 0; margin-top: 2px; }
.check-row label { font-size: var(--text-sm); color: var(--text-secondary); cursor: pointer; line-height: 1.45; }
.check-row a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

.form-hint { margin-top: var(--space-1); font-size: var(--text-xs); color: var(--color-text-muted); }
.form-error {
  display: none; padding: var(--space-3) var(--space-4);
  background: var(--tone-danger-bg); border: 1px solid var(--tone-danger-border);
  border-radius: var(--radius-form); color: var(--tone-danger-ink);
  font-size: var(--text-sm); line-height: 1.5; font-weight: 500; margin-top: 12px; text-align: left;
}
/* Sign-up / log-in cards: the message always clears the button below it */
.av2-page .form-error { margin: 0 0 var(--space-4); }

/* Live password checklist (js/auth.js attachPasswordRules) */
.pwd-rules {
  list-style: none; margin: var(--space-3) 0 0; padding: var(--space-3) var(--space-4);
  display: grid; grid-template-columns: 1fr; gap: var(--space-2);
  background: var(--color-bg-subtle); border: 1px solid var(--color-border); border-radius: var(--radius-form);
}
.pwd-rule { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); line-height: 1.3; color: var(--color-text-muted); transition: color var(--t) var(--ease); }
.pwd-rule-icon {
  position: relative; flex-shrink: 0; width: var(--space-4); height: var(--space-4); border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border-strong); background: var(--color-bg);
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.pwd-rule-icon::after {
  content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px;
  border: solid var(--color-text-on-primary); border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0;
}
.pwd-rule.is-met { color: var(--color-primary); }
.pwd-rule.is-met .pwd-rule-icon { background: var(--color-primary); border-color: var(--color-primary); }
.pwd-rule.is-met .pwd-rule-icon::after { opacity: 1; }

/* Notice box inside the log-in / sign-up / reset card: sits between the heading and the form */
.lg2-notice { margin-bottom: var(--space-5); }
.lg2-notice[hidden] { display: none; }
.st-notice-actions .st-notice-link {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 700;
  color: var(--n-ink); text-decoration: underline; text-underline-offset: 3px;
}
.st-notice-actions .st-notice-link:disabled { opacity: 0.6; cursor: default; text-decoration: none; }
.pwd-strength { margin-top: 7px; display: none; }
.pwd-bar-track { height: 3px; border-radius: var(--radius-pill); background: var(--border); overflow: hidden; }
.pwd-bar-fill  { height: 100%; width: 0; border-radius: var(--radius-pill); transition: width 0.3s var(--ease), background 0.3s var(--ease); }
.pwd-label     { font-size: var(--text-xs); color: var(--text-muted); margin-top: 4px; }

.auth-footer { text-align: center; margin-top: 18px; font-size: var(--text-sm); color: var(--text-muted); }
.auth-footer a { color: var(--blue); font-weight: 500; }

/* ── Post task page ───────────────────────────────────────────── */
.task-page { min-height: 100vh; padding-top: var(--nav-height); background: var(--bg-subtle); }
.task-container { max-width: 672px; margin: 0 auto; padding: 56px 24px; }
.task-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow-md); }

.sprint-notice {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; background: #FFFBEB;
  border: 1px solid rgba(217,119,6,0.25); border-radius: var(--radius-md);
  margin-bottom: 28px; font-size: var(--text-sm); color: #92400E; line-height: 1.5;
}
.sprint-notice svg { stroke: var(--amber); flex-shrink: 0; margin-top: 1px; }

.upload-zone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md); padding: 28px;
  text-align: center; cursor: pointer;
  transition: all var(--t) var(--ease); background: var(--bg-subtle);
}
.upload-zone:hover { border-color: var(--blue); background: var(--blue-light); }
.upload-zone-icon { width: 42px; height: 42px; background: var(--gray-100); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.upload-zone p { font-size: var(--text-sm); font-weight: 500; color: var(--text-primary); margin-bottom: 3px; }
.upload-zone small { font-size: var(--text-xs); color: var(--text-muted); }

.steps-mini { display: flex; flex-direction: column; gap: 12px; }
.step-mini { display: flex; align-items: flex-start; gap: 12px; }
.step-mini-num {
  width: 28px; height: 28px; background: var(--blue-light);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xs); font-weight: 700; color: var(--blue); flex-shrink: 0; margin-top: 1px;
}
.step-mini p { font-size: var(--text-sm); line-height: 1.5; }

/* ── Footer (v3 — light, 5-column, matches homepage reference) ─── */
#footer { background: var(--white); border-top: 1px solid var(--border); }
.footer-top { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; padding: 56px 0 40px; }
.footer-brand p { display: block; font-size: var(--text-sm); color: var(--text-secondary); margin-top: 10px; }
.footer-logo { margin-bottom: 4px; }
.footer-logo img { height: 20px; width: auto; display: block; }
.footer-logo-text { font-size: var(--text-lg); font-weight: 800; color: var(--text-primary); letter-spacing: -0.03em; }
.footer-col h4 { font-size: var(--text-sm); font-weight: 700; letter-spacing: -0.01em; text-transform: none; color: var(--text-primary); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: var(--text-sm); color: var(--text-secondary); transition: color var(--t) var(--ease); }
.footer-col a:hover { color: var(--blue); }
.footer-brand-links { margin-top: 18px; }
/* Footer links with no page yet — non-clickable placeholder, same visual weight */
.footer-disabled { font-size: var(--text-sm); color: var(--text-secondary); opacity: 0.5; cursor: default; pointer-events: none; }

/* Accordion groups — native <details>/<summary>, no JS.
   Mobile: collapsible with chevron. Desktop: always expanded, chevron hidden. */
.footer-accordion summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.footer-accordion summary::-webkit-details-marker { display: none; }
.footer-accordion summary h4 { margin-bottom: 0; }
.footer-chevron { color: var(--text-muted); flex-shrink: 0; transition: transform var(--t) var(--ease); }
.footer-accordion[open] .footer-chevron { transform: rotate(180deg); }
.footer-accordion ul { padding-top: 16px; }
@media (min-width: 769px) {
  .footer-accordion summary { pointer-events: none; }
  .footer-accordion .footer-chevron { display: none; }
}
@media (max-width: 768px) {
  .footer-top { padding: 32px 0 8px; gap: 0; }
  .footer-brand { padding-bottom: 24px; }
  .footer-accordion { border-top: 1px solid var(--border); padding: 16px 0; }
  .footer-accordion summary h4 { font-size: var(--text-sm); }
  .footer-accordion ul { padding-top: 14px; }
  .footer-accordion:not([open]) ul { display: none; }
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--space-1); }
.footer-bottom p { color: var(--text-muted); font-size: var(--text-xs); }
.footer-bottom .footer-credit { font-weight: 600; color: var(--text-secondary); }
.footer-bottom .footer-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom .footer-credit a:hover { color: var(--text-primary); }
.footer-sprint   { display: none; }

/* ── Toast ───────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: calc(28px + var(--safe-bottom)); left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--charcoal); color: var(--white);
  font-size: var(--text-sm); font-weight: 500;
  padding: 13px 22px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xl); z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  white-space: nowrap; border: 1px solid rgba(255,255,255,0.08);
}
.toast.visible { transform: translateX(-50%) translateY(0); }

/* ── Utility ─────────────────────────────────────────────────── */
.mt-8{margin-top:8px} .mt-12{margin-top:12px} .mt-16{margin-top:16px} .mt-24{margin-top:24px} .mt-32{margin-top:32px} .mt-48{margin-top:48px}
.mb-8{margin-bottom:8px} .mb-16{margin-bottom:16px} .mb-24{margin-bottom:24px}
.text-center{text-align:center} .text-blue{color:var(--blue)} .text-muted{color:var(--text-muted)}

.skeleton { background: linear-gradient(90deg,var(--gray-100) 25%,var(--gray-200) 50%,var(--gray-100) 75%); background-size: 200% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--radius-md); }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

@keyframes fadeUp { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }
.fade-up { animation: fadeUp 0.5s var(--ease) both; }
.d1{animation-delay:.08s} .d2{animation-delay:.16s} .d3{animation-delay:.24s} .d4{animation-delay:.32s} .d5{animation-delay:.4s}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1043px) {
  .hero-inner { grid-template-columns:1fr; gap:48px; }
  .hero-float-badge { display:none; }
  .footer-top { grid-template-columns:1fr 1fr; gap:32px; }
  .taskers-layout { grid-template-columns:1fr; }
  .filter-sidebar { position:static; }
}
@media (max-width:768px) {
  /* Higher specificity than .nav-links-loggedout / .nav-actions' own
     unconditional "display:flex" rules further down the file, which
     otherwise win the cascade on source order and make the guest
     mobile nav overflow with the full desktop link/button row. */
  body .nav-links, body .nav-actions { display:none; }
  .nav-toggle { display:flex; }
  .grid-2,.grid-3,.grid-4 { grid-template-columns:repeat(2,1fr); }
  .step-grid { grid-template-columns:1fr; }
  .trend-grid { grid-template-columns:1fr 1fr; }
  .hero-search { flex-direction:column; }
  .hero-search-field + .hero-search-field { border-left:none; border-top:1px solid var(--border); }
  .hero-search .btn { border-radius:var(--radius-sm); margin:8px; }
  .cta-banner { flex-direction:column; padding:36px 28px; }
  .footer-top { grid-template-columns:1fr; gap:24px; }
  .task-card,.auth-card { padding:28px 22px; }
  .form-row { grid-template-columns:1fr; }
}
@media (max-width:480px) {
  .grid-2,.grid-3,.grid-4 { grid-template-columns:1fr; }
  .trend-grid { grid-template-columns:1fr; }
  .taskers-grid { grid-template-columns:1fr; }
  .role-grid { grid-template-columns:1fr; }
  .hero-stats { flex-direction:column; gap:20px; border-top:none; padding-top:24px; }
}

/* ============================================================
   SPRINT 3.1 — Dashboard & Service Posting Styles
   ============================================================ */

/* ── Navbar user chip ────────────────────────────────────────── */
.nav-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-primary);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Dashboard layout ────────────────────────────────────────── */
.dashboard-page {
  min-height: 100vh;
  padding-top: var(--nav-height);
  background: var(--bg-subtle);
}

.dashboard-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 28px 0 24px;
}

.dashboard-header h1 {
  font-size: var(--text-xl);
  margin-bottom: 4px;
}

.dashboard-header p {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.dashboard-body {
  padding: 32px 0 64px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}

.dashboard-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}

.dashboard-nav {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.dashboard-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid var(--border);
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}

.dashboard-nav-item:last-child { border-bottom: none; }
.dashboard-nav-item:hover { background: var(--gray-50); color: var(--text-primary); }
.dashboard-nav-item.active { background: var(--blue-light); color: var(--blue); font-weight: 600; }
.dashboard-nav-item svg { flex-shrink: 0; opacity: 0.7; }
.dashboard-nav-item.active svg { opacity: 1; }

/* ── Stats row ───────────────────────────────────────────────── */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}

.stat-card-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-card-value {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-card-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Dashboard panel ─────────────────────────────────────────── */
.dashboard-panel {
  display: none;
}
.dashboard-panel.active {
  display: block;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.panel-header h2 {
  font-size: var(--text-lg);
  margin: 0;
}

/* ── Task row cards ──────────────────────────────────────────── */
.task-row-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-row-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.task-row-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.task-row-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}

.task-row-content {
  flex: 1;
  min-width: 0;
}

.task-row-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-row-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.task-row-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-open       { background: var(--blue-light);  color: var(--blue);  border: 1px solid var(--blue-border); }
.status-active     { background: var(--green-light); color: var(--green); border: 1px solid var(--color-accent-border); }
.status-completed  { background: var(--gray-100);    color: var(--gray-600); border: 1px solid var(--border); }
.status-pending    { background: var(--amber-light); color: var(--amber); border: 1px solid rgba(217,119,6,0.2); }
.status-confirmed  { background: var(--green-light); color: var(--green); border: 1px solid var(--color-accent-border); }
.status-cancelled  { background: var(--red-light);   color: var(--red);   border: 1px solid rgba(220,38,38,0.1); }

/* ── Booking row ─────────────────────────────────────────────── */
.booking-row-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color var(--t) var(--ease);
}
.booking-row-card:hover { border-color: var(--border-strong); }
.booking-row-note {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.booking-row-content { flex: 1; min-width: 0; }
.booking-row-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.booking-row-meta { font-size: var(--text-xs); color: var(--text-muted); }

.booking-row-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── Subscription status card ────────────────────────────────── */
.sub-status-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.sub-status-card.sub-active {
  border-color: var(--blue-border);
  background: var(--blue-light);
}

.sub-status-card.sub-free {
  border-color: var(--border);
}

.sub-tier-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.sub-tier-name {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.sub-tier-detail {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ── Empty states ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  background: var(--gray-100);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--text-muted);
}

.empty-state h3 { font-size: var(--text-base); margin-bottom: 6px; }
.empty-state p  { font-size: var(--text-sm); margin-bottom: 20px; }

/* ── Post Service page ───────────────────────────────────────── */
.service-form-page {
  min-height: 100vh;
  padding-top: var(--nav-height);
  background: var(--bg-subtle);
}

.service-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 0 64px;
}

.service-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
}

.service-form-heading {
  margin-bottom: 28px;
}

.service-form-heading h1 {
  font-size: var(--text-xl);
  margin-bottom: 4px;
}

.service-form-heading p {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.service-form-group {
  margin-bottom: 20px;
}

.service-form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 7px;
}

.service-form-input,
.service-form-select,
.service-form-textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--white);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  appearance: none;
}

.service-form-input:focus,
.service-form-select:focus,
.service-form-textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.1);
}

.service-form-textarea { resize: vertical; min-height: 100px; }

.service-price-wrap {
  position: relative;
}
.service-price-wrap .currency-symbol {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 600;
  pointer-events: none;
}
.service-price-wrap .service-form-input {
  padding-left: 30px;
}

/* ── Dashboard responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
  .dashboard-nav { display: flex; overflow-x: auto; border-radius: var(--radius-md); }
  .dashboard-nav-item { border-bottom: none; border-right: 1px solid var(--border); white-space: nowrap; }
  .dashboard-nav-item:last-child { border-right: none; }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .service-form-card { padding: 28px 22px; }
}

@media (max-width: 480px) {
  .dashboard-stats { grid-template-columns: 1fr; }
}

/* ── Location Input Widget ───────────────────────────────────── */
/*
   GPS lives INSIDE the dropdown as the first row.
   Input itself is clean — just a pin icon on the left.
   Pattern: Uber / Airbnb / Google Maps style.
*/

/* ── Input: just needs position:relative on its wrapper ── */
.location-suggestions {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  z-index: 300;
  display: none;
  overflow: hidden;
  animation: loc-appear 0.13s var(--ease) both;
}
@keyframes loc-appear {
  from { opacity:0; transform:translateY(-5px) scale(0.99); }
  to   { opacity:1; transform:translateY(0)   scale(1); }
}

/* ── Each row ── */
.loc-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--t) var(--ease);
}
.loc-row:hover { background: var(--color-bg-muted); }

/* ── GPS row — has its own distinct styling ── */
.loc-row-gps {
  background: var(--color-primary-soft);
}
.loc-row-gps:hover { background: var(--color-primary-soft-hover); }

/* ── Icon column ── */
.loc-row-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  stroke: var(--text-muted);
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.loc-row:hover .loc-row-icon {
  background: var(--white);
  border-color: var(--border-strong);
  color: var(--text-secondary);
}

/* GPS icon is blue */
.loc-row-icon-gps {
  background: var(--color-bg);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.loc-row-gps:hover .loc-row-icon-gps {
  background: var(--color-bg);
  color: var(--color-primary);
}

/* Spinning animation for GPS loading */
.loc-spin {
  animation: loc-rotate 0.9s linear infinite;
  stroke: var(--color-primary);
}
@keyframes loc-rotate { to { transform: rotate(360deg); } }

/* ── Text column ── */
.loc-row-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.loc-row-primary {
  font-size: var(--text-sm);
  font-weight: 500;
  font-family: var(--font-heading);
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.loc-row-gps .loc-row-primary { color: var(--color-primary); font-weight: 600; }

/* ── Separator between GPS row and suggestions ── */
.loc-sep {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-1) 0;
}

/* ── Empty state ── */
.loc-row-empty {
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-style: italic;
  cursor: default;
  justify-content: center;
  padding: var(--space-3);
  border-bottom: none;
}
.loc-row-empty:hover { background: transparent; }

/* ── No GPS button needed — remove old padding hacks ── */
input.has-gps-btn { padding-right: inherit !important; }


/* ============================================================
   SHARED MOBILE DASHBOARD NAV
   Used by both dashboard-customer.html and dashboard-tasker.html
   ============================================================ */

/* Hidden by default on desktop */
.mobile-dash-header  { display: none; }
.mobile-bottom-bar   { display: none; }

.mobile-dash-title { font-weight: 700; font-size: var(--text-base); color: var(--text-primary); }

.mobile-menu-btn {
  background: none; border: none; cursor: pointer;
  padding: 6px; border-radius: 8px; color: var(--text-primary);
}
.mobile-menu-btn:hover { background: var(--bg-subtle); }

@keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }


/* Bottom tab bar — frosted glass floating panel */
.mobile-bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -10px 30px rgba(11, 46, 28, 0.14);
  padding: 10px 4px calc(8px + var(--corner-clear));
  z-index: 100;
  justify-content: space-around;
}
.mobile-bottom-bar button {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  background: none; border: none;
  font-size: var(--text-xs); font-weight: 500;
  color: #7EA99B; cursor: pointer;
  padding: 4px 6px; border-radius: 10px;
  font-family: var(--font); flex: 1;
  transition: color 0.15s ease;
}
.mobile-bottom-bar button.active { color: var(--color-primary); font-weight: 700; }
.mobile-bottom-bar button svg    { flex-shrink: 0; }


/* Mobile breakpoint — show mobile nav, hide desktop sidebar */
@media (max-width: 768px) {
  .mobile-dash-header { display: flex !important; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
  .mobile-bottom-bar  { display: flex !important; }
  .dashboard-sidebar  { display: none !important; }
  .dashboard-header   { display: none !important; }
  .dashboard-grid     { display: block !important; }
  .dashboard-body .container { padding: 0 !important; }
  .dashboard-body { padding: 0 !important; }
  main:not(.st-page):not(.rf-main):not(.ln-main):not(.verify-page) { padding: 10px 14px 80px !important; } /* legacy dashboard shell; pages with their own nav clearance (.st-page, referrals, learn, verify) are exempt so the fixed nav never covers their heading */
}


/* ============================================================
   SPRINT 3.5 — Mobile Layout Fixes
   ============================================================ */

/* Global overflow prevention
   (base overflow-x/overscroll-behavior lockdown lives on html/body above —
   this block only adds sizing safeguards, no duplicate overflow rule) */
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }

/* Containers never exceed viewport */
.container { padding: 0 var(--gutter); width: 100%; }

@media (max-width: 768px) {
  /* Cards don't overflow */
  .task-card, .tasker-card, .service-card, .feed-card,
  .sidebar-card, .dashboard-card, .auth-card { 
    width: 100%; max-width: 100%; overflow: hidden; 
  }

  /* Post-task page */
  .post-task-container > .container { flex-direction: column; }
  .post-task-container { padding: 0; }
  .post-task-container main, .post-task-container .post-task-sidebar { 
    width: 100%; padding: 0 16px; 
  }
  .task-form-row { grid-template-columns: 1fr !important; }
  .task-submit-section { flex-direction: column; align-items: stretch; }

  /* Dashboard handled in Sprint 3.5 Overhaul section */

  /* Feed layout */
  .feed-layout { flex-direction: column; }
  .feed-sidebar { display: none; }
  .feed-main { width: 100%; }

  /* Taskers/tasks grid */
  .taskers-layout, .tasks-layout { flex-direction: column; }
  .filter-sidebar { width: 100%; position: static; }
  .taskers-grid, .tasks-grid { grid-template-columns: 1fr; }

  /* Page hero search */
  .page-hero .search-bar { flex-direction: column; width: 100%; }
  .page-hero .search-bar .sf { width: 100%; }
  .page-hero .search-bar .btn { width: 100%; }

  /* Auth pages */
  .auth-container { padding: 24px 0; }
  .auth-card { padding: 24px 18px; }

  /* Booking grid */
  .booking-grid, .stats-row { grid-template-columns: 1fr 1fr; }

  /* Budget chips wrap */
  .budget-chips { flex-wrap: wrap; }

  /* Navigation */
  .nav-inner { padding: 0 14px; }
}

@media (max-width: 480px) {
  :root { --gutter: 12px; }
  .container { padding: 0 var(--gutter); }
  .booking-grid, .stats-row { grid-template-columns: 1fr; }
  .dashboard-header { padding: 16px 12px; }
  .btn-full { width: 100%; }
  h1 { font-size: var(--text-h1-sm) !important; }
  .page-hero { padding: 48px 0 32px; }
  .task-form-card-body { padding: 16px; }

  /* Application cards */
  .app-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .app-card-actions { width: 100%; }
  .app-card-actions .btn { flex: 1; }
}

/* ============================================================
   SPRINT 3.5 — Mobile Responsiveness Overhaul
   ============================================================ */

/* ── Explore Tasks layout ────────────────────────────────────── */
.explore-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}
.mobile-filter-toggle-wrap { display: none; }

/* ── Dashboard nav — horizontal scroll on mobile ─────────────── */
.dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dashboard-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: none;
  border-radius: var(--radius-md);
  background: none;
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
  white-space: nowrap;
}
.dashboard-nav-item:hover { background: var(--gray-100); color: var(--text-primary); }
.dashboard-nav-item.active { background: var(--blue-light); color: var(--blue); font-weight: 600; }

/* ── Modal fix for mobile ────────────────────────────────────── */
.modal-box {
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Task row card responsive ────────────────────────────────── */
.task-row { word-break: break-word; }

@media (max-width: 768px) {
  .explore-layout { grid-template-columns: 200px 1fr; gap: 20px; }
}

@media (max-width: 768px) {
  /* ── Explore tasks: hide sidebar, show toggle button ── */
  .explore-layout { grid-template-columns: 1fr; }
  .mobile-filter-toggle-wrap { display: flex; margin-bottom: 14px; }

  .filter-sidebar {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 300;
    background: rgba(0,0,0,0.45);
    padding: 0;
    align-items: flex-end;
  }
  .filter-sidebar.mobile-open { display: flex; }
  .filter-sidebar .filter-card {
    width: 100%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px 20px 40px;
    margin: 0;
  }

  /* ── Dashboard nav: horizontal scrollable pill row ── */
  .dashboard-grid { grid-template-columns: 1fr !important; }
  .dashboard-sidebar {
    width: 100% !important;
    position: static !important;
  }
  .dashboard-nav {
    flex-direction: row !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding-bottom: 4px;
    flex-wrap: nowrap;
  }
  .dashboard-nav::-webkit-scrollbar { display: none; }
  .dashboard-nav-item {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: var(--radius-pill) !important;
    border: 1.5px solid var(--border);
    font-size: var(--text-xs);
    background: var(--white);
    white-space: nowrap;
  }
  .dashboard-nav-item.active {
    border-color: var(--blue);
    background: var(--blue-light);
    color: var(--blue);
  }
  .dashboard-sidebar .sidebar-cta-wrap { display: none; } /* hide CTA buttons on mobile */

  /* ── Dashboard panels ── */
  .dashboard-content, .dashboard-panel { padding: 16px 0; }
  .dashboard-body .container { padding: 0 12px; }

  /* ── Apply modal full-screen on mobile ── */
  .modal-overlay .modal-box { 
    width: 100%; 
    margin: 0; 
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 92vh;
    padding-bottom: calc(var(--space-6) + var(--safe-bottom));
  }
  .modal-overlay { align-items: flex-end; }

  /* ── Page hero search stack ── */
  .page-hero .search-bar { flex-direction: column; }
  .page-hero .search-bar .sf { min-width: 0; width: 100%; border-left: none !important; border-top: 1px solid var(--border); }
  .page-hero .search-bar .sf:first-child { border-top: none; }
  .page-hero .search-bar .btn { width: 100%; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

  /* ── Task row card ── */
  .task-row { padding: 16px; }

  /* ── Stat cards ── */
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .dashboard-header .container h1 { font-size: var(--text-md); }
  .explore-layout main { min-width: 0; }
  .task-row > div:first-child { flex-wrap: wrap; }
}




/* ============================================================
   MOBILE RESPONSIVENESS — FULL OVERHAUL
   ============================================================ */

/* ── Create (+) center button in bottom bar — raised glass-nav style ── */
.mobile-create-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  text-decoration: none;
  flex: 1;
  padding: 0 8px;
  position: relative;
}
.mobile-create-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(180deg, #147A4D 0%, #0B4A30 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -30px;
  box-shadow: 0 10px 22px rgba(11, 46, 28, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}
.mobile-create-btn:active .mobile-create-icon {
  transform: scale(0.93);
  box-shadow: 0 6px 14px rgba(11, 46, 28, 0.32);
}
/* New floating design has no text label under the center button */
.mobile-create-btn span {
  display: none;
}

/* ── Messages panel: fix white space below chat ────────────── */
@media (max-width: 768px) {
  /* The messages panel must fill viewport height minus header + bottom bar */
  #panel-messages {
    padding: 0 !important;
  }
  .messages-wrap {
    height: calc(100vh - 57px - 66px) !important; /* header + bottom bar */
    grid-template-columns: 1fr !important;
    overflow: hidden !important;
  }
  .msg-chat {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .msg-chat-body {
    flex: 1 !important;
    overflow-y: auto !important;
    min-height: 0 !important;
  }
  .msg-input-bar {
    flex-shrink: 0 !important;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  }
  /* Full-screen chat on mobile */
  .msg-chat.open {
    position: fixed !important;
    inset: 57px 0 66px 0 !important;
    z-index: 200 !important;
    background: var(--white) !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
  }
  /* Sidebar list takes full height */
  .msg-sidebar {
    height: 100% !important;
    overflow-y: auto !important;
  }
}

/* ── Fix content overflow / panning (image 4) ──────────────── */
@media (max-width: 768px) {
  /* Stat cards in My Page panel - stack vertically, no overflow */
  .mypage-stats-grid,
  [style*="grid-template-columns: 1fr 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Any fixed-width elements */
  .dashboard-panel * {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Wallet panel cards — don't overflow */
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Panels must not overflow viewport */
  main:not(.st-page):not(.rf-main):not(.ln-main):not(.verify-page) {
    overflow-x: hidden !important;
    padding: 14px 12px 80px !important; /* 80px for bottom bar; .st-page is exempt (see PAGE SHELL) */
  }
  .dashboard-panel {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  /* Table-like elements */
  table { width: 100%; display: block; overflow-x: auto; }

  /* Profile page - bio/form elements */
  .profile-form-grid,
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Buttons row - wrap instead of overflow */
  .panel-header {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .panel-header h2 { font-size: var(--text-base) !important; }

  /* Booking cards */
  .booking-card,
  .app-card {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Stat value text — don't overflow on small screens */
  .stat-val, [class*="stat-val"] {
    font-size: var(--text-md) !important;
    word-break: break-all;
  }

  /* hide scrollbar but keep scroll */
  ::-webkit-scrollbar { width: 0; }
}

/* ── Bottom bar height — ensure comfortable tap height accounting for safe area ── */
.mobile-bottom-bar {
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  height: auto !important;
  min-height: 64px;
}

/* ── Ensure desktop sidebar CTA button hidden on mobile ──────── */
@media (max-width: 768px) {
  .sidebar-cta-wrap { display: none !important; }

  /* Header title area — truncate long names */
  #mobileDashTitle {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 80px);
  }

  /* Navbar should never overflow */
  .mobile-dash-header {
    max-width: 100vw;
    overflow: hidden;
  }
}

/* ================================================================
   DASHBOARD PAGES: hide the standard site navbar on mobile.
   The dashboard has its own mobile-dash-header + slide drawer.
   ================================================================ */
@media (max-width: 768px) {
  .has-mobile-header #navbar      { display: none !important; }
  /* No gap from the hidden navbar */
  .has-mobile-header body         { padding-top: 0 !important; }
  .has-mobile-header .dashboard-page { padding-top: 0 !important; margin-top: 0 !important; }
  /* Dashboard body fills screen from header bar downward */
  .has-mobile-header .dashboard-body { margin-top: 0 !important; }
}

/* ================================================================
   AUTH V3 — Figma-exact rebuild (file: "Street Taskers", node 23:8)
   Role chooser ("Join StreetTasker"), Hire/Customer signup form and
   Work-as-Tasker signup form. Mobile frames (<769px) and Desktop
   frames (>=769px) are implemented as literally designed — including
   the copy, field order and OAuth placement differences between them
   — via display/order toggles on a single shared DOM, so there is
   only one form/JS to wire up. Scoped custom properties below only
   apply inside .av2-page, so nothing else on the site is affected.
   All decorative blur/gradient shapes stay inside overflow:hidden
   ancestors so they can never contribute to page-level horizontal
   scroll (see html/body overflow-x lockdown near the top of file).
   ================================================================ */
.av2-page {
  /* re-point shared .btn-primary tokens to the Figma green, scoped to this page only */
  --blue: var(--auth-green);
  --blue-hover: var(--auth-green-deep);

  min-height: 100vh; padding-top: var(--nav-height);
  background:
    radial-gradient(ellipse 60% 40% at 100% 0%, var(--auth-green-mid-a10) 0%, var(--auth-green-mid-a00) 50%),
    radial-gradient(ellipse 60% 40% at 0% 100%, var(--auth-green-mid-a05) 0%, var(--auth-green-mid-a00) 50%),
    var(--auth-page);
  display: flex; align-items: center;
}
.av2-shell { max-width: 1180px; margin: 0 auto; padding: 32px 20px; width: 100%; box-sizing: border-box; }

/* ── Step 1: role chooser ("What do you want to do?") ──────────
   Two big square buttons side by side on every screen size. Small
   "I'm a" line on top, large role name under it. */
.av2-chooser-heading { text-align: center; margin-bottom: var(--space-5); }
.av2-chooser-heading h1 {
  font-family: var(--font-heading); font-weight: 800;
  font-size: var(--text-h1-sm); color: var(--auth-ink); letter-spacing: -0.02em; line-height: 1.15;
}

.av2-pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); max-width: 560px; margin: 0 auto; }
.av2-pick {
  aspect-ratio: 1 / 1; min-width: 0; width: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: var(--space-2);
  padding: var(--space-4); text-align: center; cursor: pointer;
  font-family: var(--font-heading); color: var(--auth-ink);
  background: var(--auth-glass-70);
  border: 2px solid var(--auth-line); border-radius: var(--radius-2xl);
  box-shadow: var(--auth-shadow-role);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.av2-pick:hover, .av2-pick:focus-visible { border-color: var(--auth-green-mid); background: var(--auth-mint-hover-bg); }
.av2-pick:focus-visible { outline: 3px solid var(--auth-green-mid); outline-offset: 2px; }
.av2-pick:active { transform: scale(0.98); }
.av2-pick-text { display: flex; flex-direction: column; align-items: inherit; gap: inherit; }
.av2-pick-small { font-size: var(--text-sm); font-weight: 600; color: var(--auth-body); }
.av2-pick-big { font-size: var(--text-xl); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; overflow-wrap: anywhere; }
/* phone-only parts, hidden by default (shown in the phone block below) */
.av2-pick-img, .av2-pick-hint, .av2-pick-go, .av2-pick-or, .av2-pick-prompt { display: none; }

.av2-coord-link { text-align: center; max-width: 560px; margin: var(--space-5) auto 0; font-size: var(--text-sm); color: var(--auth-body); }
.av2-coord-link a { color: var(--auth-green); font-weight: 700; text-decoration: underline; }

.av2-login-pill {
  display: block; text-align: center; max-width: 340px; margin: 24px auto 0;
  background: var(--auth-glass-60);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--auth-glass-30);
  border-radius: 16px; padding: 14px 20px; font-size: var(--text-base); color: var(--auth-body); font-family: var(--font-heading);
}
.av2-login-pill a { color: var(--auth-green); font-weight: 700; }

@media (min-width: 769px) {
  .av2-chooser-heading { margin-bottom: var(--space-6); }
  .av2-chooser-heading h1 { font-size: var(--text-2xl); }
  .av2-pick-grid { gap: var(--space-5); max-width: 720px; }
  .av2-pick { padding: var(--space-5); gap: var(--space-3); }
  .av2-pick-small { font-size: var(--text-base); }
  .av2-pick-big { font-size: var(--text-2xl); }
  .av2-login-pill { max-width: none; width: max-content; display: flex; gap: 6px; margin: 22px auto 0; padding: 14px 28px; font-size: var(--text-base); box-shadow: var(--auth-shadow-role); }
}

/* ── Role chooser, desktop (>=769px): three staggered cards (Hire, Work, Coordinator). Phones are untouched. ── */
.av2-dcards { display: none; }
@media (min-width: 769px) {
  #stepChoose .av2-pick-prompt, #stepChoose .av2-pick-grid, #stepChoose .av2-coord-link { display: none; }
  #stepChoose .av2-chooser-heading h1 { font-size: clamp(2.25rem, 3.6vw, 3rem); }
  .av2-dcards {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start;
    max-width: 1080px; margin: 0 auto;
  }
  .av2-dcard {
    position: relative; overflow: hidden; box-sizing: border-box; isolation: isolate;
    display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
    padding: 36px 32px 32px; background: var(--auth-glass-70);
    border: 1px solid var(--auth-glass-30); border-radius: 28px;
    box-shadow: var(--auth-shadow-role);
  }
  .av2-dcard--a { margin-top: 48px; }
  .av2-dcard::before {
    content: ''; position: absolute; z-index: -1; width: 190px; height: 190px; border-radius: 50%;
    background: var(--auth-green-mid-a10);
  }
  .av2-dcard--a::before { top: -70px; right: -70px; }
  .av2-dcard--b::before { bottom: -80px; left: -70px; }
  .av2-dcard-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px;
    border-radius: 18px; background: var(--color-primary-soft); color: var(--auth-green);
    border: 1px solid var(--color-mint-border); margin-bottom: 14px;
  }
  .av2-dcard h2 { font-family: var(--font-heading); font-weight: 700; font-size: var(--text-xl); color: var(--auth-ink); letter-spacing: -0.01em; margin: 0; }
  .av2-dcard p { font-size: var(--text-base); line-height: 1.6; color: var(--auth-body); margin: 0 0 14px; flex: 1 1 auto; }
  .av2-dcta {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; box-sizing: border-box;
    padding: 16px 20px; border-radius: var(--radius-full); cursor: pointer; text-decoration: none;
    font-family: var(--font-heading); font-size: var(--text-base); font-weight: 700;
    transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
  }
  .av2-dcta:active { transform: scale(0.98); }
  .av2-dcta:focus-visible { outline: 3px solid var(--auth-green-mid); outline-offset: 2px; }
  .av2-dcta--solid { background: var(--auth-green); color: #fff; border: 2px solid var(--auth-green); box-shadow: 0 8px 18px rgba(15, 107, 70, 0.25); }
  .av2-dcta--solid:hover { background: var(--auth-green-deep); border-color: var(--auth-green-deep); }
  .av2-dcta--outline { background: transparent; color: var(--auth-green); border: 2px solid var(--auth-green); }
  .av2-dcta--outline:hover { background: var(--color-primary-soft); }
}

/* ── Step 2: signup / tasker forms ──────────────────────────── */
.av2-split {
  display: grid; grid-template-columns: 0.78fr 1fr; gap: 40px;
  max-width: 1080px; margin: 0 auto; align-items: stretch;
}
.av2-form-panel {
  position: relative; overflow: hidden; min-width: 0;
  background: var(--auth-glass-70);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--auth-glass-30);
  border-radius: 32px;
  padding: 44px; box-shadow: var(--auth-shadow-panel);
  display: flex; flex-direction: column;
}
.av2-form-panel::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 128px; height: 128px; border-radius: 0 0 9999px 0;
  background: var(--auth-green-mid-a10); z-index: 0;
}
.av2-form-panel > * { position: relative; z-index: 1; }

/* mobile-only header row (wordmark + circular illustration) */
.av2-mobile-logo { display: none; text-align: center; font-family: var(--font-heading); font-weight: 800; font-size: var(--text-xl); color: var(--auth-green); order: 1; }
.av2-illustration-mobile { display: none; order: 2; justify-content: center; margin: 16px 0 20px; }
.av2-illustration-mobile img { width: 160px; height: 160px; border-radius: var(--radius-pill); object-fit: cover; display: block; }

.av2-form-heading { text-align: center; order: 3; margin-bottom: 24px; }
.av2-form-heading h1 { font-family: var(--font-heading); font-weight: 800; color: var(--auth-ink); font-size: var(--text-2xl); letter-spacing: -0.02em; margin-bottom: 8px; line-height: 1.25; }
.av2-form-heading p { color: var(--auth-body); font-size: var(--text-base); line-height: 1.5; }
.av2-form-heading--desktop { display: none; }

.av2-oauth-row { order: 6; display: flex; flex-direction: column; gap: 10px; margin: 20px 0 0; }
.av2-oauth-row--full { display: none; }
.av2-oauth-row--icons { flex-direction: row; }
.av2-oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  flex: 1; padding: 13px; border: 1px solid var(--auth-border);
  border-radius: var(--radius-pill); background: var(--white);
  font-size: var(--text-sm); font-weight: 600; color: var(--auth-ink);
  cursor: pointer; transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.av2-oauth-btn:hover { border-color: var(--auth-oauth-hover-border); background: var(--auth-oauth-hover-bg); }
.av2-oauth-row--icons .av2-oauth-btn span { display: none; }

.av2-divider { order: 5; display: flex; align-items: center; gap: 16px; margin: 20px 0; font-size: var(--text-xs); font-weight: 500; letter-spacing: .05em; color: var(--auth-muted); text-transform: uppercase; font-family: var(--font); }
.av2-divider::before, .av2-divider::after { content: ''; flex: 1; height: 1px; background: var(--auth-border); }
.av2-divider--desktop { display: none; }

.av2-form-panel form { order: 4; }

.av2-field { margin-bottom: 16px; }
.av2-field label { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--auth-ink); margin-bottom: 6px; }
.av2-field-wrap { position: relative; }
.av2-field-wrap svg.av2-field-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--auth-muted); pointer-events: none; }
.av2-field-wrap input {
  width: 100%; padding: 13px 16px 13px 44px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  background: var(--auth-input-bg); font-size: var(--text-base); color: var(--auth-ink); font-family: var(--font-body);
  outline: none; transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.av2-field-wrap input::placeholder { color: var(--auth-muted); }
.av2-field-wrap input:focus { border-color: var(--auth-green-mid); background: var(--white); }
.av2-field-wrap .av2-pwd-toggle {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--auth-muted); display: flex;
}
.av2-field-wrap .av2-pwd-toggle:hover { color: var(--auth-ink); }

.av2-check-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 16px; }
.av2-check-row input { width: 20px; height: 20px; accent-color: var(--auth-green); cursor: pointer; flex-shrink: 0; margin-top: 1px; }
.av2-check-row label { font-size: var(--text-xs); color: var(--auth-body); line-height: 1.4; cursor: pointer; }
.av2-check-row a { color: var(--auth-green); font-weight: 600; }

/* Optional referral code on the sign-up forms */
.av2-ref { margin-bottom: var(--space-4); }
.av2-ref-toggle { display: inline-flex; align-items: center; gap: var(--space-2); padding: 0; border: 0; background: none; font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 600; color: var(--auth-green); cursor: pointer; }
.av2-ref-toggle em { font-style: normal; font-weight: 500; color: var(--auth-muted); }
.av2-ref-toggle:hover span { text-decoration: underline; }
.av2-ref-toggle:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-lg); }
.av2-ref-box { margin-top: var(--space-3); }
.av2-ref-box[hidden] { display: none; }
.av2-ref-box .av2-field { margin-bottom: 0; }
.av2-ref-box input { letter-spacing: 0.08em; font-weight: 600; text-transform: uppercase; }
.av2-ref-hint { margin: var(--space-2) 0 0; font-size: var(--text-xs); color: var(--auth-muted); }
.av2-ref-hint a { color: var(--auth-green); font-weight: 600; }

.av2-submit-btn {
  width: 100%; justify-content: center;
  background: var(--auth-green); color: var(--white);
  border: 4px solid var(--auth-green-ring);
  box-shadow: var(--auth-shadow-sm);
}
.av2-submit-btn:hover { background: var(--auth-green-deep); }
.av2-submit-label--desktop { display: none; }
.av2-form-footer { order: 10; text-align: center; margin-top: 18px; font-size: var(--text-base); color: var(--auth-body); font-family: var(--font-body); }
.av2-form-footer a { color: var(--auth-green); font-weight: 700; }

.av2-visual { position: relative; border-radius: 32px; overflow: hidden; background: var(--white); }
.av2-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av2-testimonial {
  position: absolute; right: 24px; bottom: 24px; max-width: 320px;
  background: var(--white); border-radius: 24px; box-shadow: var(--auth-shadow-lg);
  padding: 20px 22px;
}
.av2-testimonial .av2-stars { color: var(--amber); display: flex; gap: 2px; margin-bottom: 10px; }
.av2-testimonial p.av2-quote { font-family: var(--font-body); font-size: var(--text-sm); color: var(--auth-ink); line-height: 1.5; margin-bottom: 12px; }
.av2-testimonial .av2-author { display: flex; align-items: center; gap: 10px; }
.av2-testimonial .av2-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--gray-200);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--text-xs); color: var(--auth-body); flex-shrink: 0;
}
.av2-testimonial .av2-author-name { font-size: var(--text-sm); font-weight: 700; font-family: var(--font); }
.av2-testimonial .av2-author-role { font-size: var(--text-xs); color: var(--auth-muted); }
.av2-testimonial.av2-quote-style { padding: 22px 24px; }
.av2-testimonial.av2-quote-style .av2-quote-mark { color: var(--auth-green-mid); font-size: var(--text-2xl); line-height: 1; font-weight: 800; margin-bottom: 2px; }
.av2-testimonial.av2-quote-style p.av2-quote { margin-bottom: 10px; }
.av2-testimonial.av2-quote-style .av2-author-name { color: var(--auth-green); font-weight: 700; }

/* ---- >=769px: literally the Desktop frames ---- */
@media (min-width: 769px) {
  .av2-form-heading--mobile { display: none; }
  .av2-form-heading--desktop { display: block; order: 1; }
  .av2-oauth-row--full { display: flex; order: 2; }
  .av2-oauth-row--icons { display: none; }
  .av2-divider--desktop { display: flex; order: 3; }
  .av2-divider--mobile { display: none; }
  .av2-form-panel form { order: 4; }
  .av2-form-footer { order: 5; }
  .av2-submit-label--mobile { display: none; }
  .av2-submit-label--desktop { display: inline; }
}

/* ---- <769px: literally the Mobile frames ---- */
@media (max-width: 768px) {
  .av2-split { grid-template-columns: 1fr; gap: 0; max-width: 460px; }
  .av2-mobile-logo { display: block; }
  .av2-illustration-mobile { display: flex; }
  .av2-visual { display: none; }
  .av2-form-panel { border: none; box-shadow: none; background: transparent; backdrop-filter: none; padding: 24px 8px; }
  .av2-form-panel::before { display: none; }
  .av2-shell { padding: 24px 16px 48px; }
}

/* ================================================================
   SEARCH PAGES — Find Tasks (189:3933) / Find Taskers (190:4616)
   Figma-exact: dark rounded hero shell + floating capsule search,
   sidebar filters with counts, and photo-forward result cards.
   Reuses existing .filter-panel/.filter-group/.filter-opt system
   and .hero-frame's dark gradient — only adds what's new.
   ================================================================ */
.spg-hero-wrap { width: 100%; }

/* Nav (fixed) + hero + search bar. padding-top clears the fixed nav in both
   the normal desktop flow and the mobile position:fixed case (top:0 there). */
.spg-sticky-top { padding-top: calc(var(--nav-height) + 24px); }

.spg-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 120% 100% at 15% 0%, var(--forest-mid) 0%, var(--forest) 45%, var(--forest-deep) 100%);
  border-radius: 32px;
  padding: 44px 48px 84px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  min-height: 220px;
}
.spg-hero-text { max-width: 560px; }
.spg-hero-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--color-live); margin-right: 6px; }
.spg-hero-eyebrow {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); margin-bottom: 14px; display: flex; align-items: center;
}
.spg-hero h1 {
  font-family: var(--font-heading); font-weight: 800; color: var(--white);
  font-size: var(--text-h2); letter-spacing: -0.02em; margin-bottom: 12px; line-height: 1.15;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.spg-hero-spark { color: var(--white); flex-shrink: 0; }
.spg-hero p { color: rgba(255,255,255,0.7); font-size: var(--text-base); max-width: 460px; }

.spg-hero-avatar {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.5); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue); color: var(--white); font-weight: 800; font-size: var(--text-xl);
}
.spg-hero-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.spg-searchbar {
  position: relative; z-index: 2; margin: -40px auto 0; max-width: 880px;
  background: var(--white); border-radius: var(--radius-pill); box-shadow: var(--shadow-xl);
  display: flex; align-items: stretch; padding: 8px; gap: 4px;
}
.spg-searchbar-field { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 18px; min-width: 0; }
.spg-searchbar-field svg { color: var(--text-muted); flex-shrink: 0; }
.spg-searchbar-field input { border: none; outline: none; font-size: var(--text-sm); width: 100%; background: none; font-family: var(--font); color: var(--text-primary); }
.spg-searchbar-divider { width: 1px; background: var(--border); margin: 8px 0; flex-shrink: 0; }
.spg-searchbar button { border-radius: var(--radius-pill); flex-shrink: 0; padding: 0 28px; }

.spg-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; margin-top: 40px; align-items: start; }

/* filter counts + chip cloud — new additions to the existing filter system */
.filter-opt-count { margin-left: auto; font-size: var(--text-xs); color: var(--text-muted); font-weight: 500; }

/* Figma search pages show the filter sidebar borderless, blended into
   the page background — no white card, no dividers between groups. */
.spg-layout .filter-panel { background: transparent; border: none; border-radius: var(--radius-form); overflow: visible; }
.spg-layout .filter-panel-head { padding: 0 0 4px; }
.spg-layout .filter-group { padding: 20px 0; border-bottom: none; }
.spg-layout .filter-group:first-child { padding-top: 0; }
.spg-layout .filter-group-label { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--text-primary); }
.filter-chip-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  padding: 6px 14px; border-radius: var(--radius-pill); border: 1.5px solid var(--border);
  background: var(--white); font-size: var(--text-xs); color: var(--text-secondary); cursor: pointer;
  transition: all var(--t) var(--ease);
}
.filter-chip:hover { border-color: var(--border-strong); }
.filter-chip.active { background: var(--blue); border-color: var(--blue); color: var(--white); }
.range-dual { display: flex; align-items: center; gap: 10px; }
.range-dual .filter-range { flex: 1; }

/* result cards — shared skeleton for both task cards and tasker cards */
.spg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; align-content: start; }
@media (min-width: 769px) { #tasksGrid.spg-grid, #servicesGrid.spg-grid { grid-template-columns: repeat(auto-fill, minmax(var(--card-grid-min-desktop), 1fr)); gap: var(--space-4); } }
.spg-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 20px;
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.spg-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
/* Card action buttons (Book Tasker / View Task) use a smaller rounded-rect
   radius, distinct from the pill-shaped buttons used in the hero/nav. */
.spg-card-footer .btn, .spg-card .btn { border-radius: 10px; }
.spg-card-media { position: relative; height: 150px; background: var(--gray-100); flex-shrink: 0; }
.spg-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spg-card-fav {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-secondary); backdrop-filter: blur(4px);
}
.spg-card-fav:hover { color: var(--red); }
.spg-card-badge {
  position: absolute; bottom: -14px; left: 14px; width: 40px; height: 40px; border-radius: 12px;
  background: var(--white); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center;
  font-size: var(--text-lg); border: 1px solid var(--border);
}
.spg-card-verified {
  position: absolute; bottom: -14px; left: 14px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center;
  color: var(--white); border: 2px solid var(--white);
}
.spg-card-body { padding: 22px 16px 16px; display: flex; flex-direction: column; flex-grow: 1; }
.spg-card-title { font-size: var(--text-base); font-weight: 700; color: var(--text-primary); margin-bottom: 4px; line-height: 1.35; }
.spg-card-sub { font-size: var(--text-xs); color: var(--text-muted); display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.spg-card-cat-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 6px; background: var(--mint); font-size: var(--text-xs); flex-shrink: 0; }
.spg-card-desc { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.5; margin-bottom: 12px; flex-grow: 1; }
.spg-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.spg-tag { font-size: var(--text-xs); font-weight: 600; padding: 3px 10px; border-radius: var(--radius-pill); white-space: nowrap; }
.spg-tag-type { background: var(--blue-light); color: var(--blue); }
.spg-tag-urgent { background: #FEE2E2; color: #B91C1C; }
.spg-tag-flexible { background: var(--mint); color: var(--forest); }
.spg-tag-scheduled { background: #E0E7FF; color: #3730A3; }
.spg-tag-specialty { background: var(--gray-100); color: var(--text-secondary); }
.spg-tag-verified { background: var(--mint); color: var(--forest); }
/* Extra colorway rotation for specialty/context tags (Home Service, Emergency, Roadside, Studio & Mobile, etc.) */
.spg-tag-c1 { background: #FEF3C7; color: #92400E; }
.spg-tag-c2 { background: #FEE2E2; color: #B91C1C; }
.spg-tag-c3 { background: #EDE9FE; color: #5B21B6; }
.spg-tag-c4 { background: #CFFAFE; color: #155E75; }
.spg-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); margin-top: auto; }
.spg-card-price { font-weight: 800; font-size: var(--text-base); color: var(--text-primary); }
.spg-card-price span { font-weight: 500; font-size: var(--text-xs); color: var(--text-muted); }
.spg-card-posted { font-size: var(--text-xs); color: var(--text-muted); }
.spg-card-stars { color: var(--amber); font-size: var(--text-xs); display: flex; align-items: center; gap: 4px; }

@media (max-width: 768px) {
  .spg-layout { grid-template-columns: 1fr; }
  .spg-searchbar { border-radius: var(--radius-pill); margin: -76px 4px 0; padding: 6px 6px 6px 22px; flex-direction: row; align-items: center; }
  .spg-searchbar-location-wrap { display: none; }
  .spg-searchbar button {
    margin-top: 0; padding: 0; width: 44px; height: 44px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; border-radius: 50%;
  }
  .spg-searchbar button span { display: none; }
  .filter-sidebar { position: static; }

  /* Nav + hero + search bar stay fixed together and never scroll away;
     only the results below them scroll. Height is measured in JS
     (see the inline script at the bottom of find-tasks.html /
     find-taskers.html) and applied as padding-top on .spg-content-below.
     top:0 (rather than var(--nav-height)) because .spg-sticky-top's own
     padding-top already clears the fixed nav — see the base rule above. */
  /* Scrolling heroes sit flush under the nav (no 24px gap) */
  .spg-sticky-top { padding-top: calc(var(--nav-height) + env(safe-area-inset-top, 0px)); }
  /* Only Find Tasks pins its hero (.spg-sticky-top--pinned). Find Taskers and Find Services scroll normally. */
  .spg-sticky-top--pinned {
    position: fixed; top: 0; left: 0; right: 0; z-index: 900;
    padding-top: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
    /* No background here — .spg-hero below carries the only visible
       green fill. If this wrapper were also solid green, the hero's
       rounded corners would have nothing to show up against (green on
       green), which is exactly why the bottom corners looked square. */
  }
  .spg-hero {
    background: var(--hero-bg-mobile); /* flat, matching the nav exactly above it — no seam */
    flex-direction: column; align-items: flex-start; text-align: left;
    padding: 20px 24px 100px; border-radius: 0 0 32px 32px; min-height: 0;
    /* Full-bleed edge-to-edge, cancelling out .container's own side
       padding (it lives inside .container so desktop keeps its inset
       margins) — only the bottom corners are rounded, right at the
       screen edges, matching the reference. */
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
    width: auto;
  }
  .spg-hero h1 { font-size: var(--text-xl); }
  .spg-hero p { display: none; } /* subheading omitted on mobile — keeps the hero compact */
  .spg-hero-avatar { position: absolute; top: 4px; right: 24px; width: 52px; height: 52px; font-size: var(--text-lg); }

  /* The Tasks/Taskers toggle sits right under the search bar and stays
     fixed with it (see the always-on .spg-tab-toggle rules above). */
  /* .spg-tab-toggle-top spacing is universal — see the base rule below. */
}

/* Small "Back" bar shown on the form steps, directly under the always-visible
   site nav (not instead of it). */
.av2-mini-header {
  position: fixed; top: var(--nav-height); left: 0; right: 0; z-index: 999;
  height: 48px; background: var(--white); border-bottom: 1px solid var(--border);
}
.av2-mini-header-inner {
  height: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center;
}
.av2-back-btn {
  display: flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer;
  font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 600; color: var(--auth-body, var(--text-secondary));
  padding: 8px 10px; border-radius: 8px; transition: background var(--t) var(--ease);
}
.av2-back-btn:hover { background: var(--gray-100); color: var(--text-primary); }

/* Form steps sit under both the real nav and the slim back-bar */
.av2-page--form { padding-top: calc(var(--nav-height) + 48px); }

/* Tasks/Taskers segmented toggle next to the results count (Figma) */
.spg-tab-toggle { display: flex; max-width: 420px; background: var(--gray-100); border-radius: var(--radius-pill); padding: 4px; gap: 2px; }
.spg-tab-toggle-top { margin: 0 0 24px; }
.spg-tab {
  padding: 10px 20px; border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 700;
  color: var(--text-secondary); text-decoration: none; text-align: center; flex: 1;
  transition: all var(--t) var(--ease);
}
.spg-tab:hover { color: var(--text-primary); }
.spg-tab.active { background: var(--blue); color: var(--white); box-shadow: var(--shadow-sm); }

/* ══════════════════════════════════════════════════════════════════
   HOMEPAGE v4 — Figma parity pass (page margin, hero, chips, cards,
   tasker split, final CTA). Only touches homepage-scoped classes.
   ══════════════════════════════════════════════════════════════════ */

/* Wide page container — 60px side margin per Figma, used only on the
   homepage sections (nav/footer keep their existing .container width). */
.container-home { max-width: 1440px; margin: 0 auto; padding: 0 60px; }
@media (max-width: 768px)  { .container-home { --home-pad: var(--space-6); padding: 0 var(--home-pad); } }
@media (max-width: 480px)  { .container-home { --home-pad: 20px; padding: 0 var(--home-pad); } }

/* Hero rectangle — 32px corner radius per Figma spec */
.hero-frame { border-radius: 32px; }

/* Floating hero pills/badges: gentle vertical float + fade near cursor */
@keyframes stFloatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hero-floater { animation: stFloatY 3.6s ease-in-out infinite; transition: opacity 0.25s ease; will-change: transform, opacity; }
.hero-pill-float.right.hero-floater { animation-delay: 0.5s; }
.hero-float-badge2.hero-floater { animation-delay: 1s; }
@media (prefers-reduced-motion: reduce) { .hero-floater { animation: none; } }

/* ── Category chip marquee (auto-scrolls, pauses on hover, click still works) ── */
.need-help-chips {
  display: flex; flex-wrap: nowrap; justify-content: flex-start;
  overflow: hidden; max-width: 760px; margin: 0 auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.need-help-chips-track {
  display: flex; gap: 10px; flex-wrap: nowrap; flex-shrink: 0;
  padding: 2px 4px; animation: stChipScroll 32s linear infinite;
}
.need-help-chips-track .nh-chip { flex-shrink: 0; white-space: nowrap; }
.need-help-chips:hover .need-help-chips-track { animation-play-state: paused; }
@keyframes stChipScroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .need-help-chips-track { animation: none; } }
@media (max-width: 768px) {
  .need-help-chips { -webkit-mask-image: none; mask-image: none; }
}

/* ── "People are getting things done" cards (v3 — matches Figma HousePaintingCard) ── */
.pgtd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pgtd-card {
  display: flex; flex-direction: column; text-align: left; cursor: pointer;
  background: var(--color-bg); border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  transition: transform var(--t) var(--ease);
}
.pgtd-card:hover { transform: translateY(-3px); }
.pgtd-card { container-type: inline-size; }
.pgtd-thumb {
  position: relative; aspect-ratio: 4 / 3; flex-shrink: 0;
  border-radius: var(--radius-card-media); background-color: var(--color-bg-muted);
  background-size: cover; background-position: center;
}
/* Task with no uploaded photo: the StreetTasker logo, centred on the muted card colour. */
.pgtd-thumb--logo { background-image: url('../images/favicon.png'); background-repeat: no-repeat; background-size: auto 45%; background-position: center; }

.pgtd-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-1) var(--space-3);
  margin-top: var(--space-4);
}
/* Narrower than the Figma card (342px of content): title gets its own line, "Posted" drops under it */
@container (max-width: 339px) {
  .pgtd-title { flex-basis: 100%; }
}
.pgtd-title {
  flex: 1 1 auto; min-width: 0; margin: 0;
  font-family: var(--font-heading); font-size: var(--text-card-title); font-weight: 600;
  line-height: 28px; letter-spacing: 0; color: var(--color-card-title);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pgtd-posted {
  flex-shrink: 0; display: flex; align-items: center; gap: var(--card-icon-gap); padding-right: var(--space-1);
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 400;
  color: var(--color-card-posted); white-space: nowrap;
}
.pgtd-posted svg { flex-shrink: 0; color: var(--color-card-icon); }
.pgtd-desc {
  margin: var(--space-4) 0 0; min-height: 40px;  /* two lines, so cards line up */
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400;
  line-height: 20px; color: var(--color-card-desc);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pgtd-meta { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-1); }
.pgtd-meta-row {
  display: flex; align-items: center; gap: var(--card-icon-gap); min-height: 24px;
  font-family: var(--font-body); font-size: var(--text-base-sm); font-weight: 400;
  color: var(--color-card-meta);
}
.pgtd-meta-row.pgtd-meta-time { color: var(--color-card-meta-time); }
.pgtd-icon { width: var(--card-icon-col); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--color-card-icon); }
.pgtd-price {
  margin-left: auto; padding-right: var(--space-4);
  font-family: var(--font-heading); font-size: var(--text-lg); font-weight: 700;
  line-height: 24px; color: var(--color-card-title);
}
.pgtd-actions { display: flex; gap: var(--space-3); margin-top: auto; padding-top: var(--space-6); }
.pgtd-btn {
  flex: 1 1 0; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-card-btn); text-decoration: none;
  font-family: var(--font-heading); font-size: var(--text-base-sm); font-weight: 600;
  transition: opacity var(--t) var(--ease);
}
.pgtd-btn:hover { opacity: 0.88; }
.pgtd-empty { grid-column: 1 / -1; text-align: center; color: var(--text-muted); font-size: var(--text-sm); padding: var(--space-6) var(--space-4); }
.pgtd-btn-secondary { background: var(--color-card-action-bg); color: var(--color-card-action-text); }
.pgtd-btn-primary { background: var(--color-card-primary); color: var(--color-text-on-primary); box-shadow: var(--shadow-card-btn); }
@media (max-width: 768px) { .pgtd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .pgtd-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── Tasker split visual — crop the photo to fill its half ── */
/* Photo fills the box edge to edge (box ratio matches the photo, so no grey strip underneath) */
.tasker-split-visual img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }

/* ── Final CTA — stays on-brand green at every breakpoint ── */
.final-cta {
  background: radial-gradient(ellipse 120% 100% at 15% 0%, var(--forest-mid) 0%, var(--forest) 45%, var(--forest-deep) 100%);
  border-radius: 32px; padding: 74px 40px;
}
.final-cta h2 { color: var(--white); }
.final-cta p  { color: rgba(255,255,255,0.68); }
.final-cta-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.final-cta .btn-dark { background: var(--white); color: var(--forest-deep); }
.final-cta .btn-dark:hover { background: var(--gray-100); }
.final-cta .btn-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.final-cta .btn-white:hover { background: rgba(255,255,255,0.1); }
@media (max-width: 768px) { .final-cta-actions { flex-direction: column; width: 100%; } .final-cta-actions .btn { width: 100%; } }

/* ══════════════════════════════════════════════════════════════════
   HOMEPAGE v5 — mobile nav order + stacked hero CTAs (per mobile Figma)
   ══════════════════════════════════════════════════════════════════ */

/* Mobile nav: hamburger — logo — (+) post-a-task, in that order */
.nav-mobile-plus { display: none; }
#navMobileAccount { display: none; }
@media (max-width: 768px) {
  .nav-inner { justify-content: flex-start; gap: 14px; }
  .nav-toggle { order: 1; }
  /* .nav-logo is nested inside .nav-left (itself the actual flex child
     of .nav-inner), so ordering has to be set on .nav-left to move the
     whole left cluster after the hamburger — setting it on .nav-logo
     alone has no effect on top-level position. Scoped to logged-out
     only: the logged-in layout sets its own order on .nav-left below. */
  body:not(.st-logged-in) .nav-left { order: 2; }
  .nav-mobile-plus {
    order: 3; margin-left: auto; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--blue); color: var(--white);
    transition: background var(--t) var(--ease);
  }
  .nav-mobile-plus:hover { background: var(--blue-hover); }

  /* Bell + avatar — only ever shown via body.spg-page.st-logged-in (see
     the search-page-specific rules further down this file). */
  #navMobileAccount { order: 3; margin-left: auto; align-items: center; gap: 10px; }
  .nav-mobile-bell {
    position: relative; width: 34px; height: 34px; border-radius: 50%; border: none;
    background: rgba(255,255,255,0.15); color: var(--white); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  .nav-mobile-avatar {
    width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--blue); color: var(--white); font-weight: 700; font-size: var(--text-sm);
    border: 2px solid rgba(255,255,255,0.5);
  }
  .nav-mobile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

  /* Search-page nav (mobile): dark green background matching the hero.
     Logged out: hamburger + logo, both white for contrast, plus the
     usual "+" post-task button (recolored so it doesn't disappear
     against the dark background). Logged in: the "+" button is
     replaced by a notification bell + the user's own avatar. */
  body.spg-page #navbar {
    background: var(--hero-bg-mobile);
    /* Extend the same green up behind the iPhone notch/status bar
       instead of leaving it white there. */
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
  }
  body.spg-page .nav-toggle span { background: var(--white); }
  body.spg-page:not(.st-logged-in) .nav-logo img { filter: brightness(0) invert(1); }
  body.spg-page .nav-mobile-plus { background: var(--white); color: var(--blue); }
  body.spg-page.st-logged-in .nav-mobile-plus { display: none; }
  body.spg-page.st-logged-in #navMobileAccount { display: flex; }
  /* Logged in on a search page: use the same light top nav as everywhere
     else instead of the dark green guest treatment above. */
  body.spg-page.st-logged-in:not(.role-tasker) #navbar { background: rgba(255,255,255,0.92); }
  body.spg-page.st-logged-in:not(.role-tasker) .nav-toggle span { background: var(--text-primary); }

  /* ── Top nav (logged-in, mobile): wordmark + role badge + dynamic
     subtitle on the left, bell + avatar on the right. Scoped to
     body.st-logged-in so logged-out mobile is completely untouched,
     and nested in this max-width:768px query so desktop is untouched. ── */
  .nav-mobile-subtitle { display: none; }
  body.st-logged-in .nav-inner { flex-wrap: nowrap; }
  body.st-logged-in .nav-toggle { order: 1; }
  body.st-logged-in .nav-left {
    order: 2; flex: 0 0 auto;
  }
  /* Logo sits first, badge right after it — order matches source order
     (see body:not(.st-logged-in) .nav-logo rule above, which this
     deliberately overrides back to the default/first position). */
  body.st-logged-in .nav-left .nav-logo { order: 0; }
  body.st-logged-in .nav-role-badge { order: 1; }
  body.st-logged-in .nav-logo img { height: 20px; }
  body.st-logged-in .nav-logo-tagline { display: none; } /* hidden on mobile — shown desktop-only via base CSS */
  body.st-logged-in .nav-role-badge {
    font-size: var(--text-xs); padding: 3px 9px; border: none;
  }
  body.st-logged-in .nav-role-badge.nav-tasker,
  body.st-logged-in .nav-role-badge.nav-role-customer {
    color: var(--color-forest-900); background: var(--pt-mint);
  }
  /* Page-title subtitle under the logo is intentionally removed — logo only. */
  body.st-logged-in .nav-mobile-subtitle { display: none !important; }
  /* Desktop pill-nav / icon-bar were never meant for this width —
     hide them so they can't collide with the new left/right clusters. */
  .nav-pill-wrap, .nav-icon-bar { display: none !important; }

  #navMobileAccount { order: 3; margin-left: auto; }
  .nav-mobile-bell {
    background: none; color: var(--charcoal);
  }
  .nav-mobile-bell-dot {
    position: absolute; top: 4px; right: 4px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--red); border: 1.5px solid var(--white);
  }
  .nav-mobile-avatar {
    background: var(--color-forest-800); border: none;
  }
}

/* ── Global mobile bottom tab bar (Overview / Tasks / + / Messages / Profile) ──
   Floating pill: 358×77, radius 99, 10px off the bottom edge.
   Injected site-wide by js/app.js (components/bottom-nav.html) and shown
   ONLY when the visitor is logged in — hidden entirely for guests. */
.st-bottom-nav { display: none; }
@media (max-width: 768px) {
  /* Room for the floating pill so page content never sits behind it.
     Only added while logged in, since the nav only shows then. */
  body.st-logged-in { padding-bottom: calc(96px + var(--corner-clear)); }   /* floating pill: 77px + 8px gap + corner clearance + room */

  body.st-logged-in .st-bottom-nav {
    display: flex; align-items: center; justify-content: space-around;
    position: fixed; left: 50%;
    bottom: calc(var(--space-2) + var(--corner-clear));
    transform: translate3d(-50%, 0, 0);   /* own layer: stays pinned while the page rubber-bands in the installed app */
    -webkit-backface-visibility: hidden; backface-visibility: hidden;
    width: 358px; max-width: calc(100% - 20px);
    height: 77px; z-index: 950;
    /* Solid, no blur: the bar floats over page content and must stay readable (visibility over effect) */
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    padding: 0 8px;
    box-shadow: 0 10px 30px rgba(11, 46, 28, 0.18);
  }
  .st-bn-item {
    flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    background: none; border: none; cursor: pointer; text-decoration: none;
    color: #7EA99B; font-size: var(--text-xs); font-weight: 500; font-family: var(--font);
    padding: 4px 2px; border-radius: var(--radius-form);
    transition: color 0.15s ease;
  }
  .st-bn-item.active { color: var(--color-primary); font-weight: 700; }

  /* Centre "+" create button */
  .st-bn-plus {
    flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--color-primary); color: var(--white);
    box-shadow: 0 6px 16px rgba(11, 46, 28, 0.4);
    text-decoration: none; margin: 0 4px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  .st-bn-plus svg { stroke: var(--white); flex-shrink: 0; }
  .st-bn-plus:active { transform: scale(0.92); box-shadow: 0 3px 10px rgba(11, 46, 28, 0.3); }
}

/* Pages with their own button pinned to the bottom of the screen (Post a Task,
   gift card buy bar, profile action bars, Save bars) opt out of the floating tab
   bar by adding class "st-no-bottom-nav" to <body>. Mobile only. */
@media (max-width: 768px) {
  body.st-no-bottom-nav.st-logged-in .st-bottom-nav { display: none; }
}


/* Hero CTAs stack vertically on mobile instead of sitting side by side —
   fixed 300x40 per the mobile design spec */
@media (max-width: 768px) {
  .hero-frame-actions { flex-direction: column; align-items: center; gap: 12px; }
  .hero-frame-actions .btn {
    width: 300px; max-width: 100%; height: 40px;
    padding: 0 20px; display: inline-flex; align-items: center; justify-content: center;
    text-align: center;
  }
}

/* ══════════════════════════════════════════════════════════════════
   LOGIN v2 — fused two-column card (desktop) / banner+overlap card
   (mobile). Reuses av2-field / av2-oauth-btn / av2-divider /
   av2-submit-btn / av2-form-footer from the signup redesign.
   ══════════════════════════════════════════════════════════════════ */

.lg2-shell { max-width: 1040px; }

/* ---- Desktop: one fused card, illustration | form ---- */
.lg2-card {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--white); border-radius: 32px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(22,138,91,0.12); min-height: 600px;
}
.lg2-illustration { position: relative; background: #EAF3EC; }
.lg2-illustration img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lg2-form-side { position: relative; padding: 56px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.lg2-form-side::before {
  content: ''; position: absolute; top: -16px; right: -16px; width: 150px; height: 150px;
  background: rgba(22,138,91,0.08); border-radius: 0 0 0 9999px; z-index: 0;
}
.lg2-form-side > * { position: relative; z-index: 1; }

.lg2-heading { margin-bottom: 24px; }
.lg2-heading h1 { font-family: var(--font-heading); font-weight: 800; color: var(--auth-ink); font-size: var(--text-2xl); letter-spacing: -0.02em; margin-bottom: 8px; line-height: 1.2; }
.lg2-heading p { color: var(--auth-body); font-size: var(--text-base); line-height: 1.5; }
.lg2-label-desktop { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--auth-ink); margin-bottom: 6px; }

.lg2-row { display: flex; align-items: center; justify-content: space-between; margin: -4px 0 18px; }
.lg2-remember { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--auth-body); cursor: pointer; }
.lg2-remember input { width: 17px; height: 17px; accent-color: var(--auth-green); cursor: pointer; }
.lg2-forgot { font-size: var(--text-sm); font-weight: 600; color: var(--auth-green); }

.lg2-oauth-mobile { display: none; }

/* ---- Mobile: wordmark + banner behind an overlapping card ---- */
.lg2-mobile-top { display: none; }
.lg2-mobile-banner { position: relative; height: 220px; overflow: hidden; background: transparent; }
.lg2-mobile-banner img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  -webkit-mask-image: radial-gradient(ellipse 78% 82% at 50% 42%, #000 45%, transparent 92%);
  mask-image: radial-gradient(ellipse 78% 82% at 50% 42%, #000 45%, transparent 92%);
}
.lg2-mobile-banner::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,40,26,0.12) 0%, rgba(10,40,26,0.05) 35%, rgba(249,249,247,0.55) 78%, rgba(249,249,247,0.95) 100%);
}

.lg2-heading--mobile { display: none; }

@media (max-width: 768px) {
  .lg2-page .av2-shell { padding: 0 16px 48px; }
  .lg2-mobile-top { display: block; }
  .lg2-illustration { display: none; }
  .lg2-card {
    display: block; grid-template-columns: none;
    border-radius: 32px; box-shadow: 0 20px 48px rgba(20,30,25,0.10);
    margin-top: -56px; position: relative; z-index: 2; min-height: 0;
  }
  .lg2-form-side { padding: 32px 24px 28px; }
  .lg2-heading--desktop { display: none; }
  .lg2-heading--mobile { display: block; text-align: center; }
  .lg2-label-desktop { display: none; }
  .lg2-row { margin-top: 4px; justify-content: flex-end; }
  .lg2-remember { display: none; }
  .lg2-oauth-desktop { display: none; }
  .lg2-oauth-mobile { display: flex; justify-content: center; gap: 16px; }
  .lg2-oauth-mobile .av2-oauth-btn {
    flex: none; width: 52px; height: 52px; border-radius: 50%; padding: 0;
  }
}

/* ══════════════════════════════════════════════════════════════════
   LOCAL TASKERS — shared components used on the homepage section
   and the standalone local-taskers.html page.
   ══════════════════════════════════════════════════════════════════ */
.lt-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; background: var(--mint); color: var(--forest);
  font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 16px;
}

.lt-banner {
  border-radius: 32px; text-align: center; overflow: hidden;
  position: relative;
  background-image: url('../images/lt-banner-desktop.jpg');
  background-size: cover;
  background-position: center center;
  padding: 72px 40px;
}
.lt-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,40,10,0.45);
  z-index: 0;
}
.lt-banner > * { position: relative; z-index: 1; }
.lt-banner h2 {
  font-family: var(--font-heading); font-weight: 900; color: var(--white);
  font-size: var(--text-display); letter-spacing: -0.02em; text-transform: uppercase; line-height: 1;
}

.lt-crafts-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 28px 0 36px; }

.lt-tasker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lt-tasker-card { background: var(--white); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease); }
.lt-tasker-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.lt-tasker-photo { height: 148px; position: relative; background-size: cover; background-position: center; }
.lt-tasker-badge-phone {
  position: absolute; top: 10px; left: 10px; background: rgba(11,46,28,0.72); color: var(--white);
  font-size: var(--text-xs); font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); display: flex; align-items: center; gap: 4px;
}
.lt-tasker-body { padding: 16px 18px 18px; }
.lt-tasker-name { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: var(--text-base); color: var(--text-primary); }
.lt-tasker-name svg { color: var(--blue); flex-shrink: 0; }
.lt-tasker-spec { font-size: var(--text-xs); color: var(--text-secondary); margin: 2px 0 8px; }
.lt-tasker-loc { font-size: var(--text-xs); color: var(--text-muted); display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.lt-tasker-rating { font-size: var(--text-xs); color: var(--text-primary); font-weight: 600; margin-bottom: 12px; }
.lt-verified-pill {
  display: inline-flex; align-items: center; gap: 4px; background: var(--mint); color: var(--forest);
  font-size: var(--text-xs); font-weight: 700; padding: 3px 9px; border-radius: var(--radius-pill); margin-bottom: 10px;
}
@media (max-width: 768px) { .lt-tasker-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .lt-tasker-grid { grid-template-columns: 1fr; } }

.lt-quote-box { background: var(--mint); border-radius: 20px; padding: 28px 36px; text-align: center; max-width: 720px; margin: 0 auto; }
.lt-quote-box .lt-quote-text { font-size: var(--text-md); font-weight: 700; color: var(--forest-deep); margin-bottom: 8px; line-height: 1.4; }
.lt-quote-box .lt-quote-sub { font-size: var(--text-sm); color: var(--forest); }

.lt-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lt-split-visual { position: relative; border-radius: 24px; overflow: hidden; min-height: 360px; }
.lt-split-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lt-split-badge {
  position: absolute; left: 20px; bottom: 20px; background: var(--white); border-radius: 14px;
  padding: 12px 16px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 10px; max-width: 260px;
}
.lt-split-badge-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--mint); color: var(--forest); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lt-split ul { margin: 20px 0 28px; }
.lt-split ul li { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: 8px; }
.lt-split ul li svg { color: var(--blue); flex-shrink: 0; }
@media (max-width: 768px) { .lt-split { grid-template-columns: 1fr; gap: 32px; } }

.lt-steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 768px) { .lt-steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .lt-steps-grid { grid-template-columns: 1fr; } }

.lt-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lt-stat-card { background: var(--gray-100); border-radius: 16px; padding: 28px 20px; text-align: center; }
.lt-stat-num { font-size: var(--text-2xl); font-weight: 800; color: var(--text-primary); }
.lt-stat-label { font-size: var(--text-sm); font-weight: 600; margin-top: 4px; color: var(--text-primary); }
.lt-stat-sub { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }
@media (max-width: 768px) { .lt-stat-grid { grid-template-columns: repeat(2, 1fr); } .lt-stat-grid .lt-stat-card:last-child:nth-child(odd) { grid-column: 1 / -1; } }

.lt-benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.lt-benefit-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 26px; }
.lt-benefit-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--mint); color: var(--forest); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.lt-benefit-link { font-size: var(--text-sm); font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; text-decoration: none; }
@media (max-width: 768px) { .lt-benefit-grid { grid-template-columns: 1fr; } }

.lt-cta-row { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* Local Taskers — hero banner variant (local-taskers.html hero only; scoped via
   ".hero .lt-banner" so the small homepage "Local Taskers" teaser card, which
   reuses the base .lt-banner class, is left exactly as it was). Structurally
   this mirrors .hero-frame on the homepage exactly — same badge classes, same
   positions — the illustration, eyebrow copy and caption content are the only
   things that differ. */
.hero .lt-banner {
  min-height: 640px; padding: 0; overflow: hidden;
  background-size: cover; background-position: center;
}
.hero .lt-banner::before { content: none; }

/* ".lt-banner > *" (further up this file) forces position:relative on every
   direct child, which would otherwise silently cancel these badges' own
   position:absolute — restate it here with enough specificity to win. */
.hero .lt-banner .hero-pill-float,
.hero .lt-banner .hero-float-card,
.hero .lt-banner .hero-float-badge2 { position: absolute; }

/* Eyebrow: a normal (non-floating) centered pill, like .hero-eyebrow on the
   homepage but styled as a pill to match the reference art. */
.hero .lt-banner .hero-eyebrow.lt-hero-eyebrow {
  position: absolute; top: 28px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.15); color: var(--white);
  font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 16px; border-radius: var(--radius-pill); z-index: 4;
  border: 1px solid rgba(255,255,255,0.22); white-space: nowrap; margin: 0;
}
.lt-hero-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-live); flex-shrink: 0; }

/* Rating badge — same badge class/position as the homepage's "127 tasks
   posted today" badge (.hero-float-badge2), just different copy + icon. */
.hero .lt-banner .hero-float-badge2.lt-hero-rating svg { color: #FFC94D; flex-shrink: 0; }

/* Caption (subhead + buttons) pinned to the bottom of the rectangle, on the
   image itself — matches the homepage's hero-sub / hero-frame-actions sitting
   inside .hero-frame. A scrim keeps the light text readable over the art. */
.hero .lt-banner .lt-hero-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center;
  padding: 110px 40px 40px;
  background: linear-gradient(to top, rgba(6,26,15,0.92) 0%, rgba(6,26,15,0.72) 45%, rgba(6,26,15,0) 100%);
}
.hero .lt-banner .lt-hero-caption .hero-sub { margin-top: 0; }

@media (max-width: 768px) {
  .hero .lt-banner { min-height: 0; aspect-ratio: 858 / 1834; background-image: url('../images/lt-banner-mobile.jpg'); }
  .hero .lt-banner .hero-eyebrow.lt-hero-eyebrow,
  .hero .lt-banner .hero-float-badge2.lt-hero-rating { display: none; }
  .hero .lt-banner .lt-hero-caption { padding: 70px 24px 28px; }
}

.lt-note-row { display: flex; align-items: flex-start; gap: 10px; font-size: var(--text-sm); color: var(--text-muted); max-width: 480px; }
.lt-note-row svg { flex-shrink: 0; margin-top: 2px; color: var(--blue); }

/* ================================================================
   CUSTOMER DASHBOARD — new top nav (Figma: dark pill nav + icon
   cluster). Scoped to .ds-* classes only, used by dashboard-customer.html.
   Deliberately does NOT touch .dashboard-grid/.dashboard-sidebar/
   .dashboard-nav-item base rules — dashboard-tasker.html still uses
   the old sidebar layout untouched.
   ================================================================ */
/* This dashboard builds its own in-page nav (.ds-topnav) instead of the
   fixed global #navbar, so it doesn't need the space .dashboard-page
   normally reserves for that fixed nav. */
.ds-dashboard-page { padding-top: 0; }
/* ...on desktop. The shared global navbar is loaded on this page too
   (for its mobile treatment, below) so it must stay hidden at desktop
   widths to avoid showing both navs at once. */
body.ds-page #navbar { display: none; }
@media (max-width: 768px) {
  body.ds-page #navbar { display: block; }
}
.ds-main-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 20px; flex-wrap: wrap; }
.ds-main-greeting { font-size: var(--text-xl); margin-bottom: 2px; }
.ds-main-sub { color: var(--text-muted); font-size: var(--text-sm); }
.ds-main-full { width: 100%; }

@media (max-width: 768px) {
  .ds-main-head { margin: 20px 0 16px; }
}

/* This page normally hides the shared global #navbar and uses its own
   .ds-topnav instead (see comment above) — but on mobile it now shows
   the shared navbar (matching every other page site-wide) and hides
   its own .ds-topnav instead, so there's exactly one nav at each width. */
@media (max-width: 768px) {
  body.ds-page .ds-topnav { display: none; }
  body.ds-page.st-logged-in .ds-dashboard-page { padding-top: var(--nav-height); }
}


/* ================================================================
   NAV v5 — Role-aware logged-in nav (Tasker / Customer pill nav)
   ================================================================ */

/* Left cluster: logo + role badge (top row) + tagline (stacked below,
   matches the dashboard nav's ds-nav-brand layout) */
.nav-left {
  display: flex;
  flex-direction: row;   /* always a single row */
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-left-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tagline: hidden logged-out, tiny + muted when logged in, sits inline */
.nav-logo-tagline {
  display: none;
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 400;
  white-space: nowrap;
  letter-spacing: 0;
  line-height: 1;
}
/* Only show when logged in, and only on desktop (mobile stays clean) */
@media (min-width: 769px) {
  .st-logged-in .nav-logo-tagline { display: block; }
}

/* Role badge pill */
.nav-role-badge {
  display: none;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 1.5px solid currentColor;
  white-space: nowrap;
}
.nav-role-badge.nav-tasker  { color: var(--blue); border-color: var(--blue-border); background: var(--blue-light); }
.nav-role-badge.nav-role-customer { color: var(--text-secondary); border-color: var(--border); background: var(--gray-100); }

/* ── Logged-out centre links ── */
.nav-links-loggedout { display: flex; align-items: center; gap: 4px; flex: 1; }
.st-logged-in .nav-links-loggedout { display: none !important; }
.st-logged-in #navActionsLoggedOut { display: none !important; }

/* ── Pill nav (centre, logged-in) ── */
.nav-pill-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  background: var(--charcoal);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 0;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}
.nav-pill::-webkit-scrollbar { display: none; }

.nav-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
  position: relative;
}
.nav-pill-item:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.nav-pill-item.active {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
}
.nav-pill-item svg { flex-shrink: 0; opacity: 0.7; }
.nav-pill-item.active svg { opacity: 1; }

/* Application count badge inside pill */
.nav-pill-count {
  background: var(--blue);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
  line-height: 1.4;
}
.nav-pill-item.active .nav-pill-count {
  background: rgba(255,255,255,0.25);
}

/* ── Right icon bar (logged-in) ── */
.nav-icon-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--t), background var(--t);
  position: relative;
}
.nav-icon-btn:hover { color: var(--text-primary); background: var(--gray-100); }

.nav-icon-btn-rel { position: relative; }

/* Notification dot on bell */
.nav-notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  border: 1.5px solid #fff;
}

/* Avatar */
.nav-avatar-wrap {
  position: relative;
  margin-left: 4px;
}
.nav-avatar-wrap[hidden], .nav-wallet-btn[hidden], .nav-mobile-avatar[hidden] { display: none; }   /* tasker: wallet button replaces the avatar */
.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--charcoal);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.nav-avatar-dot {
  position: absolute;
  bottom: 1px; right: 1px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid #fff;
}

/* ── Show/hide per role ── */
.st-logged-in.role-tasker  .nav-tasker  { display: flex; }
.st-logged-in.role-customer .nav-customer { display: flex; }

/* The icon bar settings/bookings links also update per role */


/* ================================================================
   NAV — logo only. No text under/next to the logo on any page.
   Hides every known subtitle/tagline/page-title element plus any
   other stray child of the left cluster or logo link (except the
   logo image, fallback wordmark and role badges).
   ================================================================ */
#navbar .nav-logo-tagline,
#navbar .nav-mobile-subtitle,
#navbar .nav-subtitle,
#navbar .nav-page-title,
#navbar .nav-page-label,
#navbar #navMobileSubtitle,
#navbar .nav-left > :not(.nav-logo):not(.nav-role-badge):not(.nav-left-top):not(.nav-brand-sub),
#navbar .nav-logo > :not(img):not(.nav-logo-text) {
  display: none !important;
}


/* ================================================================
   LOGGED-OUT DESKTOP NAV — unified spec (replaces nav-landing)
   Desktop only (1044px and up, the narrowest width where the full row fits).
   Scoped to body:not(.st-logged-in) and
   to the logged-out elements, so the logged-in nav and the mobile nav
   (768px and below) are untouched.

   - Container: 1312px wide, centered, 10px padding on all sides;
     60px page margin (no-content area) each side on screens under 1432px wide
   - Logo -16- [Post a Task] -16- Find Tasks -16- Services -16-
     Local Taskers -16- Gift Cards ... flexible space ...
     Sign Up -16- Log in -16- [Become a Tasker]  (pinned right)
   - Manrope 14px for links and buttons (Airtasker-scale: compact, professional)
   - Post a Task: 36px tall, width from content, 24px side padding, --color-primary
   - Become a Tasker: 36px tall, width from content, 24px side padding, --color-primary-soft
   ================================================================ */
@media (min-width: 1044px) {
  body:not(.st-logged-in) { --nav-height: 60px; }

  body:not(.st-logged-in) .nav-inner {
    box-sizing: border-box;
    /* 1312 centred; on narrower screens keep a 60px no-content margin each side,
       and only shrink that margin once the row would no longer fit */
    width: min(var(--nav-max-width), max(var(--nav-min-width), calc(100% - 2 * var(--page-margin))));
    max-width: none;   /* cancels the 1160px cap on the shared .nav-inner */
    height: 60px; margin: 0 auto; padding: var(--space-nav);
    justify-content: flex-start; gap: 0;
  }

  body:not(.st-logged-in) .nav-left { margin-right: var(--space-4); flex: 0 0 auto; }
  body:not(.st-logged-in) .nav-logo img { width: 120px; height: 20px; }

  /* Links row */
  body:not(.st-logged-in) .nav-links-loggedout {
    flex: 0 0 auto; gap: var(--space-4); margin: 0; padding: 0;
  }
  body:not(.st-logged-in) .nav-links-loggedout li { display: flex; }

  /* Text links (shared by the centre links and Sign Up / Log in) */
  body:not(.st-logged-in) .nav-links-loggedout .nav-link,
  body:not(.st-logged-in) #navActionsLoggedOut .btn-text {
    display: inline-flex; align-items: center;
    height: 40px; padding: 0; margin: 0; border-radius: var(--radius-form);
    background: transparent; border: 0; box-shadow: none;
    font-family: var(--font-heading);
    font-size: var(--text-base-sm); font-weight: 500; line-height: 1; letter-spacing: 0;
    color: var(--color-text-nav-link); white-space: nowrap; position: relative;
  }
  body:not(.st-logged-in) .nav-links-loggedout a.nav-link:hover,
  body:not(.st-logged-in) #navActionsLoggedOut .btn-text:hover {
    background: transparent; color: var(--color-primary);
  }
  /* Hover bar above the centre links and Sign Up / Log in (Airtasker-style): a bar
     the width of the link text sits above the link and grows in from the centre. */
  body:not(.st-logged-in) .nav-links-loggedout a.nav-link::before,
  body:not(.st-logged-in) #navActionsLoggedOut .btn-text::before {
    content: ''; position: absolute; left: 0; right: 0;
    top: calc(-1 * var(--space-2)); height: var(--nav-hover-bar);
    background: var(--color-primary);
    transform: scaleX(0); transform-origin: center;
    transition: transform var(--t) var(--ease);
    pointer-events: none;
  }
  body:not(.st-logged-in) .nav-links-loggedout a.nav-link:hover::before,
  body:not(.st-logged-in) .nav-links-loggedout a.nav-link:focus-visible::before,
  body:not(.st-logged-in) #navActionsLoggedOut .btn-text:hover::before,
  body:not(.st-logged-in) #navActionsLoggedOut .btn-text:focus-visible::before {
    transform: scaleX(1);
  }
  /* Gift Cards: not clickable yet, but shown at full strength like the design */
  body:not(.st-logged-in) .nav-links-loggedout .nav-link-disabled { opacity: 1; cursor: default; }
  /* Current page (Gift Cards): green text and the bar stays visible, like the hover state.
     Scoped by a body class so no other page is affected. */
  body.page-gift-cards:not(.st-logged-in) .nav-links-loggedout a.nav-link[href="gift-cards.html"] {
    color: var(--color-primary);
  }
  body.page-gift-cards:not(.st-logged-in) .nav-links-loggedout a.nav-link[href="gift-cards.html"]::before {
    transform: scaleX(1);
  }

  /* Right-hand group: pinned right, 16px between items.
     Whatever space is left sits between Gift Cards and Sign Up. */
  body:not(.st-logged-in) #navActionsLoggedOut {
    flex: 0 0 auto; margin-left: auto; gap: var(--space-4);
  }

  /* Buttons */
  body:not(.st-logged-in) .nav-links-loggedout .nav-post-btn,
  body:not(.st-logged-in) #navActionsLoggedOut .nav-become-btn {
    box-sizing: border-box; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    height: 36px; margin: 0; border: 0; border-radius: var(--radius-pill); box-shadow: none;
    font-family: var(--font-heading);
    font-size: var(--text-base-sm); line-height: 1; letter-spacing: 0; white-space: nowrap;
  }
  body:not(.st-logged-in) .nav-links-loggedout .nav-post-btn {
    padding: 0 var(--space-5);
    background: var(--color-primary); color: var(--color-text-on-primary); font-weight: 600;
  }
  body:not(.st-logged-in) .nav-links-loggedout .nav-post-btn:hover { background: var(--color-primary-hover); box-shadow: none; }
  body:not(.st-logged-in) #navActionsLoggedOut .nav-become-btn {
    padding: 0 var(--space-5);
    background: var(--color-primary-soft); color: var(--color-text-nav); font-weight: 500;
  }
  body:not(.st-logged-in) #navActionsLoggedOut .nav-become-btn:hover { background: var(--color-primary-soft-hover); border: 0; }
}


/* ================================================================
   LOGGED-IN NAV — desktop (769px and up)
   One look for the shared #navbar and the customer dashboard's own
   .ds-topnav. Customer and tasker share it; only the labels differ.
   Mobile (768px and below) is not touched: it keeps the hamburger
   menu and the bottom nav.
   ================================================================ */
.nav-brand-sub { display: none; }

/* Mobile account block (bell + avatar): auth.js used to force it visible
   at every width, which put it next to the desktop icon bar. Mobile only now. */
@media (max-width: 768px) {
  body.st-logged-in #navMobileAccount { display: flex; }
}

@media (min-width: 769px) {
  /* Bar for the customer dashboard: fixed to the top with the same glass
     background and scroll border as the shared #navbar. */
  .ds-topnav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: var(--color-nav-bg);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  }
  .ds-topnav.scrolled { border-bottom-color: var(--color-border); box-shadow: var(--shadow-sm); }
  .ds-topnav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--nav-height); margin: 0 auto;
  }
  /* The bar is out of the page flow, so push the page content below it */
  body.ds-page .ds-dashboard-page { padding-top: var(--nav-height); }

  :is(body.st-logged-in #navbar .nav-inner, .ds-topnav-inner) {
    max-width: var(--nav-max-width);
    padding: 0 var(--space-5);
    gap: var(--space-5);
  }

  /* Left: logo + role badge on one row, tagline under the logo */
  :is(body.st-logged-in #navbar, .ds-topnav) .nav-left {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    column-gap: var(--space-2);
    row-gap: var(--space-1);
  }
  :is(body.st-logged-in #navbar, .ds-topnav) .nav-logo { grid-column: 1; grid-row: 1; }
  :is(body.st-logged-in #navbar, .ds-topnav) .nav-role-badge {
    grid-column: 2; grid-row: 1;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--color-nav-badge-bg);
    color: var(--color-nav-badge-text);
    font-family: var(--font-heading);
    font-size: var(--text-2xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.4;
  }
  :is(body.st-logged-in #navbar, .ds-topnav) .nav-role-badge.is-pro { background: var(--color-nav-badge-pro-bg); }
  .ds-topnav .nav-role-badge { display: flex; }
  :is(body.st-logged-in #navbar, .ds-topnav) .nav-brand-sub {
    display: block;
    grid-column: 1 / -1; grid-row: 2;
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 500;
    line-height: 1;
    color: var(--color-text-muted);
    white-space: nowrap;
  }

  /* Centre: dark pill */
  :is(body.st-logged-in #navbar, .ds-topnav) .nav-pill-wrap {
    flex: 1; min-width: 0;
    display: flex; justify-content: center;
  }
  :is(body.st-logged-in #navbar, .ds-topnav) .nav-pill {
    display: inline-flex; align-items: center;
    gap: var(--space-1);
    max-width: 100%;
    padding: var(--space-1) var(--space-2);
    background: var(--color-nav-pill);
    border-radius: var(--radius-pill);
    overflow-x: auto;
    scrollbar-width: none;
  }
  :is(body.st-logged-in #navbar, .ds-topnav) .nav-pill::-webkit-scrollbar { display: none; }

  :is(body.st-logged-in #navbar, .ds-topnav) .nav-pill-item {
    display: inline-flex; align-items: center; justify-content: center;
    gap: var(--space-2);
    width: auto; margin: 0;
    padding: var(--space-2) var(--space-4);
    border: 0; border-radius: var(--radius-pill);
    background: none;
    color: var(--color-nav-pill-text);
    font-family: var(--font-heading);
    font-size: var(--text-base-sm);
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    text-transform: none;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
  }
  :is(body.st-logged-in #navbar, .ds-topnav) .nav-pill-item:hover {
    background: var(--color-nav-pill-hover);
    color: var(--color-text-on-primary);
  }
  :is(body.st-logged-in #navbar, .ds-topnav) .nav-pill-item.active {
    background: var(--color-nav-pill-active);
    color: var(--color-text-on-primary);
    font-weight: 500;
  }
  :is(body.st-logged-in #navbar, .ds-topnav) .nav-pill-item svg { opacity: 1; flex-shrink: 0; }

  /* Applications (3): the count reads as plain text in brackets */
  :is(body.st-logged-in #navbar, .ds-topnav) .nav-pill-item .nav-pill-count,
  :is(body.st-logged-in #navbar, .ds-topnav) .nav-pill-item.active .nav-pill-count {
    min-width: 0; margin-left: calc(var(--space-1) * -1);
    padding: 0;
    background: none;
    border-radius: var(--radius-form);
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
  }
  .nav-pill-count::before { content: "("; }
  .nav-pill-count::after  { content: ")"; }
  .nav-pill-count[hidden] { display: none; }

  /* Right: round icon buttons + avatar */
  :is(body.st-logged-in #navbar, .ds-topnav) .nav-icon-bar {
    display: flex; align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
  }
  :is(body.st-logged-in #navbar, .ds-topnav) .nav-icon-btn {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: var(--nav-icon-size); height: var(--nav-icon-size);
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-bg);
    color: var(--color-text-secondary);
    text-decoration: none;
    cursor: pointer;
  }
  :is(body.st-logged-in #navbar, .ds-topnav) .nav-icon-btn:hover {
    background: var(--color-bg-subtle);
    border-color: var(--color-border-strong);
    color: var(--color-text);
  }
  :is(body.st-logged-in #navbar, .ds-topnav) .nav-icon-btn[aria-expanded="true"] {
    background: var(--color-bg-muted);
    color: var(--color-text);
  }
  :is(body.st-logged-in #navbar, .ds-topnav) .nav-icon-dot {
    position: absolute;
    top: var(--space-1); right: var(--space-1);
    width: var(--nav-dot-size); height: var(--nav-dot-size);
    min-width: 0;
    padding: 0;
    border: 1.5px solid var(--color-bg);
    border-radius: 50%;
    background: var(--color-nav-dot);
    font-size: 0;      /* dashboard scripts write a count into this; the design shows a dot only */
    line-height: 0;
    overflow: hidden;
  }
  :is(body.st-logged-in #navbar, .ds-topnav) .nav-icon-dot[hidden] { display: none; }
  :is(body.st-logged-in #navbar, .ds-topnav) .nav-wallet-btn[hidden] { display: none; }   /* needs this weight to beat .nav-icon-btn display:flex */

  :is(body.st-logged-in #navbar, .ds-topnav) .nav-avatar-wrap { position: relative; margin-left: var(--space-1); }
  :is(body.st-logged-in #navbar, .ds-topnav) .nav-avatar {
    display: flex; align-items: center; justify-content: center;
    width: var(--nav-avatar-size); height: var(--nav-avatar-size);
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--color-nav-avatar);
    color: var(--color-text-on-primary);
    font-family: var(--font-heading);
    font-size: var(--text-base-sm);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    overflow: hidden;
    cursor: pointer;
  }
  :is(body.st-logged-in #navbar, .ds-topnav) .nav-avatar-dot {
    position: absolute; right: 0; bottom: 0;
    width: calc(var(--nav-dot-size) + var(--space-1)); height: calc(var(--nav-dot-size) + var(--space-1));
    border: 2px solid var(--color-bg);
    border-radius: 50%;
    background: var(--color-nav-dot);
  }

  /* Settings dropdown */
  :is(body.st-logged-in #navbar, .ds-topnav) .nav-menu-wrap { position: relative; }
  :is(body.st-logged-in #navbar, .ds-topnav) .nav-menu {
    position: absolute; top: calc(100% + var(--space-2)); right: 0;
    z-index: 1100;
    display: flex; flex-direction: column; gap: var(--space-1);
    min-width: var(--nav-menu-width);
    padding: var(--space-2);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
  }
  :is(body.st-logged-in #navbar, .ds-topnav) .nav-menu[hidden] { display: none; }
  :is(body.st-logged-in #navbar, .ds-topnav) .nav-menu-item {
    display: flex; align-items: center;
    width: 100%;
    padding: var(--space-2) var(--space-3);
    border: 0; border-radius: var(--radius-md);
    background: none;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: var(--text-base-sm);
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }
  :is(body.st-logged-in #navbar, .ds-topnav) .nav-menu-item[hidden] { display: none; }
  :is(body.st-logged-in #navbar, .ds-topnav) .nav-menu-item:hover { background: var(--color-bg-muted); }
  :is(body.st-logged-in #navbar, .ds-topnav) .nav-menu-item-danger { color: var(--color-danger); }
  :is(body.st-logged-in #navbar, .ds-topnav) .nav-menu-item-danger:hover { background: var(--color-danger-soft); }

  /* Keyboard focus */
  :is(body.st-logged-in #navbar, .ds-topnav) :is(.nav-pill-item, .nav-icon-btn, .nav-avatar, .nav-menu-item):focus-visible {
    outline: 2px solid var(--color-nav-dot);
    outline-offset: 2px;
  }
}


/* ================================================================
   TASKER DASHBOARD — OVERVIEW (upper section)
   dashboard-tasker.html, #panel-mypage. Markup in the page, data in
   js/tasker-overview.js. Colours come from the --to-* tokens in
   css/tokens.css (sampled from the Overview design screenshot).

   The old left sidebar and "Tasker Dashboard" header are hidden on
   this page: every sidebar link now lives in the nav (pills, icon
   bar and the Settings menu). The markup stays in the page because
   existing scripts still write to its badges.
   ================================================================ */
body.tdash-page .dashboard-sidebar,
body.tdash-page .dashboard-header { display: none; }
body.tdash-page .dashboard-grid { display: block; }
body.tdash-page .dashboard-body .container {
  max-width: calc(var(--to-content-width) + 2 * var(--space-5));
}
/* Without the sidebar the other panels would stretch full width: keep them readable */
body.tdash-page .dashboard-grid > main > .dashboard-panel:not(#panel-mypage) {
  max-width: 880px;
  margin-inline: auto;
}
body.tdash-overview .dashboard-page { background: var(--to-page-bg); }

.tov { padding-bottom: var(--space-6); }
.tov [hidden] { display: none; }

/* ── Header ── */
.tov-head {
  display: flex; align-items: center; gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.tov-icon-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--to-card-border); border-radius: 50%;
  background: var(--color-bg); color: var(--color-text);
  cursor: pointer;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.tov-icon-btn:hover { background: var(--color-bg-muted); border-color: var(--color-border-strong); }
.tov-head-text { flex: 1; min-width: 0; }
.tov-title {
  font-size: var(--text-2xl); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.03em;
  color: var(--color-text);
}
.tov-sub { margin-top: var(--space-1); font-size: var(--text-base-sm); color: var(--color-text-secondary); }
.tov-head-actions { display: flex; align-items: center; gap: var(--space-4); flex-shrink: 0; }
.tov-browse { gap: var(--space-2); box-shadow: var(--shadow-primary-md); }

/* ── Stat cards ── */
.tov-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.tov-card {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 184px;
  padding: var(--space-5);
  background: var(--color-bg);
  border: 1px solid var(--to-card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--to-card-shadow);
}
.tov-card-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.tov-label {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
  color: var(--to-muted);
}
.tov-bubble,
.tov-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--to-green-soft); color: var(--to-green);
  font-size: var(--text-xs); font-weight: 800;
}
.tov-arrow { background: none; color: var(--to-muted); text-decoration: none; }
.tov-arrow:hover { color: var(--to-green); }
.tov-secured {
  padding: 1px var(--space-2);
  border: 1px solid var(--to-green-soft); border-radius: var(--radius-pill);
  background: var(--to-green-soft); color: var(--to-green);
  font-size: var(--text-2xs); letter-spacing: 0.04em;
}
.tov-value {
  margin-top: var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-2xl); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.03em;
  color: var(--color-text);
}
.tov-value-unit { font-size: inherit; font-weight: inherit; }
.tov-trend,
.tov-sub-line {
  margin-top: var(--space-1);
  display: flex; align-items: center; gap: var(--space-1); flex-wrap: wrap;
  font-size: var(--text-sm); color: var(--to-muted);
}
.tov-trend-up, .tov-trend-down {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-weight: 600;
}
.tov-trend-up { color: var(--to-green); }
.tov-trend-down { color: var(--color-danger); }
.tov-muted { color: var(--to-muted); }
.tov-sub-line strong { color: var(--color-text); font-weight: 600; }

.tov-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  margin-top: auto; padding-top: var(--space-3);
  border-top: 1px solid var(--to-card-border);
  font-size: var(--text-sm); color: var(--color-text-secondary);
}
.tov-card-foot-end { justify-content: flex-end; border-top: 1px solid var(--to-card-border); }
.tov-foot-text { display: inline-flex; align-items: center; gap: var(--space-2); }
.tov-link-btn {
  padding: 0; border: 0; background: none;
  font: inherit; font-weight: 700; color: var(--color-text);
  cursor: pointer;
}
.tov-link-btn:hover { color: var(--color-primary); text-decoration: underline; }
.tov-payout {
  padding: var(--space-2) var(--space-5);
  border: 0; border-radius: var(--radius-pill);
  background: var(--to-ink-dark); color: var(--to-dark-text);
  font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 700;
  cursor: pointer;
  transition: background var(--t) var(--ease);
}
.tov-payout:hover { background: var(--color-forest-800); }

/* Active tasks: 6-month bars */
.tov-bars {
  position: absolute; right: var(--space-5); bottom: var(--space-4);
  display: flex; align-items: stretch; gap: var(--space-2);
  width: 52%; height: 58px;
}
.tov-bar-col { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-1); }
.tov-bar { display: block; width: 100%; border-radius: var(--radius-sm) var(--radius-sm) var(--radius-xs) var(--radius-xs); }
.tov-bar-1 { background: var(--to-bar-1); }
.tov-bar-2 { background: var(--to-bar-2); }
.tov-bar-3 { background: var(--to-bar-3); }
.tov-bar-4 { background: var(--to-bar-4); }
.tov-bar-5 { background: var(--to-bar-5); }
.tov-bar-6 { background: var(--to-bar-6); }
.tov-bar-label { flex-shrink: 0; text-align: center; font-size: var(--text-2xs); color: var(--to-muted); }

/* Success rate: sparkline */
.tov-spark {
  position: absolute; right: var(--space-5); bottom: var(--space-4);
  width: 230px; height: 56px; max-width: calc(100% - 2 * var(--space-5));
}
.tov-spark.is-empty { display: none; }
.tov-spark-line { fill: none; stroke: var(--to-green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.tov-spark-dot { fill: var(--color-bg); stroke: var(--to-green); stroke-width: 1.5; }
.tov-spark-dot.is-last { fill: var(--to-green); }

/* ── Filters ── */
.tov-filters {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.tov-filters.is-collapsed { display: none; }
.tov-filter-gap { flex: 1 1 var(--space-4); }
.tov-chip,
.tov-select,
.tov-month,
.tov-search {
  display: inline-flex; align-items: center; gap: var(--space-2);
  height: 40px;
  border: 1px solid var(--to-card-border); border-radius: var(--radius-pill);
  background: var(--color-bg);
  font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 600;
  color: var(--color-text);
}
.tov-chip { padding: 0 var(--space-4); cursor: pointer; }
.tov-chip:hover { border-color: var(--color-border-strong); }
.tov-chip-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 var(--space-1);
  border-radius: var(--radius-pill);
  background: var(--color-primary); color: var(--color-text-on-primary);
  font-size: var(--text-2xs); font-weight: 700;
}
.tov-select { position: relative; padding: 0; }
.tov-select select {
  height: 100%; padding: 0 36px 0 var(--space-4);
  border: 0; border-radius: var(--radius-pill); background: none;
  font: inherit; color: inherit;
  appearance: none; -webkit-appearance: none; cursor: pointer;
}
.tov-select svg { position: absolute; right: var(--space-3); pointer-events: none; color: var(--to-muted); }
.tov-month { padding: 0 var(--space-3) 0 var(--space-4); }
.tov-month input {
  height: 100%; border: 0; background: none;
  font: inherit; font-weight: 500; color: var(--color-text-secondary);
}
.tov-search { padding: 0 var(--space-4); width: 280px; max-width: 100%; color: var(--to-muted); }
.tov-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none;
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; color: var(--color-text);
}
.tov-search input::placeholder { color: var(--color-text-muted); }
.tov-chip:focus-visible, .tov-select:focus-within, .tov-month:focus-within, .tov-search:focus-within {
  outline: 2px solid var(--color-primary); outline-offset: 2px;
}

/* ── Active Assignments (dark panel with the tab notch) ── */
.tov-assign {
  position: relative;
  padding: 0 var(--space-4) var(--space-4);
  background: var(--to-dark); color: var(--to-dark-text);
  border-radius: var(--radius-to-panel);
}
.tov-assign-head {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: 84px; padding: 0 var(--space-4);
  border-bottom: 1px solid var(--to-dark-border);
  margin-bottom: var(--space-4);
}
.tov-assign-title { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.tov-assign-title h2 {
  font-size: var(--text-xl); font-weight: 800; letter-spacing: -0.02em;
  color: var(--to-dark-text);
}
.tov-live {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--to-dark-border); border-radius: var(--radius-pill);
  background: var(--to-dark-raised); color: var(--to-dark-accent);
  font-size: var(--text-xs); font-weight: 600;
}
.tov-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--to-dark-accent); }
.tov-live.is-off { color: var(--to-dark-muted); }
.tov-live.is-off i { background: var(--to-dark-muted); }

/* The notch: a page-coloured cut-out in the top edge that holds the tabs.
   The two ::before / ::after wings round the dark panel's corners where
   it meets the cut-out. */
.tov-notch {
  position: relative; align-self: flex-start; margin-inline: auto;
  padding: var(--space-3) var(--space-5) var(--space-3);
  background: var(--to-page-bg);
  border-radius: 0 0 var(--radius-to-notch) var(--radius-to-notch);
}
.tov-notch::before,
.tov-notch::after {
  content: ''; position: absolute; top: 0;
  width: var(--radius-to-notch); height: var(--radius-to-notch);
}
.tov-notch::before {
  right: 100%;
  background: radial-gradient(circle at 0 100%, transparent calc(var(--radius-to-notch) - 0.5px), var(--to-page-bg) var(--radius-to-notch));
}
.tov-notch::after {
  left: 100%;
  background: radial-gradient(circle at 100% 100%, transparent calc(var(--radius-to-notch) - 0.5px), var(--to-page-bg) var(--radius-to-notch));
}
.tov-tabs {
  display: flex; align-items: center; gap: var(--space-1);
  padding: var(--space-1);
  border: 1px solid var(--to-card-border); border-radius: var(--radius-pill);
  background: var(--color-bg);
}
.tov-tab {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 0; border-radius: var(--radius-pill); background: none;
  font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 600;
  color: var(--color-text); white-space: nowrap;
  cursor: pointer;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.tov-tab:hover { background: var(--color-bg-muted); }
.tov-tab.is-active { background: var(--to-dark-action); color: var(--to-dark-text); }
.tov-tab-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 var(--space-1);
  border-radius: var(--radius-pill);
  background: var(--to-ink-dark); color: var(--to-dark-text);
  font-size: var(--text-2xs); font-weight: 700;
}
.tov-tab.is-active .tov-tab-count { background: var(--to-dark); }
.tov-tab:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 1px; }

.tov-assign-tools { display: flex; align-items: center; gap: var(--space-2); }
.tov-dark-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: 0; border-radius: 50%; background: none;
  color: var(--to-dark-muted); cursor: pointer;
}
.tov-dark-icon:hover { background: var(--to-dark-raised); color: var(--to-dark-text); }
.tov-dark-icon:focus-visible { outline: 2px solid var(--to-dark-accent); outline-offset: 1px; }
.tov-more { position: relative; }
.tov-more-menu {
  position: absolute; right: 0; top: calc(100% + var(--space-1)); z-index: 5;
  display: flex; flex-direction: column; min-width: 176px; padding: var(--space-1);
  background: var(--to-dark-raised); border: 1px solid var(--to-dark-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.tov-more-menu[hidden] { display: none; }
.tov-more-menu button,
.tov-more-menu a {
  padding: var(--space-2) var(--space-3);
  border: 0; border-radius: var(--radius-md); background: none;
  font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 600;
  color: var(--to-dark-text); text-align: left; text-decoration: none; cursor: pointer;
}
.tov-more-menu button:hover,
.tov-more-menu a:hover { background: var(--to-dark-chip); }

.tov-assign-body {
  display: grid; grid-template-columns: 350px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: stretch;
}
.tov-assign.is-expanded .tov-assign-body { grid-template-columns: 420px minmax(0, 1fr); }

/* List */
.tov-list {
  display: flex; flex-direction: column; gap: var(--space-3);
  max-height: 540px; overflow-y: auto; padding: 2px;
  scrollbar-width: thin; scrollbar-color: var(--to-dark-border) transparent;
}
.tov-assign.is-expanded .tov-list { max-height: none; }
.tov-item {
  display: flex; flex-direction: column; gap: var(--space-3);
  width: 100%; padding: var(--space-4);
  border: 1px solid var(--to-dark-border); border-radius: var(--radius-2xl);
  background: var(--to-dark-raised); color: inherit;
  text-align: left; cursor: pointer;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.tov-item:hover { border-color: var(--to-dark-muted); }
.tov-item.is-selected { border: 2px solid var(--to-dark-selected); padding: calc(var(--space-4) - 1px); }
.tov-item:focus-visible { outline: 2px solid var(--to-dark-accent); outline-offset: 2px; }
.tov-item-top { display: flex; align-items: flex-start; gap: var(--space-3); }
.tov-avatar {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--to-dark-chip); color: var(--to-dark-text);
  font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 700;
}
.tov-avatar-lg { background: var(--to-dark-action); }
.tov-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.tov-item-meta { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.tov-item-id { font-size: var(--text-xs); font-weight: 700; color: var(--to-dark-text); }
.tov-tag {
  padding: 1px var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--to-dark-chip); color: var(--to-dark-accent);
  font-size: var(--text-2xs); font-weight: 600; text-transform: capitalize;
}
.tov-item-title {
  font-family: var(--font-heading); font-size: var(--text-base-sm); font-weight: 700;
  color: var(--to-dark-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tov-status {
  flex-shrink: 0;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--text-2xs); font-weight: 700; text-align: center; line-height: 1.2;
}
.tov-status-progress { background: var(--to-dark-text); color: var(--to-ink-dark); }
.tov-status-done     { background: var(--to-dark-chip); color: var(--to-dark-accent); }
.tov-status-warn     { background: var(--to-dark-warn-soft); color: var(--to-dark-warn); }
.tov-status-muted    { background: var(--to-dark-chip); color: var(--to-dark-muted); }
.tov-item-foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding-top: var(--space-3); border-top: 1px solid var(--to-dark-border);
}
.tov-due { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--text-xs); color: var(--to-dark-muted); }
.tov-item-amount { font-family: var(--font-heading); font-size: var(--text-base-sm); font-weight: 800; color: var(--to-dark-text); }

.tov-empty {
  padding: var(--space-7) var(--space-4); text-align: center;
  font-size: var(--text-base-sm); color: var(--to-dark-muted);
}
.tov-empty .tov-link-btn { color: var(--to-dark-accent); }
.tov-empty-detail { margin: auto; }

/* Detail */
.tov-detail {
  display: flex; flex-direction: column; gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--to-dark-border); border-radius: var(--radius-2xl);
  background: var(--to-dark-raised);
}
.tov-detail-grid {
  display: grid; grid-template-columns: 1.1fr 1fr 1.1fr; gap: var(--space-5);
  padding-bottom: var(--space-4); border-bottom: 1px solid var(--to-dark-border);
}
.tov-dcol { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.tov-dlabel {
  font-size: var(--text-2xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--to-dark-muted);
}
.tov-did {
  display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap;
  font-family: var(--font-heading); font-size: var(--text-xl); font-weight: 800; letter-spacing: -0.02em;
}
.tov-did .tov-status { font-size: var(--text-2xs); }
.tov-did .tov-status-progress { background: var(--to-dark-chip); color: var(--to-dark-accent); }
.tov-dtitle { font-size: var(--text-sm); color: var(--to-dark-muted); }
.tov-person { display: flex; align-items: center; gap: var(--space-3); }
.tov-person-name { font-family: var(--font-heading); font-size: var(--text-base-sm); font-weight: 700; overflow-wrap: anywhere; }
.tov-loc { display: flex; align-items: flex-start; gap: var(--space-2); color: var(--to-dark-accent); }
.tov-loc > span { display: flex; flex-direction: column; gap: 2px; color: var(--to-dark-text); font-size: var(--text-sm); }
.tov-loc strong { font-family: var(--font-heading); font-weight: 700; }
.tov-loc-sub { font-size: var(--text-xs); color: var(--to-dark-muted); }

/* Job details from the booking pop-up, inside the dark assignment panels (js/booking-job.js draws the .bk-job markup) */
.tov-job { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.tov-job .bk-job-desc, .tov-job .bk-job-address strong { color: var(--to-dark-text); }
.tov-job .bk-job-address { color: var(--to-dark-muted); }
.tov-job .bk-job-chip { background: var(--to-dark-chip); color: var(--to-dark-text); }
.tov-job .bk-job-chip.is-urgent { color: var(--to-dark-accent); }

.tov-addons { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-3); }
.tov-addon {
  display: flex; flex-direction: column; gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--to-dark-border); border-radius: var(--radius-lg);
  background: var(--to-dark);
}
.tov-addon strong { font-family: var(--font-heading); font-size: var(--text-base-sm); }
.tov-addon span { font-size: var(--text-xs); color: var(--to-dark-muted); }

.tov-escrow-note {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--to-dark-border); border-radius: var(--radius-lg);
  background: var(--to-dark);
}
.tov-escrow-note p { font-size: var(--text-xs); line-height: 1.5; color: var(--to-dark-muted); }
.tov-escrow-note strong { color: var(--to-dark-text); }
.tov-note-icon {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--to-dark-chip); color: var(--to-dark-accent);
}

.tov-detail-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap;
  margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--to-dark-border);
}
.tov-totals { display: grid; grid-template-columns: repeat(2, auto); gap: var(--space-3) var(--space-6); margin: 0; }
.tov-totals dt { font-size: var(--text-2xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--to-dark-muted); }
.tov-totals dd { margin: var(--space-1) 0 0; font-family: var(--font-heading); font-size: var(--text-lg); font-weight: 800; color: var(--to-dark-text); }
.tov-totals .tov-fee { color: var(--to-dark-accent); }
.tov-totals small { font-size: var(--text-xs); font-weight: 600; }

.tov-actions { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.tov-round {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--to-dark-border); background: var(--to-dark);
  color: var(--to-dark-text); cursor: pointer;
}
.tov-round:hover:not(:disabled) { background: var(--to-dark-chip); }
.tov-btn-light,
.tov-btn-main {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-width: 124px; height: 52px; padding: 0 var(--space-4);
  border: 0; border-radius: var(--radius-pill);
  font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 700; line-height: 1.15; text-align: left;
  cursor: pointer;
  transition: background var(--t) var(--ease), opacity var(--t) var(--ease);
}
.tov-btn-light { background: var(--to-dark-text); color: var(--to-ink-dark); }
.tov-btn-light:hover:not(:disabled) { background: var(--color-bg-muted); }
.tov-btn-main { background: var(--to-dark-action); color: var(--to-dark-text); box-shadow: var(--shadow-primary-md); }
.tov-btn-main:hover:not(:disabled) { background: var(--to-dark-action-hover); }
.tov-round:disabled, .tov-btn-light:disabled, .tov-btn-main:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.tov-round:focus-visible, .tov-btn-light:focus-visible, .tov-btn-main:focus-visible { outline: 2px solid var(--to-dark-accent); outline-offset: 2px; }

/* ── Overview: tablet (below the full desktop width) ── */
@media (max-width: 1043px) {
  .tov-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tov-assign-head { flex-wrap: wrap; padding-top: var(--space-4); padding-bottom: var(--space-4); }
  /* No room for the cut-out beside the title: tabs sit in the header instead */
  .tov-notch { align-self: auto; margin-inline: 0; order: 3; width: 100%; padding: 0; background: none; border-radius: var(--radius-form); }
  .tov-notch::before, .tov-notch::after { display: none; }
  .tov-tabs { overflow-x: auto; max-width: 100%; }
  .tov-assign-tools { margin-left: auto; }
  .tov-assign-body { grid-template-columns: minmax(0, 1fr); }
  .tov-list { max-height: 420px; }
  .tov-search { flex: 1 1 220px; width: auto; }
}

/* ── Overview: mobile ── */
@media (max-width: 768px) {
  .tov-head { flex-wrap: wrap; }
  .tov-head-actions { width: 100%; justify-content: space-between; }
  .tov-browse { flex: 1; justify-content: center; }
  .tov-title { font-size: var(--text-xl); }
  .tov-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .tov-assign { border-radius: var(--radius-2xl); padding-inline: var(--space-3); }
  .tov-filter-gap { display: none; }
  .tov-detail-foot { flex-direction: column; align-items: stretch; }
  .tov-actions { justify-content: flex-end; }
}
@media (max-width: 480px) {
  .tov-stats { grid-template-columns: minmax(0, 1fr); }
  .tov-select, .tov-month { flex: 1 1 auto; }
}


/* ================================================================
   TASKER OVERVIEW — mobile layout (768px and below)
   Markup: #tom in dashboard-tasker.html. Colours: --tm-* tokens.
   The desktop layout (#tov) is hidden here, and #tom is hidden above.
   The global mobile header and bottom nav are unchanged.
   ================================================================ */
.tom { display: none; }

@media (max-width: 768px) {
  .tov { display: none; }
  .tom { display: block; padding-bottom: var(--space-5); }
  .tom [hidden] { display: none; }

  /* Stat cards: two across */
  .tom-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--space-5); }
  .tom-card {
    position: relative; display: flex; flex-direction: column; min-height: 168px;
    padding: var(--space-4);
    background: var(--color-bg); border: 1px solid var(--to-card-border);
    border-radius: var(--radius-xl); box-shadow: var(--to-card-shadow);
    min-width: 0;
  }
  .tom-card-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); color: var(--tm-panel); }
  .tom-label { font-size: var(--text-sm); color: var(--to-muted); }
  .tom-value {
    margin-top: var(--space-3);
    font-family: var(--font-heading); font-size: var(--text-xl); font-weight: 800;
    line-height: 1.15; letter-spacing: -0.03em; color: var(--color-text);
  }
  #tomActive { font-size: var(--text-lg); white-space: nowrap; }
  .tom-trend { margin-top: var(--space-1); font-size: var(--text-xs); color: var(--to-muted); }
  .tom-up, .tom-down { display: inline-flex; align-items: center; gap: var(--space-1); font-weight: 700; }
  .tom-up { color: var(--to-green); }
  .tom-down { color: var(--color-danger); }
  .tom-muted { color: var(--to-muted); }
  .tom-card-foot {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2);
    margin-top: auto; padding-top: var(--space-3);
  }
  .tom-card-foot-end { justify-content: flex-end; }
  .tom-foot-label { display: block; font-size: var(--text-2xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--to-muted); }
  .tom-card-foot strong { font-family: var(--font-heading); font-size: var(--text-base-sm); font-weight: 800; color: var(--color-text); }
  .tom-btn-dark, .tom-btn-soft {
    padding: var(--space-2) var(--space-4); border: 0; border-radius: var(--radius-pill);
    font-family: var(--font-heading); font-size: var(--text-xs); font-weight: 700; cursor: pointer;
  }
  .tom-btn-dark { background: var(--tm-panel); color: var(--to-dark-text); }
  .tom-btn-soft { background: var(--color-bg-muted); color: var(--color-text); }

  .tom-days {
    position: absolute; right: var(--space-4); bottom: var(--space-3);
    display: flex; align-items: stretch; gap: var(--space-2); width: 62%; height: 54px;
  }
  .tom-day { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: var(--space-1); }
  .tom-day-bar { width: 8px; max-width: 100%; border-radius: var(--radius-pill); background: var(--to-bar-2); }
  .tom-day-bar.is-today { background: var(--tm-panel); }
  .tom-day-label { font-size: var(--text-2xs); color: var(--to-muted); }
  .tom-spark { width: 100%; height: 44px; margin-top: auto; }
  .tom-spark.is-empty { display: none; }
  .tom-spark .tov-spark-line { stroke-width: 3; }

  /* Search + category chips */
  .tom-search {
    display: flex; align-items: center; gap: var(--space-3);
    height: 52px; margin-top: var(--space-5); padding: 0 var(--space-4);
    background: var(--color-bg); border: 1px solid var(--to-card-border); border-radius: var(--radius-pill);
    color: var(--to-muted);
  }
  .tom-search input {
    flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none;
    font-family: var(--font-body); font-size: var(--text-base-sm); color: var(--color-text);
  }
  .tom-search input::placeholder { color: var(--color-text-muted); }
  .tom-search:focus-within { outline: 2px solid var(--color-primary); outline-offset: 2px; }
  .tom-cats { display: flex; gap: var(--space-2); margin-top: var(--space-3); overflow-x: auto; padding-bottom: var(--space-1); scrollbar-width: none; }
  .tom-cats::-webkit-scrollbar { display: none; }
  .tom-cat {
    flex-shrink: 0; padding: var(--space-2) var(--space-4);
    border: 1px solid var(--to-card-border); border-radius: var(--radius-pill); background: var(--color-bg);
    font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 600; color: var(--color-text);
    text-transform: capitalize; cursor: pointer;
  }
  .tom-cat.is-active { background: var(--tm-panel); border-color: var(--tm-panel); color: var(--to-dark-text); }

  /* Active Assignments panel */
  .tom-panel {
    margin-top: var(--space-5); padding: var(--space-5) var(--space-4);
    background: var(--tm-panel); color: var(--to-dark-text);
    border-radius: var(--radius-to-notch);
  }
  .tom-panel-head { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3); }
  .tom-panel-head h2 { flex: 1 1 100%; font-size: var(--text-xl); font-weight: 800; letter-spacing: -0.02em; color: var(--to-dark-text); }
  .tom-live {
    display: inline-flex; align-items: center; gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-pill); background: var(--tm-panel-deep); color: var(--tm-mint);
    font-size: var(--text-2xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  }
  .tom-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--tm-mint); }
  .tom-live.is-off { color: var(--tm-text-soft); }
  .tom-live.is-off i { background: var(--tm-text-soft); }
  .tom-history {
    margin-left: auto; display: inline-flex; align-items: center; gap: var(--space-1);
    font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 600;
    color: var(--to-dark-text); text-decoration: none;
  }
  .tom-tabs {
    display: flex; gap: var(--space-1); margin-top: var(--space-4); padding: var(--space-1);
    background: var(--tm-panel-deep); border-radius: var(--radius-pill);
  }
  .tom-tab {
    flex: 1; padding: var(--space-2) var(--space-2); border: 0; border-radius: var(--radius-pill); background: none;
    font-family: var(--font-heading); font-size: var(--text-xs); font-weight: 600; white-space: nowrap;
    color: var(--tm-text-soft); cursor: pointer;
  }
  .tom-tab.is-active { background: var(--tm-chip); color: var(--to-dark-text); }

  .tom-feature {
    display: flex; flex-direction: column; gap: var(--space-3);
    margin-top: var(--space-4); padding: var(--space-4);
    background: var(--tm-card); border: 1px solid var(--tm-border); border-radius: var(--radius-2xl);
  }
  .tom-feature-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
  .tom-feature-ids { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
  .tom-id, .tom-state {
    padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill);
    font-size: var(--text-2xs); font-weight: 700;
  }
  .tom-id { background: var(--tm-panel-deep); color: var(--to-dark-text); }
  .tom-state { background: var(--tm-mint); color: var(--tm-mint-ink); }
  .tom-escrow-amt { text-align: right; }
  .tom-escrow-amt small { display: block; font-size: var(--text-2xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tm-text-soft); }
  .tom-escrow-amt strong { font-family: var(--font-heading); font-size: var(--text-xl); font-weight: 800; color: var(--to-dark-text); }
  .tom-feature-title { font-size: var(--text-xl); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: var(--to-dark-text); }
  .tom-due { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--tm-text-soft); }
  .tom-client {
    display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3);
    background: var(--tm-panel-deep); border-radius: var(--radius-pill);
  }
  .tom-client-av {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; background: var(--tm-mint); color: var(--tm-mint-ink);
    font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 800;
  }
  .tom-client-text { min-width: 0; display: flex; flex-direction: column; }
  .tom-client-text strong { font-family: var(--font-heading); font-size: var(--text-base-sm); color: var(--to-dark-text); }
  .tom-client-text small { font-size: var(--text-xs); color: var(--tm-text-soft); overflow-wrap: anywhere; }
  .tom-addons { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
  .tom-addons-label { font-size: var(--text-xs); color: var(--tm-text-soft); }
  .tom-chip-sm { padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill); background: var(--tm-chip); font-size: var(--text-xs); font-weight: 600; }
  .tom-note {
    display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3);
    background: var(--tm-panel-deep); border-radius: var(--radius-lg); color: var(--tm-mint);
  }
  .tom-note svg { flex-shrink: 0; }
  .tom-note p { font-size: var(--text-xs); line-height: 1.5; color: var(--tm-text-soft); }
  .tom-note strong { color: var(--to-dark-text); }
  .tom-feature-actions { display: flex; gap: var(--space-3); }
  .tom-act-ghost, .tom-act-main {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    height: 48px; border: 0; border-radius: var(--radius-pill);
    font-family: var(--font-heading); font-size: var(--text-base-sm); font-weight: 700; cursor: pointer;
  }
  .tom-act-ghost { flex: 0 0 38%; background: var(--tm-panel-deep); color: var(--to-dark-text); }
  .tom-act-main { flex: 1; background: var(--tm-mint); color: var(--tm-mint-ink); }
  .tom-act-ghost:disabled, .tom-act-main:disabled { opacity: 0.5; cursor: not-allowed; }
  .tom-act-ghost:focus-visible, .tom-act-main:focus-visible, .tom-q:focus-visible { outline: 2px solid var(--tm-mint); outline-offset: 2px; }

  .tom-queue-wrap { margin-top: var(--space-5); }
  .tom-queue-title { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tm-text-soft); }
  .tom-queue { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-3); }
  .tom-q {
    display: flex; align-items: center; gap: var(--space-3); width: 100%; padding: var(--space-4);
    background: var(--tm-card); border: 1px solid var(--tm-border); border-radius: var(--radius-xl);
    color: inherit; text-align: left; cursor: pointer;
  }
  .tom-q-icon {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%; background: var(--tm-chip); color: var(--tm-mint);
  }
  .tom-q-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .tom-q-main small, .tom-q-side small { font-size: var(--text-xs); color: var(--tm-text-soft); }
  .tom-q-main strong { font-family: var(--font-heading); font-size: var(--text-base-sm); color: var(--to-dark-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tom-q-side { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
  .tom-q-side strong { font-family: var(--font-heading); font-size: var(--text-base-sm); font-weight: 800; color: var(--to-dark-text); }
  .tom-empty { padding: var(--space-6) var(--space-3); text-align: center; font-size: var(--text-base-sm); color: var(--tm-text-soft); }

  .tom-promo {
    display: flex; align-items: center; gap: var(--space-3);
    margin-top: var(--space-5); padding: var(--space-3) var(--space-4);
    background: var(--tm-mint); border-radius: var(--radius-2xl); color: var(--tm-mint-ink);
  }
  .tom-promo-icon {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; background: var(--tm-panel); color: var(--tm-mint);
  }
  .tom-promo-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .tom-promo-text strong { font-family: var(--font-heading); font-size: var(--text-base-sm); font-weight: 800; }
  .tom-promo-text span { font-size: var(--text-xs); }
  .tom-promo-btn {
    flex-shrink: 0; padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill);
    background: var(--tm-panel); color: var(--to-dark-text);
    font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 700; text-decoration: none;
  }
}


/* ================================================================
   CUSTOMER DASHBOARD — OVERVIEW
   dashboard-customer.html, #panel-overview. Markup in the page, data
   in js/customer-overview.js. It reuses the tasker overview classes
   (.tov-*) and tokens (--to-*) so both dashboards look identical.
   Only the page-level rules below are customer specific.

   The page's own "Welcome back" header is hidden on the Overview: the
   Overview carries its own title and Post a Task button.
   ================================================================ */
body.cdash-page .dashboard-body .container {
  max-width: calc(var(--to-content-width) + 2 * var(--space-5));
}
body.cdash-overview .ds-main-head { display: none; }
body.cdash-overview .dashboard-page { background: var(--to-page-bg); }
/* Other panels stay readable at a narrower width */
body.cdash-page .ds-main-full > main > .dashboard-panel:not(#panel-overview) {
  max-width: 880px;
  margin-inline: auto;
}
/* Links styled as the tasker overview's buttons */
.tov a.tov-link-btn,
.tov a.tov-payout { text-decoration: none; }
.tov a.tov-payout { display: inline-flex; align-items: center; }

/* Mobile additions for the customer Overview (768px and below).
   The hero is the shared .pg-hero; everything else comes from the shared .tom-* rules above. */
@media (max-width: 768px) {
  a.tom-btn-dark, a.tom-btn-soft { text-decoration: none; }
  .tom-link {
    display: inline-flex; align-items: center; gap: var(--space-1);
    font-size: var(--text-xs); font-weight: 700; color: var(--to-green); text-decoration: none;
  }

  /* "Other Active Tasks": cards you swipe sideways */
  .tom-queue-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
  .tom-queue-hint { font-size: var(--text-xs); font-weight: 700; color: var(--tm-mint); }
  .tom-swipe {
    display: flex; gap: var(--space-3); margin-top: var(--space-3); padding-bottom: var(--space-1);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .tom-swipe::-webkit-scrollbar { display: none; }
  .tom-qc {
    flex: 0 0 72%; min-width: 0; scroll-snap-align: start;
    display: flex; flex-direction: column; gap: var(--space-2);
    padding: var(--space-4);
    background: var(--tm-card); border: 1px solid var(--tm-border); border-radius: var(--radius-xl);
  }
  .tom-qc-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
  .tom-qc-id { font-size: var(--text-xs); color: var(--tm-text-soft); }
  .tom-qc-pill {
    padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill);
    background: var(--tm-chip); color: var(--tm-mint);
    font-size: var(--text-2xs); font-weight: 700; white-space: nowrap;
  }
  .tom-qc-title {
    font-family: var(--font-heading); font-size: var(--text-base); font-weight: 800; color: var(--to-dark-text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .tom-qc-amt { font-family: var(--font-heading); font-size: var(--text-lg); font-weight: 800; color: var(--to-dark-text); }
  .tom-qc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    height: 44px; margin-top: auto; border: 0; border-radius: var(--radius-pill);
    background: var(--tm-panel-deep); color: var(--tm-mint);
    font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 700; cursor: pointer;
  }
  .tom-qc-btn:focus-visible { outline: 2px solid var(--tm-mint); outline-offset: 2px; }
  .tom-star { color: var(--tm-mint); font-size: var(--text-xs); }
}

/* ============================================================
   MOBILE DRAWER — look  (components/navbar.html #navDrawer)
   Structure and open/close are in the "Mobile drawer" block near the
   top of this file. Colours come from the --drawer-* tokens.
   ============================================================ */
@media (max-width: 768px) {
  .nav-drawer {
    background: var(--drawer-bg);
    color: var(--drawer-text);
    font-family: var(--font-body);
    box-shadow: var(--shadow-xl);
    padding-top: env(safe-area-inset-top, 0px);
  }

  /* Header: who you are, or the brand for guests */
  .nav-drawer-head {
    display: flex; align-items: center;
    margin: 0 var(--space-4);
    padding: var(--space-5) 0 var(--space-4);
    border-bottom: 1px solid var(--drawer-border);
  }
  .nav-drawer-user {
    display: flex; align-items: center; gap: var(--space-3);
    min-width: 0; flex: 1 1 auto;
    color: inherit; text-decoration: none;
  }
  .nav-drawer-avatar {
    flex: 0 0 auto;
    display: grid; place-items: center;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--drawer-bg-raised);
    border: 2px solid var(--drawer-text);
    overflow: hidden;
    font-family: var(--font-heading); font-size: var(--text-md); font-weight: 700;
  }
  .nav-drawer-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .nav-drawer-id { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
  .nav-drawer-name {
    font-family: var(--font-heading); font-size: var(--text-lg); font-weight: 700; line-height: 1.2;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .nav-drawer-email {
    font-size: var(--text-xs); color: var(--drawer-accent);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .nav-drawer-brand { display: flex; align-items: center; }
  .nav-drawer-brand img { height: 28px; width: auto; display: block; filter: brightness(0) invert(1); }

  /* Close tab on the drawer's right edge */
  .nav-drawer-close {
    position: absolute; top: var(--space-6); right: calc(var(--space-5) * -1);
    display: grid; place-items: center;
    width: calc(var(--space-5) + var(--space-1)); height: 56px;
    padding: 0 0 0 var(--space-1);
    background: var(--drawer-bg-raised); color: var(--drawer-accent);
    border: 0; border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .nav-drawer-close:focus-visible { outline: 2px solid var(--drawer-accent); outline-offset: 2px; }

  /* Rows */
  .nav-drawer-body { padding: var(--space-3) var(--space-4); }
  .nav-drawer-list { display: flex; flex-direction: column; gap: var(--space-1); }
  .nav-drawer-list-more {
    margin-top: var(--space-3); padding-top: var(--space-3);
    border-top: 1px solid var(--drawer-border);
  }
  .nav-drawer-link {
    position: relative;
    display: flex; align-items: center; gap: var(--space-4);
    width: 100%; min-height: 48px;
    padding: var(--space-3);
    border: 0; border-radius: var(--radius-md);
    background: transparent; color: var(--drawer-text);
    font-family: var(--font-body); font-size: var(--text-base); font-weight: 600; line-height: 1.2;
    text-align: left; text-decoration: none;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: background var(--t) var(--ease);
  }
  .nav-drawer-link svg { flex: 0 0 auto; color: var(--drawer-accent); }
  .nav-drawer-link:hover,
  .nav-drawer-link:active { background: var(--drawer-hover); }
  .nav-drawer-link:focus-visible { outline: 2px solid var(--drawer-accent); outline-offset: -2px; }
  .nav-drawer-link[aria-current="page"] { background: var(--drawer-active); }
  .nav-drawer-link[aria-current="page"]::before {
    content: ''; position: absolute; left: 0; top: 50%;
    width: 3px; height: 24px; transform: translateY(-50%);
    background: var(--drawer-accent); border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  }

  /* Unread dot and pending count, right-aligned in the row */
  .nav-drawer-dot {
    margin-left: auto; flex: 0 0 auto;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--drawer-accent);
  }
  .nav-drawer-count {
    margin-left: auto; flex: 0 0 auto;
    display: grid; place-items: center;
    min-width: 20px; height: 20px; padding: 0 var(--space-2);
    border-radius: var(--radius-pill);
    background: var(--drawer-accent); color: var(--drawer-accent-ink);
    font-size: var(--text-xs); font-weight: 700; line-height: 1;
  }

  /* Footer pinned to the bottom: Log out, or the guest buttons */
  .nav-drawer-foot {
    flex: 0 0 auto;
    margin: 0 var(--space-4);
    padding: var(--space-3) 0 calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--drawer-border);
  }
  .nav-drawer-actions { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-1) 0; }
  .nav-drawer .btn-ghost.nav-drawer-btn {
    background: transparent; color: var(--drawer-text); border-color: var(--drawer-border);
  }
  .nav-drawer .btn-ghost.nav-drawer-btn:hover { background: var(--drawer-hover); border-color: var(--drawer-text-muted); }
  .nav-drawer .btn-mint.nav-drawer-btn {
    background: var(--drawer-accent); color: var(--drawer-accent-ink); border-color: var(--drawer-accent);
  }
  .nav-drawer .btn-mint.nav-drawer-btn:hover { background: var(--tm-mint-soft); border-color: var(--tm-mint-soft); }
  .nav-drawer .nav-drawer-btn:focus-visible { outline: 2px solid var(--drawer-accent); outline-offset: 2px; }
}


/* ================================================================
   TASKER PAGE HEROES — desktop (769px and up)
   One hero for every logged-in tasker page, matching the search pages
   (.spg-hero + .spg-searchbar above): dark green shell, eyebrow with a
   green dot, pale pill buttons on the right, and content that floats
   over the hero's bottom edge.

   Used by: home-feed.html (tasker), find-tasks.html, dashboard-tasker.html
   (Overview). Mobile is a separate stage: nothing here applies below 769px.

   Markup:
     .pg-hero-zone > .container            clears the fixed nav (same offset as .spg-sticky-top)
       .pg-hero                            the dark shell
         .pg-hero-text                     eyebrow + title / description
         .pg-hero-side | .pg-hero-stack    buttons (.pg-hero-btn)
       .pg-hero-float                      optional: cards that overlap the hero's bottom edge
   ================================================================ */
@media (min-width: 769px) {
  .pg-hero-zone { padding-top: calc(var(--nav-height) + 24px); }

  .pg-hero {
    position: relative; overflow: hidden;
    background: radial-gradient(ellipse 120% 100% at 15% 0%, var(--forest-mid) 0%, var(--forest) 45%, var(--forest-deep) 100%);
    border-radius: 32px;
    padding: 44px 48px 84px;
    display: flex; align-items: flex-start; justify-content: space-between; gap: 32px;
  }
  .pg-hero-text { min-width: 0; max-width: 560px; }

  /* Eyebrow: the page name. Pair with .spg-hero-eyebrow + .spg-hero-dot above. */
  .pg-hero-eyebrow { font-family: var(--font-heading); line-height: 1.2; }

  /* Greeting (home) */
  .pg-hero-title {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
    margin: 0 0 12px;
    font-family: var(--font-heading); font-weight: 800; color: var(--white);
    font-size: var(--text-h2); letter-spacing: -0.02em; line-height: 1.15;
  }
  .pg-hero-lead, .pg-hero-desc {
    margin: 0; font-family: var(--font-heading); font-weight: 700;
    font-size: var(--text-lg); line-height: 1.5; color: var(--hero-text-muted);
  }
  .pg-hero-desc { max-width: 520px; }
  .pg-hero-desc { font-family: var(--font-body); }   /* body copy is Inter; the lead and title stay Manrope */
  .pg-hero-lead { margin-bottom: 12px; }

  /* Small line + live pill under the lead (home) */
  .pg-hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
  .pg-hero-note { font-size: var(--text-xs); color: var(--white); }
  .pg-hero-live {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: var(--radius-pill);
    background: var(--hero-btn-bg); color: var(--color-text);
    font-size: var(--text-xs); font-weight: 700;
  }
  .pg-hero-live[hidden] { display: none; }
  .pg-hero-live .spg-hero-dot { margin-right: 0; }

  /* Right-hand column */
  .pg-hero-side { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-shrink: 0; }
  .pg-hero-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex-shrink: 0; }

  /* Pale pill button */
  .pg-hero-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    height: 48px; padding: 0 var(--space-5);
    border: 0; border-radius: var(--radius-pill);
    background: var(--hero-btn-bg); color: var(--color-text);
    font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 600;
    text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background var(--t) var(--ease);
  }
  .pg-hero-btn:hover { background: var(--hero-btn-bg-hover); }
  .pg-hero-icon-btn { width: 48px; padding: 0; }
  .pg-hero-btn:focus-visible { outline: 2px solid var(--hero-dot); outline-offset: 2px; }

  /* Content that floats over the hero's bottom edge (cards, filter bars) */
  .pg-hero-float { position: relative; z-index: 2; margin-top: calc(-1 * var(--hero-float-gap)); }
}

/* Search bar on the tasker pages: spans the hero (inset by the hero's padding),
   no arrow on the button. Add alongside .spg-searchbar. 901px matches the
   point where the search pages leave their mobile layout. */
@media (min-width: 769px) {
  .spg-searchbar--wide { max-width: none; width: calc(100% - 2 * var(--space-7)); }
  .spg-searchbar--wide button svg { display: none; }
}

/* ── Tasker Overview (dashboard-tasker.html #tov) and Customer Overview (dashboard-customer.html #cov), desktop ────────
   The hero is the shared .pg-hero above. These rules only place it:
   same distance under the nav as the other hero pages, same width as
   the search pages' hero, and the stat cards inset so they float over
   the hero's bottom edge. (#tov is hidden at 768px and below.) */
@media (min-width: 769px) {
  :is(body.tdash-overview, body.cdash-overview) .dashboard-body { padding-top: var(--space-5); }
  :is(body.tdash-overview, body.cdash-overview) .tov { max-width: var(--page-width); margin-inline: auto; }
  :is(body.tdash-overview, body.cdash-overview) .tov-stats { margin-inline: var(--space-6); }
  /* The profile banner sits under the stat cards, inset the same amount */
  body.tdash-overview .tov > .st-pp { margin-inline: var(--space-6); }
  /* Four cards in the inset row are narrower than before: trim the side padding, and tighten the
     Escrow card's top row (label + Secured + arrow) so it still fits on one line at 1440px. */
  :is(body.tdash-overview, body.cdash-overview) .tov-card { padding-inline: var(--space-4); }
  :is(body.tdash-overview, body.cdash-overview) .tov-card-escrow .tov-card-top { gap: var(--space-1); flex-wrap: wrap; }
  :is(body.tdash-overview, body.cdash-overview) .tov-card-escrow .tov-label { letter-spacing: 0; gap: var(--space-1); }
  :is(body.tdash-overview, body.cdash-overview) .tov-card-escrow .tov-secured { padding-inline: var(--space-2); }
  :is(body.tdash-overview, body.cdash-overview) .tov-card-escrow .tov-arrow { width: var(--space-4); }
}


/* ================================================================
   TASKER PAGE HEROES — filter chips + floating search bar (Stage 2)
   Used by applications.html and bookings.html. The page's own status tabs
   and toolbar stay in the DOM where the page JS expects them; these classes
   only restyle them on desktop (769px and up) so the chips sit inside the
   hero's bottom-right and the search pill floats over its bottom edge.

   Markup order inside the page container (add .pg-hero-page to it):
     .pg-hero                         the hero (desktop copy of the header)
     .pg-hero-chips > .pg-hero-chip   status tabs, pulled up into the hero
     .pg-hero-bar                     search pill + selects, floating over the edge
       .pg-hero-search > label + .pg-hero-search-btn
       .pg-hero-select-wrap > select.pg-hero-select + svg
   Below 769px the wrappers are display: contents and the extras are hidden,
   so the mobile layout is exactly what each page already had.
   ================================================================ */
.pg-hero-search, .pg-hero-select-wrap { display: contents; }
.pg-hero-search-btn, .pg-hero-select-wrap > svg { display: none; }
.pg-hero-search-arrow { display: none; } /* phones only, see the Stage 2 block at the end of the file */

@media (min-width: 769px) {
  /* The pages reset h1/p margins with .page :where(h1, p) (same weight, loaded later), so restate the eyebrow gap here */
  .pg-hero-page .pg-hero-eyebrow { margin-bottom: var(--space-3); }

  /* Chips: a row at the hero's bottom-right, lifted out of the flow */
  .pg-hero-page .pg-hero-chips {
    position: relative; z-index: 2;
    display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: var(--space-2);
    height: var(--hero-chip-h); overflow-x: auto; scrollbar-width: none;
    margin: calc(-1 * var(--hero-chips-lift)) var(--space-7) calc(var(--hero-chips-lift) - var(--hero-chip-h) - var(--hero-bar-overlap));
  }
  .pg-hero-page .pg-hero-chips::-webkit-scrollbar { display: none; }
  .pg-hero-page .pg-hero-chip {
    flex-shrink: 0; height: var(--hero-chip-h); padding: 0 var(--space-3); gap: var(--space-2);
    background: var(--hero-chip-bg); color: var(--color-text-on-primary);
    font-size: var(--text-xs); font-weight: 600;
  }
  .pg-hero-page .pg-hero-chip:hover { background: var(--hero-chip-bg-hover); }
  .pg-hero-page .pg-hero-chip[aria-pressed="true"] { background: var(--hero-btn-bg); color: var(--color-text); }
  .pg-hero-page .pg-hero-chip:focus-visible { box-shadow: inset 0 0 0 2px var(--hero-dot); }
  .pg-hero-page .pg-hero-chip-n {
    min-width: 18px; line-height: 18px; padding: 0 var(--space-1);
    background: var(--hero-btn-bg); color: var(--pt-green);
  }
  .pg-hero-page .pg-hero-chip[aria-pressed="true"] .pg-hero-chip-n { background: var(--pt-green); color: var(--color-text-on-primary); }

  /* Floating bar: transparent row, centred, overlapping the hero's bottom edge */
  .pg-hero-page .pg-hero-bar {
    position: relative; z-index: 2;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-3) var(--space-4);
    padding: 0; border-radius: var(--radius-form); background: none;
    margin-bottom: var(--space-5);
  }
  .pg-hero-page .pg-hero-search {
    display: flex; align-items: center; flex: 1 1 320px; min-width: 280px; max-width: 440px; gap: var(--space-2);
    padding: var(--space-1); border-radius: var(--radius-pill);
    background: var(--color-bg); box-shadow: var(--shadow-xl);
  }
  .pg-hero-page .pg-hero-search label { flex: 1 1 0; min-width: 0; }
  .pg-hero-page .pg-hero-search .pg-hero-input { background: none; box-shadow: none; }
  .pg-hero-page .pg-hero-search-btn {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    height: 40px; padding: 0 var(--space-5); border: 0; border-radius: var(--radius-pill); cursor: pointer;
    background: var(--pt-green); color: var(--color-text-on-primary);
    font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 600;
    transition: background var(--t) var(--ease);
  }
  .pg-hero-page .pg-hero-search-btn:hover { background: var(--color-forest-800); }
  .pg-hero-page .pg-hero-search-btn:focus-visible { outline: 0; box-shadow: var(--shadow-focus); }

  .pg-hero-page .pg-hero-select-wrap { display: block; position: relative; flex-shrink: 0; }
  .pg-hero-page .pg-hero-select-wrap > svg {
    display: block; position: absolute; top: 50%; right: var(--space-4); transform: translateY(-50%);
    width: 16px; height: 16px; pointer-events: none; color: var(--pt-ink-muted);
    fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  }
  .pg-hero-page .pg-hero-select {
    appearance: none; -webkit-appearance: none; height: 48px;
    padding: 0 calc(var(--space-4) + 16px + var(--space-3)) 0 var(--space-5);
    background: var(--color-bg); box-shadow: var(--shadow-xl); color: var(--pt-ink-muted);
    font-weight: 500;
  }
}

/* Tablet (769 to 1043px): the content column is too narrow for the search pill and every filter on one
   row, and centred wrapping left one filter alone on a second row. Search takes the first row; the
   filters share the second row evenly. At 1044px and up everything fits on one row, as before. */
@media (min-width: 769px) and (max-width: 1043px) {
  .pg-hero-page .pg-hero-search { flex: 1 1 100%; max-width: none; }
  .pg-hero-page .pg-hero-select-wrap { flex: 1 1 0; min-width: 0; }
  .pg-hero-page .pg-hero-select { width: 100%; }
}


/* ================================================================
   TASKER PAGE HEROES — mobile (768px and below)  [Stage 1]
   Same look as the Find Tasks hero on a phone (.spg-hero): flat dark
   green, full-bleed, only the bottom corners rounded. The mobile top nav
   takes the same colour (--hero-bg-mobile) so the two read as one block.
   Applies to the shared .pg-hero markup. Desktop is the block above.
   Stage 1: home-feed.html (tasker) and dashboard-tasker.html (Overview).
   Stage 2 adds body.pg-hero-page to Applications, Bookings and Wallet.
   ================================================================ */
@media (max-width: 768px) {

  /* ── Top nav: same green as the hero, white controls ──
     Taskers on every hero page get it automatically; any other page (customer Home, My Tasks) opts in with body.pg-hero-nav; the customer Overview uses body.cdash-overview. */
  body.st-logged-in:is(.role-tasker:is(.spg-page, .pg-hero-page, .tdash-overview), .pg-hero-nav, .cdash-overview) #navbar {
    background: var(--hero-bg-mobile);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    border-bottom-color: transparent; box-shadow: none;
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
  }
  body.st-logged-in:is(.role-tasker:is(.spg-page, .pg-hero-page, .tdash-overview), .pg-hero-nav, .cdash-overview) .nav-toggle span { background: var(--white); }
  body.st-logged-in:is(.role-tasker:is(.spg-page, .pg-hero-page, .tdash-overview), .pg-hero-nav, .cdash-overview) .nav-logo img { filter: brightness(0) invert(1); }
  body.st-logged-in:is(.role-tasker:is(.spg-page, .pg-hero-page, .tdash-overview), .pg-hero-nav, .cdash-overview) .nav-mobile-bell { color: var(--white); }
  body.st-logged-in:is(.role-tasker:is(.spg-page, .pg-hero-page, .tdash-overview), .pg-hero-nav, .cdash-overview) .nav-mobile-bell-dot { border-color: var(--hero-bg-mobile); }
  body.st-logged-in:is(.role-tasker:is(.spg-page, .pg-hero-page, .tdash-overview), .pg-hero-nav, .cdash-overview) .nav-mobile-avatar { background: var(--hero-btn-bg); color: var(--color-text); }

  /* ── Hero shell ── */
  .pg-hero {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: stretch; gap: var(--space-4);
    background: var(--hero-bg-mobile);
    border-radius: 0 0 32px 32px;
    padding: 20px 24px 24px;
    /* Full-bleed: break out of the page container to both screen edges */
    width: 100vw; max-width: none; margin-inline: calc(50% - 50vw);
  }
  .pg-hero-text { min-width: 0; }

  /* Eyebrow = page name, green like the dot */
  .spg-hero-eyebrow.pg-hero-eyebrow {
    margin: 0 0 14px; line-height: 1.2;
    font-family: var(--font-heading); font-size: var(--text-xs); font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--hero-text-muted);
  }
  .pg-hero-title {
    display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3);
    margin: 0 0 var(--space-2);
    font-family: var(--font-heading); font-weight: 800; color: var(--white);
    font-size: var(--text-xl); letter-spacing: -0.02em; line-height: 1.15;
  }
  .pg-hero-lead, .pg-hero-desc {
    margin: 0; font-family: var(--font-heading); font-weight: 700;
    font-size: var(--text-base); line-height: 1.4; color: var(--hero-text-muted);
  }
  .pg-hero-desc { font-family: var(--font-body); font-weight: 400; font-size: var(--text-sm); }
  .pg-hero-lead { margin-bottom: var(--space-2); }

  .pg-hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); }
  .pg-hero-note { font-size: var(--text-xs); color: var(--white); }
  /* Live pill: top-right corner, level with the eyebrow */
  .pg-hero-live {
    position: absolute; top: 16px; right: 24px;
    display: inline-flex; align-items: center; gap: 0;
    padding: 4px 12px; border-radius: var(--radius-pill);
    background: var(--hero-btn-bg); color: var(--color-text);
    font-size: var(--text-xs); font-weight: 700;
  }
  .pg-hero-live[hidden] { display: none; }
  .pg-hero-live .spg-hero-dot { margin-right: 6px; }

  /* Buttons: one row, pale pills share the width */
  .pg-hero-side, .pg-hero-stack { display: flex; flex-direction: row; align-items: center; gap: var(--space-3); width: 100%; }
  .pg-hero-btn {
    flex: 1 1 0; min-width: 0;
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    height: 48px; padding: 0 var(--space-4);
    border: 0; border-radius: var(--radius-pill);
    background: var(--hero-btn-bg); color: var(--color-text);
    font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 600;
    text-decoration: none; white-space: nowrap; cursor: pointer;
  }
  .pg-hero-btn:active { background: var(--hero-btn-bg-hover); }
  .pg-hero-btn:focus-visible { outline: 2px solid var(--hero-dot); outline-offset: 2px; }
  /* Round white icon button beside the main pill */
  .pg-hero-icon-btn { flex: 0 0 48px; width: 48px; padding: 0; background: var(--white); }
  .pg-hero-side .pg-hero-icon-btn { order: 2; }
  .pg-hero-desktop-only { display: none; }
  /* ── Overview: hero sits flush under the nav; stat cards follow ── */
  :is(body.tdash-overview, body.cdash-overview) .dashboard-body { padding-top: 0; }
  body.tdash-overview #panel-mypage,
  body.cdash-overview #panel-overview { padding-top: 0; }
  /* !important: .dashboard-panel sets overflow-x:hidden !important above, which would clip the full-bleed hero */
  body.tdash-overview #panel-mypage,
  body.cdash-overview #panel-overview { overflow-x: visible !important; }
  /* !important: the global phone rule `main { padding: 10px 14px 80px !important }` leaves a white strip between the nav and the hero */
  body.tdash-overview .dashboard-grid > main,
  body.cdash-overview .ds-main-full > main { padding-top: 0 !important; }
  .tom > .pg-hero { margin-bottom: var(--space-5); }
  .tom-stats { margin-top: 0; }
  .tom-filters.is-collapsed { display: none; }

  /* ── Stage 2 (Applications, Bookings, Wallet) ──────────────────
     Copy that reads as white semi-bold lead text, a label + amount pair (Wallet),
     and a search + dropdown bar that continues the hero's dark block
     (.pg-hero-bar--in-hero, Applications). The hero itself is the shared .pg-hero. */
  /* !important: the global phone rule `h1 { font-size: var(--text-h1-sm) !important }` would otherwise
     enlarge the page-name label where it is an <h1> (Applications, Bookings) */
  h1.pg-hero-eyebrow { font-size: var(--text-xs) !important; }
  /* In normal flow under the nav, so the hero scrolls away with the page (only Find Tasks keeps its hero pinned).
     The nav stays fixed. The pages already pad their top by the nav height. */
  div.pg-hero-page { padding-top: 0; }
  .pg-hero-bar.pg-hero-bar--in-hero[data-pg-fixed] { margin-bottom: var(--space-5); }
  .pg-hero[data-pg-fixed]:not(:has(~ .pg-hero-bar--in-hero)) { margin-bottom: var(--space-5); }
  .pg-hero-label {
    margin: 0 0 var(--space-1); font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase; color: var(--white);
  }
  .pg-hero-amount { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: var(--text-lg); line-height: 1.2; color: var(--white); }

  /* The bar sits right under the hero, same fill, full-bleed, only the bottom corners rounded */
  .pg-hero-bar.pg-hero-bar--in-hero {
    display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3);
    width: 100vw; max-width: none; margin-inline: calc(50% - 50vw);
    padding: 0 24px 24px; border-radius: 0 0 32px 32px; background: var(--hero-bg-mobile);
  }
  /* White search pill with a round green arrow button */
  .pg-hero-bar--in-hero .pg-hero-search {
    display: flex; align-items: center; flex: 1 1 100%; min-width: 0; gap: var(--space-2);
    padding: var(--space-1); border-radius: var(--radius-pill); background: var(--white);
  }
  .pg-hero-bar--in-hero .pg-hero-search label { flex: 1 1 0; min-width: 0; }
  .pg-hero-bar--in-hero .pg-hero-input { background: none; box-shadow: none; height: 44px; }
  .pg-hero-bar--in-hero .pg-hero-search-btn {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px;
    width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: var(--pt-green); color: var(--color-text-on-primary);
  }
  .pg-hero-bar--in-hero .pg-hero-search-btn:focus-visible { outline: 0; box-shadow: var(--shadow-focus); }
  .pg-hero-bar--in-hero .pg-hero-search-text {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  .pg-hero-bar--in-hero .pg-hero-search-arrow {
    display: block; width: 18px; height: 18px;
    fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  }
  /* Dropdowns: pale pills, two to a row, chevron on the right */
  .pg-hero-bar--in-hero .pg-hero-select-wrap { display: block; position: relative; flex: 1 1 0; min-width: 0; }
  .pg-hero-bar--in-hero .pg-hero-select-wrap > svg {
    display: block; position: absolute; top: 50%; right: var(--space-3); transform: translateY(-50%);
    width: 16px; height: 16px; pointer-events: none; color: var(--pt-ink-muted);
    fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  }
  .pg-hero-bar--in-hero .pg-hero-select {
    appearance: none; -webkit-appearance: none; width: 100%; height: 44px;
    padding: 0 calc(var(--space-3) + 16px + var(--space-2)) 0 var(--space-4);
    background: var(--white); box-shadow: none; color: var(--pt-ink-muted);
    font-size: var(--text-xs); font-weight: 500; text-overflow: ellipsis;
  }
}


/* Poster name on task cards links to the Client Profile */
.spg-card-poster { color: inherit; text-decoration: none; }
.spg-card-poster:hover { text-decoration: underline; }


/* ── Phones: the footer is for visitors who are not logged in ───────────────
   Logged-in users get the bottom nav instead (body.st-logged-in is set by js/auth.js). */
@media (max-width: 768px) {
  body.st-logged-in #footer-placeholder,
  body.st-logged-in #footer { display: none; }
}


/* ── Phones: stop the browser zooming into the page when a field is focused ──
   iOS Safari zooms in on any field under 16px and never zooms back out.
   !important: page stylesheets set smaller sizes on their own inputs (search bars, selects, filters). */
@media (max-width: 768px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea { font-size: var(--text-base) !important; }
}


/* ============================================================
   NOTIFICATION PANEL  (js/notifications-panel.js)
   A popover under the bell on desktop, a sheet under the nav on phones.
   ============================================================ */
.np-backdrop { position: fixed; inset: 0; z-index: 1100; background: transparent; }
.np-backdrop[hidden], .np[hidden] { display: none; }
.np {
  position: fixed; z-index: 1110; width: 400px; max-width: calc(100vw - 24px); max-height: min(640px, calc(100vh - 96px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); font-family: var(--font-body); color: var(--color-text);
}
.np-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) var(--space-4) var(--space-3); }
.np-title { margin: 0; font-family: var(--font-heading); font-size: var(--text-base); font-weight: 700; color: var(--color-text); }
.np-markall { padding: 0; border: 0; background: none; font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); cursor: pointer; }
.np-markall:hover:not(:disabled) { color: var(--color-primary-hover); text-decoration: underline; }
.np-markall:disabled { opacity: 0.5; cursor: default; }
.np-head-actions { display: flex; align-items: center; gap: var(--space-3); }
.np-tabs { display: flex; align-items: center; gap: var(--space-4); padding: 0 var(--space-4); border-bottom: 1px solid var(--color-border); }
.np-tab {
  display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) 0 var(--space-3);
  border: 0; border-bottom: 2px solid transparent; background: none; font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 600;
  color: var(--color-text-muted); cursor: pointer; margin-bottom: -1px;
}
.np-tab[aria-selected="true"] { color: var(--color-text); font-weight: 700; border-bottom-color: var(--color-primary); }
.np-count {
  min-width: 20px; padding: 1px 6px; border-radius: var(--radius-pill); background: var(--color-primary); color: var(--color-text-on-primary);
  font-size: var(--text-xs); font-weight: 700; line-height: 1.4; text-align: center;
}
.np-count[hidden] { display: none; }
.np-list { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.np-item {
  display: flex; align-items: flex-start; gap: var(--space-3); width: 100%; padding: var(--space-4);
  border: 0; border-bottom: 1px solid var(--color-border); background: var(--color-bg); text-align: left; font: inherit; cursor: pointer;
}
.np-item:last-child { border-bottom: 0; }
.np-item.is-unread { background: var(--color-primary-soft); }
.np-item:hover { background: var(--color-bg-muted); }
.np-item:focus-visible { outline: 0; box-shadow: inset var(--shadow-focus); }
.np-ico {
  flex: 0 0 40px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--color-primary-soft); color: var(--color-primary);
}
.np-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.np-line { font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
.np-msg { font-size: var(--text-sm); color: var(--color-text-secondary); overflow-wrap: anywhere; }
.np-time { font-size: var(--text-xs); color: var(--color-text-muted); }
.np-dot { flex: 0 0 8px; width: 8px; height: 8px; margin-top: var(--space-2); border-radius: 50%; background: var(--color-primary); }
.np-empty { margin: 0; padding: var(--space-6) var(--space-4); text-align: center; font-size: var(--text-sm); color: var(--color-text-muted); }

@media (max-width: 768px) {
  .np-backdrop { background: rgba(0, 0, 0, 0.3); }
  .np {
    top: calc(var(--nav-height) + env(safe-area-inset-top, 0px) + var(--space-2)); left: var(--space-3); right: var(--space-3);
    width: auto; max-width: none; max-height: calc(100vh - var(--nav-height) - var(--space-8));
  }
}


/* ── Mobile landing page refresh (<= 640px only; desktop untouched) ───────── */
.pgtd-cat, .pgtd-offers, .lt-tasker-tags { display: none; }

@media (max-width: 768px) {
  /* "Getting help is simple" and "Help from people you can trust": 3 across */
  .how-it-works-grid, .trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
  .how-it-works-card, .trust-card { padding: var(--space-3); }
  .how-it-works-top { margin-bottom: var(--space-4); }
  .trust-icon { width: var(--space-6); height: var(--space-6); margin-bottom: var(--space-3); }
  .how-it-works-card h3, .trust-card h3 { font-size: var(--text-sm); margin-bottom: var(--space-1); }
  .how-it-works-card p, .trust-card p { font-size: var(--text-xs); line-height: 1.4; }

  /* "People are getting things done": swipe sideways, edge to edge */
  .pgtd-grid {
    display: flex; gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--home-pad)); padding-inline: var(--home-pad); scroll-padding-inline: var(--home-pad);
    padding-bottom: var(--space-1); scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .pgtd-grid::-webkit-scrollbar { display: none; }
  .pgtd-card, .pgtd-grid > .st-card { flex: 0 0 78%; scroll-snap-align: start; }
  .pgtd-desc, .pgtd-actions, .pgtd-posted,
  .pgtd-meta-row .pgtd-icon, .pgtd-meta-time > span:nth-child(2) { display: none; }
  .pgtd-cat, .pgtd-offers {
    display: block; margin-top: var(--space-3); font-size: var(--text-xs); font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted);
  }
  .pgtd-offers { margin-top: var(--space-1); font-weight: 400; letter-spacing: 0; text-transform: none; }
  .pgtd-head { margin-top: var(--space-1); }
  .pgtd-title { font-size: var(--text-base); font-weight: 700; line-height: 1.4; }
  .pgtd-meta { margin-top: var(--space-1); }
  .pgtd-price { margin-left: 0; padding-right: 0; font-size: var(--text-base); color: var(--color-primary); }

  /* "Meet Local Taskers": avatar + details, tag row underneath */
  .lt-tasker-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .lt-tasker-card {
    display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "photo body" "tags tags";
    column-gap: var(--space-4); padding: var(--space-4); border-radius: var(--radius-lg);
  }
  .lt-tasker-card:hover { transform: none; box-shadow: none; }
  .lt-tasker-photo { grid-area: photo; width: var(--space-8); height: var(--space-8); border-radius: 50%; }
  .lt-tasker-photo .lt-tasker-badge-phone, .lt-tasker-body .lt-verified-pill, .lt-tasker-body .btn { display: none; }
  .lt-tasker-body { grid-area: body; padding: 0; }
  .lt-tasker-spec { color: var(--color-primary); font-weight: 600; margin-bottom: var(--space-1); }
  .lt-tasker-rating { margin-bottom: 0; }
  .lt-tasker-tags { grid-area: tags; display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-4); }
  .lt-tasker-tags .lt-verified-pill { margin-bottom: 0; }
  .lt-tag-phone {
    background: var(--gray-100); color: var(--text-secondary);
    font-size: var(--text-xs); font-weight: 700; padding: 3px 9px; border-radius: var(--radius-pill);
  }
  .lt-tag-link { margin-left: auto; font-size: var(--text-xs); font-weight: 700; color: var(--color-primary); text-decoration: none; white-space: nowrap; }
}


/* ── Spacing rhythm: desktop sections that had inline padding-top:0 (now classes) ── */
@media (min-width: 769px) {
  .section-flush-top { padding-top: 0; }
  .section-header.lt-meet-head { margin-top: calc(var(--space-6) + var(--space-5)); }
}

/* ── Mobile landing page: one spacing scale (<= 640px; desktop untouched) ───
   Sections: 32px top + 32px bottom = 64px between every section.
   Section header -> content: 24px. Card lists: 16px. Chips/pills: 8px. */
@media (max-width: 768px) {
  .hero { padding-bottom: var(--space-6); }
  .section, .section-sm, .need-help-section { padding-top: var(--space-6); padding-bottom: var(--space-6); }
  .section-header { margin-bottom: var(--space-5); }
  .section-header h2, .need-help-section h2 { margin-bottom: var(--space-2); }
  .section-header.lt-meet-head { margin-top: var(--space-6); }

  /* Search block */
  .need-help-section > .container-home > p { margin-bottom: var(--space-5); }
  .need-help-search { gap: var(--space-2); margin-bottom: var(--space-4); padding: var(--space-1) var(--space-1) var(--space-1) var(--space-4); }
  .need-help-search input { min-width: 0; }
  .need-help-chips, .need-help-chips-track { gap: var(--space-2); }

  /* Card lists */
  .popular-grid, .lt-tasker-grid { gap: var(--space-4); }
  .lt-crafts-filter { gap: var(--space-2); margin: var(--space-4) 0 var(--space-5); }

  /* Become a Tasker */
  .tasker-split { gap: var(--space-5); }
  .tasker-split-eyebrow, .become-tasker .tasker-split-eyebrow { margin-bottom: var(--space-2); }
  .tasker-split h2, .become-tasker h2 { margin-bottom: var(--space-3); }
  .tasker-split p, .become-tasker p.become-tasker-sub { margin-bottom: var(--space-5); }

  /* Final CTA */
  .final-cta { padding: var(--space-7) var(--space-5); }
  .final-cta h2 { margin-bottom: var(--space-2); }
  .final-cta p { margin-bottom: var(--space-5); }
  .final-cta-actions { gap: var(--space-3); }
}

/* ============================================================
   TOASTS + NOTIFICATION BOXES  (Toast & Notification spec)
   .st-toast          pill toast, fired by showToast() in js/ui.js
   .st-toast--tonal   pastel variant (persistent status, in-feed alerts)
   .st-notice         full-width box for dashboards, checkout, compliance
   Tones: success | info | warning | danger   (tokens: --tone-*)
   ============================================================ */
.st-toast-stack {
  position: fixed; left: 50%; bottom: calc(var(--space-5) + var(--safe-bottom)); transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  width: min(var(--toast-max-width), calc(100% - var(--space-5)));
  pointer-events: none;
}
.st-toast {
  --t-bg: var(--color-bg); --t-border: var(--color-border); --t-ink: var(--color-text);
  --t-sub: var(--color-text-secondary); --t-icon: var(--color-primary);
  pointer-events: auto; width: 100%;
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3);
  background: var(--t-bg); border: 1px solid var(--t-border); border-radius: var(--radius-pill);
  box-shadow: var(--shadow-toast); color: var(--t-ink);
  animation: st-toast-in 0.28s var(--ease) both;
}
.st-toast.is-leaving { animation: st-toast-out 0.25s var(--ease) both; }
.st-toast--success { --t-icon: var(--tone-success-icon); }
.st-toast--info    { --t-icon: var(--tone-info-icon); }
.st-toast--warning { --t-icon: var(--tone-warning-icon); }
.st-toast--error   { --t-icon: var(--tone-danger-icon); }

/* icon badge: solid circle with a white glyph (elevated), outline ring (tonal) */
.st-toast-icon {
  width: var(--toast-badge-size); height: var(--toast-badge-size); flex-shrink: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--t-icon); color: var(--color-text-on-primary);
}
.st-toast-icon svg { width: var(--space-4); height: var(--space-4); }
.st-toast-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-toast-title { font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 700; line-height: 1.3; }
.st-toast-desc  { font-size: var(--text-xs); color: var(--t-sub); line-height: 1.4; }
.st-report-link { align-self: flex-start; margin-top: var(--space-1); font-size: var(--text-xs); font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.st-report-link:hover { text-decoration-thickness: 2px; }
.st-report-link:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: var(--radius-sm); }
.st-toast-close {
  position: relative; flex-shrink: 0; width: var(--toast-close-size); height: var(--toast-close-size);
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--color-text-muted); cursor: pointer;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.st-toast-close::after { content: ''; position: absolute; inset: calc((var(--toast-close-size) - var(--toast-hit-size)) / 2); } /* 44px tap zone */
.st-toast-close:hover { background: var(--color-bg-muted); color: var(--color-text); }
.st-toast-close:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.st-toast-close svg { width: var(--text-sm); height: var(--text-sm); }

/* tonal: soft fill + hairline, tone-coloured text, ring icon */
.st-toast--tonal.st-toast--success { --t-bg: var(--tone-success-bg); --t-border: var(--tone-success-border); --t-ink: var(--tone-success-ink); --t-sub: var(--tone-success-ink); }
.st-toast--tonal.st-toast--info    { --t-bg: var(--tone-info-bg);    --t-border: var(--tone-info-border);    --t-ink: var(--tone-info-ink);    --t-sub: var(--tone-info-ink); }
.st-toast--tonal.st-toast--warning { --t-bg: var(--tone-warning-bg); --t-border: var(--tone-warning-border); --t-ink: var(--tone-warning-ink); --t-sub: var(--tone-warning-ink); }
.st-toast--tonal.st-toast--error   { --t-bg: var(--tone-danger-bg);  --t-border: var(--tone-danger-border);  --t-ink: var(--tone-danger-ink);  --t-sub: var(--tone-danger-ink); }
.st-toast--tonal .st-toast-icon { background: transparent; color: var(--t-icon); border: 1.5px solid var(--t-icon); }
.st-toast--tonal .st-toast-close { color: var(--t-ink); }
.st-toast--tonal .st-toast-close:hover { background: var(--card-chip-glass); }

@keyframes st-toast-in  { from { opacity: 0; transform: translateY(var(--space-3)) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes st-toast-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(var(--space-2)) scale(0.97); } }
@media (max-width: 768px) {
  /* clear the bottom tab bar on phones */
  .st-toast-stack { bottom: calc(var(--space-8) + var(--space-4) + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .st-toast, .st-toast.is-leaving { animation-duration: 0.01ms; }
}

/* ── Notification box ─────────────────────────────────────── */
.st-notice {
  --n-bg: var(--color-bg); --n-border: var(--color-border); --n-ink: var(--color-text);
  --n-body: var(--color-text-secondary); --n-accent: var(--color-primary);
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3) var(--space-4);
  padding: var(--space-4) var(--space-5) var(--space-4) var(--space-5);
  background: var(--n-bg); border: 1px solid var(--n-border); border-radius: var(--radius-form);
  box-shadow: var(--shadow-notice); color: var(--n-ink); overflow: hidden;
}
.st-notice::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--space-1); background: var(--n-accent); }
.st-notice[hidden] { display: none; }
.st-notice--success { --n-bg: var(--tone-success-bg); --n-border: var(--tone-success-border); --n-ink: var(--tone-success-ink); --n-body: var(--tone-success-ink); --n-accent: var(--tone-success-icon); }
.st-notice--info    { --n-bg: var(--tone-info-bg);    --n-border: var(--tone-info-border);    --n-ink: var(--tone-info-ink);    --n-body: var(--tone-info-ink);    --n-accent: var(--tone-info-icon); }
.st-notice--warning { --n-bg: var(--tone-warning-bg); --n-border: var(--tone-warning-border); --n-ink: var(--tone-warning-ink); --n-body: var(--tone-warning-ink); --n-accent: var(--tone-warning-icon); }
.st-notice--danger  { --n-bg: var(--tone-danger-bg);  --n-border: var(--tone-danger-border);  --n-ink: var(--tone-danger-ink);  --n-body: var(--tone-danger-ink);  --n-accent: var(--tone-danger-icon); }
.st-notice-icon {
  width: var(--toast-badge-size); height: var(--toast-badge-size); border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tone-success-bg); color: var(--n-accent);
}
.st-notice--success .st-notice-icon, .st-notice--info .st-notice-icon,
.st-notice--warning .st-notice-icon, .st-notice--danger .st-notice-icon { background: var(--card-chip-glass); }
.st-notice-icon svg { width: var(--text-md); height: var(--text-md); }
.st-notice-main { min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.st-notice-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.st-notice-title { font-family: var(--font-heading); font-size: var(--text-md); font-weight: 700; line-height: 1.25; color: var(--n-ink); }
.st-notice-badge {
  flex-shrink: 0; padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill);
  background: var(--tone-success-bg); color: var(--tone-success-ink);
  font-size: var(--text-xs); font-weight: 700; white-space: nowrap;
}
.st-notice--success .st-notice-badge, .st-notice--info .st-notice-badge,
.st-notice--warning .st-notice-badge, .st-notice--danger .st-notice-badge { background: var(--card-chip-glass); color: var(--n-ink); }
.st-notice-meta { font-size: var(--text-xs); color: var(--color-text-muted); }
.st-notice-body { font-size: var(--text-sm); line-height: 1.55; color: var(--n-body); }
.st-notice-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-top: var(--space-3); }
.st-notice-points { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-2); font-size: var(--text-xs); font-weight: 600; color: var(--n-ink); }
.st-notice-points li { display: inline-flex; align-items: center; gap: var(--space-1); }
.st-notice-points svg { width: var(--text-sm); height: var(--text-sm); color: var(--n-accent); }
/* filled action button in the notice's own tone (Upload NIN Slip, Update Bank Details) */
.st-notice .btn-tone { background: var(--n-accent); color: var(--color-text-on-primary); border: 1px solid var(--n-accent); }
.st-notice .btn-tone:hover { filter: brightness(0.92); }
.st-notice .btn-outline { border-color: var(--n-border); color: var(--n-ink); background: var(--card-chip-glass); }
@media (max-width: 480px) {
  .st-notice { padding: var(--space-4); grid-template-columns: minmax(0, 1fr); }
  .st-notice-head { flex-direction: column-reverse; gap: var(--space-2); }
}

/* ============================================================
   FLOATING PROFILE REMINDER  (.st-pf, built by js/profile-prompt.js)
   Small dark card pinned to the bottom-right; full width on phones, above the sticky submit bar.
   ============================================================ */
.st-pf {
  position: fixed; z-index: 60; right: var(--space-5); bottom: calc(var(--space-5) + var(--safe-bottom));
  width: min(380px, calc(100% - var(--space-5) * 2));
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-3); row-gap: var(--space-3);
  padding: var(--space-4) var(--space-5) var(--space-4) var(--space-4);
  background: var(--pp-dark-bg); color: var(--pp-dark-text);
  border-radius: var(--radius-form); box-shadow: var(--shadow-xl);
  animation: st-pf-in 0.3s var(--ease) both;
}
.st-pf.is-leaving { animation: st-pf-out 0.2s var(--ease) both; }
.st-pf-icon {
  width: var(--toast-badge-size); height: var(--toast-badge-size); border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pp-dark-track); color: var(--pp-accent);
}
.st-pf-icon svg { width: var(--text-lg); height: var(--text-lg); }
.st-pf-main { min-width: 0; padding-right: var(--space-5); }
.st-pf-title { font-family: var(--font-heading); font-size: var(--text-base); font-weight: 700; line-height: 1.3; color: inherit; }
.st-pf-desc { margin-top: var(--space-1); font-size: var(--text-sm); line-height: 1.4; color: var(--pp-accent); }
.st-pf-progress { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--space-3); }
.st-pf-track { flex: 1; height: var(--pp-track-height); border-radius: var(--radius-pill); background: var(--pp-dark-track); overflow: hidden; }
.st-pf-fill { height: 100%; width: var(--pf-value, 0%); border-radius: inherit; background: var(--pp-accent); transition: width 0.4s var(--ease); }
.st-pf-pct { font-size: var(--text-xs); font-weight: 700; color: var(--pp-accent); }
.st-pf-cta {
  grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--toast-hit-size); padding: 0 var(--space-5); border-radius: var(--radius-pill);
  background: var(--pp-accent); color: var(--pp-accent-ink); text-decoration: none;
  font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 700;
  transition: background var(--t) var(--ease);
}
.st-pf-cta:hover { background: var(--pp-accent-hover); }
.st-pf-cta:focus-visible, .st-pf-close:focus-visible { outline: 2px solid var(--pp-accent); outline-offset: 2px; }
.st-pf-close {
  position: absolute; top: var(--space-2); right: var(--space-2);
  width: var(--space-6); height: var(--space-6); border: 0; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--pp-accent); cursor: pointer;
  transition: background var(--t) var(--ease);
}
.st-pf-close:hover { background: var(--pp-dark-track); }
.st-pf-close svg { width: var(--text-sm); height: var(--text-sm); }
@keyframes st-pf-in  { from { opacity: 0; transform: translateY(var(--space-4)); } to { opacity: 1; transform: none; } }
@keyframes st-pf-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(var(--space-3)); } }
@media (max-width: 768px) {
  /* clear the sticky submit bar on the post pages */
  .st-pf { left: var(--space-4); right: var(--space-4); width: auto; bottom: calc(var(--space-9) + var(--space-5)); }
}
@media (prefers-reduced-motion: reduce) { .st-pf, .st-pf.is-leaving { animation-duration: 0.01ms; } }

/* ============================================================
   PROFILE PROMPT  ("Complete your profile")
   Phones: dark compact card with "Boost Now".
   768px and up: light wide banner with a TIP badge and "Complete Profile".
   Set the fill with el.style.setProperty('--pp-value', '75%').
   ============================================================ */
.st-pp {
  --pp-value: 0%;
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; align-items: center; column-gap: var(--space-3); row-gap: var(--space-3);
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "icon main cta" "bar bar bar";
  padding: var(--space-4);
  background: var(--pp-dark-bg); color: var(--pp-dark-text);
  border-radius: var(--radius-form); box-shadow: var(--shadow-md);
}
.st-pp[hidden] { display: none; }
.st-pp-icon {
  grid-area: icon; width: var(--pp-icon-size); height: var(--pp-icon-size); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pp-dark-track); color: var(--pp-accent);
}
.st-pp-icon svg { width: var(--text-lg); height: var(--text-lg); }
.st-pp-main { grid-area: main; min-width: 0; }
.st-pp-title { font-family: var(--font-heading); font-size: var(--text-base); font-weight: 700; line-height: 1.3; color: inherit; }
.st-pp-desc { margin-top: var(--space-1); font-size: var(--text-sm); line-height: 1.4; color: var(--pp-accent); }
.st-pp-tip { display: none; }
.st-pp-long { display: none; }
.st-pp-cta {
  grid-area: cta; align-self: start; white-space: nowrap; text-decoration: none; cursor: pointer; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--toast-hit-size); padding: 0 var(--space-4); border-radius: var(--radius-pill);
  background: var(--pp-accent); color: var(--pp-accent-ink);
  font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 700;
  transition: background var(--t) var(--ease);
}
.st-pp-cta:hover { background: var(--pp-accent-hover); }
.st-pp-cta:focus-visible { outline: 2px solid var(--pp-accent); outline-offset: 2px; }
.st-pp-progress { grid-area: bar; display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.st-pp-track { flex: 1; height: var(--pp-track-height); border-radius: var(--radius-pill); background: var(--pp-dark-track); overflow: hidden; }
.st-pp-fill { height: 100%; width: var(--pp-value); border-radius: inherit; background: var(--pp-accent); transition: width 0.4s var(--ease); }
.st-pp-pct, .st-pp-next { display: none; }

@media (min-width: 768px) {
  .st-pp {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "icon main cta" "icon bar cta";
    column-gap: var(--space-4); row-gap: var(--space-3);
    padding: var(--space-5) var(--space-6) var(--space-5) var(--space-5);
    background: var(--pp-light-bg); color: var(--color-text);
    border: 1px solid var(--pp-light-border); border-radius: var(--radius-form); box-shadow: none;
  }
  /* soft mint glow behind the button */
  .st-pp::after {
    content: ''; position: absolute; z-index: -1; right: calc(var(--space-8) * -1); top: 50%;
    width: calc(var(--space-9) * 4); aspect-ratio: 1; transform: translateY(-50%);
    background: radial-gradient(closest-side, var(--pp-light-glow), transparent);
  }
  .st-pp-icon { align-self: start; background: var(--pp-accent); color: var(--pp-fill); }
  .st-pp-title { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--text-xl); max-width: 36ch; }
  .st-pp-tip {
    display: inline-block; flex-shrink: 0; margin-top: var(--space-1); padding: 2px var(--space-3); border-radius: var(--radius-pill);
    background: var(--pp-accent); color: var(--pp-fill); font-family: var(--font-heading); font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.04em;
  }
  .st-pp-desc { margin-top: var(--space-2); font-size: var(--text-base); line-height: 1.55; color: var(--color-text-secondary); max-width: 64ch; }
  .st-pp-desc strong { color: var(--color-text); }
  .st-pp-short { display: none; }
  .st-pp-long { display: inline; }
  .st-pp-cta { align-self: center; padding: 0 var(--space-5); background: var(--color-primary); color: var(--color-text-on-primary); min-height: var(--toast-hit-size); }
  .st-pp-cta:hover { background: var(--color-forest-800); }
  .st-pp-cta:focus-visible { outline-color: var(--pp-fill); }
  .st-pp-track { flex: none; width: var(--pp-track-width); background: var(--pp-light-track); }
  .st-pp-fill { background: var(--pp-fill); }
  .st-pp-pct { display: inline; font-size: var(--text-xs); font-weight: 700; color: var(--color-text); white-space: nowrap; }
  .st-pp-next { display: inline; font-size: var(--text-xs); color: var(--color-text-muted); }
}
@media (prefers-reduced-motion: reduce) { .st-pp-fill { transition: none; } }
/* long messages wrap inside a rounded card instead of a pill */
.st-toast--wrap { border-radius: var(--radius-xl); }


/* ============================================================
   CONFIRM BOX  (stConfirm() in js/ui.js): centered, replaces the browser confirm()
   ============================================================ */
.st-confirm {
  width: min(420px, calc(100% - 2 * var(--space-4)));
  border: 0; border-radius: var(--radius-card);
  background: var(--color-bg); color: var(--color-text);
  box-shadow: var(--shadow-xl);
}
.st-confirm::backdrop { background: var(--drawer-overlay); }
.st-confirm-body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); }
.st-confirm-title { font-family: var(--font-heading); font-size: var(--text-lg); font-weight: 800; letter-spacing: -0.02em; }
.st-confirm-text { font-size: var(--text-sm); color: var(--color-text-secondary); line-height: 1.5; }
.st-confirm-actions { display: flex; justify-content: flex-end; gap: var(--space-3); margin-top: var(--space-2); }
@media (max-width: 768px) { .st-confirm-actions .btn { flex: 1 1 0; } }


/* ============================================================
   PAGE LOADER  (js/page-loader.js, tokens: --loader-* in css/tokens.css)
   Drawn with html::before (wash) and html::after (coin) so it is on screen
   from the very first paint, with no markup on any page. Pages are covered
   until js/page-loader.js adds html.st-loaded. States:
     (none)        first load: visible, 12s CSS failsafe if JS never runs
     .st-loaded    hidden (fades out)
     .st-loading   shown again by ST.loader.show() / link clicks, JS-controlled
   The coin is a strip of 32 pre-drawn frames (images/loader-coin-sheet.png: a 3D coin with a
   thick edge and a shadow, the K on both faces) played with steps(). The strip covers a half
   turn; both faces are the same, so the half turn repeated is a full turn.
   It only appears after --loader-show-delay.
   Pages that must not show it (back-office, fixtures) add class
   st-loader-off to <html>, or are matched in the opt-out rule below.
   ============================================================ */
html::before,
html::after {
  content: "";
  position: fixed;
  z-index: var(--z-loader);
  opacity: 1;
  visibility: visible;
  transition: opacity var(--loader-fade-in) ease, visibility 0s;
  animation: st-loader-failsafe 1s linear var(--loader-failsafe) forwards;
}
html::before {
  inset: 0;
  background: var(--loader-bg);
}
html::after {
  inset: 0;
  margin: auto;
  width: var(--loader-size);
  height: var(--loader-size);
  content: "";
  content: "" / "Loading";   /* alt text for screen readers; browsers that do not know it keep the line above */
  background: url("../images/loader-coin-sheet.png") 0 0 / calc(var(--loader-frames) * 100%) 100% no-repeat;
  pointer-events: none;
  animation:
    st-coin-spin calc(var(--loader-turn) / 2) steps(32, jump-none) infinite,   /* 32 = --loader-frames */
    st-coin-in 300ms ease var(--loader-show-delay) both,
    st-loader-failsafe 1s linear var(--loader-failsafe) forwards;
}

/* hidden: fade, then drop out of hit-testing */
html.st-loaded::before,
html.st-loaded::after {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--loader-fade) ease, visibility 0s linear var(--loader-fade);
}

/* shown again by script: no failsafe, JS decides when it ends */
html.st-loading::before { animation: none; }
html.st-loading::after {
  animation:
    st-coin-spin calc(var(--loader-turn) / 2) steps(32, jump-none) infinite,   /* 32 = --loader-frames */
    st-coin-in 300ms ease var(--loader-show-delay) both;
}

/* pages that opt out: back-office and test fixtures. Two rules on purpose: a browser
   without :has() drops only the second one, never the explicit class. */
html.st-loader-off::before,
html.st-loader-off::after { display: none; }
html:has(link[href*="coordinator"])::before,
html:has(link[href*="coordinator"])::after,
html:has(link[href*="design-system.css"])::before,
html:has(link[href*="design-system.css"])::after,
html:has(script[src*="messages-fixtures"])::before,
html:has(script[src*="messages-fixtures"])::after,
html:has(script[src*="messages-cards-demo"])::before,
html:has(script[src*="messages-cards-demo"])::after { display: none; }

/* walks the strip from the first frame to the last (the half turn); the loop is seamless */
@keyframes st-coin-spin {
  from { background-position: 0 0; }
  to   { background-position: 100% 0; }
}
/* soft fade-in on filter, so it never fights the opacity fade-out */
@keyframes st-coin-in {
  from { filter: opacity(0); }
  to   { filter: opacity(1); }
}
@keyframes st-loader-failsafe {
  to { opacity: 0; visibility: hidden; }
}

@media (max-width: 480px) {
  html::after { width: var(--loader-size-sm); height: var(--loader-size-sm); }
}
/* no spinning for people who ask for less motion: the coin stands still, front face */
@media (prefers-reduced-motion: reduce) {
  html::after {
    animation:
      st-coin-in 300ms ease var(--loader-show-delay) both,
      st-loader-failsafe 1s linear var(--loader-failsafe) forwards;
  }
  html.st-loading::after {
    animation: st-coin-in 300ms ease var(--loader-show-delay) both;
  }
}
@media print {
  html::before,
  html::after { display: none; }
}


/* ============================================================
   INSTALL BANNER  (js/pwa-install.js, tokens: --install-* in css/tokens.css)
   "Add StreetTasker to your home screen". Phones only; the script decides
   whether to show it. Sits above the floating bottom nav when logged in.
   ============================================================ */
.st-install {
  position: fixed;
  left: var(--space-3);
  right: var(--space-3);
  bottom: var(--install-gap);
  bottom: calc(var(--install-gap) + var(--safe-bottom));
  z-index: var(--install-z);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 420px;
  margin: 0 auto;
  padding: var(--space-3);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--install-radius);
  box-shadow: var(--shadow-toast);
}
body.st-logged-in .st-install {
  bottom: var(--install-nav-offset);   /* already includes the home-bar clearance */
}
.st-install-icon { flex: 0 0 auto; width: var(--install-icon); height: var(--install-icon); border-radius: var(--radius-card-btn); }
.st-install-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.st-install-title { font-size: var(--text-sm); font-weight: 700; line-height: 1.25; color: var(--color-text); }
.st-install-sub { font-size: var(--text-xs); line-height: 1.3; color: var(--color-text-secondary); }
.st-install-actions { flex: 0 0 auto; display: flex; flex-direction: column; align-items: stretch; gap: var(--space-1); }
.st-install-steps { margin: 0; padding-left: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--text-sm); line-height: 1.5; color: var(--color-text-secondary); }
/* room so the banner never hides the last bit of the page */
body.st-install-open { padding-bottom: calc(160px + var(--safe-bottom)); }
@media (min-width: 769px) { .st-install { display: none; } }
@media print { .st-install { display: none; } }

/* ================================================================
   PAGE SHELL (DESIGN-SYSTEM.md 4.14). The standard frame for EVERY NEW PAGE.
   <body class="st-shell"> + <main class="st-page"> (or st-page--narrow for forms and text)
   + <section class="st-hero"> + <section class="st-panel"> blocks.
   .st-page clears the fixed nav on every screen size and is exempt from the legacy
   phone rule "main:not(.st-page)" above, so the nav can never cover the heading.
   Same look as learn.html and referrals.html (forest hero, white panels on --pt-page).
   ================================================================ */
html { scroll-padding-top: calc(var(--nav-height) + var(--space-4)); } /* #anchor links stop below the fixed nav */
body.st-shell { background: var(--pt-page); min-height: 100vh; }
.st-page { width: min(var(--page-width), calc(100% - 2 * var(--page-margin))); margin: 0 auto; padding: calc(var(--nav-height) + var(--space-5)) 0 var(--space-8); display: grid; gap: var(--space-5); }
.st-page--narrow { width: min(var(--page-width-narrow), calc(100% - 2 * var(--page-margin))); }
.st-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: var(--space-6) var(--space-5); border-radius: var(--radius-hero); color: var(--color-text-on-primary);
  background: radial-gradient(ellipse 90% 120% at 75% 0%, var(--color-forest-700) 0%, transparent 62%), var(--color-forest-900); }
.st-hero-chip { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); background: var(--pt-mint); color: var(--color-forest-900); font-size: var(--text-xs); font-weight: 600; }
.st-hero-dot { width: var(--nav-dot-size); height: var(--nav-dot-size); border-radius: 50%; background: var(--color-primary); }
.st-hero-title { margin: 0; font-size: var(--text-h1-sm); color: var(--color-text-on-primary); }
.st-hero-lead { margin: 0; max-width: 56ch; font-size: var(--text-base); color: var(--hero-text-muted); }
.st-hero .btn { margin-top: var(--space-2); }
.st-panel { display: grid; gap: var(--space-4); padding: var(--space-5); border-radius: var(--radius-hero); background: var(--color-bg); border: 1px solid var(--color-border); }
.st-panel-title { margin: 0; font-size: var(--text-xl); }
.st-panel-note { margin: 0; font-size: var(--text-sm); color: var(--color-text-secondary); }
.st-panel .form-group { margin-bottom: 0; }
.st-panel .form-input, .st-panel .form-select, .st-panel .form-textarea { background: var(--pt-field); border-radius: var(--radius-form); }
.st-panel .check-row { margin-bottom: 0; }
.st-req { color: var(--color-danger); }
@media (min-width: 769px) {
  .st-hero { padding: var(--space-8) var(--space-7); }
  .st-hero-title { font-size: var(--text-2xl); }
}
@media (max-width: 768px) {
  .st-page, .st-page--narrow { width: calc(100% - 2 * var(--space-4)); padding-top: calc(var(--nav-height) + var(--space-4)); padding-bottom: var(--space-7); }
  .st-panel { padding: var(--space-4); }
}

/* ================================================================
   HERO FILTER CHIPS ON PHONES — smaller text, same size as the desktop chips.
   Applies to every page that uses .pg-hero-chips (Applications, Bookings, My Tasks, My Services, customer pages).
   Two classes so it wins over each page's own .ap-tab / .bk-tab size (14px text, 44px tall).
   ================================================================ */
@media (max-width: 768px) {
  .pg-hero-chips .pg-hero-chip { height: 32px; padding: 0 var(--space-3); gap: var(--space-1); font-size: var(--text-xs); font-weight: 600; }
  .pg-hero-chips .pg-hero-chip-n { min-width: 18px; padding: 0 var(--space-1); font-size: var(--text-xs); line-height: 18px; }
}

/* ================================================================
   HERO DROPDOWNS (trade category, sort, date) — smaller text on desktop and phones.
   Two classes so it beats each page's own .ap-select / .bk-select size (14px, or 16px on phones).
   ================================================================ */
.pg-hero-bar .pg-hero-select,
.pg-hero-page .pg-hero-select { font-size: var(--text-xs); font-weight: 500; }

/* ═════════════════════════════════════════════════════════════════
   PHONE FIRST SCREEN (owner request 2026-11-10)
   Some people do not realise a page scrolls, so on phones the first screen must hold everything that matters:
     - homepage and Local Taskers hero: the frame is exactly one screen tall (screen - top bar - a small gap), the artwork
       shrinks to fit, and the sub-text and both buttons are always in view;
     - sign-up role chooser: both cards, the notes and the log-in link fit on one screen.
   100svh = the screen height with the browser bars showing, so nothing is cut off. 100vh is the fallback.
   ═════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero-frame {
    --hero-gap: 16px;
    height: calc(100vh - var(--nav-height) - 18px - var(--hero-gap));
    height: calc(100svh - var(--nav-height) - 18px - var(--hero-gap));
    min-height: 420px;
    padding: 22px 18px 20px;
    justify-content: flex-start;
  }
  body.st-logged-in .hero-frame { height: calc(100svh - var(--nav-height) - 18px - 100px); }   /* the floating bottom bar */
  .hero-eyebrow { margin-bottom: 8px; flex: 0 0 auto; }
  .hero-frame picture { flex: 1 1 0; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
  .hero-frame .hero-banner-img { width: 100%; height: 100%; max-width: none; max-height: 100%; object-fit: contain; }
  .hero-sub { margin: 10px 0 0; flex: 0 0 auto; font-size: var(--text-sm); }
  .hero-frame-actions { margin-top: 14px; gap: 10px; flex: 0 0 auto; }
  .hero-frame-actions .btn { height: 46px; }
}

@media (max-width: 768px) {
  /* Role chooser on phones: a "tap one" prompt, then two tall cards with a picture, plain words and a Get started chip.
     Big text for the role, small text for the helper lines, one bright chip so it is obvious the card is a button. */
  #stepChoose.av2-page { min-height: 100svh; align-items: center; }
  #stepChoose .av2-shell { padding: var(--space-4); }
  #stepChoose .av2-login-pill { margin-top: var(--space-4); padding: var(--space-3) var(--space-4); }

  #stepChoose .av2-pick-prompt {
    display: flex; align-items: center; justify-content: center; gap: var(--space-2);
    margin: 0 auto var(--space-3); font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 700; color: var(--auth-green);
  }
  #stepChoose .av2-pick-grid { grid-template-columns: 1fr; gap: var(--space-2); max-width: 460px; }
  #stepChoose .av2-pick {
    aspect-ratio: auto; flex-direction: row; justify-content: flex-start; align-items: center; gap: var(--space-3);
    padding: var(--space-3) var(--space-4); text-align: left;
    background: var(--color-primary-soft); border-color: var(--color-mint-border);
  }
  #stepChoose .av2-pick:hover, #stepChoose .av2-pick:focus-visible { background: var(--color-primary-soft-hover); }
  #stepChoose .av2-pick--flip { flex-direction: row-reverse; }
  #stepChoose .av2-pick-img { display: block; flex: 0 0 40%; width: 40%; max-width: 40%; height: auto; mix-blend-mode: multiply; }   /* multiply: the picture's white background takes the card colour */
  #stepChoose .av2-pick-text { flex: 1 1 0; min-width: 0; align-items: flex-start; gap: var(--space-1); }
  #stepChoose .av2-pick-big { font-size: var(--text-xl); }
  #stepChoose .av2-pick-hint { display: block; font-size: var(--text-sm); line-height: 1.3; color: var(--auth-body); font-family: var(--font-body); }
  #stepChoose .av2-pick-go {
    display: inline-flex; align-items: center; gap: var(--space-1); margin-top: var(--space-2);
    padding: var(--space-2) var(--space-3); border-radius: var(--radius-full);
    background: var(--color-primary); color: var(--color-text-on-primary); font-size: var(--text-sm); font-weight: 700;
  }
  #stepChoose .av2-pick:hover .av2-pick-go { background: var(--color-primary-hover); }
  #stepChoose .av2-pick-or { display: block; margin: 0; text-align: center; font-family: var(--font-heading); font-size: var(--text-base); font-weight: 700; color: var(--auth-body); }
}

/* One-line "you agree" notice under a submit button. Short, small and muted; the full wording lives on the linked pages. */
.st-agree { margin: var(--space-2) 0 0; font-size: var(--text-xs); line-height: 1.5; color: var(--color-text-muted); text-align: center; }
.st-agree a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Fee note beside a price field (js/fee-note.js): one short line, an info button that opens the full details. */
.st-fee { margin-top: var(--space-2); }
.st-fee-line { display: flex; align-items: center; gap: var(--space-1); margin: 0; font-size: var(--text-sm); line-height: 1.4; font-weight: 600; color: var(--color-text); }
.st-fee-live { margin: var(--space-1) 0 0; font-size: var(--text-sm); line-height: 1.4; font-weight: 600; color: var(--color-text); }
.st-fee-live[hidden] { display: none; }
.st-fee-info { flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--space-6); height: var(--space-6); padding: 0; border: 0; border-radius: var(--radius-full); background: none; color: var(--color-text-muted); cursor: pointer; }
.st-fee-info:hover { color: var(--color-primary); }
.st-fee-info:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.st-fee-info svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.st-fee-detail { margin-top: var(--space-2); padding: var(--space-3) var(--space-4); border-radius: var(--radius-form); background: var(--color-bg-subtle); font-size: var(--text-sm); line-height: 1.5; color: var(--color-text); }
.st-fee-detail[hidden] { display: none; }
.st-fee-detail p { margin: 0; }
.st-fee-detail p + p, .st-fee-detail ul { margin-top: var(--space-2); }
.st-fee-detail ul { padding-left: var(--space-4); }
.st-fee-detail a { color: var(--color-primary); font-weight: 600; }
