/* NEEDS App — hand-written styles (no build step required) */

:root {
  /* Brand palette (2026-11-17 refresh) — the exact navy/gold pair pulled
     from the client's real logo artwork (k-means-sampled off the badge
     image, not guessed), applied as the base theme for the whole app —
     public site AND the logged-in dashboards (.app-shell). --accent/
     --accent-2 now resolve to the gold/navy pair everywhere instead of the
     earlier blue/purple that was reserved for .app-shell only; the
     `.public-shell` block below no longer needs its own override since
     both shells now share one theme. */
  --navy: #0e3b75;
  --navy-light: #2b74b5;
  --navy-softer: #1c4a78;
  --blue: #3b9edb;
  --blue-dark: #1a76b3;
  --blue-tint: #eaf5fc;
  --green: #2e9e6d;
  --green-tint: #e7f6ee;
  --orange: #f5a623;
  --accent: var(--gold);
  --accent-dark: var(--gold-dark);
  --accent-light: var(--gold-tint);
  --accent-2: var(--navy-light);
  --accent-2-dark: var(--navy);
  --gradient-brand: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  --gradient-brand-hover: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-2-dark) 100%);
  --navy-deep: #081028;
  --navy-deepest: #05091a;
  --gold: #cd9d42;
  --gold-dark: #634d2f;
  --gold-tint: #f5e9c8;
  --gold-pale: #e8d493;
  --red: #d9534f;
  --bg: #f4f6f9;
  --card-bg: #ffffff;
  --border: #e3e8ef;
  --border-soft: #edf1f6;
  --text: #16212e;
  --text-muted: #647089;
  --text-faint: #94a0b8;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 8px 20px -6px rgba(11, 42, 74, 0.16);
  --shadow-lg: 0 20px 44px -12px rgba(11, 42, 74, 0.3);
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --topbar-h: 58px;
  --tabbar-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.scroll-lock { overflow: hidden; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy); margin: 0 0 0.4em; line-height: 1.22; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 0.75em; }
.muted { color: var(--text-muted); }
.small { font-size: 0.85rem; }
.mt { margin-top: 1.25rem; }
code { background: #eef2f7; padding: 0.1em 0.4em; border-radius: 4px; font-size: 0.9em; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45em;
  padding: 0.65em 1.15em; border-radius: 10px; border: 1px solid transparent;
  font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: background 0.15s var(--ease), transform 0.1s var(--ease), border-color 0.15s;
  text-decoration: none; font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 1px 2px rgba(11,42,74,0.15); }
.btn-primary:hover { background: var(--navy-light); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { background: #eef2f7; }
.btn-danger-ghost { background: transparent; color: var(--red); border-color: #f3d3d1; }
.btn-danger-ghost:hover { background: #fdf1f0; }
.btn-block { width: 100%; }
.btn-lg { padding: 0.9em 1.7em; font-size: 1.05rem; }
.btn-sm { padding: 0.4em 0.75em; font-size: 0.82rem; }

/* ---------- Forms ---------- */
form label { display: block; margin-bottom: 1em; font-weight: 700; font-size: 0.88rem; color: var(--navy); }
input, select, textarea {
  display: block; width: 100%; margin-top: 0.4em; padding: 0.7em 0.8em;
  border: 1.5px solid var(--border); border-radius: 10px; font-size: 0.96rem; font-family: inherit;
  background: #fff; color: var(--text); transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
input:disabled { background: #f1f4f8; color: var(--text-muted); }
fieldset { border: 1px solid var(--border); border-radius: 10px; padding: 1em; margin: 0 0 1em; }
legend { font-weight: 700; color: var(--navy); padding: 0 0.4em; }
.checkbox-row { display: flex; align-items: flex-start; gap: 0.6em; font-weight: 500; color: var(--text); font-size: 0.88rem; }
.checkbox-row input { width: auto; margin: 0.2em 0 0; flex-shrink: 0; }
.zone-picker { margin: 0; }

/* ---------- Flash / banners ---------- */
.flash { padding: 0.85em 1em; border-radius: 10px; margin-bottom: 1.25em; font-weight: 600; font-size: 0.9rem; }
.flash-ok { background: #e7f6ee; color: #1c6e46; border: 1px solid #b9e7cf; }
.flash-error { background: #fdeeed; color: #a4302c; border: 1px solid #f5c6c3; }
.banner { padding: 0.9em 1.1em; border-radius: 10px; margin-bottom: 1.25em; }
.banner-warn { background: #fef6e7; color: #8a5a05; border: 1px solid #f6dfa3; }
.banner-bad { background: #fdeeed; color: #a4302c; border: 1px solid #f5c6c3; }
.banner-info { background: var(--blue-tint); color: var(--text); border: 1px solid #cfe6f6; }
.banner-info strong { display: block; color: var(--navy); font-size: 0.86rem; margin-bottom: 0.35em; }
.banner-info p { margin: 0; font-size: 0.86rem; line-height: 1.6; }
.away-form { display: flex; align-items: center; gap: 0.7em; flex-wrap: wrap; margin: 0; }
.away-form input { width: auto; flex: 1; min-width: 160px; margin: 0; }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 0.22em 0.7em; border-radius: 999px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.02em; }
.badge-neutral { background: #eef1f5; color: #475467; }
.badge-good { background: #e7f6ee; color: #1c6e46; }
.badge-warn { background: #fef6e7; color: #8a5a05; }
.badge-bad { background: #fdeeed; color: #a4302c; }
.badge-info { background: #e8f2fb; color: #1a5f96; }
.badge-demo { background: #f3e8fd; color: #6b21a8; }

/* ---------- Shared icon button (hamburger / close / avatar links) ---------- */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; border: none; background: transparent;
  color: var(--navy); cursor: pointer; flex-shrink: 0;
}
.icon-btn:hover { background: #eef2f7; }
.icon-btn .icon { width: 22px; height: 22px; }

/* ================= PUBLIC SITE ================= */
/* 2026-11 "simple & modern directory" redesign. Everything below is scoped
   either to classes that only ever render inside the public homepage/
   marketing pages (hero, catstrip, featured, vgrid, cat-grid, steps,
   two-col, mini-stats, cta) or explicitly prefixed `.public-shell` where it
   touches a class also used by the app shell (buttons, links).
   2026-11-17: the public site used to override --accent/--gradient-brand
   to its own navy+gold pair here, separate from the app shell's blue/
   purple. Both shells now share one brand palette from the :root tokens
   above, so that per-shell override was removed — this block only adds
   the public-only layout/shadow touches that don't apply to .app-shell. */
.public-shell { display: flex; flex-direction: column; min-height: 100vh; }
.public-shell .btn-primary { background: var(--gradient-brand); color: #fff; box-shadow: 0 10px 24px -8px rgba(205,157,66,0.35), 0 1px 2px rgba(43,116,181,0.25); }
.public-shell .btn-primary:hover { background: var(--gradient-brand-hover); color: #fff; }
.public-shell .btn-ghost { color: var(--accent-dark); border-color: var(--border); }
.public-shell .btn-ghost:hover { background: var(--accent-light); }
.public-shell a { color: var(--accent-dark); }
.public-shell .tab-item-fab-circle { box-shadow: 0 10px 20px -6px rgba(6,26,48,0.5), 0 0 0 4px #fff; }

/* ---------- Visual refresh (approved 2026-11-01, public site) ----------
   A visual-only refresh on top of the existing "simple & modern directory"
   structure above: a blue→purple gradient reserved for functional emphasis
   only (the primary CTA button, the active category pill) rather than
   decorative text, slightly rounder cards for a softer "app" feel, and one
   real-data "glass" stat card in the hero in place of a purely decorative
   graphic. No new fonts/icon libraries were added — Plus Jakarta Sans and
   the existing hand-drawn icon set are unchanged (user explicitly chose to
   keep the current font/icon system over the alternative shown side by
   side). Scoped entirely under .public-shell / new classes; nothing here
   touches forms or the booking flow. */
.public-shell .cat-card,
.public-shell .vfcard,
.public-shell .vrow,
.public-shell .step,
.public-shell .guide-pick-card { border-radius: 20px; }
.public-shell .vtile { border-radius: 14px; }
.public-shell .auth-card { border-radius: 24px; }

.cat-pill.active { background: var(--gradient-brand); border-color: transparent; color: #fff; box-shadow: 0 6px 16px -6px rgba(6,26,48,0.45); }

.hero-art { position: relative; }
.hero-art-logo img { width: 190px; height: 190px; border-radius: 28px; object-fit: cover; filter: drop-shadow(0 16px 32px rgba(16,24,40,0.12)); }
.hero-stat-card {
  position: absolute; left: -0.5rem; bottom: -0.5rem; display: flex; align-items: center; gap: 0.7em;
  background: rgba(255,255,255,0.78); backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(255,255,255,0.9); border-radius: 18px; padding: 0.85em 1.1em;
  box-shadow: 0 16px 36px -12px rgba(11,42,74,0.22);
}
.hero-stat-card-dot { width: 10px; height: 10px; border-radius: 50%; background: #16a34a; flex-shrink: 0; position: relative; }
.hero-stat-card-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #16a34a; opacity: 0.4;
  animation: pulse-ring 2s var(--ease) infinite;
}
@keyframes pulse-ring { 0% { transform: scale(0.7); opacity: 0.6; } 100% { transform: scale(1.6); opacity: 0; } }
.hero-stat-card strong { display: block; font-size: 1.15rem; color: var(--navy); line-height: 1.1; }
.hero-stat-card span { display: block; font-size: 0.74rem; color: var(--text-muted); font-weight: 600; margin-top: 0.15em; }
@media (prefers-reduced-motion: reduce) { .hero-stat-card-dot::after { animation: none; } }

/* ---------- Visual refresh (approved 2026-11-01, app shell) ----------
   Carries the same gradient/rounding language above into the logged-in app
   shell — confirmed via screenshots to apply consistently across Client
   (Dashboard, Browse, request/booking form, My Jobs, job detail, Receipts,
   WhatsApp log, Profile), Vendor, Agent, and HQ, since they all share the
   same layoutApp() shell and card/stat-tile/nav-link/button components.
   Visual-only: no markup, route, or booking-flow logic changed anywhere in
   this block — see "don't change the way of the booking" (standing
   instruction). Scoped under .app-shell (or classes that only render
   inside it) so the public site and auth pages are untouched. */
.app-shell .btn-primary { background: var(--gradient-brand); color: #fff; box-shadow: 0 10px 24px -8px rgba(205,157,66,0.35), 0 1px 2px rgba(43,116,181,0.25); }
.app-shell .btn-primary:hover { background: var(--gradient-brand-hover); color: #fff; }

.app-shell .card,
.app-shell .stat-tile,
.app-shell .wa-thread-group,
.app-shell .wa-category-group,
.app-shell .receipt-list,
.app-shell .job-card,
.app-shell .auth-card { border-radius: 18px; }

.app-shell .stat-tile { border-left: none; position: relative; overflow: hidden; }
.app-shell .stat-tile::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gradient-brand); }
.app-shell .stat-tile-link:hover { border-left: none; }

.app-shell .avatar { background: var(--gradient-brand); }

.app-shell .nav-link.active { background: var(--gradient-brand); color: #fff; border-left-color: transparent; }
.app-shell .nav-link.active .nav-icon { color: #fff; }

.app-shell .progress-step.done .progress-step-dot { background: var(--gradient-brand); border-color: transparent; }
.app-shell .progress-step.current .progress-step-dot { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(43,116,181,0.18); }

/* Quick-book tiles on the dashboard ("Need something right now?") had no
   dedicated styling before this sample — plain inline text links. This is
   the single highest-intent action on the dashboard (item from the user's
   brief: "make the client book in a simple and easy step"), so it gets a
   real tappable pill/icon-chip treatment instead of reading as a sentence
   of blue links. */
.quick-book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 1.1rem 0.5rem; margin-top: 1rem; }
.quick-book-tile {
  display: flex; flex-direction: column; align-items: center; gap: 0.5em; text-align: center;
  font-weight: 700; font-size: 0.76rem; line-height: 1.25; color: var(--navy); text-decoration: none;
  transition: transform 0.15s var(--ease);
}
.quick-book-tile:hover, .quick-book-tile:focus-visible { transform: translateY(-2px); color: var(--navy); text-decoration: none; }
.quick-book-icon {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: color-mix(in srgb, var(--cat-color, var(--accent)) 14%, #fff);
  border: 2px solid var(--cat-color, var(--accent));
  color: var(--cat-color, var(--accent));
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem;
}

/* App-like instant tap feedback — scoped to touch devices (no hover
   capability) so desktop/mouse behavior is untouched. A quick scale-down
   on press, not a hover transition, is what makes a touch UI feel like a
   native app responding instantly rather than a webpage link. */
@media (hover: none) {
  .btn, .quick-book-tile, .browse-tile, .browse-chip, .cat-pill, .job-card,
  .stat-tile-link, .nav-link, .tab-item, .vfcard, .vrow, .guide-pick-card {
    transition: transform 0.1s var(--ease);
  }
  .btn:active, .quick-book-tile:active, .browse-tile:active, .browse-chip:active,
  .job-card:active, .stat-tile-link:active, .tab-item:active, .vfcard:active, .vrow:active {
    transform: scale(0.96);
  }
}

.brand { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 800; font-size: 1.15rem; color: var(--navy); }
.brand-logo-img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 2rem; background: rgba(255,255,255,0.92); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 30;
}
.top-nav { display: flex; gap: 1.5rem; }
.top-nav a { color: var(--text); font-weight: 600; font-size: 0.92rem; }
.top-nav a:hover { color: var(--accent); text-decoration: none; }
.top-auth { display: flex; gap: 0.6rem; }
.hamburger { display: none; }

.public-menu-backdrop { display: none; }
.public-menu {
  position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); background: #fff; z-index: 51;
  transform: translateX(100%); transition: transform 0.28s var(--ease);
  display: flex; flex-direction: column; padding: 1.2rem 1.4rem; box-shadow: var(--shadow-lg);
}
.public-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.public-menu-links { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 1.6rem; }
.public-menu-links a { color: var(--text); font-weight: 700; font-size: 1.02rem; padding: 0.6em 0.2em; border-bottom: 1px solid var(--border-soft); }
.public-menu-auth { display: flex; flex-direction: column; gap: 0.6rem; margin-top: auto; }
.public-menu-auth .btn { width: 100%; }

/* ---------- Directory category strip (sits right under the top bar —
   the "header reads as a directory" device: every service group as a
   pill, horizontally scrollable on mobile/tablet like an app's filter
   row) ---------- */
.catstrip { background: #fff; border-bottom: 1px solid var(--border); padding: 0.85rem 0; position: sticky; top: var(--topbar-h); z-index: 20; }
.catstrip-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 2rem; display: flex; gap: 0.6rem;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.catstrip-inner::-webkit-scrollbar { display: none; }
.cat-pill {
  flex: 0 0 auto; font-size: 0.82rem; font-weight: 700; padding: 0.5em 1em; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-muted); background: #fff; white-space: nowrap;
}
.cat-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.hero { background: #fff; padding: 3.75rem 2rem 3rem; border-bottom: 1px solid var(--border); }
.hero-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 3rem; }
.hero-copy { flex: 1.2; }
.hero-art { flex: 0.8; display: flex; justify-content: center; }
.hero-art svg { width: 190px; height: 190px; filter: drop-shadow(0 16px 32px rgba(16,24,40,0.12)); }
.eyebrow { text-transform: uppercase; font-size: 0.76rem; letter-spacing: 0.1em; color: var(--accent-dark); font-weight: 700; }
.hero h1 { color: var(--navy); font-size: clamp(2rem, 4.2vw, 2.7rem); margin: 0.4em 0 0.5em; letter-spacing: -0.02em; }
.hero p { color: var(--text-muted); font-size: 1.08rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 0.8rem; margin: 1.5rem 0; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.2rem; margin-top: 2rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--border-soft); }
.hero-stats strong { display: block; font-size: 1.5rem; color: var(--navy); }
.hero-stats span { color: var(--text-muted); font-size: 0.82rem; }

/* ---------- Hero slider (2026-11-02) ----------
   Three slides covering what the homepage needs to say to three different
   people — clients, anyone comparing categories, and vendors asking how
   they get listed — without the homepage having three separate hero
   sections competing for the first screen. All three .hero-slide elements
   share the same grid cell (grid-area: 1/1), so the container's height is
   always the tallest slide and switching slides is a pure opacity
   cross-fade, no layout jump. Autoplay logic lives in public/app.js and
   respects prefers-reduced-motion (manual nav still works either way). */
.hero-slider-viewport { display: grid; }
.hero-slide {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.hero-slide.active { opacity: 1; visibility: visible; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

.hero-slider-controls { display: flex; align-items: center; justify-content: center; gap: 1.1rem; margin-top: 1.75rem; }
.hero-slider-arrow {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: #fff;
  display: flex; align-items: center; justify-content: center; color: var(--navy); cursor: pointer;
  font-size: 1.2rem; line-height: 1; flex-shrink: 0; transition: background 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.hero-slider-arrow:hover { background: var(--bg); box-shadow: var(--shadow); }
.hero-slider-dots { display: flex; align-items: center; gap: 0.5rem; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); border: none; cursor: pointer; padding: 0; transition: all 0.2s var(--ease); }
.hero-dot:hover { background: var(--text-faint); }
.hero-dot.active { width: 26px; border-radius: 4px; background: var(--gradient-brand); }

.hero-cat-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.65rem; max-width: 270px; }
.hero-cat-icon-chip {
  width: 54px; height: 54px; border-radius: 15px; background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; font-size: 1.55rem;
}

/* ---------- Promo banner (2026-11-02) ----------
   Honest "newly live" launch messaging — no fabricated discount or VIP
   tier, since neither exists yet in the real product. Sits right under the
   hero, above the detailed category grid. */
.promo-banner { background: var(--gradient-brand); padding: 1.1rem 2rem; }
.promo-banner-inner {
  max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: center;
  gap: 1.1rem 1.6rem; flex-wrap: wrap; text-align: center;
}
.promo-banner-badge {
  background: rgba(255,255,255,0.22); color: #fff; font-weight: 800; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 0.35em 0.85em; border-radius: 999px; flex-shrink: 0; white-space: nowrap;
}
.promo-banner p { color: #fff; margin: 0; font-size: 0.95rem; }
.promo-banner-actions { display: flex; gap: 0.6rem; flex-shrink: 0; flex-wrap: wrap; justify-content: center; }
.promo-banner .btn-primary { background: #fff; color: var(--accent-dark); box-shadow: none; }
.promo-banner .btn-primary:hover { background: #fdf6e3; color: var(--accent-dark); }
.promo-banner .btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.4); }
.promo-banner .btn-ghost:hover { background: rgba(255,255,255,0.22); color: #fff; }

/* ---------- How it works — Client/Vendor split (2026-11-02) ----------
   Replaces the old single 5-step strip + separate two-col benefits section
   with one section, two clearly separated tracks, each ending in its own
   CTA (Log In for clients, Find Your Agent for vendors — there's no public
   self-serve vendor signup, so the real CTA is the agent directory). */
.how-split { align-items: start; }
.how-track h3 { font-size: 1.2rem; margin-bottom: 0.9rem; }
.how-track .steps-compact { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; margin: 0 0 1.3rem; }
.how-track .step { text-align: left; padding: 1.1rem 1rem; }
.how-track .step-num { margin: 0 0 0.6em; }
.how-track .check-list { margin-bottom: 1.4rem; }
.how-track .btn { width: 100%; justify-content: center; }

.strip { background: var(--bg); border-bottom: 1px solid var(--border); }
.strip-inner { max-width: 1120px; margin: 0 auto; padding: 0.9rem 2rem; display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; color: var(--text-faint); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.03em; }

.section { padding: 4.25rem 2rem; }
.section.alt { background: var(--bg); }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); text-align: center; }
.section-lead { text-align: center; color: var(--text-muted); max-width: 60ch; margin: 0 auto 2.5rem; }
.section-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head-row h2 { text-align: left; margin: 0; }
.section-head-row .section-lead { text-align: right; margin: 0; max-width: 34ch; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; margin-top: 1rem; }
.cat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease); }
.cat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-icon { font-size: 1.7rem; margin-bottom: 0.5rem; }
.group-icon-img { width: 1em; height: 1em; object-fit: contain; vertical-align: -0.15em; border-radius: 0.2em; display: inline-block; }
.cat-card h3 { font-size: 1.02rem; }
.cat-card ul { list-style: none; padding: 0; margin: 0; color: var(--text-muted); font-size: 0.88rem; }
.cat-card li { padding: 0.25em 0; border-top: 1px dashed var(--border); }
.cat-card li:first-child { border-top: none; }

/* ---------- Featured & full-directory vendor cards (real, approved
   vendor profiles — ratings/review counts/avatar tile come from real data;
   no vendor photo field exists yet, so each card uses a colored icon tile
   for its category instead of a stock/placeholder photo) ---------- */
.vendor-featured { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.vfcard { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow); transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease); }
.vfcard:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.vtile { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; margin-bottom: 0.7rem; }
.vfcard strong { display: block; font-size: 0.95rem; }
.vfcard .vcat { font-size: 0.78rem; color: var(--text-muted); display: block; margin-top: 0.1em; }
.vfcard .vmeta { display: flex; align-items: center; gap: 0.4em; font-size: 0.78rem; color: var(--text-muted); margin-top: 0.6rem; }
.vfcard .vmeta .stars { color: var(--orange); letter-spacing: 1px; font-size: 0.8rem; }
.vbadge-verified {
  display: inline-flex; align-items: center; gap: 0.3em; font-size: 0.68rem; font-weight: 800;
  color: #fff; background: var(--accent); border-radius: 999px; padding: 0.25em 0.6em; margin-top: 0.6rem;
}

.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.vrow { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem; display: flex; align-items: center; gap: 0.9rem; box-shadow: var(--shadow); }
.vrow .vtile { margin-bottom: 0; flex-shrink: 0; }
.vrow-body { flex: 1; min-width: 0; }
.vrow-top { display: flex; align-items: center; gap: 0.4em; }
.vrow-top strong { font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vrow .vcat { font-size: 0.76rem; color: var(--text-muted); display: block; }
.vrow .vloc { font-size: 0.72rem; color: var(--text-faint); display: block; }
.vrow .vmeta { display: flex; align-items: center; gap: 0.35em; font-size: 0.74rem; color: var(--text-muted); margin-top: 0.25em; }
.vrow .vmeta .stars { color: var(--orange); }
.directory-more { text-align: center; margin-top: 1.5rem; color: var(--text-muted); font-size: 0.88rem; }
.directory-empty { text-align: center; color: var(--text-muted); padding: 1.5rem; }

/* Mobile "app" bottom action bar — a persistent primary CTA on small
   screens, shown only on the homepage (not the logged-in app shell, which
   already has its own bottom-tabbar). Hidden by default; the 900px
   breakpoint below turns it on. */
.public-bottom-cta { display: none; }

.guide-pick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 1rem; }
.guide-pick-card {
  display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); color: inherit; text-decoration: none;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.guide-pick-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.guide-pick-card h3 { margin: 0 0 0.4rem; color: var(--navy); }
.guide-pick-card p { margin: 0; font-size: 0.92rem; }

details.cat-card { padding: 0; overflow: hidden; }
details.cat-card:hover { transform: none; }
details.cat-card[open] { box-shadow: var(--shadow-md); }
.cat-card-summary {
  display: flex; align-items: center; gap: 0.7em; padding: 1.1rem 1.25rem; cursor: pointer;
  list-style: none; font-weight: 800; color: var(--navy); user-select: none;
}
.cat-card-summary::-webkit-details-marker { display: none; }
.cat-card-summary h3 { margin: 0; font-size: 1.02rem; flex: 1; }
.cat-card-summary .cat-icon { font-size: 1.4rem; margin-bottom: 0; flex-shrink: 0; }
.cat-chevron { width: 18px; height: 18px; color: var(--text-faint); flex-shrink: 0; transition: transform 0.15s var(--ease); }
details.cat-card[open] .cat-chevron { transform: rotate(90deg); }

.cat-service-list { list-style: none; padding: 0 1.25rem 1.1rem; margin: 0; font-size: 0.95rem; }
.cat-service-row { display: flex; align-items: center; justify-content: space-between; gap: 0.8em; padding: 0.55em 0; border-top: 1px dashed var(--border); }
.cat-service-row:first-child { border-top: none; padding-top: 0.1em; }
.cat-service-name { font-weight: 600; color: var(--text); min-width: 0; }
.cat-service-actions { display: flex; align-items: center; gap: 0.9em; flex-shrink: 0; }
.cat-service-actions .btn-primary { color: #fff; }
.cat-service-actions .btn-primary:hover { color: #fff; }
.cat-service-row.cat-no-match { display: none; }
.cat-detail-link { flex-shrink: 0; font-size: 0.78rem; font-weight: 700; color: var(--text-faint); white-space: nowrap; }
.cat-detail-link:hover { color: var(--accent-dark); }

.browse-search { position: relative; display: block; margin: 1rem 0 0; }
.browse-search-icon { position: absolute; left: 0.9em; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-faint); pointer-events: none; }
.browse-search-input { padding-left: 2.6em; margin-top: 0; }
details.cat-card.cat-no-match { display: none; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; }
.step { background: #fff; border-radius: var(--radius); padding: 1.4rem 1.1rem; box-shadow: var(--shadow); text-align: center; }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto 0.7em; }
.step h4 { font-size: 0.98rem; }
.step p { font-size: 0.85rem; color: var(--text-muted); }

.check-list { list-style: none; padding: 0; }
.check-list li { padding: 0.5em 0 0.5em 1.7em; position: relative; border-bottom: 1px dashed var(--border); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 1.5rem; }
.mini-stats div { background: #fff; border-radius: var(--radius); padding: 1.2rem; text-align: center; box-shadow: var(--shadow); }
.mini-stats strong { display: block; font-size: 1.4rem; color: var(--navy); }
.mini-stats span { color: var(--text-muted); font-size: 0.82rem; }

.cta { background: linear-gradient(145deg, var(--navy) 0%, var(--navy-deepest) 100%); color: #fff; padding: 3.5rem 2rem; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #d7e6f2; max-width: 50ch; margin: 0 auto 1.5rem; }
.cta .hero-actions { justify-content: center; }
.cta .btn-primary { background: var(--accent); color: #fff; }
.cta .btn-primary:hover { background: var(--accent-dark); }
.cta .btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.4); }
.cta .btn-ghost:hover { background: rgba(255,255,255,0.18); }

.site-footer { background: #060c16; color: #9fb4c8; padding: 2.5rem 2rem; margin-top: auto; }
.footer-inner { max-width: 1120px; margin: 0 auto; }
.site-footer .brand { color: #fff; margin-bottom: 0.8em; font-size: 1.3rem; }
.footer-meta { font-size: 0.8rem; color: #6f8aa3; }

/* ---------- Footer, 3-column (2026-11-02) ---------- */
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
.footer-col h3 {
  color: #fff; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  margin: 0 0 0.9rem;
}
.footer-col p { font-size: 0.88rem; line-height: 1.6; margin: 0; }
.footer-col strong { color: #cddceb; }
.footer-badge {
  display: inline-block; margin-top: 0.9rem; background: rgba(46,158,109,0.16); color: #4ade9a;
  font-weight: 800; font-size: 0.72rem; letter-spacing: 0.03em; padding: 0.35em 0.85em; border-radius: 999px;
}
.footer-col .check-list { margin-top: 0; }
.footer-col .check-list li { border-bottom-color: rgba(159,180,200,0.16); font-size: 0.88rem; padding-left: 1.6em; }
.footer-col .check-list li::before { color: #4ade9a; }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(159,180,200,0.14); }
.footer-bottom .footer-meta { margin: 0 0 0.4em; }

.auth-page { display: flex; justify-content: center; padding: 3.5rem 1.5rem; }
.auth-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 2.2rem; width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 1.5rem; }

.auth-divider { display: flex; align-items: center; gap: 0.8em; margin: 1.1em 0; color: var(--text-faint); font-size: 0.8rem; font-weight: 600; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.btn-google { background: #fff; color: var(--text); border: 1.5px solid var(--border); }
.btn-google:hover { background: #f8fafc; border-color: var(--text-faint); }
.btn-google svg { flex-shrink: 0; }

.error-page { max-width: 700px; margin: 4rem auto; padding: 0 1.5rem; text-align: center; }
.error-page pre { text-align: left; background: #fff; padding: 1rem; border-radius: 8px; overflow: auto; font-size: 0.8rem; border: 1px solid var(--border); }


/* ================= APP SHELL (logged-in dashboards) ================= */
.app-shell { background: var(--bg); }
.shell { display: flex; min-height: 100vh; }

/* --- Desktop / tablet sidebar --- */
.sidebar {
  width: 252px; background: linear-gradient(185deg, var(--navy) 0%, #081d33 100%); color: #fff;
  display: flex; flex-direction: column; padding: 1.4rem 1.1rem; flex-shrink: 0;
  position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { color: #fff; margin-bottom: 1rem; }
.role-pill { display: inline-block; background: rgba(255,255,255,0.12); color: #cfe4f6; font-size: 0.72rem; font-weight: 700; padding: 0.25em 0.7em; border-radius: 999px; margin-bottom: 1.4rem; letter-spacing: 0.03em; text-transform: uppercase; width: fit-content; }
.side-nav { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; }
.nav-link {
  display: flex; align-items: center; gap: 0.75em; color: #bcd2e8; padding: 0.65em 0.8em; border-radius: 10px;
  font-weight: 600; font-size: 0.92rem; border-left: 3px solid transparent; transition: background 0.15s, color 0.15s;
}
.nav-link .nav-icon { color: #88a7c4; }
.nav-link:hover { background: rgba(255,255,255,0.07); text-decoration: none; color: #fff; }
.nav-link.active { background: rgba(59,158,219,0.16); color: #fff; border-left-color: var(--blue); }
.nav-link.active .nav-icon { color: var(--blue); }
.sidebar-foot { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1rem; margin-top: 1rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; font-size: 0.9rem; }
.avatar-sm { width: 32px; height: 32px; font-size: 0.85rem; text-decoration: none; }
.sidebar .btn-ghost { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.2); }
.sidebar .btn-ghost:hover { background: rgba(255,255,255,0.16); }

/* ---------- Account card + footer menu (2026-11-02, polish pass) ----------
   Used at the bottom of both the desktop sidebar (dark) and the mobile
   nav drawer (light) — see miniUserCard()/guideOrTermsLink() in
   lib/view.js, which render identical markup for both so this is the only
   place the look can drift. A card instead of loose floating text, a
   bigger avatar with a hairline ring for depth, and a single-line
   ellipsis-truncated email (was a raw word-break wrap) read as a real
   account panel instead of debug text. Footer actions (Terms/Guide, Log
   out) are plain icon+label hover rows rather than bordered buttons —
   closer to how a native app's account menu actually looks — with Log out
   picking up a red tint only on hover/focus, not sitting alarming-red at
   rest. */
.mini-user {
  display: flex; align-items: center; gap: 0.7em; margin-bottom: 0.9em;
  background: rgba(255,255,255,0.05); border-radius: 12px; padding: 0.65em 0.75em;
}
.mini-user .avatar { width: 40px; height: 40px; font-size: 1rem; box-shadow: 0 0 0 2px rgba(255,255,255,0.14); }
.mini-user-text { min-width: 0; }
.mini-user-name { font-size: 0.86rem; font-weight: 700; color: #fff; }
.mini-user-email {
  font-size: 0.72rem; color: #9db6cc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-foot-menu { display: flex; flex-direction: column; gap: 0.1rem; }
.footer-link {
  display: flex; align-items: center; gap: 0.65em; padding: 0.6em 0.6em; border-radius: 8px;
  font-size: 0.84rem; font-weight: 600; color: rgba(255,255,255,0.8); background: none; border: none;
  width: 100%; text-align: left; font-family: inherit; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.footer-link .icon { width: 17px; height: 17px; flex-shrink: 0; color: rgba(255,255,255,0.55); }
.footer-link:hover, .footer-link:focus-visible { background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; }
.footer-link-danger:hover, .footer-link-danger:focus-visible { background: rgba(255,88,88,0.14); color: #ffb3b3; }
.footer-link-danger:hover .icon, .footer-link-danger:focus-visible .icon { color: #ffb3b3; }

/* Light-theme variant for the mobile nav drawer (white background) */
.nav-drawer-head .mini-user { background: var(--bg); flex: 1; }
.nav-drawer .footer-link { color: var(--text); }
.nav-drawer .footer-link .icon { color: var(--text-faint); }
.nav-drawer .footer-link:hover, .nav-drawer .footer-link:focus-visible { background: var(--bg); color: var(--navy); }
.nav-drawer .footer-link-danger:hover, .nav-drawer .footer-link-danger:focus-visible { background: var(--red-tint, #fde8e8); color: var(--red); }
.nav-drawer .footer-link-danger:hover .icon, .nav-drawer .footer-link-danger:focus-visible .icon { color: var(--red); }

/* --- Mobile app bar (hidden on desktop) --- */
.mobile-topbar {
  display: none; align-items: center; justify-content: space-between; gap: 0.6rem;
  height: var(--topbar-h); padding: 0 0.6rem 0 0.3rem; background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.brand-compact { font-size: 1.02rem; }
.brand-compact .brand-logo-img { width: 28px; height: 28px; }

/* --- Mobile bottom tab bar (hidden on desktop) --- */
.bottom-tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(255,255,255,0.96); backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--border); align-items: stretch; justify-content: space-around;
}
.tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2em;
  color: var(--text-faint); font-size: 0.68rem; font-weight: 700; background: none; border: none; cursor: pointer;
  font-family: inherit; padding: 0.4em 0.2em 0.35em;
}
.tab-item .icon { width: 22px; height: 22px; }
.tab-item.active { color: var(--blue-dark); }
.tab-item:active { transform: scale(0.95); }

/* --- Client-only raised center FAB (2026-11-02, "app feel" pass) --- */
.tab-item-fab { flex: 1; display: flex; align-items: flex-start; justify-content: center; }
.tab-item-fab-circle {
  width: 54px; height: 54px; margin-top: -24px; border-radius: 50%; background: var(--gradient-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 20px -6px rgba(205,157,66,0.5), 0 0 0 4px #fff; transition: transform 0.15s var(--ease);
}
.tab-item-fab-circle .icon { width: 24px; height: 24px; stroke-width: 2.6; }
.tab-item-fab:active .tab-item-fab-circle { transform: scale(0.92); }

/* --- Nav drawer (mobile "more" menu / off-canvas) --- */
.nav-drawer-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(8,20,35,0.45); z-index: 40;
  opacity: 0; pointer-events: none; transition: opacity 0.2s var(--ease);
}
.nav-drawer {
  position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw); background: #fff; z-index: 41;
  transform: translateX(100%); pointer-events: none; transition: transform 0.28s var(--ease);
  display: flex; flex-direction: column; padding: 1.2rem 1.2rem calc(1.2rem + var(--safe-b));
  box-shadow: var(--shadow-lg); overflow-y: auto;
}
.nav-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.nav-drawer-head .mini-user-name, .nav-drawer-head .mini-user-email { color: var(--navy); }
.nav-drawer-head .mini-user-email { color: var(--text-muted); }
.drawer-nav { display: flex; flex-direction: column; gap: 0.15rem; margin-bottom: 1.2rem; }
.drawer-nav .nav-link { color: var(--text); }
.drawer-nav .nav-link .nav-icon { color: var(--text-faint); }
.drawer-nav .nav-link:hover { background: var(--bg); color: var(--navy); }
.drawer-nav .nav-link.active { background: var(--blue-tint); color: var(--blue-dark); }
.drawer-nav .nav-link.active .nav-icon { color: var(--blue-dark); }
.drawer-foot { margin-top: auto; border-top: 1px solid var(--border-soft); padding-top: 0.6rem; display: flex; flex-direction: column; gap: 0.1rem; }
.drawer-foot form { margin: 0; }

.shell.drawer-open .nav-drawer-backdrop { display: block; opacity: 1; pointer-events: auto; }
.shell.drawer-open .nav-drawer { transform: translateX(0); pointer-events: auto; }

body.menu-open .public-menu-backdrop { display: block; opacity: 1; }
body.menu-open .public-menu { transform: translateX(0); }

.main { flex: 1; min-width: 0; }
.main-inner { max-width: 1150px; margin: 0 auto; padding: 2rem 2.2rem 4rem; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 1.6rem; }

/* ---------- Client Dashboard hero (2026-11-02, "app feel" pass) ----------
   A colored welcome + search banner at the top of the dashboard home
   screen, replacing the plain "Hi {name}" page-head there specifically
   (other app pages keep .page-head as-is). Submits a real GET to
   /client/browse?q=..., which pre-fills and runs the existing Browse
   Services search filter — not a decorative search box. */
.dash-hero { background: var(--gradient-brand); color: #fff; border-radius: var(--radius-lg); padding: 1.5rem 1.4rem 1.7rem; margin-bottom: 1.4rem; }
.dash-hero-greeting { font-size: 0.92rem; opacity: 0.9; margin-bottom: 0.15rem; }
.dash-hero h1 { color: #fff; font-size: 1.3rem; margin: 0 0 1.1rem; }
.dash-hero-search { display: flex; align-items: center; gap: 0.6em; background: #fff; border-radius: 999px; padding: 0.3em 0.3em 0.3em 1.1em; }
.dash-hero-search .icon { width: 19px; height: 19px; color: var(--text-faint); flex-shrink: 0; }
.dash-hero-search input { flex: 1; min-width: 0; border: none; outline: none; font-size: 0.92rem; font-family: inherit; color: var(--text); background: transparent; }
.dash-hero-search input::placeholder { color: var(--text-faint); }
.dash-hero-search .btn { flex-shrink: 0; padding: 0.55em 1.1em; }

/* A plain auto-fit grid left an orphan 4th tile wrapping alone on tablet
   widths (~900–1180px, sidebar visible but narrow) — fixed 4 columns on
   wide screens, a clean 2x2 in that tablet range (see the 1180px query
   below), and the existing ≤900px/≤560px rules already give 2 columns on
   phones and narrow tablets. */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.4rem; }
@media (max-width: 1180px) and (min-width: 901px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
.stat-tile { background: #fff; border: 1px solid var(--border-soft); border-left: 3px solid var(--blue); border-radius: var(--radius-sm); padding: 1.05rem 1.2rem; }
.stat-value { font-size: 1.55rem; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; margin-top: 0.15em; }
.stat-sub { font-size: 0.76rem; color: var(--text-muted); margin-top: 0.3em; }
.stat-tile-link { display: block; text-decoration: none; transition: box-shadow 0.15s var(--ease), transform 0.1s var(--ease); cursor: pointer; }
.stat-tile-link:hover { text-decoration: none; box-shadow: var(--shadow-md); transform: translateY(-1px); border-left-color: var(--navy); }

.two-col-cards { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.2rem; align-items: start; }

.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1.2rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.3rem 0; gap: 0.6rem; flex-wrap: wrap; }
.card-head h3 { margin: 0; font-size: 1.05rem; }
.card-body { padding: 1.3rem; }
.card > .card-body:first-child { padding-top: 1.3rem; }
.card-actions { font-size: 0.85rem; }
.card-actions-bottom { padding: 0 1.3rem 1.3rem; }
.card form { margin: 0; }
.card > form > .card-body { padding: 1.3rem; }

.empty-state { color: var(--text-muted); font-size: 0.9rem; padding: 1.4rem 0; text-align: center; }
.plain-list { margin: 0.6rem 0 0; padding-left: 1.2rem; font-size: 0.88rem; }
.plain-list li { margin-bottom: 0.4rem; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.table th { text-align: left; color: var(--text-muted); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; padding: 0.5em 1.3rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 0.75em 1.3rem; border-bottom: 1px solid #f0f2f5; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }

.tabs { display: flex; gap: 0.4rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab { padding: 0.6em 0.9em; font-weight: 700; font-size: 0.85rem; color: var(--text-muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.active { color: var(--navy); border-color: var(--blue); }
.tab:hover { text-decoration: none; color: var(--navy); }

.progress { background: #eef1f5; border-radius: 999px; height: 8px; overflow: hidden; min-width: 100px; }
.progress-bar { background: linear-gradient(90deg, var(--blue), var(--green)); height: 100%; border-radius: 999px; }
.progress-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3em; }
.bar-row { display: grid; grid-template-columns: 1fr 2fr auto; align-items: center; gap: 0.8rem; margin-bottom: 0.7rem; font-size: 0.85rem; }

.stars { color: var(--orange); letter-spacing: 0.05em; }

.wa-thread { display: flex; flex-direction: column; gap: 0.6rem; }
.wa-bubble { background: #e9fbe1; border-radius: 10px 10px 10px 2px; padding: 0.6em 0.9em; max-width: 100%; }
.wa-bubble.wa-missed, .wa-bubble.wa-rejection { background: #f4f4f5; }
.wa-bubble.wa-invoice, .wa-bubble.wa-payment { background: #e8f2fb; }
.wa-meta { font-size: 0.7rem; color: #4a7a3e; font-weight: 700; margin-bottom: 0.2em; }
.wa-check { color: #34b7f1; }
.wa-text { font-size: 0.88rem; }
.wa-maps-chip {
  display: inline-flex; align-items: center; gap: 0.4em; margin-top: 0.5em; padding: 0.45em 0.7em; border-radius: 8px;
  background: var(--blue-tint); color: #1a76b3; font-weight: 700; font-size: 0.76rem;
}
.wa-maps-chip:hover { text-decoration: none; background: #d9edf8; }

/* Grouped WhatsApp log (/client/whatsapp, /vendor/whatsapp) — search bar
   reuses the Browse Services "search-first" look; each conversation is a
   <details> thread so the page works fully with JS off (search simply
   doesn't filter — every thread still renders, in collapsed/expanded state
   as given), same zero-JS-first pattern as the rest of this app. */
.wa-log-search {
  display: flex; align-items: center; gap: 0.7em; background: #fff; border: 1.5px solid var(--border);
  border-radius: 14px; padding: 0.85em 1.1em; margin: 0 0 1.2rem;
}
.wa-search-icon { width: 18px; height: 18px; color: var(--text-faint); flex-shrink: 0; }
.wa-search-input { border: none; outline: none; background: transparent; font: inherit; font-size: 0.95rem; color: var(--text); width: 100%; padding: 0; }
.wa-search-input::placeholder { color: var(--text-faint); }
.wa-thread-list { display: flex; flex-direction: column; gap: 0.7rem; }
.wa-thread-group { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; }
.wa-thread-group summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1em; cursor: pointer;
  padding: 0.9em 1.1em; list-style: none; font-weight: 700;
}
.wa-thread-group summary::-webkit-details-marker { display: none; }
.wa-thread-title { color: var(--text); }
.wa-thread-meta { font-size: 0.78rem; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.wa-thread-group .wa-thread { padding: 0 1.1em 1.1em; }
.wa-thread-group[open] summary { border-bottom: 1px solid var(--border); }

/* Category > vendor > job grouping, client's WhatsApp log only (see
   groupedLogsForClientByCategory() in lib/whatsapp.js and
   waCategoryVendorList() in lib/view.js) — added 2026-10-30 so a client's
   growing message history is organized the way they actually think about
   it ("who did I talk to about X"), not just chronologically by job. Each
   tier reuses the same <details>/summary visual language as
   .wa-thread-group above, nested one level deeper per tier and dialed back
   slightly in weight/size so the hierarchy reads at a glance; the
   innermost per-job thread is .wa-thread-group itself, unchanged. */
.wa-category-list { display: flex; flex-direction: column; gap: 0.8rem; }
.wa-category-group { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; }
.wa-category-group > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1em; cursor: pointer;
  padding: 1em 1.1em; list-style: none; font-weight: 800; font-size: 1.02rem;
}
.wa-category-group > summary::-webkit-details-marker { display: none; }
.wa-category-title { color: var(--text); }
.wa-category-meta { font-size: 0.78rem; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.wa-category-group[open] > summary { border-bottom: 1px solid var(--border); }
.wa-vendor-list { display: flex; flex-direction: column; gap: 0.6rem; padding: 0.9em 1.1em 1.1em; }
.wa-vendor-group { border: 1px solid var(--border); border-radius: calc(var(--radius) - 4px); background: var(--bg); overflow: hidden; }
.wa-vendor-group > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1em; cursor: pointer;
  padding: 0.75em 1em; list-style: none; font-weight: 700; font-size: 0.92rem;
}
.wa-vendor-group > summary::-webkit-details-marker { display: none; }
.wa-vendor-title { color: var(--text); }
.wa-vendor-group--pending .wa-vendor-title { color: var(--text-muted); font-style: italic; font-weight: 500; }
.wa-vendor-meta { font-size: 0.74rem; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.wa-vendor-group[open] > summary { border-bottom: 1px solid var(--border); }
.wa-job-thread-list { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.7em 0.8em 0.8em; }
.wa-job-thread-list .wa-thread-group { background: #fff; }

.vendor-pick-list { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.5rem 0 1rem; }
.vendor-pick { display: flex; align-items: center; gap: 0.7em; border: 1px solid var(--border); border-radius: 8px; padding: 0.6em 0.9em; font-weight: 500; cursor: pointer; }
.vendor-pick input { width: auto; margin: 0; }
.vendor-pick-name { flex: 1; }

.broadcast-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 0.9em 0; border-bottom: 1px dashed var(--border); }
.broadcast-item:last-child { border-bottom: none; }
.broadcast-actions { display: flex; gap: 0.5rem; flex-shrink: 0; flex-wrap: wrap; }

.review-item { padding: 0.8em 0; border-bottom: 1px dashed var(--border); }
.review-item:last-child { border-bottom: none; }
.review-form label { margin-bottom: 0.7em; }

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

/* ---------- Location pill (item 3: switch any location) ---------- */
.location-pill {
  display: flex; align-items: center; gap: 0.5em; color: #cfe4f6; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 999px; padding: 0.5em 0.9em;
  font-size: 0.82rem; font-weight: 700; margin-bottom: 1.1rem; width: fit-content; max-width: 100%;
}
.location-pill:hover { background: rgba(255,255,255,0.15); text-decoration: none; color: #fff; }
.location-pill-icon { width: 15px; height: 15px; color: var(--blue); flex-shrink: 0; }
.location-pill-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.location-pill-chev { width: 13px; height: 13px; opacity: 0.6; flex-shrink: 0; }
.location-bar { display: none; background: #fff; border-bottom: 1px solid var(--border); padding: 0.55rem 1rem; }
.location-bar .location-pill { color: var(--navy); background: var(--blue-tint); border-color: transparent; margin-bottom: 0; }
.location-bar .location-pill:hover { background: #ddeefa; color: var(--navy); }
.location-bar .location-pill-icon { color: var(--blue-dark); }
.location-bar .location-pill-chev { color: var(--navy); }

/* ---------- Zone switch page ---------- */
.zone-switch-list { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 1rem 1.3rem !important; }
.zone-switch-form { margin: 0; }
.zone-switch-btn {
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 999px; padding: 0.45em 0.95em;
  font-family: inherit; font-size: 0.85rem; font-weight: 600; color: var(--text); cursor: pointer;
}
.zone-switch-btn:hover { border-color: var(--blue); color: var(--blue-dark); }
.zone-switch-btn.current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Job cards (replaces a table for active/past requests) ---------- */
.job-cards { display: flex; flex-direction: column; gap: 0.8rem; }
.job-card {
  display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.1rem 1.2rem; color: var(--text); transition: box-shadow 0.15s var(--ease), transform 0.1s var(--ease);
}
.job-card:hover { text-decoration: none; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.job-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; }
.job-card-title { font-weight: 800; color: var(--navy); font-size: 1rem; }
.job-card-desc { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.15em; }
.job-card-foot { margin-top: 0.8rem; }

.progress-steps { display: flex; align-items: center; margin: 0.9rem 0; }
.progress-step { display: flex; flex-direction: column; align-items: center; gap: 0.35em; flex: 0 0 auto; width: 84px; text-align: center; }
.progress-step-dot {
  width: 20px; height: 20px; border-radius: 50%; background: var(--border); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff;
}
.progress-step-dot .icon { width: 12px; height: 12px; }
.progress-step.done .progress-step-dot { background: var(--green); border-color: var(--green); }
.progress-step.current .progress-step-dot { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.progress-step-label { font-size: 0.68rem; font-weight: 700; color: var(--text-faint); line-height: 1.2; }
.progress-step.done .progress-step-label, .progress-step.current .progress-step-label { color: var(--navy); }
.progress-step-line { flex: 1 1 auto; height: 2px; background: var(--border); margin: 0 -6px 1.6em; min-width: 12px; }

/* ================= Responsive ================= */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-art { order: -1; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; margin-bottom: 0.5rem; }
  .hero-stat-card { position: static; }
  .two-col, .steps, .two-col-cards { grid-template-columns: 1fr; }
  .how-track .steps-compact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .mini-stats { grid-template-columns: repeat(2, 1fr); }

  /* Tablet: directory sections drop to a denser 2-column app-style grid */
  .vendor-featured, .vgrid { grid-template-columns: repeat(2, 1fr); }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .section-head-row .section-lead { text-align: left; }

  /* Public nav becomes a hamburger + slide-in panel */
  .top-nav, .top-auth { display: none; }
  .hamburger { display: inline-flex; }
  .public-menu-backdrop { display: block; position: fixed; inset: 0; background: rgba(8,20,35,0.45); z-index: 50; opacity: 0; pointer-events: none; transition: opacity 0.2s var(--ease); }
  body.menu-open .public-menu-backdrop { pointer-events: auto; }

  /* App shell becomes a true mobile app: top bar + bottom tabs + drawer */
  .shell { flex-direction: column; }
  .sidebar { display: none; }
  .mobile-topbar { display: flex; }
  .bottom-tabbar { display: flex; }
  .nav-drawer-backdrop { display: block; }
  .main-inner { padding: 1.1rem 1rem calc(var(--tabbar-h) + var(--safe-b) + 1.5rem); }
  .page-head h1 { font-size: 1.35rem; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .progress-step { width: 72px; }
  .progress-step-label { font-size: 0.64rem; }

  /* Public site gets the same bottom tab bar as the logged-in app at this
     breakpoint (see publicBottomTabs() in lib/view.js) — reserve the same
     space under the content so the last section is never hidden behind it.
     Replaces the old 560px-only .public-bottom-cta padding below. */
  body.public-shell { padding-bottom: calc(var(--tabbar-h) + var(--safe-b)); }

  /* The hero is tall enough to fill a phone's first screen on its own, so
     its own CTA buttons land exactly where the fixed tab bar now lives —
     hide them here (same fix the old .public-bottom-cta needed) since the
     tab bar's center FAB already is the "get started" action on mobile. */
  .hero .hero-actions { display: none; }
}

@media (max-width: 560px) {
  .topbar { padding: 0.8rem 1.1rem; }
  .section { padding: 3rem 1.25rem; }
  .hero { padding: 2.25rem 1.25rem 1.75rem; }
  .catstrip-inner { padding: 0 1.25rem; }

  /* Mobile: directory sections collapse to a single-column app-style list.
     (The old homepage-only .public-bottom-cta strip — Login/Get Started —
     is gone: the public bottom tab bar added at the 900px breakpoint above
     now carries that "Get started" action as its center FAB on every
     public page, not just the homepage, so there's no second bottom bar
     to stack here.) */
  .vendor-featured, .vgrid { grid-template-columns: 1fr; }
  .vfcard { display: flex; align-items: center; gap: 0.9rem; text-align: left; }
  .vfcard .vtile { margin-bottom: 0; flex-shrink: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .mini-stats { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 1.6rem 1.3rem; }
  .card-body, .card > form > .card-body { padding: 1.05rem; }
}

/* ================= 2026-10-16 redesign additions ================= */

/* Small "New" tag on a sidebar/drawer nav item */
.nav-badge {
  background: var(--green); color: #fff; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.02em;
  text-transform: uppercase; padding: 0.15em 0.5em; border-radius: 999px; margin-left: auto;
}
.drawer-nav .nav-link { position: relative; }
.drawer-nav .nav-badge, .nav-link .nav-badge { flex-shrink: 0; }

/* ---------- Browse Services — search-first ----------
   Redesigned 2026-11-01 from a single merged accordion list (read as a
   plain settings list) into a grid of separated, elevated cards — reads
   as a real service directory and gives each category its own clear
   tap target. `align-self: start` keeps a card from being stretched by a
   taller neighbor when one is expanded. No markup or JS changed — the
   search/filter script (public/app.js) and the booking links underneath
   are untouched, only how they're presented. */
.browse-hero-search {
  display: flex; align-items: center; gap: 0.7em; background: #fff; border: 1.5px solid var(--border);
  border-radius: 14px; padding: 1.05em 1.3em; margin: 1rem 0 1.4rem; box-shadow: var(--shadow);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.browse-hero-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.browse-hero-search-icon { width: 20px; height: 20px; color: var(--text-faint); flex-shrink: 0; }
.browse-hero-search-input {
  border: none; outline: none; background: transparent; font: inherit; font-size: 1rem; color: var(--text);
  width: 100%; padding: 0;
}
.browse-hero-search-input::placeholder { color: var(--text-faint); }
.browse-freq-label {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted);
  margin: 0 0 0.6rem;
}
.browse-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.8rem; }
.browse-chip {
  display: inline-flex; align-items: center; gap: 0.4em; background: var(--blue-tint); color: var(--navy);
  border-radius: 999px; padding: 0.5em 0.95em; font-weight: 700; font-size: 0.84rem; text-decoration: none;
}
.browse-chip:hover { background: #ddeefa; text-decoration: none; color: var(--navy); }

/* Flat one-tap tile grid (redesigned 2026-11-01, replacing the group →
   expand → pick-a-service accordion above) — each service is its own
   directly-tappable tile, like a row of app-store icons; group names are
   plain section labels, not controls, so there's nothing to open before
   you can book. Booking itself (where a tile's href leads) is unchanged. */
.browse-tile-sections { display: flex; flex-direction: column; gap: 1.8rem; }
.browse-tile-section-title {
  display: flex; align-items: center; gap: 0.5em; font-size: 0.95rem; font-weight: 800; color: var(--navy);
  margin: 0 0 0.8rem;
}
.browse-tile-section-icon { font-size: 1.15rem; }
.browse-tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 1.2rem 0.5rem; }
.browse-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0.5em;
  text-align: center; color: var(--text); text-decoration: none;
  transition: transform 0.15s var(--ease);
}
.browse-tile:hover, .browse-tile:focus-visible { transform: translateY(-2px); text-decoration: none; color: var(--text); }
.browse-tile-icon {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: color-mix(in srgb, var(--cat-color, var(--accent)) 14%, #fff);
  border: 2px solid var(--cat-color, var(--accent));
  color: var(--cat-color, var(--accent));
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.45rem;
}
.group-icon-glyph { width: 1.1em; height: 1.1em; flex-shrink: 0; }
.browse-tile-name { font-size: 0.76rem; font-weight: 700; line-height: 1.25; }
.browse-no-results { display: none; text-align: center; padding: 2rem 1rem; }

@media (max-width: 560px) {
  .browse-tile-grid, .quick-book-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Booking form — location-first with postcode auto-fill ---------- */
.booking-step-label { display: flex; align-items: center; gap: 0.6em; font-weight: 800; font-size: 0.95rem; color: var(--navy); margin-bottom: 0.9rem; }
.booking-step-num {
  width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; display: flex;
  align-items: center; justify-content: center; font-size: 0.75rem; flex-shrink: 0;
}
.postcode-hint { font-size: 0.78rem; color: var(--text-faint); margin-top: 0.4em; }
.postcode-hint.ready { color: var(--green); font-weight: 700; }

/* ---------- My Receipts ---------- */
.receipt-list { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.receipt-row { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--border-soft); flex-wrap: wrap; }
.receipt-row:last-child { border-bottom: none; }
.receipt-icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--blue-tint); display: flex; align-items: center;
  justify-content: center; font-size: 1.3rem; flex-shrink: 0;
}
.receipt-info { flex: 1; min-width: 180px; }
.receipt-cat { font-weight: 800; font-size: 0.96rem; }
.receipt-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.1em; }
.receipt-amount { font-weight: 800; font-size: 1rem; color: var(--navy); white-space: nowrap; }
.receipt-dl-btn {
  display: inline-flex; align-items: center; gap: 0.4em; background: var(--navy); color: #fff; border: none;
  border-radius: var(--radius-sm); padding: 0.55em 0.95em; font-weight: 700; font-size: 0.82rem; font-family: inherit;
  cursor: pointer; white-space: nowrap; text-decoration: none;
}
.receipt-dl-btn:hover { background: var(--navy-light); color: #fff; text-decoration: none; }
.receipt-dl-btn .icon { width: 14px; height: 14px; }

/* ---------- Dashboard enhancements ---------- */
.job-card-vendor { display: flex; align-items: center; justify-content: space-between; gap: 0.8em; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px dashed var(--border); }
.job-card-vendor-who { display: flex; align-items: center; gap: 0.6em; min-width: 0; }
.job-card-vendor-who .avatar { width: 30px; height: 30px; font-size: 0.8rem; flex-shrink: 0; }
.job-card-vendor-name { font-weight: 700; font-size: 0.88rem; color: var(--text); }
.job-card-vendor-meta { font-size: 0.76rem; color: var(--text-muted); }
.review-row { padding: 0.8em 0; border-bottom: 1px solid var(--border-soft); }
.review-row:last-child { border-bottom: none; }
.review-row-top { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.review-row-comment { font-size: 0.88rem; color: var(--text-muted); margin: 0.3em 0 0; }

@media (max-width: 900px) {
  .browse-hero-search { padding: 0.9em 1.1em; }
  .receipt-row { padding: 1rem; }
  .receipt-info { min-width: 140px; }
}

/* ---------- HQ Icon Manager ---------- */
.icon-manager-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.icon-manager-current { display: flex; align-items: flex-start; gap: 0.9em; margin-bottom: 0.9rem; }
.icon-manager-preview {
  width: 46px; height: 46px; border-radius: 10px; background: var(--blue-tint); display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem; flex-shrink: 0;
}
.icon-cat-chips { display: flex; flex-wrap: wrap; gap: 0.4em; margin-top: 0.4em; }
.icon-cat-chip {
  display: inline-block; background: var(--border-soft); color: var(--text-muted); font-size: 0.74rem; font-weight: 600;
  padding: 0.25em 0.6em; border-radius: 999px;
}
.icon-manager-upload, .icon-manager-add-cat { margin-top: 0.6rem; }
.icon-manager-upload summary, .icon-manager-add-cat summary {
  cursor: pointer; font-weight: 700; font-size: 0.86rem; color: var(--blue); list-style: none;
}
.icon-manager-upload summary::-webkit-details-marker, .icon-manager-add-cat summary::-webkit-details-marker { display: none; }
.icon-upload-form, .icon-add-cat-form { margin-top: 0.7em; display: flex; flex-direction: column; gap: 0.6em; }
.icon-upload-form .field, .icon-add-cat-form .field { display: block; }
.icon-upload-form .field span, .icon-add-cat-form .field span { display: block; font-weight: 700; font-size: 0.82rem; color: var(--navy); margin-bottom: 0.3em; }

/* ---------- Support ---------- */
/* Redesigned 2026-11-02: a case's conversation (/support/:id,
   /hq/support/:id) — a real two-way thread instead of one static message.
   CLIENT bubbles sit right-aligned and brand-tinted, HQ bubbles sit
   left-aligned and neutral (mirroring how the rest of the app already
   distinguishes "you" from "them" — e.g. the WhatsApp bubbles' outbound/
   inbound coloring), and a SYSTEM entry (a status event like a resolve)
   renders as a small centered divider line rather than a bubble, so it
   can't be mistaken for something either person said. */
.support-thread { display: flex; flex-direction: column; gap: 0.6rem; }
.support-bubble { max-width: 80%; border-radius: 14px; padding: 0.7em 1em; }
.support-bubble--client { align-self: flex-end; background: var(--accent-light); border-bottom-right-radius: 4px; }
.support-bubble--hq { align-self: flex-start; background: #f1f4f8; border-bottom-left-radius: 4px; }
.support-bubble-meta { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); margin-bottom: 0.25em; }
.support-bubble-text { font-size: 0.92rem; white-space: pre-wrap; }
.support-sysmsg {
  align-self: center; font-size: 0.78rem; color: var(--text-muted); font-weight: 600;
  background: var(--border-soft); border-radius: 999px; padding: 0.3em 0.9em; margin: 0.2em 0;
}

/* 1-5 star satisfaction rating (starRatingInput()/starRatingReadonly() in
   lib/view.js). The interactive picker is pure CSS: five radio inputs in
   5→1 DOM order inside a row-reverse flex container, so the first star in
   the DOM renders rightmost — picking any star highlights it and every
   star after it in the DOM (i.e. everything to its left on screen) via the
   ~ sibling selector, with no JavaScript needed. The read-only variant is
   just filled/empty star glyphs, used once a rating has been submitted. */
.star-rating { display: inline-flex; flex-direction: row-reverse; gap: 0.15em; font-size: 1.7rem; margin-bottom: 0.6em; }
.star-rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-rating label { cursor: pointer; color: var(--border); line-height: 1; transition: color 0.1s; }
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label { color: #f5a623; }
.star-rating--readonly { color: #f5a623; font-size: 1.3rem; letter-spacing: 0.08em; margin-bottom: 0; }

/* Collapsible "File a new case" form on /support (layout follow-up,
   2026-11-02 same day). Was a .auth-card — a narrow 420px box built for
   standalone public login/register pages — sitting inside the ~1150px
   app-shell content column, which left a lot of dead blank space beside
   it. Now it's .card chrome applied directly to a <details> element (same
   <details>/summary convention as .wa-thread-group elsewhere in the app),
   so it's full width like the "Your tickets" card below it, and the route
   collapses it by default once the client already has tickets so the page
   reads as one organized surface rather than a tall form above an often-
   empty table. */
.support-new-case summary { cursor: pointer; list-style: none; }
.support-new-case summary::-webkit-details-marker { display: none; }
.support-new-case summary h3 { display: flex; align-items: center; gap: 0.5em; }
.support-new-case-icon { width: 18px; height: 18px; color: var(--accent); transition: transform 0.15s ease; }
.support-new-case[open] .support-new-case-icon { transform: rotate(45deg); }
.support-new-case[open] summary { border-bottom: 1px solid var(--border); padding-bottom: 1.1rem; }
.support-new-case .card-body form { max-width: 480px; }

/* ---------- Booking: address simplification ---------- */
/* "Use my current address" vs "A different address" — a plain two-radio
   toggle. The different-address fields are revealed with a pure CSS
   sibling selector (#addr-mode-different:checked ~ .addr-different-fields),
   so this needs no JavaScript to work correctly. Correction (2026-10-22):
   display:none here does NOT exempt a `required` descendant field from
   constraint validation — the browser only exempts an input with its own
   type="hidden", or a disabled/hidden attribute, not one whose ancestor is
   display:none. The address field was marked required and this silently
   blocked the whole form from submitting whenever "current address" was
   selected; `required` has been removed from that field in routes/client.js
   (see the comment there) and the server covers an empty value instead. */
.addr-toggle { display: flex; flex-direction: column; gap: 0.7em; margin-bottom: 1.3rem; }
.addr-option { position: relative; }
.addr-radio {
  position: absolute; top: 1.15em; left: 1.1em; width: 18px; height: 18px; margin: 0;
  accent-color: var(--navy); cursor: pointer; z-index: 1;
}
.addr-option-label {
  display: block; padding: 0.9em 1.1em 0.9em 2.7em; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; transition: border-color 0.15s, background 0.15s; margin: 0;
}
.addr-option-title { display: block; font-weight: 700; font-size: 0.92rem; color: var(--text); }
.addr-option-detail { display: block; color: var(--text-muted); font-size: 0.82rem; margin-top: 0.3em; font-weight: 400; }
.addr-radio:checked + .addr-option-label { border-color: var(--navy); background: var(--blue-tint); }
.addr-different-fields { display: none; padding: 0.9em 0.2em 0.1em 2.7em; }
/* The Profile page's zone-mode radios (2026-10-30) were removed on
   2026-10-31 in favor of always showing the postcode field and the zone
   dropdown together — see GET /client/profile in routes/client.js — so this
   selector now only serves the booking "different address" toggle above. */
#addr-mode-different:checked ~ .addr-different-fields { display: block; }

/* ---------- Booking: step 2 "choose how to reach vendors" ---------- */
/* These rules (through the end of the .request-review-* block below) were
   missing entirely until 2026-10-30 — the step-2 markup in routes/client.js
   (confirm-summary / choose-* classes) had no matching CSS at all, so it
   fell back to unstyled default block/button rendering wherever a generic
   class like .card or .btn didn't already cover it. Combined with the
   overlay itself never being hidden (see .request-review-overlay below),
   this is what a user reported as the booking step looking "totally out
   of order". */
.confirm-summary { display: flex; align-items: center; gap: 0.9em; }
.confirm-icon {
  flex-shrink: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--blue-tint); border-radius: var(--radius-sm); font-size: 1.4rem;
}
.confirm-service-name { margin: 0 0 0.15em; font-size: 1.1rem; }

.nearby-zone-chooser {
  margin: 0 0 1em;
}
.nearby-zone-chooser > p {
  margin: 0 0 0.6em;
}
.nearby-zone-list {
  display: flex; flex-direction: column; gap: 0.5em;
}
.nearby-zone-option {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75em;
  padding: 0.65em 0.9em; border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer;
}
.nearby-zone-option:has(input:checked) {
  border-color: var(--blue); background: var(--blue-tint);
}
.nearby-zone-name {
  font-weight: 600;
}
.nearby-zone-meta {
  color: var(--text-muted); font-size: 0.85em; white-space: nowrap;
}

.choose-broadcast-option {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.25em; width: 100%;
  padding: 1em 1.1em; border: 1.5px solid var(--navy); border-radius: var(--radius-sm);
  background: var(--blue-tint); cursor: pointer; font-family: inherit; text-align: left;
  transition: background 0.15s;
}
.choose-broadcast-option:hover { background: #ddeefb; }
.choose-broadcast-title { font-weight: 800; color: var(--navy); font-size: 0.98rem; }
.choose-broadcast-sub { color: var(--text-muted); font-size: 0.82rem; line-height: 1.5; }

.choose-divider { display: flex; align-items: center; gap: 0.8em; margin: 1.1em 0; color: var(--text-faint); font-size: 0.78rem; font-weight: 600; }
.choose-divider::before, .choose-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.choose-vendor-list { display: flex; flex-direction: column; gap: 0.7em; }
.choose-vendor-card { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.85em 1em; }
/* flex-wrap (plus .choose-vendor-info's min-width below) lets the Request
   button drop to its own line on narrow phones instead of squeezing the
   name/meta column until the distance phrase itself wraps mid-word — same
   pattern as .receipt-row/.receipt-info elsewhere in this file. */
.choose-vendor-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5em 0.8em; flex-wrap: wrap; }
.choose-vendor-info { flex: 1 1 200px; min-width: 0; }
.choose-vendor-name { font-weight: 700; color: var(--text); font-size: 0.94rem; }
.choose-vendor-meta { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.2em; }
.choose-vendor-distance { font-weight: 700; color: var(--text); white-space: nowrap; }
.choose-vendor-row .btn { flex-shrink: 0; }
.choose-vendor-links { display: flex; gap: 1em; margin-top: 0.5em; flex-wrap: wrap; }
.choose-vendor-expand summary { color: var(--blue-dark); font-size: 0.8rem; cursor: pointer; font-weight: 600; list-style: none; }
.choose-vendor-expand summary::-webkit-details-marker { display: none; }
.choose-vendor-expand summary::before { content: '\25b8\00a0'; }
.choose-vendor-expand[open] summary::before { content: '\25be\00a0'; }
.choose-vendor-panel { margin-top: 0.5em; padding-top: 0.5em; border-top: 1px dashed var(--border-soft); font-size: 0.82rem; color: var(--text-muted); }
.choose-review-snippet { margin: 0 0 0.5em; }
.choose-fallback-note { margin-top: 1.1em; margin-bottom: 0; font-size: 0.82rem; }

/* "Send your request" popup (step 2) — a bottom-sheet-style modal on
   JS-enabled browsers; hidden by default and shown only once public/app.js
   adds .is-open to it (see the data-request-overlay wiring there). Baked
   into the page HTML at render time rather than fetched on demand (see the
   long comment on .request-review-overlay in routes/client.js), so it MUST
   stay hidden by default purely via CSS — there's no JS-off fallback for
   hiding it (the plain /client/request/choose page is a separate full
   page, not this overlay). */
.request-review-overlay {
  display: none; position: fixed; inset: 0; background: rgba(8,20,35,0.45); z-index: 60;
  align-items: flex-end; justify-content: center;
}
.request-review-overlay.is-open { display: flex; }
.request-review-dialog {
  background: #fff; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.1rem calc(1.1rem + var(--safe-b));
}
.request-review-dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; }
.request-review-dialog-head h2 { margin: 0; font-size: 1.2rem; }
.request-review-back { display: inline-block; margin-top: 0.4rem; }
@media (min-width: 640px) {
  .request-review-overlay { align-items: center; padding: 1.5rem; }
  .request-review-dialog { border-radius: var(--radius-lg); max-height: 85vh; }
}
/* .request-sent is the same confirmation markup from GET /client/request/sent,
   swapped into .request-review-dialog by app.js after a successful popup
   submit (see the requestOverlay submit listener) — so it also still needs to
   look right as a plain full-page block for the no-JS fallback. */
.request-sent { text-align: center; padding: 0.4rem 0 0.2rem; }
.request-sent-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--green-tint); color: var(--green); margin-bottom: 0.9rem;
}
.request-sent-check svg { width: 1.6rem; height: 1.6rem; }
.request-sent h1 { margin: 0 0 0.5rem; }
.request-sent-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-top: 1.3rem;
}

/* ---------- Invoice: pay method + payment terms ---------- */
.pay-amount-row {
  display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--border-soft);
  margin-top: 0.9em; padding-top: 0.9em;
}
.pay-amount-row span { color: var(--text-muted); font-size: 0.86rem; }
.pay-amount-row strong { color: var(--navy); font-size: 1.5rem; }
.pay-method-row { display: flex; gap: 0.8em; margin-bottom: 1.2rem; flex-wrap: wrap; }
.pay-method-option {
  flex: 1 1 160px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.3em;
  padding: 1em; border: 1.5px solid var(--border); border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color 0.15s, background 0.15s; position: relative;
}
.pay-method-radio { position: absolute; top: 0.7em; right: 0.7em; accent-color: var(--navy); cursor: pointer; }
.pay-method-radio:checked ~ .pay-method-icon,
.pay-method-option:has(.pay-method-radio:checked) { border-color: var(--navy); }
.pay-method-option:has(.pay-method-radio:checked) { background: var(--blue-tint); }
.pay-method-icon { font-size: 1.3rem; }
.pay-method-title { font-weight: 700; color: var(--text); font-size: 0.88rem; }
.pay-method-sub { color: var(--text-faint); font-size: 0.74rem; line-height: 1.4; }
.pay-terms-notice { margin-bottom: 0; }

/* ---------- For Clients / For Vendors sections (2026-11-04, navy/gold
   refresh; merged onto the homepage 2026-11-05) ----------
   Originally two separate pages, now two sections inside the homepage
   (#for-clients / #for-vendors) — each still gets one deliberately bold
   moment, a dark gradient band, so a scrolling visitor gets a clear "new
   topic starts here" cue between the white .section blocks either side.
   Both stay in the navy family (no purple) — Client sits in the brighter
   end of the range, Vendor is noticeably deeper/more serious — so the two
   read as siblings, not identical twins, differentiated by depth rather
   than hue. The gold eyebrow is each band's one accent pop. Every number
   and vendor card in these sections comes from the same db.all()/
   db.filter() calls the rest of the homepage already uses — see
   forClientsSection()/forVendorsSection() in routes/public.js. */
.detail-hero {
  padding: 4rem 1.5rem 3.5rem; color: #fff; text-align: left;
  background: linear-gradient(145deg, #15375f 0%, var(--navy) 50%, var(--navy-deepest) 100%);
}
.detail-hero--vendor { background: linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 50%, var(--navy-deepest) 100%); }
.detail-hero .section-inner { max-width: 760px; }
.detail-hero .eyebrow { color: var(--gold-pale); }
.detail-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.75rem); max-width: 16ch; }
.detail-hero .section-lead { color: rgba(255,255,255,0.86); max-width: 56ch; text-align: left; margin: 0 0 1.6rem; }
.detail-hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.45); }
.detail-hero .btn-ghost:hover { background: rgba(255,255,255,0.12); }
.detail-hero .btn-primary { background: #fff; color: var(--navy); box-shadow: none; }
.detail-hero .btn-primary:hover { background: rgba(255,255,255,0.88); }
.detail-stats { margin-top: 2.2rem; border-top-color: rgba(255,255,255,0.22); }
.detail-stats > div { border-left: none; }
.detail-stats strong { color: #fff; }
.detail-stats span { color: rgba(255,255,255,0.72); }

.detail-steps { display: flex; flex-direction: column; gap: 1.6rem; max-width: 760px; margin-top: 2rem; }
.detail-step { display: flex; gap: 1.1rem; align-items: flex-start; }
.detail-step-icon {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-light);
  color: var(--accent-dark); display: flex; align-items: center; justify-content: center;
}
.detail-step-icon .icon { width: 22px; height: 22px; }
.detail-step-num { display: block; font-size: 0.76rem; font-weight: 700; color: var(--text-faint); margin-bottom: 0.2em; }
.detail-step-body h3 { margin-bottom: 0.3em; font-size: 1.08rem; }
.detail-step-body p { color: var(--text-muted); margin: 0; }

/* ---------- Client booking flow chart (2026-11-09) ----------
   "What actually happens when you book" — same four steps as before, now
   shown as a connected flow (numbered circles joined by arrows) instead of
   a plain stacked list, so it reads at a glance rather than as four
   separate paragraphs. Deliberately its own classes (not a restyle of
   .detail-steps/.detail-step), so the vendor verification steps on
   /for-vendors, which reuse .detail-steps, are untouched. */
.flow-steps { display: flex; align-items: flex-start; gap: 0.5rem; margin-top: 2.5rem; }
.flow-step { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.flow-step-icon {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--pub-card, #fff);
  border: 2px solid var(--gold); color: var(--gold-pale); display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.9rem;
}
.flow-step-icon .icon { width: 24px; height: 24px; }
.flow-step-body { min-width: 0; }
.flow-step-num { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pub-text-faint, var(--text-faint)); margin-bottom: 0.4em; }
.flow-step h3 { margin: 0 0 0.4em; font-size: 1rem; }
.flow-step p { color: var(--pub-text-muted, var(--text-muted)); margin: 0; font-size: 0.86rem; line-height: 1.55; max-width: 26ch; }
.flow-arrow { flex: 0 0 auto; margin-top: 18px; color: var(--pub-border, var(--border)); font-size: 1.4rem; line-height: 1; user-select: none; }

@media (max-width: 860px) {
  .flow-steps { flex-direction: column; align-items: stretch; gap: 0; margin-top: 2rem; }
  .flow-step { flex-direction: row; align-items: flex-start; text-align: left; gap: 1.1rem; }
  .flow-step-icon { margin-bottom: 0; }
  .flow-step-body { flex: 1; }
  .flow-step p { max-width: none; }
  .flow-arrow { align-self: center; margin: 0.3rem 0; transform: rotate(90deg); }
}

.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 1.6rem; }
.trust-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.trust-card-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--blue-tint); color: var(--blue-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 0.8em;
}
.trust-card-icon .icon { width: 20px; height: 20px; }
.trust-card h3 { font-size: 1rem; margin-bottom: 0.3em; }
.trust-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

.requirements-list { max-width: 560px; }

.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); max-width: 760px; margin-top: 1.4rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1em; cursor: pointer;
  list-style: none; padding: 1.1em 0.2em; font-weight: 700; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { width: 18px; height: 18px; color: var(--text-faint); flex-shrink: 0; transition: transform 0.15s ease; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p { margin: -0.4em 0 1.1em; color: var(--text-muted); padding: 0 0.2em; }

/* ---------- Public site dark theme (2026-11-06 redesign) ----------
   The whole public-facing marketing site (homepage, /agents, /for-vendors,
   /terms — everything rendered through layoutPublic(), i.e. every page
   with body class .public-shell) moves from the light (--bg: #f4f6f9,
   white cards) look to a dark, "app-like" navy theme, as approved in the
   front-end redesign demo. Scoped entirely to .public-shell and element
   selectors that only ever render inside it (same scoping convention as
   the "PUBLIC SITE" block above) — the logged-in .app-shell dashboards
   below are completely untouched, still the original light theme. Visual
   only: no markup, route or booking/onboarding-flow logic changed here —
   see routes/public.js for the matching content changes (homepage
   narrowed to client-only content, live stats section, single vendor CTA
   to /agents; the former forVendorsSection() detail content moved to its
   own /for-vendors page rather than deleted). */
.public-shell {
  --pub-bg: #0a0f1a;
  --pub-bg-alt: #0e1626;
  --pub-card: #141c2b;
  --pub-border: #232d42;
  --pub-border-soft: #1c2638;
  --pub-text: #f3f0e8;
  --pub-text-muted: #aeb9d1;
  --pub-text-faint: #6e7894;
}
body.public-shell { background: var(--pub-bg); }

.public-shell .topbar { background: rgba(10,15,26,0.9); backdrop-filter: saturate(180%) blur(10px); border-bottom-color: var(--pub-border-soft); }
.public-shell .brand { color: var(--pub-text); }
.public-shell .top-nav a { color: var(--pub-text-muted); }
.public-shell .top-nav a:hover { color: var(--pub-text); }
.public-shell .icon-btn.hamburger { color: var(--pub-text); }
.public-shell .icon-btn.hamburger:hover { background: rgba(255,255,255,0.08); }
.public-shell .public-menu { background: var(--pub-bg-alt); }
.public-shell .public-menu-links a { color: var(--pub-text); border-bottom-color: var(--pub-border-soft); }

.public-shell .eyebrow { color: var(--gold-pale); }

.public-shell .hero {
  background: radial-gradient(ellipse 900px 480px at 12% 0%, rgba(232,212,147,0.1), transparent), var(--pub-bg);
  border-bottom-color: var(--pub-border-soft);
}
.public-shell .hero h1 { color: var(--pub-text); }
.public-shell .hero p { color: var(--pub-text-muted); }
.public-shell .hero-stats { border-top-color: var(--pub-border-soft); }
.public-shell .hero-stats strong { color: var(--pub-text); }
.public-shell .hero-stats span { color: var(--pub-text-faint); }
.public-shell .hero-art-logo img { filter: drop-shadow(0 18px 40px rgba(0,0,0,0.55)); }
.public-shell .hero-stat-card { background: var(--pub-card); border: 1px solid var(--pub-border); box-shadow: 0 16px 40px rgba(0,0,0,0.5); backdrop-filter: none; }
.public-shell .hero-stat-card strong { color: var(--pub-text); }
.public-shell .hero-stat-card span { color: var(--pub-text-faint); }

/* Live stats (State/Zone/Vendor/Client/Review — see #live-stats in
   routes/public.js homeBody()). New component, no prior styling. */
.live-stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.live-stat-tile { background: var(--pub-card); border: 1px solid var(--pub-border); border-radius: var(--radius); padding: 1.3rem 1.1rem; }
.live-stat-label { display: block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pub-text-faint); margin-bottom: 0.6em; }
.live-stat-tile strong { display: block; font-size: 1.5rem; color: var(--pub-text); }
.live-stat-tile > span:last-child { display: block; font-size: 0.78rem; color: var(--pub-text-faint); margin-top: 0.35em; line-height: 1.45; }
@media (max-width: 900px) { .live-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Single vendor-pointer CTA (replaces the old inline forVendorsSection()
   on the homepage — see #for-vendors in routes/public.js homeBody()). */
.vendor-pointer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.vendor-pointer-copy { max-width: 600px; }
.vendor-pointer-copy h2 { text-align: left; margin: 0.25em 0 0.5em; }

.public-shell h1, .public-shell h2, .public-shell h3, .public-shell h4 { color: var(--pub-text); }
.public-shell .section.alt { background: var(--pub-bg-alt); }
.public-shell .section-lead { color: var(--pub-text-muted); }
.public-shell p { color: var(--pub-text-muted); }

.public-shell .cat-card { background: var(--pub-card); border-color: var(--pub-border); box-shadow: none; }
.public-shell .cat-card:hover { box-shadow: 0 10px 26px -8px rgba(0,0,0,0.5); }
.public-shell .cat-card ul { color: var(--pub-text-muted); }
.public-shell .cat-card li { border-top-color: var(--pub-border-soft); }
.public-shell .check-list li { color: var(--pub-text-muted); border-bottom-color: var(--pub-border-soft); }

.public-shell .mini-stats div { background: var(--pub-card); border: 1px solid var(--pub-border); box-shadow: none; }
.public-shell .mini-stats strong { color: var(--pub-text); }
.public-shell .mini-stats span { color: var(--pub-text-faint); }

.public-shell .trust-card { background: var(--pub-card); border-color: var(--pub-border); }
.public-shell .trust-card p { color: var(--pub-text-muted); }

.public-shell .faq-list { border-top-color: var(--pub-border); }
.public-shell .faq-item { border-bottom-color: var(--pub-border); }
.public-shell .faq-item summary { color: var(--pub-text); }
.public-shell .faq-item p { color: var(--pub-text-muted); }
.public-shell .faq-icon { color: var(--pub-text-faint); }

.public-shell .vfcard, .public-shell .vrow { background: var(--pub-card); border-color: var(--pub-border); box-shadow: none; }
.public-shell .vfcard strong, .public-shell .vrow-top strong { color: var(--pub-text); }
.public-shell .vfcard .vcat, .public-shell .vrow .vcat { color: var(--pub-text-muted); }
.public-shell .vfcard .vmeta, .public-shell .vrow .vmeta { color: var(--pub-text-muted); }
.public-shell .vrow .vloc { color: var(--pub-text-faint); }
.public-shell .directory-empty { color: var(--pub-text-muted); }

.public-shell .zone-grid .card { background: var(--pub-card); border-color: var(--pub-border); box-shadow: none; }
.public-shell .card-head h3 { color: var(--pub-text); }
.public-shell .muted { color: var(--pub-text-faint); }

.public-shell .bottom-tabbar { background: rgba(10,15,26,0.96); border-top-color: var(--pub-border-soft); backdrop-filter: saturate(180%) blur(12px); }
.public-shell .tab-item { color: var(--pub-text-faint); }
.public-shell .tab-item.active { color: var(--gold-pale); }
.public-shell .tab-item-fab-circle { box-shadow: 0 10px 20px -6px rgba(0,0,0,0.6), 0 0 0 4px var(--pub-bg); }

/* Login / Register / Setup (.auth-card) are explicitly out of scope for
   this redesign — "Login stays exactly as it is" — so restore the
   original light-card text colors here, undoing the broad .public-shell
   text-color overrides above for just this white-card component. The
   surrounding .auth-page area still picks up the new dark page
   background, which is fine (a white card framed by the dark page); only
   the card's own content needs its original navy/muted-on-white colors. */
.public-shell .auth-card h1,
.public-shell .auth-card h2,
.public-shell .auth-card h3,
.public-shell .auth-card h4 { color: var(--navy); }
.public-shell .auth-card p { color: var(--text); }
.public-shell .auth-card .muted { color: var(--text-muted); }
.public-shell .error-page { color: var(--pub-text-muted); }

@media (max-width: 900px) {
  .trust-grid { grid-template-columns: 1fr; }
  .detail-hero { padding: 3rem 1.25rem 2.5rem; }
}
