/* Orders table cols-10 addition - updated 2026-08-24. */
/* ---------- Design tokens (exact values from the reference design) ---------- */
:root {
  --bg: oklch(99% 0.006 75);
  --bg-alt: oklch(93% 0.006 75);
  --white: oklch(99% 0.006 75);
  --ink: oklch(15% 0.02 75);
  --footer-bg: oklch(25% 0.02 75);
  --ink-soft: oklch(38% 0.02 75);
  --ink-faint: oklch(45% 0.02 75);
  --ink-mid: oklch(50% 0.02 75);
  --border: oklch(88% 0.01 75);
  --border-light: oklch(90% 0.01 75);
  --badge-bg: oklch(96% 0.006 75);
  --green: oklch(58% 0.19 142);
  --green-dark: oklch(42% 0.15 142);
  --green-darker: oklch(34% 0.15 142);
  --green-pale: oklch(58% 0.19 142 / 0.12);
  --green-pale-strong: oklch(58% 0.19 142 / 0.2);
  /* Red accent - same lightness/chroma steps as the green scale above, at
     the hue this codebase's pre-existing (hardcoded, inconsistent) reds
     already clustered around: .btn.danger's #e0483a, the .error banner's
     #9c3324, and the scan-emergency-* elements' oklch(.. 30) all sit within
     a couple degrees of hue 29 in OKLCH. Formalized into one token scale
     here (mirroring green's) rather than adding yet another one-off value -
     this is also the pairing the physical sticker itself uses: green for
     "contact/positive" actions, red for "blocked/warning" ones (see the
     printed card's icon row in views/pdf/_sticker-styles.njk). Use --red
     for anything genuinely negative/blocking/urgent (errors, delete
     actions, "inactive"/"out of stock" status, the emergency-contact
     shortcut) - NOT as a second decorative accent alongside green, and
     never for neutral "off" states like a draft/role badge (see
     .badge.role/.badge.pending below, which stay grey/amber on purpose). */
  --red: oklch(58% 0.19 29);
  --red-dark: oklch(42% 0.15 29);
  --red-darker: oklch(34% 0.15 29);
  --red-pale: oklch(58% 0.19 29 / 0.12);
  --red-pale-strong: oklch(58% 0.19 29 / 0.2);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --radius-pill: 100px;
  --shadow: 0 1px 2px rgba(28, 20, 12, 0.04), 0 8px 24px rgba(28, 20, 12, 0.06);
  --font-display: "Nunito", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --header-h: 76px;
}

* { box-sizing: border-box; }

/* ---------- PWA install banner ----------
   Fixed bar, mobile only. Shown/hidden entirely by public/js/pwa-install.js
   based on beforeinstallprompt (Android/Chrome) or iOS detection - nothing
   is persisted to storage, so it reappears on every visit until the app is
   actually installed. */
.pwa-install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 14px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(28, 20, 12, 0.22), 0 2px 8px rgba(28, 20, 12, 0.06);
  padding: 13px 16px;
  transform: translateY(130%);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.32s ease;
}
.pwa-install-banner.show { transform: translateY(0); opacity: 1; }

.pwa-install-close {
  position: absolute;
  top: -9px;
  right: -7px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  border: 2px solid var(--white);
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 3px 8px rgba(28, 20, 12, 0.25);
}
.pwa-install-close:hover { background: var(--green-dark); }

.pwa-install-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(28, 20, 12, 0.14), inset 0 0 0 1px var(--border-light);
  background: var(--bg-alt);
}
.pwa-install-icon { width: 100%; height: 100%; object-fit: cover; display: block; }

.pwa-install-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pwa-install-text strong { font-family: var(--font-display); font-size: 14.5px; font-weight: 800; color: var(--ink); }
.pwa-install-sub { font-size: 12px; color: var(--ink-faint); line-height: 1.4; }
.pwa-install-sub-ios svg { vertical-align: -2px; margin: 0 1px; color: var(--ink-faint); }

.pwa-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--font-body);
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}
.pwa-install-btn:hover { background: var(--green-dark); transform: translateY(-1px); }

@media (min-width: 641px) {
  .pwa-install-banner { display: none !important; }
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  padding-top: var(--header-h);
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; margin: 0 0 12px; line-height: 1.15; }
p { margin: 0 0 12px; color: var(--ink-soft); line-height: 1.6; font-size: 16px; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 6vw;
}

/* ---------- Fixed header (values match the reference nav exactly;
   position:fixed + scroll shadow are the added behavior that was
   requested on top of the design) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--bg-alt);
  z-index: 100;
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 16px rgba(28, 20, 12, 0.06);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 22px 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* Zapo wordmark logo - the source file already includes the "zapo" text and
   icon, so it's used directly as an <img> instead of the old CSS-drawn
   square mark + separate text label. */
.brand-logo-img { height: 60px; width: auto; display: block; }
.brand-logo-img-sm { height: 22px; }

/* Dark-background spots (footer, admin sidebar, admin login) - the logo
   file has a plain white background, so it needs a light chip behind it to
   read cleanly instead of showing a stray white box. */
.brand-logo-chip {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border-radius: 8px;
  padding: 5px 10px;
}

.marketing-nav {
  display: flex;
  gap: 38px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
}

.marketing-nav a:hover { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  font-weight: 700;
}

/* ---------- Header user menu (avatar dropdown) ---------- */
.user-menu { position: relative; }
.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 4px 6px 4px 4px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--ink);
}
.user-menu-trigger:hover { background: var(--bg-alt); }
.user-menu-caret { color: var(--ink-faint); transition: transform 0.15s ease; }
.user-menu.open .user-menu-caret { transform: rotate(180deg); }

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.user-avatar-lg { width: 42px; height: 42px; font-size: 17px; }

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 250px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(28, 20, 12, 0.16);
  border: 1px solid var(--border-light);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 200;
}
.user-menu.open .user-menu-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.user-menu-header { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--border-light); }
.user-menu-who { min-width: 0; }
.user-menu-name { font-weight: 800; font-size: 14.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-email { font-size: 12.5px; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.user-menu-items { padding: 8px; display: flex; flex-direction: column; }
.user-menu-items form { margin: 0; }
.user-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 10px 10px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: inherit;
}
.user-menu-item:hover { background: var(--bg-alt); color: var(--ink); }
.user-menu-item-danger:hover { background: var(--red-pale); color: var(--red-dark); }

@media (max-width: 860px) {
  /* Inside the slide-in nav drawer (position:fixed, overflow-y:auto) a
     floating absolutely-positioned dropdown risks getting clipped or
     scrolling oddly - expand it inline in the drawer's own flex column
     instead of floating it over the page. */
  .user-menu-trigger { width: 100%; justify-content: space-between; padding: 8px; }
  .user-menu-dropdown {
    position: static;
    width: auto;
    box-shadow: none;
    border: 1px solid var(--border-light);
    margin-top: 6px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .user-menu.open .user-menu-dropdown { display: block; }
}

.header-end-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* Two copies of the cart icon exist in the header markup (see
   layouts/main.njk) - one grouped with the avatar/login for desktop, one
   grouped with the hamburger for mobile - toggled here, never both shown
   at once. See the max-width:860px block near .nav-toggle for the mobile
   side of this toggle. */
/* Chained selector (not just .cart-icon-link-mobile alone) so this beats
   the base .cart-icon-link{display:inline-flex} rule below on specificity,
   not source order - two equal-specificity rules would otherwise let
   whichever comes later in the file win, regardless of intent. */
.cart-icon-link.cart-icon-link-mobile { display: none; }

.cart-icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink);
}
.cart-icon-link:hover { background: var(--bg-alt); }
.cart-icon-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
}

/* ---------- Mobile nav: hamburger toggle + right-side slide-in drawer ---------- */
.header-nav-group {
  display: contents; /* on desktop, nav + actions just sit inline in the header row as before */
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-panel-close { display: none; }

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 17, 14, 0.45);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.nav-backdrop.open { display: block; opacity: 1; pointer-events: auto; }

body.nav-open-lock { overflow: hidden; }

.btn-link {
  background: none;
  border: none;
  font: inherit;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0;
}
.btn-link:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  /* Baseline size + color so a bare class="btn" (no modifier) still renders
     as a proper button instead of a tiny colorless nub - this was the root
     cause of "messed up" buttons on several screens (contacts, vehicles,
     stickers, pay, scan-not-found all had at least one). Every one of those
     bare usages is a primary/positive action, so green is the right
     default. .btn-primary/.btn.primary duplicate these same values (kept
     for compatibility with existing markup) and every color/size modifier
     below (.btn-outline, .btn-light, .btn.secondary, .btn.danger, .btn-sm,
     .btn-lg) still overrides this as before. */
  background: var(--green);
  color: var(--white);
  padding: 10px 18px;
  font-size: 14px;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }

.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--ink); }

.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); }

.btn-sm { padding: 12px 24px; font-size: 15px; border-radius: var(--radius-pill); }
.btn-lg { padding: 15px 28px; font-size: 15px; }

/* legacy buttons used on app pages (dashboard/admin/scan/auth) */
.btn.secondary { background: var(--bg-alt); color: var(--ink); padding: 10px 18px; font-size: 14px; }
.btn.secondary:hover { background: var(--border); }
.btn.danger { background: var(--red); color: #fff; padding: 10px 18px; font-size: 14px; }
.btn.danger:hover { background: var(--red-dark); }
.btn.primary { background: var(--green); color: var(--white); padding: 10px 18px; font-size: 14px; }
.btn.primary:hover { background: var(--green-dark); }

/* ---------- Cards / forms (app pages) ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

input, textarea, select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-body);
  margin-bottom: 12px;
  background: var(--white);
  color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--green); }

/* iOS Safari auto-zooms the whole page when focusing a text input smaller
   than 16px - jarring on any form (login, connect-sticker, contacts, etc).
   Bump to 16px only below the phone breakpoint so desktop keeps its
   designed 14px look. */
@media (max-width: 600px) {
  input, textarea, select { font-size: 16px; }
}

label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--ink-soft); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--ink-faint); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }

.btn-full {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
  margin-top: 4px;
}
.btn-full:hover { background: var(--green-dark); }
.btn-full:active { transform: translateY(1px); }

.auth-switch { text-align: center; margin-top: 18px; font-size: 14px; color: var(--ink-soft); }
.auth-switch a { color: var(--green); font-weight: 800; text-decoration: none; }
.auth-switch a:hover { color: var(--green-dark); text-decoration: underline; }

.auth-tabs { display: flex; gap: 4px; background: oklch(95% 0.006 75); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 18px; }
.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  border-radius: calc(var(--radius-sm) - 2px);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
}
.auth-tab.active { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }

/* ---------- Auth pages v2 (pixel-match Nudge signup/login reference) ---------- */
.auth-body { margin: 0; padding-top: 0; font-family: var(--font-body); background: var(--white); }

.auth-flash { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50; width: 100%; max-width: 420px; padding: 0 16px; box-sizing: border-box; }

/* Signup: full-height split screen, form left / dark decorative panel right */
.auth-page-split { display: flex; min-height: 100vh; background: var(--white); }
.auth-page-split-form { flex: 1; display: flex; align-items: center; justify-content: center; padding: 60px 24px; box-sizing: border-box; }
.auth-page-split-form-inner { width: 100%; max-width: 380px; }
.auth-page-split-visual { flex: 1; background: var(--ink); display: flex; align-items: center; justify-content: center; }

/* Login (and other single-step auth screens): centered card on a soft page bg */
.auth-page-center { min-height: 100vh; background: var(--badge-bg); display: flex; align-items: center; justify-content: center; padding: 40px 20px; box-sizing: border-box; }
.auth-card-v2 { width: 100%; max-width: 400px; background: var(--white); border-radius: 20px; padding: 40px 36px; border: 1px solid var(--border-light); box-shadow: 0 20px 50px rgba(28, 20, 12, 0.08); box-sizing: border-box; }

.auth-logo-row { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
.auth-logo-row.centered { justify-content: center; }
.auth-logo-img { height: 42px; width: auto; display: block; }

.auth-heading { font-family: var(--font-display); font-weight: 900; font-size: 26px; color: var(--ink); margin-bottom: 8px; }
.auth-heading.centered { text-align: center; font-size: 24px; }
.auth-subtitle { font-size: 14.5px; color: var(--ink-faint); margin-bottom: 28px; }
.auth-subtitle.centered { text-align: center; font-size: 14px; }

.auth-field-group { margin-bottom: 0; }
.auth-field-group label {
  text-transform: uppercase;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.auth-field-group input, .auth-field-group select {
  background: var(--badge-bg);
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 14px;
}
.auth-field-group input:focus, .auth-field-group select:focus { outline: none; border-color: var(--green); background: var(--white); }

/* Fixed "+91" prefix for phone inputs - the app is India-only, so instead of
   a country-code picker every phone field shows a locked +91 chip next to a
   10-digit-only input. Works both inside .auth-field-group (auth pages) and
   as a standalone group (e.g. the public scan/contact-owner form). */
.connect-modal {
  border: none;
  border-radius: var(--radius);
  padding: 26px 24px;
  max-width: 380px;
  width: 90vw;
  box-shadow: 0 20px 50px rgba(28, 20, 12, 0.18);
}
.connect-modal::backdrop { background: rgba(28, 20, 12, 0.45); }
.connect-modal .row { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }

/* "Who should this reach?" contact picker - used inside .connect-modal on
   both My Vehicles and My Stickers (same underlying feature: pick a saved
   contact, or fall back to the account's own number, for a vehicle/
   sticker). Wider than the other .connect-modal popups since it has to fit
   a scrollable list of contact cards instead of a couple of form fields. */
.connect-modal.contact-picker-modal { max-width: 420px; }
.contact-picker-label { font-size: 12.5px; font-weight: 700; color: var(--ink-mid); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 10px; }
.contact-pick-list { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; margin-bottom: 4px; }

.contact-pick-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}
.contact-pick-card:has(input:checked) { border-color: var(--green); background: var(--green-pale); }
.contact-pick-card input[type="radio"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.contact-pick-avatar {
  width: 32px;
  height: 32px;
  border-radius: 100px;
  background: oklch(80% 0.01 75);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.contact-pick-card:has(input:checked) .contact-pick-avatar { background: var(--green); }
.contact-pick-info { flex: 1; min-width: 0; }
.contact-pick-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.contact-pick-phone { display: block; font-family: monospace; font-size: 12.5px; color: var(--ink-mid); margin-top: 2px; }
.contact-pick-radio { width: 18px; height: 18px; border-radius: 100px; border: 2px solid var(--border); box-sizing: border-box; background: var(--white); flex-shrink: 0; }
.contact-pick-card:has(input:checked) .contact-pick-radio { background: var(--green); border-color: var(--green); }

.contact-pick-note { font-size: 12.5px; color: var(--ink-mid); margin: 14px 0 0; line-height: 1.5; }
.contact-pick-note a { color: var(--green-dark); font-weight: 700; }

.phone-input-wrap { display: flex; align-items: stretch; margin-bottom: 14px; }
.phone-input-wrap .phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--badge-bg);
  border: 1.5px solid var(--border-light);
  border-right: none;
  border-radius: 10px 0 0 10px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.phone-input-wrap input {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0 !important;
  border-radius: 0 10px 10px 0 !important;
}
/* Public "Reach this car's owner" page (routes/scan.js, views/scan.njk) -
   matches the Nudge Contact Owner reference pixel-for-pixel. Deliberately
   its own set of classes (not reusing .phone-input-wrap) since this page's
   phone row is two separate rounded boxes with a gap, not the joined-pill
   style used on auth/vehicle forms elsewhere. */
.scan-shell { min-height: 100vh; background: var(--badge-bg); display: flex; align-items: flex-start; justify-content: center; padding: 64px 24px; box-sizing: border-box; }
.scan-inner { width: 460px; max-width: 100%; }

.scan-heading-block { text-align: center; margin-bottom: 24px; }
.scan-heading { font-family: var(--font-display); font-weight: 900; font-size: 26px; color: var(--ink); margin-bottom: 8px; }
.scan-plate-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-pill); padding: 6px 16px; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.scan-plate-pill .scan-plate-code { font-family: monospace; letter-spacing: 0.5px; }
.scan-plate-pill .scan-plate-dot { color: oklch(75% 0.02 75); }

.scan-privacy-banner { background: oklch(58% 0.19 142 / 0.08); border: 1px solid oklch(58% 0.19 142 / 0.3); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13px; color: oklch(30% 0.1 142); text-align: center; margin-bottom: 24px; line-height: 1.5; }

.scan-card { background: var(--white); border-radius: 20px; border: 1px solid var(--border-light); box-shadow: 0 20px 50px oklch(15% 0.02 75 / 0.06); overflow: hidden; }

.scan-tabs { display: flex; border-bottom: 1px solid var(--bg-alt); }
.scan-tab {
  flex: 1;
  text-align: center;
  padding: 16px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
}
.scan-tab.active { font-weight: 800; color: var(--ink); border-bottom-color: var(--green); }
.scan-tab svg { width: 15px; height: 15px; flex-shrink: 0; }

.scan-panel-body { padding: 28px; }
.scan-field-label { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.02em; }

.scan-phone-row { display: flex; gap: 10px; margin-bottom: 22px; }
.scan-phone-row .scan-phone-prefix {
  display: flex;
  align-items: center;
  background: var(--badge-bg);
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 14.5px;
  color: var(--ink-soft);
  font-weight: 600;
  flex-shrink: 0;
}
.scan-phone-row input {
  flex: 1;
  min-width: 0;
  background: var(--badge-bg);
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 14.5px;
  color: var(--ink);
  font-family: var(--font-body);
}
.scan-phone-row input:focus { outline: none; border-color: var(--green); background: var(--white); }

.scan-textarea {
  width: 100%;
  background: var(--badge-bg);
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 14.5px;
  color: var(--ink);
  font-family: var(--font-body);
  resize: vertical;
  margin-bottom: 22px;
}
.scan-textarea:focus { outline: none; border-color: var(--green); background: var(--white); }

.scan-cta {
  width: 100%;
  background: var(--green);
  color: var(--white);
  text-align: center;
  font-weight: 700;
  font-size: 15.5px;
  padding: 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.scan-cta svg { width: 15px; height: 15px; flex-shrink: 0; }

.scan-helper-text { text-align: center; font-size: 12px; color: oklch(55% 0.02 75); margin-top: 14px; line-height: 1.5; }

.scan-ring-intro { display: flex; align-items: flex-start; gap: 12px; background: var(--green-pale); border: 1px solid oklch(58% 0.19 142 / 0.25); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 18px; }
.scan-ring-icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: center; }
.scan-ring-intro p { margin: 0; font-size: 13.5px; color: var(--green-darker); line-height: 1.55; }
.scan-phone-row input::placeholder, .scan-textarea::placeholder { color: oklch(55% 0.02 75); }

.scan-footer-note { text-align: center; margin-top: 20px; font-size: 12.5px; color: var(--ink-mid); }
.scan-footer-note a { color: var(--green-dark); font-weight: 600; }

/* Emergency shortcut - only rendered when the vehicle owner has designated
   an emergency contact (see routes/contacts.js). Tapping "Call now" swaps
   this banner for a small phone-number form (#emergency-form in scan.njk)
   that POSTs to /scan/:code/emergency-call - masked the same way as the
   Call tab above, not a direct tel: link, so the emergency contact's real
   number is never exposed either. */
.scan-emergency-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--red-pale);
  border: 1px solid var(--red-pale-strong);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-top: 20px;
  text-decoration: none;
}
.scan-emergency-icon {
  width: 34px;
  height: 34px;
  border-radius: 100px;
  background: var(--red-pale-strong);
  color: var(--red-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.scan-emergency-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.scan-emergency-title { font-weight: 800; font-size: 14.5px; color: var(--ink); }
.scan-emergency-sub { font-size: 12.5px; color: var(--ink-mid); }
.scan-emergency-cta {
  flex-shrink: 0;
  background: var(--red-dark);
  color: var(--white);
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* "Get a sticker" upsell for whoever's scanning (they may not own a Zapo
   sticker themselves yet). */
.scan-promo-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  margin-top: 16px;
  text-align: center;
  text-decoration: none;
}
.scan-promo-title { display: block; font-weight: 800; font-size: 14.5px; color: var(--ink); }
.scan-promo-sub { display: block; font-size: 13px; color: var(--ink-mid); margin-top: 4px; }
.scan-promo-cta {
  display: inline-block;
  margin-top: 16px;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 999px;
}

@media (max-width: 480px) {
  .scan-emergency-banner { flex-wrap: wrap; }
  .scan-emergency-cta { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .scan-shell { padding: 32px 16px; }
  .scan-panel-body { padding: 22px 18px; }
}

.auth-field-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.auth-field-row label { margin-bottom: 0 !important; }
.auth-forgot-link { font-size: 12.5px; font-weight: 700; color: var(--green-dark); background: none; border: none; cursor: pointer; padding: 0; font-family: var(--font-body); }
.auth-forgot-link:hover { color: var(--green-darker); }

.btn-auth {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 15.5px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 18px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-auth:hover { background: var(--green-dark); }
.btn-auth:active { transform: translateY(1px); }

.auth-footer-line { text-align: center; font-size: 13.5px; color: var(--ink-faint); }
.auth-footer-line a { color: var(--green-dark); font-weight: 700; text-decoration: none; }
.auth-footer-line a:hover { color: var(--green-darker); text-decoration: underline; }

.auth-note { font-size: 13px; color: var(--ink-faint); margin: -6px 0 18px; }

/* Decorative QR-style graphic for the signup split panel */
.auth-visual-box { width: 220px; height: 220px; background: var(--white); border-radius: 20px; position: relative; padding: 18px; box-sizing: border-box; }
.auth-visual-corner { position: absolute; width: 34px; height: 34px; border: 7px solid var(--ink); border-radius: 6px; box-sizing: border-box; }
.auth-visual-corner.tl { top: 16px; left: 16px; }
.auth-visual-corner.tr { top: 16px; right: 16px; }
.auth-visual-corner.bl { bottom: 16px; left: 16px; }
.auth-visual-pattern {
  position: absolute;
  inset: 18px;
  background-image:
    linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%),
    linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%);
  background-size: 14px 14px;
  background-position: 0 0, 7px 7px;
  opacity: 0.88;
  -webkit-mask-image:
    radial-gradient(circle at 21% 21%, transparent 20px, black 21px),
    radial-gradient(circle at 79% 21%, transparent 20px, black 21px),
    radial-gradient(circle at 21% 79%, transparent 20px, black 21px);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(circle at 21% 21%, transparent 20px, black 21px),
    radial-gradient(circle at 79% 21%, transparent 20px, black 21px),
    radial-gradient(circle at 21% 79%, transparent 20px, black 21px);
  mask-composite: intersect;
}

@media (max-width: 900px) {
  .auth-page-split-visual { display: none; }
  .auth-page-split-form { padding: 40px 20px; }
}

@media (max-width: 420px) {
  .auth-page-center { padding: 24px 12px; }
  .auth-card-v2 { padding: 32px 22px; }
  .auth-page-split-form { padding: 32px 16px; }
}

.error { background: var(--red-pale); color: var(--red-dark); padding: 11px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 12px; }
.success { background: var(--green-pale); color: var(--green-dark); padding: 11px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 12px; }
.flash-with-link { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.flash-link { font-family: var(--font-mono, monospace); font-size: 12.5px; word-break: break-all; }
.flash-copy-btn { margin-left: auto; flex: none; }
.flash-wrap { padding-top: 24px; }

/* Standalone single-card pages (pay, scan, 404/500...) have no .container
   wrapper, so on narrow screens the card would otherwise sit flush against
   the viewport edges. Scoped to :has(> .card) so it doesn't touch the
   full-bleed marketing homepage sections, which are also direct children
   of <main> but rely on spanning edge-to-edge. */
main:has(> .card) { padding: 0 20px; box-sizing: border-box; }
@media (max-width: 480px) {
  main:has(> .card) { padding: 0 14px; }
}

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
.badge.active { background: var(--green-pale); color: var(--green-dark); }
.badge.inactive { background: var(--red-pale); color: var(--red-dark); }
.badge.role { background: oklch(93% 0.006 75); color: oklch(40% 0.02 75); }
.badge.emergency-badge { background: var(--red-pale); color: var(--red-dark); }
.badge.pending { background: oklch(85% 0.14 80 / 0.35); color: oklch(45% 0.14 70); }

.emergency-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin: 14px 0 0;
  cursor: pointer;
}
.emergency-checkbox-row input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--red); cursor: pointer; }

.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form { display: inline; }

/* ---------- Marketing page: shared section styling ---------- */
.section-title { font-size: 34px; text-align: center; }
.section-sub { text-align: center; max-width: 520px; margin: 0 auto 8px; }
section { padding: 96px 0; }

.badge-pill {
  display: inline-block;
  background: var(--green-pale-strong);
  color: var(--green-darker);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

/* ---------- Hero ---------- */
.hero { padding: 90px 0 110px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.hero-title .accent { color: var(--green); }

.hero-sub { font-size: 19px; max-width: 460px; }
.hero-ctas { display: flex; gap: 14px; margin: 28px 0 40px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 40px; }
.stat-number {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}
.stat-number-lg { font-size: 38px; color: var(--green); }
.stat-label { font-size: 13px; color: var(--ink-faint); margin-top: 2px; }

.hero-art { display: flex; justify-content: center; }
.qr-frame {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  background: var(--ink);
  border-radius: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 60px -20px rgba(28, 20, 12, 0.35);
}
.qr-mock {
  width: 68%;
  height: 68%;
  background: var(--white);
  border-radius: 16px;
  background-image:
    repeating-linear-gradient(45deg, var(--ink) 0 6px, transparent 6px 12px);
  background-size: 60% 60%;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.qr-mock::before, .qr-mock::after {
  content: "";
  position: absolute;
  width: 22%;
  height: 22%;
  border: 5px solid var(--ink);
  border-radius: 6px;
  top: 8%;
  left: 8%;
}
.qr-mock::after { left: auto; right: 8%; }

/* ---------- Sticker product page ---------- */
.sp-hero { padding: 64px 0 80px; }
.sp-hero-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.sp-hero-art { display: flex; flex-direction: column; align-items: center; gap: 18px; position: sticky; top: 100px; }
.sp-qr-frame { max-width: 280px; }
.sp-caption { font-size: 14px; color: var(--ink-faint); font-weight: 600; }

.sp-title { font-size: 38px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 10px; }
.sp-lead { font-size: 16px; max-width: 480px; margin: 16px 0; }

/* Rating row */
.sp-rating-row { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; margin-bottom: 4px; }
.sp-stars { display: inline-flex; gap: 1px; }
.sp-star { color: var(--border); font-size: 15px; line-height: 1; }
.sp-star.filled { color: #f5a623; }
.sp-rating-text { font-size: 13.5px; color: var(--ink-soft); font-weight: 600; }

/* Price */
.sp-price-row { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 20px; }
.sp-price { font-size: 30px; font-weight: 900; color: var(--ink); }
.sp-price-note { font-size: 13px; color: var(--ink-faint); }

/* Order form */
.sp-order-form {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 28px;
}
.sp-field-group { margin-bottom: 20px; }
.sp-field-group:last-of-type { margin-bottom: 0; }
.sp-field-label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; color: var(--ink-faint); margin-bottom: 10px; }

.sp-pill-group { display: flex; gap: 10px; flex-wrap: wrap; }
.sp-pill { cursor: pointer; }
.sp-pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.sp-pill span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.sp-pill span em { font-size: 11.5px; font-weight: 500; font-style: normal; color: var(--ink-faint); }
.sp-pill input:checked + span { border-color: var(--green); background: var(--green-pale); color: var(--green-darker); }
.sp-pill input:checked + span em { color: var(--green-darker); }
.sp-pill input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 1px; }

.sp-qty-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sp-qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px;
}
.sp-qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(28, 20, 12, 0.1);
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.sp-qty-btn svg { width: 14px; height: 14px; }
.sp-qty-btn:hover:not(:disabled) { background: var(--green); color: var(--white); box-shadow: 0 3px 8px var(--green-pale-strong); }
.sp-qty-btn:active:not(:disabled) { transform: scale(0.9); }
.sp-qty-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.sp-qty-btn:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }
.sp-qty-stepper input {
  width: 42px;
  height: 32px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  -moz-appearance: textfield;
}
.sp-qty-stepper input:focus { outline: none; }
.sp-qty-stepper input::-webkit-outer-spin-button, .sp-qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sp-qty-note { font-size: 13px; color: var(--ink-faint); }

.sp-ordering-as { font-size: 13.5px; color: var(--ink-soft); background: var(--bg-alt); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 20px; }

.sp-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; margin-bottom: 10px; }
.sp-ship-note { font-size: 13px; color: var(--ink-faint); margin: 0; }

.sp-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 32px;
  padding-top: 24px;
  border-top: 1.5px solid var(--border);
}
.sp-spec { display: flex; flex-direction: column; gap: 4px; }
.sp-spec-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; color: var(--ink-faint); }
.sp-spec-value { font-size: 15px; font-weight: 600; color: var(--ink); }

/* Reviews */
.reviews-section { background: var(--bg); }
.sp-review-list { max-width: 640px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 20px; }
.sp-review-card { background: var(--white); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); }
.sp-review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.sp-review-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.sp-review-time { font-size: 12.5px; color: var(--ink-faint); margin-left: auto; }
.sp-review-comment { margin: 0; font-size: 14.5px; }

.sp-write-review { max-width: 640px; margin: 32px auto 0; text-align: center; }
.sp-review-form { text-align: left; margin-top: 20px; background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.sp-star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.sp-star-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.sp-star-input label { font-size: 26px; color: var(--border); cursor: pointer; line-height: 1; }
.sp-star-input input:checked ~ label,
.sp-star-input label:hover,
.sp-star-input label:hover ~ label { color: #f5a623; }
.sp-review-note { font-size: 12.5px; color: var(--ink-faint); margin: 10px 0 0; }

@media (max-width: 860px) {
  .sp-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .sp-hero-art { position: static; }
  .sp-specs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .sp-title { font-size: 30px; }
  .sp-specs { grid-template-columns: 1fr; }
  .sp-ctas { flex-direction: column; }
  .sp-ctas .btn { width: 100%; text-align: center; }
}

/* ---------- Cart / checkout / confirmation ---------- */
.cart-page { padding: 48px 0 96px; }

.cart-steps { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 32px; }
.cart-step { font-size: 13px; font-weight: 700; color: var(--ink-faint); }
.cart-step.active { color: var(--ink); }
.cart-step.done { color: var(--green-dark); }
.cart-step-sep { width: 28px; height: 1.5px; background: var(--border); }

.cart-title { text-align: center; font-size: 30px; margin-bottom: 32px; }

.cart-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }

.cart-items { display: flex; flex-direction: column; }
.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.cart-line-thumb { width: 64px; height: 64px; border-radius: var(--radius-sm); background: var(--ink); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cart-line-thumb .qr-mock { width: 60%; height: 60%; }
.cart-line-name { font-weight: 800; font-size: 15px; }
.cart-line-sub { font-size: 13px; color: var(--ink-faint); margin: 2px 0 6px; }
.cart-line-remove { background: none; border: none; padding: 0; font-size: 12.5px; font-weight: 700; color: var(--ink-faint); text-decoration: underline; cursor: pointer; }
.cart-line-remove:hover { color: var(--red-dark); }
.cart-line-qty { flex-shrink: 0; }
.cart-line-total { font-weight: 800; font-size: 15px; min-width: 70px; text-align: right; }

.cart-empty { text-align: center; padding: 64px 0; }
.cart-empty p { font-size: 16px; margin-bottom: 20px; }

.cart-summary { position: sticky; top: 100px; }
.cart-promo-form { margin-bottom: 10px; }
.cart-promo-row { display: flex; gap: 8px; }
.cart-promo-row .admin-auth-input { flex: 1; margin-bottom: 0; }

.cart-summary-panel { border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 18px; }
.cart-summary-rows { padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; }
.cart-summary-row { display: flex; align-items: baseline; justify-content: space-between; font-size: 14px; color: var(--ink-soft); gap: 12px; }
.cart-summary-row span:first-child { line-height: 1.4; }
.cart-summary-discount { color: var(--green-dark); font-weight: 700; }
.cart-summary-total { font-size: 18px; font-weight: 900; color: var(--ink); padding-top: 10px; border-top: 1.5px solid var(--border); }
.cart-summary-note { font-size: 12.5px; color: var(--ink-faint); margin: 10px 22px 0; }
.cart-checkout-btn { display: block; width: calc(100% - 44px); margin: 4px 22px 0; text-align: center; }

/* Checkout step */
.cart-checkout-form { display: flex; flex-direction: column; gap: 20px; }
.checkout-panel { margin: 0; }
.checkout-panel-body { padding: 22px; }
.checkout-address-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.cart-checkout-form > .cart-checkout-btn { width: 100%; margin: 0; }

/* Confirmation step */
.cart-confirmation { text-align: center; padding: 32px 0 16px; }
.cart-confirmation-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--green-pale); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 900;
}

@media (max-width: 860px) {
  .cart-grid { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .checkout-address-row { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 52px 1fr; row-gap: 10px; }
  .cart-line-qty { grid-column: 1 / -1; justify-self: start; }
  .cart-line-total { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- Steps ---------- */
.steps-section { background: var(--bg); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.step-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.step h3 { font-size: 18px; }
.step p { font-size: 14px; }

/* ---------- Formats ---------- */
.formats-section { background: oklch(0.96 0.006 75); }
.formats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.format-cards { display: flex; gap: 20px; }
.format-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  flex: 1;
  box-shadow: var(--shadow);
}
.format-icon {
  width: 56px;
  height: 56px;
  background: var(--ink);
  border-radius: 14px;
  margin: 0 auto 16px;
}
.format-name { font-weight: 700; font-size: 15px; }
.format-sub { font-size: 13px; color: var(--ink-faint); margin-top: 2px; }

.check-list { list-style: none; margin: 20px 0 0; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 15px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-pale);
  box-shadow: inset 0 0 0 5px var(--green);
}

/* ---------- Protect stats ---------- */
.protect-section { background: var(--bg); text-align: center; }
.protect-stats {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.protect-stats .stat { text-align: center; }

/* ---------- FAQ ---------- */
.faq-section { background: oklch(0.96 0.006 75); }
.faq-list { max-width: 680px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}
.faq-icon {
  color: var(--green);
  font-size: 20px;
  font-weight: 700;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  padding: 0 22px;
}
.faq-item.open .faq-answer { max-height: 200px; padding: 0 22px 20px; }
.faq-answer p { margin: 0; font-size: 14px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--green);
  color: var(--white);
  text-align: center;
}
.cta-banner h2 { color: var(--white); font-size: 32px; }
.cta-banner p { color: rgba(255, 255, 255, 0.85); margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: rgba(255, 255, 255, 0.7); padding: 64px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p { color: rgba(255, 255, 255, 0.55); font-size: 14px; max-width: 280px; margin-top: 12px; }
.footer-col h4 { color: var(--white); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255, 255, 255, 0.6); font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .formats-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-title { font-size: 40px; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
  .protect-stats { gap: 40px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .format-cards { flex-direction: column; }

  /* Hamburger + right-side slide-in drawer, replaces the inline nav row */
  .nav-toggle { display: flex; }

  /* Swap which cart icon copy is visible - mobile gets the one grouped
     with the hamburger (always on-screen), desktop's copy (grouped with
     the avatar/login, now buried in the off-canvas drawer) is hidden. */
  .cart-icon-link.cart-icon-link-desktop { display: none; }
  .cart-icon-link.cart-icon-link-mobile { display: inline-flex; }

  .header-nav-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(82vw, 320px);
    background: var(--white);
    box-shadow: -8px 0 30px rgba(28, 20, 12, 0.14);
    z-index: 99;
    padding: 20px 24px 32px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.28s ease;
  }
  .header-nav-group.open { transform: translateX(0); }

  .nav-panel-close {
    display: block;
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 30px;
    line-height: 1;
    color: var(--ink-soft);
    cursor: pointer;
    padding: 4px 8px;
    margin-bottom: 8px;
  }
  .nav-panel-close:hover { color: var(--ink); }

  .marketing-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 16px;
    margin-bottom: 12px;
  }
  .marketing-nav a { padding: 12px 6px; border-bottom: 1px solid var(--bg-alt); }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .header-actions .btn-link { padding: 10px 6px; text-align: left; font-size: 16px; }
  .header-actions form.inline-form { display: block; }
  .header-actions form.inline-form .btn-link { width: 100%; }
  .header-actions .btn { width: 100%; text-align: center; margin-top: 8px; }
}

/* ---------- Admin login (standalone page, values match reference) ---------- */
.admin-auth-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  background: var(--ink);
  padding: 24px;
  box-sizing: border-box;
}

.admin-auth-wrap { width: 400px; max-width: 100%; }

.admin-auth-header {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}

.admin-auth-logo-img { height: 30px; width: auto; display: block; }

.admin-auth-tag {
  font-size: 12px;
  color: oklch(60% 0.01 75);
  font-weight: 700;
  border-left: 1px solid oklch(35% 0.01 75);
  padding-left: 10px;
  margin-left: 2px;
  letter-spacing: 0.02em;
}

.admin-auth-card {
  background: white;
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 30px 60px oklch(0% 0 0 / 0.35);
}

.admin-auth-card h1 { font-family: var(--font-display); font-weight: 900; font-size: 24px; color: var(--ink); margin: 0 0 6px; }
.admin-auth-card p { font-size: 14px; color: oklch(50% 0.02 75); margin: 0 0 28px; }

.admin-auth-label { display: block; font-size: 12.5px; font-weight: 700; color: oklch(35% 0.02 75); margin-bottom: 6px; }

.admin-auth-input {
  width: 100%;
  background: oklch(96% 0.006 75);
  border: 1.5px solid oklch(90% 0.006 75);
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 14.5px;
  color: oklch(30% 0.02 75);
  margin-bottom: 18px;
  font-family: var(--font-body);
  box-sizing: border-box;
}
.admin-auth-input:focus { outline: none; border-color: var(--green); }
.admin-auth-input-pw { margin-bottom: 24px; letter-spacing: 2px; }

.admin-auth-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.admin-auth-forgot { font-size: 12.5px; font-weight: 700; color: var(--green); }
.admin-auth-forgot:hover { color: var(--green-dark); }

.admin-auth-submit {
  width: 100%;
  background: var(--green);
  color: white;
  text-align: center;
  font-weight: 700;
  font-size: 15.5px;
  padding: 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s ease;
}
.admin-auth-submit:hover { background: var(--green-dark); }

.admin-auth-footer { text-align: center; margin-top: 22px; font-size: 13px; color: oklch(60% 0.01 75); }
.admin-auth-footer a { color: var(--green); font-weight: 600; }
.admin-auth-footer a:hover { color: var(--green-dark); }

/* ---------- Admin dashboard shell (sidebar + topbar, values match reference) ---------- */
.admin-shell-body { margin: 0; padding-top: 0; font-family: var(--font-body); }
/* Set on <body> by public/js/mobile-nav.js while the slide-in drawer (see
   .customer-sidebar-drawer/.admin-sidebar-drawer) is open, so the page
   underneath doesn't scroll along with it. */
body.mobile-nav-locked { overflow: hidden; }
.admin-shell {
  display: flex;
  width: 100%;
  min-height: 100vh;
  background: oklch(97% 0.006 75);
  color: var(--ink);
}

.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 26px;
}

.admin-sidebar-logo-img { height: 24px; width: auto; display: block; }

.admin-sidebar-tag { font-size: 11px; color: oklch(60% 0.01 75); font-weight: 700; margin-left: auto; letter-spacing: 0.02em; }

/* Hamburger menu toggle - shared visual pattern for both the customer and
   admin sidebars. Hidden by default (display: none) and only switched on
   inside the ~900px media queries below, where the sidebar collapses to a
   slim top bar and the nav/footer become a hide-by-default dropdown that
   this button reveals (see public/js/mobile-nav.js for the toggle logic). */
.admin-sidebar-topbar, .customer-sidebar-topbar { display: flex; align-items: center; justify-content: space-between; }
.customer-menu-toggle, .admin-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: none;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.hamburger-bars { width: 18px; height: 13px; display: flex; flex-direction: column; justify-content: space-between; }
.hamburger-bars i { display: block; height: 2px; border-radius: 2px; }
.customer-menu-toggle .hamburger-bars i { background: var(--ink); }
.admin-menu-toggle .hamburger-bars i { background: var(--white); }
.customer-menu-toggle:hover { background: oklch(93% 0.006 75); }
.admin-menu-toggle:hover { background: oklch(100% 0 0 / 0.08); }

/* Slide-in drawer wrapper around the nav + footer. On desktop this needs to
   be visually invisible - display:contents drops it out of the box model
   entirely so .customer-nav/.admin-nav and the footer behave exactly like
   direct flex children of the sidebar again, same as before this existed.
   The ~900px media queries below override this to turn it into an actual
   fixed off-canvas panel. */
.customer-sidebar-drawer, .admin-sidebar-drawer { display: contents; }
.customer-drawer-close, .admin-drawer-close { display: none; }

.customer-sidebar-backdrop, .admin-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: oklch(15% 0.02 75 / 0.45);
  z-index: 210;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.admin-nav { display: flex; flex-direction: column; gap: 2px; }

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  color: oklch(70% 0.01 75);
  font-weight: 600;
  font-size: 14px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
}
.admin-nav-item:hover { color: white; }
.admin-nav-item.active { background: oklch(58% 0.19 142 / 0.16); color: white; font-weight: 700; }

/* Wraps a top-level nav item (currently just Stickers) together with its
   own dropdown caret button - the link and the caret are siblings, not
   nested (a <button> can't legally sit inside an <a>), so this flex row is
   what lines them up as one visual "row" while keeping them two separate
   clickable targets: the link still navigates straight to the section
   (unchanged), the caret only opens/closes .admin-nav-submenu below it. */
.admin-nav-group { display: flex; align-items: center; gap: 2px; }
.admin-nav-group .admin-nav-group-link { flex: 1; min-width: 0; }
.admin-nav-group-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: none;
  border: none;
  color: oklch(70% 0.01 75);
  cursor: pointer;
}
.admin-nav-group-toggle:hover { color: white; background: oklch(100% 0 0 / 0.06); }
.admin-nav-group-toggle svg { width: 14px; height: 14px; transition: transform 0.15s ease; }
.admin-nav-group-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Dropdown sub-items shown below a parent nav item (currently just
   Stickers > Recent sheets/Trash/Branding) - collapsed by default, toggled
   open by the caret button above (see the inline script at the bottom of
   views/layouts/admin.njk) or auto-expanded server-side when the current
   page is already one of these routes (see the "expanded" class in
   admin.njk). */
.admin-nav-submenu { display: none; flex-direction: column; gap: 2px; margin: 2px 0 6px 34px; }
.admin-nav-submenu.expanded { display: flex; }
.admin-nav-subitem {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  color: oklch(65% 0.01 75);
  font-weight: 600;
  font-size: 12.5px;
  text-decoration: none;
}
.admin-nav-subitem:hover { color: white; }
.admin-nav-subitem.active { background: oklch(58% 0.19 142 / 0.16); color: white; font-weight: 700; }

/* One real inline SVG per nav item now (views/admin/_nav-icons.njk) instead
   of the old hand-shaped CSS spans, which reused the exact same shape for
   several unrelated items (e.g. "card" for Stickers/Coupons/Reviews/Blog/
   Pages alike) and so didn't actually help anyone tell sections apart. */
.admin-nav-icon { width: 18px; height: 18px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.admin-nav-icon svg { width: 100%; height: 100%; }

.admin-nav-badge {
  margin-left: auto;
  background: var(--green);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  line-height: 1.4;
}

.admin-placeholder-body { padding: 32px 22px; }
.admin-placeholder-body p { color: oklch(45% 0.02 75); font-size: 14.5px; max-width: 520px; margin: 0; }

.admin-sidebar-footer { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 16px; border-top: 1px solid oklch(30% 0.02 75); }
.admin-nav-logout { color: oklch(70% 0.01 75); }
.admin-nav-logout:hover { color: white; }

.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.admin-topbar {
  padding: 20px 32px;
  border-bottom: 1px solid oklch(90% 0.006 75);
  background: white;
  flex-shrink: 0;
}
.admin-topbar-title { font-family: var(--font-display); font-weight: 900; font-size: 22px; }
.admin-topbar-sub { font-size: 13px; color: oklch(50% 0.02 75); margin-top: 2px; }

.admin-content { padding: 28px 32px; flex: 1; }

.impersonation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 32px;
  background: oklch(85% 0.14 85);
  color: oklch(25% 0.02 75);
  font-size: 13.5px;
  font-weight: 600;
  flex-shrink: 0;
}
.impersonation-banner .btn-link { color: var(--ink); text-decoration: underline; }
.impersonation-banner .btn-link:hover { color: var(--green-dark); }

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.admin-stat-card { background: white; border-radius: 16px; padding: 22px; border: 1px solid oklch(91% 0.006 75); }
.admin-stat-label { font-size: 13px; color: oklch(50% 0.02 75); font-weight: 600; margin-bottom: 10px; white-space: nowrap; }
.admin-stat-value { font-family: var(--font-display); font-weight: 900; font-size: 28px; }
.admin-stat-note { font-size: 12.5px; color: oklch(50% 0.02 75); font-weight: 700; margin-top: 6px; white-space: nowrap; }

/* Reports page (views/admin/reports.njk) - cost line items in red, net
   profit picked out with a green-tinted card + larger figure so it reads
   as the headline number among the six summary cards. Each card also gets
   a small muted icon (top-right) so the six aren't just a wall of
   identical white boxes. */
.admin-stat-value-negative { color: var(--red-dark); }
.admin-stat-value-large { font-size: 34px; }
.admin-stat-card-highlight { background: var(--green-pale, oklch(96% 0.03 142)); border-color: var(--green, oklch(58% 0.19 142)); }
.admin-stat-card { position: relative; }
.admin-stat-icon { position: absolute; top: 20px; right: 20px; width: 22px; height: 22px; color: oklch(82% 0.02 75); }
.admin-stat-icon svg { width: 100%; height: 100%; }
.admin-stat-card-highlight .admin-stat-icon { color: var(--green-dark); }
/* Note text can run longer here than on other pages that reuse this same
   admin-stat-note class (e.g. "Revenue minus sticker cost and gateway
   fees") - the base class is nowrap for short one-liners elsewhere, so
   this opts specific cards back into normal wrapping instead of
   overflowing the card's edge. */
.admin-stat-note-wrap { white-space: normal; padding-right: 26px; }

.reports-filter-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 16px; padding: 20px 22px; }
.reports-filter-field { display: flex; flex-direction: column; gap: 4px; }
.reports-filter-field label { font-size: 12.5px; font-weight: 600; color: oklch(50% 0.02 75); }
.reports-filter-field input { width: 165px; margin-bottom: 0; }
.reports-filter-presets { display: flex; flex-wrap: wrap; gap: 8px; flex-basis: 100%; margin-top: 4px; }

.admin-panels { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.admin-panel {
  flex: 1;
  min-width: 320px;
  background: white;
  border-radius: 16px;
  border: 1px solid oklch(91% 0.006 75);
  overflow: hidden;
}
.admin-panel-wide { flex: 2; }
.admin-panel-narrow { flex: 1; }

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid oklch(93% 0.006 75);
  font-weight: 800;
  font-size: 15px;
}
.admin-panel-header a { font-size: 13px; font-weight: 700; color: var(--green); }
.admin-panel-header a:hover { color: var(--green-dark); }

.admin-search-form { display: flex; align-items: center; gap: 8px; }
.admin-search-input { width: 220px; margin-bottom: 0; padding: 8px 12px; font-size: 13px; }

/* ---------- Blog media picker (drag-and-drop upload + media library) ----------
   See views/admin/blog-form.njk's mediaPicker() macro and the shared
   #media-modal-overlay it opens - used for the featured image and per-post
   SEO image fields. */
.media-picker { margin-top: 8px; }
.media-picker-preview { position: relative; display: inline-block; margin-bottom: 10px; }
.media-picker-preview.is-empty { display: none; }
.media-picker-preview img {
  max-width: 220px;
  max-height: 160px;
  display: block;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  object-fit: cover;
  background: var(--bg-alt);
}
/* Sticker QR code center badge - previewed as a circle here, matching the
   actual circular badge rendered in the middle of the printed QR code (see
   .qr-badge in views/pdf/_sticker-styles.njk). Every other media-picker
   field (logo, blog/page images) keeps the default rectangular preview
   above - this one field is the exception because its output is round. */
.media-picker[data-field="qrBadgeImage"] .media-picker-preview img {
  width: 96px;
  height: 96px;
  max-width: 96px;
  max-height: 96px;
  border-radius: 50%;
  object-fit: cover;
}
/* Brand logo preview - also shown as a circle to match how it's used
   (round logo mark next to the wordmark on the sticker card). */
.media-picker[data-field="logo"] .media-picker-preview img {
  width: 96px;
  height: 96px;
  max-width: 96px;
  max-height: 96px;
  border-radius: 50%;
  object-fit: cover;
}
.media-picker-remove-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  padding: 0;
}
.media-picker-remove-btn:hover { color: var(--green-darker); }

.media-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  background: var(--bg-alt);
  transition: border-color 0.15s, background 0.15s;
}
.media-dropzone:hover, .media-dropzone.is-dragover { border-color: var(--green); background: var(--green-pale); }
.media-dropzone-input { display: none; }
.media-dropzone-title { font-size: 13px; font-weight: 600; color: var(--ink-soft); }

.media-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 10, 0.45);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.media-modal-overlay[hidden] { display: none; }
.media-modal {
  background: #fff;
  border-radius: var(--radius);
  max-width: 720px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.media-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 800;
  font-size: 15px;
}
.media-modal-close { background: none; border: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-soft); padding: 0; }
.media-modal-close:hover { color: var(--ink); }
.media-modal-upload { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border-light); }
.media-modal-upload label.btn { cursor: pointer; }
.media-modal-grid {
  padding: 16px 20px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.media-modal-item {
  border: 2px solid transparent;
  border-radius: var(--radius-xs);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-alt);
  aspect-ratio: 1;
}
.media-modal-item:hover { border-color: var(--green); }
.media-modal-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 640px) {
  .media-modal-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
  .media-picker-preview img { max-width: 100%; }
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 22px;
  border-top: 1px solid oklch(93% 0.006 75);
}
.admin-pagination-info { font-size: 13px; font-weight: 600; color: oklch(50% 0.02 75); }

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  align-items: start;
  padding: 20px 22px;
}

.admin-progress-row { display: flex; align-items: center; gap: 12px; padding: 0 22px 20px; }
.admin-progress-row[hidden] { display: none; }
.admin-progress-bar {
  flex: 1;
  height: 8px;
  border-radius: 100px;
  background: oklch(93% 0.006 75);
  overflow: hidden;
}
.admin-progress-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 100px;
  background: var(--green);
  transition: width 0.4s ease;
}
.admin-progress-label { font-size: 12.5px; font-weight: 600; color: oklch(50% 0.02 75); white-space: nowrap; }
.admin-form-grid .admin-auth-input { margin-bottom: 0; }
.admin-form-grid .btn { align-self: start; }

.admin-inline-status { margin-left: 10px; font-size: 12.5px; font-weight: 600; color: var(--green-dark); }
.admin-inline-status.error { color: var(--red-dark); }

.admin-live-dot { width: 8px; height: 8px; border-radius: 100px; background: var(--green); }

.admin-table { overflow-x: auto; }
.admin-table-row {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr 1fr;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-size: 13.5px;
  border-top: 1px solid oklch(95% 0.006 75);
}
.admin-table-row.cols-5 { grid-template-columns: 1.1fr 1.3fr 0.8fr 0.8fr 0.9fr; }
.admin-table-row.cols-6 { grid-template-columns: 1fr 1.2fr 0.8fr 0.7fr 0.6fr 0.9fr; }
.admin-table-row.cols-7 { grid-template-columns: 1.1fr 1fr 0.9fr 0.5fr 0.9fr 0.8fr 1fr; }
.admin-table-row.cols-8 { grid-template-columns: 1.2fr 1fr 0.9fr 0.4fr 0.5fr 0.9fr 0.8fr 1fr; }
.admin-table-row.cols-9 { grid-template-columns: 1.1fr 0.9fr 0.8fr 0.4fr 0.5fr 0.8fr 0.8fr 0.8fr 1fr; }
.admin-table-row.cols-10 { grid-template-columns: 1.1fr 0.9fr 0.7fr 0.35fr 0.9fr 0.6fr 0.7fr 0.7fr 0.7fr 1fr; }

.admin-price-row { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.admin-price-row:first-child { margin-top: 0; }
.admin-price-row-label { font-size: 11.5px; font-weight: 600; color: oklch(50% 0.02 75); white-space: nowrap; }
.admin-table-row:first-child { border-top: none; }
.admin-table-head {
  font-size: 11.5px;
  font-weight: 700;
  color: oklch(50% 0.02 75);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 12px 22px;
  border-top: none;
}
.admin-table-strong { font-weight: 700; }
/* .btn.btn-sm-table (not just .btn-sm-table) so this reliably beats
   .btn.secondary/.btn.primary/.btn.danger's own padding - those are also
   two-class selectors (0,2,0 specificity), so a plain single-class
   .btn-sm-table (0,1,0) was silently losing to them and every "compact"
   admin table button (Log in as, Search, Mark sold, Prev/Next, etc.) was
   rendering at full 10px/18px size instead of the intended 6px/12px. */
.btn.btn-sm-table { padding: 6px 12px; font-size: 12.5px; }

/* Sticker cards (Stickers page) - replaced the old rigid 5-column table row,
   which broke down once a row could carry two price-entry forms at once. */
/* Small helper line under the "Queue PDF sheet" panel explaining the
   unsold+unprinted filter that route applies - see admin/vehicles.njk and
   POST /stickers/bulk-pdf's own comment in routes/admin.js. */
.admin-form-hint { padding: 0 22px 16px; font-size: 12.5px; color: oklch(50% 0.02 75); line-height: 1.5; }

.sticker-filter-row { display: flex; gap: 8px; padding: 16px 22px 0; flex-wrap: wrap; }
.sticker-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.sticker-filter-pill:hover { border-color: var(--green); color: var(--ink); }
.sticker-filter-pill.active { background: var(--green); border-color: var(--green); color: var(--white); }

.sticker-per-page-form { display: inline-flex; align-items: center; }
.sticker-per-page-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.sticker-per-page-label select { padding: 6px 10px; font-size: 13px; font-weight: 700; width: auto; }

/* Bulk-select toolbar (Stickers + Trash pages) - shown once at least one
   row is checked (see each page's inline script, updateBulkBar()). */
.sticker-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 22px;
  background: oklch(98% 0.004 75);
  border-top: 1px solid oklch(95% 0.006 75);
}
.sticker-bulk-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sticker-select-all { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.sticker-select-all input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--green); }

.sticker-list { display: flex; flex-direction: column; }
.sticker-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 16px 22px;
  border-top: 1px solid oklch(95% 0.006 75);
  flex-wrap: wrap;
}
.sticker-card:first-child { border-top: none; }
/* Row background by lifecycle state (explicit request, 2026-08-25) - white
   is the default (unprinted, unsold), a soft yellow once printed_at is set
   (see routes/admin.js's mark-printed routes), a soft green once sold
   (status sold/claimed) - sold WINS over printed if both are true, since
   the sale is the more final/important state to see at a glance (a sold
   sticker that also happens to be printed doesn't need to stand out as
   "still needs printing" anymore). See admin/vehicles.njk for which class
   gets applied. */
.sticker-card--printed { background: oklch(96% 0.05 95); }
.sticker-card--sold { background: oklch(96% 0.045 142); }
.sticker-select { display: flex; align-items: center; padding-top: 3px; flex: 0 0 auto; }
.sticker-select input[type="checkbox"] { width: 17px; height: 17px; cursor: pointer; accent-color: var(--green); }
.sticker-card-main { flex: 1 1 240px; min-width: 220px; }
.sticker-code-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.sticker-code { font-weight: 800; font-size: 14.5px; letter-spacing: 0.01em; }
.sticker-meta { font-size: 12.5px; color: oklch(50% 0.02 75); }

.sticker-card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: 0 0 auto; }
.sticker-price { font-weight: 800; font-size: 14px; }
.sticker-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

.sticker-actions-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  background: oklch(98% 0.004 75);
  border: 1px solid oklch(91% 0.006 75);
  border-radius: 12px;
  padding: 10px 12px;
}

.sticker-price-form { display: flex; align-items: center; gap: 6px; }
.sticker-price-form-label { width: 68px; text-align: right; font-size: 11.5px; font-weight: 600; color: oklch(50% 0.02 75); white-space: nowrap; }

.price-input-wrap {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid oklch(90% 0.006 75);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}
.price-input-wrap:focus-within { border-color: var(--green); }
.price-input-prefix {
  padding: 6px 4px 6px 8px;
  font-size: 12px;
  font-weight: 700;
  color: oklch(55% 0.02 75);
  background: oklch(96% 0.006 75);
}
.price-input-wrap .sticker-price-input { border: none; border-radius: 0; }
.price-input-wrap .sticker-price-input:focus { outline: none; }
.sticker-price-input { width: 64px; margin-bottom: 0; padding: 6px 8px 6px 4px; font-size: 12.5px; }

.copy-btn {
  border: 1px solid oklch(88% 0.006 75);
  background: white;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: oklch(42% 0.02 75);
  cursor: pointer;
  white-space: nowrap;
}
.copy-btn:hover { border-color: var(--green); color: var(--green-dark); }
.copy-btn.copied { border-color: var(--green); color: var(--green-dark); background: var(--green-pale); }

.sticker-link-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: oklch(97% 0.006 75);
  border: 1px solid oklch(90% 0.006 75);
  border-radius: 10px;
  padding: 6px 6px 6px 12px;
  max-width: 260px;
}
.sticker-link-pill span {
  font-size: 11.5px;
  color: oklch(45% 0.02 75);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Jobs panel - polled from JS, shows progress for background bulk-generate
   / bulk-pdf jobs (see services/jobQueue.js). */
.admin-jobs-list { display: flex; flex-direction: column; }
.admin-jobs-empty { padding: 18px 22px; font-size: 13px; color: oklch(50% 0.02 75); }
.admin-job-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 22px;
  border-top: 1px solid oklch(95% 0.006 75);
}
.admin-job-row:first-child { border-top: none; }
.admin-job-main { flex: 1; min-width: 0; }
.admin-job-title { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; }
.admin-job-sub { font-size: 12px; color: oklch(50% 0.02 75); margin-top: 3px; }
.admin-job-bar { height: 5px; border-radius: 999px; background: oklch(93% 0.006 75); margin-top: 8px; max-width: 320px; overflow: hidden; }
.admin-job-bar-fill { height: 100%; background: var(--green); border-radius: 999px; transition: width 0.4s ease; }
.admin-job-action { flex-shrink: 0; }

.admin-feed { display: flex; flex-direction: column; }
.admin-feed-item { padding: 14px 22px; border-top: 1px solid oklch(95% 0.006 75); }
.admin-feed-item:first-child { border-top: none; }
.admin-feed-title { font-size: 13.5px; font-weight: 700; }
.admin-feed-sub { font-size: 12.5px; color: oklch(50% 0.02 75); margin-top: 2px; }

@media (max-width: 900px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; flex-direction: column; align-items: stretch; padding: 0; }
  .admin-sidebar-topbar { padding: 10px 16px; }
  .admin-sidebar-brand { padding: 0; }
  .admin-menu-toggle { display: flex; }

  /* The drawer: off-canvas by default (slid fully left of the viewport),
     slides to translateX(0) when #admin-sidebar has .nav-open (toggled by
     public/js/mobile-nav.js). Fixed positioning means it doesn't matter
     that it's nested inside .admin-sidebar, which itself stays a normal
     static top bar - only this inner wrapper becomes an overlay. */
  .admin-sidebar-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    max-width: 82vw;
    background: var(--ink);
    z-index: 220;
    padding: 20px 16px;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    box-shadow: 12px 0 32px oklch(15% 0.02 75 / 0.25);
  }
  .admin-sidebar.nav-open .admin-sidebar-drawer { transform: translateX(0); }
  .admin-sidebar.nav-open ~ .admin-sidebar-backdrop { display: block; opacity: 1; }

  .admin-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    border: none;
    border-radius: 8px;
    background: oklch(100% 0 0 / 0.08);
    color: var(--white);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
  }

  .admin-nav { display: flex; flex-direction: column; }
  .admin-sidebar-footer { margin-top: auto; }
  .admin-table-row { grid-template-columns: 1fr 1fr; }
  .admin-table-row.cols-5 { grid-template-columns: 1fr; row-gap: 6px; }
  .admin-table-row.cols-6 { grid-template-columns: 1fr; row-gap: 6px; }
  .admin-table-row.cols-7 { grid-template-columns: 1fr; row-gap: 6px; }
  .admin-table-row.cols-8 { grid-template-columns: 1fr; row-gap: 6px; }
  .admin-table-row.cols-9 { grid-template-columns: 1fr; row-gap: 6px; }
  .admin-table-row.cols-10 { grid-template-columns: 1fr; row-gap: 6px; }
  .sticker-card { flex-direction: column; align-items: stretch; }
  .sticker-card-side { align-items: stretch; }
  .sticker-actions { align-items: stretch; }
  .sticker-price-form { flex-wrap: wrap; }
  .sticker-price-form-label { width: auto; text-align: left; }
  .sticker-actions-panel { width: 100%; align-items: stretch; }
  .sticker-link-pill { max-width: none; }
  .admin-job-row { flex-direction: column; align-items: stretch; }
  .admin-content { padding: 16px; }
  .admin-form-grid { flex-direction: column; align-items: stretch; }
  .admin-search-form { flex-wrap: wrap; }
  /* Force these to stack instead of relying on flex-shrink to eventually
     wrap them - with flex-basis:0 (the default for flex:2/flex:1) a wide
     table's unbreakable content can keep both panels squeezed side by side
     well past the point where that's readable. */
  .admin-panel-wide, .admin-panel-narrow { flex: 1 1 100%; }
}

@media (max-width: 480px) {
  .admin-topbar-title { font-size: 18px; }
}

/* ---------- Customer dashboard shell (sidebar, matches Nudge reference) ---------- */
.customer-shell-body { margin: 0; padding-top: 0; font-family: var(--font-body); }
.customer-shell {
  display: flex;
  width: 100%;
  min-height: 100vh;
  background: oklch(97% 0.006 75);
  color: var(--ink);
}

.customer-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
}

.customer-sidebar-brand {
  display: flex;
  align-items: center;
  padding: 6px 8px 26px;
}

.customer-sidebar-logo-img { height: 30px; width: auto; display: block; }

.customer-nav { display: flex; flex-direction: column; gap: 2px; }

.customer-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--ink-faint);
  font-weight: 600;
  font-size: 13.5px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
}
.customer-nav-item:hover { color: var(--ink); }
.customer-nav-item.active { background: var(--green-pale); color: var(--green-dark); font-weight: 700; }

/* Real inline SVG per item now (views/admin/_nav-icons.njk), replacing the
   old shapes reused across unrelated items (every item was one of just 3
   generic shapes: a grid, a plain square, or a ring). */
.customer-nav-icon { width: 17px; height: 17px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.customer-nav-icon svg { width: 100%; height: 100%; }

.customer-sidebar-footer { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

.customer-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
}
.customer-profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 100px;
  background: var(--green);
  color: white;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.customer-profile-info { min-width: 0; }
.customer-profile-name { font-weight: 700; font-size: 12.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.customer-profile-email { font-size: 11px; color: var(--ink-mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.customer-logout-link {
  background: none;
  border: none;
  padding: 4px 12px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-mid);
  text-align: left;
  cursor: pointer;
}
.customer-logout-link:hover { color: var(--ink); }

.customer-main { flex: 1; min-width: 0; }
.customer-content { padding: 32px 40px; max-width: 1400px; }

.customer-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.customer-greeting { margin-bottom: 3px; font-size: 24px; }
.customer-greeting-sub { margin: 0; font-size: 13.5px; }

.customer-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.customer-stat-card { background: var(--white); border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--border); }
.customer-stat-label { font-size: 12.5px; color: var(--ink-mid); font-weight: 600; margin-bottom: 8px; }
.customer-stat-value { font-family: var(--font-display); font-weight: 900; font-size: 24px; }
.customer-stat-accent { color: var(--green-dark); }

.vehicle-tile { display: flex; align-items: center; gap: 14px; }
.vehicle-tile-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--ink); flex-shrink: 0; display: inline-block; }

.vehicle-type-badge { background: var(--badge-bg); color: var(--ink-soft); }

.customer-stub { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 28px; }
.customer-stub p { margin: 0; }

/* Compact vehicle rows used in the dashboard's preview list */
.vehicle-preview-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--badge-bg);
  margin-bottom: 10px;
  color: inherit;
}
.vehicle-preview-row:hover { background: var(--green-pale); }
.vehicle-preview-info { flex: 1; min-width: 0; }
.vehicle-preview-plate { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.vehicle-preview-meta { font-size: 11.5px; color: var(--ink-mid); margin-top: 2px; }
.vehicle-preview-dot { width: 8px; height: 8px; border-radius: 100px; background: var(--border); flex-shrink: 0; }
.vehicle-preview-dot.on { background: var(--green); }

.customer-col-vehicles h2 { margin-top: 0; }

/* ---------- My vehicles page (pixel-matched to Nudge reference) ---------- */
.veh-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.veh-title { font-family: var(--font-display); font-weight: 900; font-size: 26px; color: var(--ink); margin: 0; }
.veh-subtitle { font-size: 13.5px; color: var(--ink-mid); margin: 3px 0 0; }

.veh-add-btn {
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 10px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.veh-add-btn:hover { background: var(--green-dark); }

.veh-filters { display: flex; gap: 12px; margin-bottom: 22px; align-items: center; flex-wrap: wrap; }
.veh-search-wrap { flex: 1; position: relative; min-width: 180px; }
.veh-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 2px solid oklch(60% 0.02 75);
  border-radius: 100px;
  box-sizing: border-box;
  pointer-events: none;
}
.veh-search-input {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 12px 16px 12px 38px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 0;
  box-sizing: border-box;
}
.veh-type-select {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 0;
  min-width: 160px;
}

.veh-list { display: flex; flex-direction: column; gap: 14px; }

.veh-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.veh-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--ink);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.veh-card-icon-dot { width: 9px; height: 9px; border-radius: 100px; background: var(--green); }
.veh-card-info { flex: 1; min-width: 0; }
.veh-card-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.veh-plate { font-family: monospace; font-weight: 800; font-size: 15px; color: var(--ink); letter-spacing: 0.5px; }
.veh-meta-text { font-size: 14px; color: var(--ink-faint); }

.veh-badges { display: flex; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.veh-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--badge-bg);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 100px;
}
.veh-badge-active { background: var(--green-pale); color: var(--green-dark); }
.veh-badge-dot { width: 6px; height: 6px; border-radius: 100px; background: var(--green); }
.veh-badge-disabled { background: var(--red-pale); color: var(--red-dark); }
.veh-badge-mono { font-family: monospace; }

.veh-reaches { font-size: 12.5px; color: var(--ink-mid); margin-top: 8px; }
/* Plain-text "Change" link, inline within the Reaches sentence - used on My
   Vehicles per its reference mockup. My Stickers uses a separate bordered
   pill instead (.veh-change-btn below) - its own mockup shows the reach
   number and Change action as a distinct divider row, not inline text. */
.veh-change-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--green-dark);
  font-weight: 700;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
}

.veh-change-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1.5px solid oklch(58% 0.19 142 / 0.4);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 9px;
  white-space: nowrap;
  cursor: pointer;
  font-family: var(--font-body);
}
.veh-change-btn:hover { background: var(--green-pale); }

.veh-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.veh-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  background: none;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 9px;
  white-space: nowrap;
  cursor: pointer;
  font-family: var(--font-body);
  text-decoration: none;
}
.veh-btn-outline:hover { background: var(--badge-bg); }
.veh-btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--red-pale-strong);
  background: var(--red-pale);
  color: var(--red-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 9px;
  white-space: nowrap;
  cursor: pointer;
  font-family: var(--font-body);
}
.veh-btn-danger:hover { background: var(--red-pale-strong); }

/* "Got a sticker instead?" prompt - a dashed-border card matching the
   vehicle cards above it, sitting at the end of the list instead of a
   plain text line. */
.veh-cta-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px dashed var(--border);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--ink-mid);
  text-decoration: none;
}
.veh-cta-card:hover { border-color: oklch(70% 0.01 75); }
.veh-cta-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--badge-bg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: oklch(65% 0.02 75);
}
.veh-cta-title { display: block; font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.veh-cta-sub { display: block; font-size: 12.5px; color: var(--ink-mid); margin-top: 2px; }

/* ---------- My stickers page (pixel-matched to Nudge reference) ----------
   Unlike a vehicle card (one flat row), a sticker card has a second row
   below it - the "reaches this number" divider - so the outer card is a
   column, and .stk-row holds the icon/info/actions line that would
   otherwise be the whole card. */
.stk-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border-light); padding: 22px 24px; }
.stk-row { display: flex; align-items: center; gap: 20px; }

.stk-scan-text { font-size: 12px; color: var(--ink-mid); align-self: center; margin-left: 2px; }

.stk-reaches-row {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--badge-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.stk-reaches-label { font-size: 11.5px; font-weight: 700; color: var(--ink-mid); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 4px; }
.stk-reaches-phone { font-family: monospace; font-weight: 700; font-size: 15px; color: var(--ink); }

/* Nudge history (customer-facing) - reuses .veh-list/.veh-header, cards get
   their own .hist-* treatment since each row needs an icon + phone + an
   optional message line, which doesn't map cleanly onto .veh-card/.stk-card. */
.hist-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.hist-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hist-icon svg { width: 18px; height: 18px; }
.hist-icon-sms { background: var(--green); }
.hist-info { flex: 1; min-width: 0; }
.hist-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hist-title { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.hist-time { font-size: 12.5px; color: var(--ink-faint); flex-shrink: 0; }
.hist-phone { font-family: monospace; font-weight: 700; font-size: 14px; color: var(--ink-mid); margin-top: 4px; }
.hist-message {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  background: var(--badge-bg);
  border-radius: 10px;
  padding: 10px 14px;
  line-height: 1.5;
}

.hist-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px 0 4px;
}
.hist-pagination-info { font-size: 13px; font-weight: 600; color: var(--ink-faint); }

@media (max-width: 640px) {
  .veh-card, .veh-cta-card, .stk-row { flex-direction: column; align-items: flex-start; }
  .veh-actions { width: 100%; }
  .veh-actions form, .veh-actions .veh-btn-outline, .veh-actions .veh-btn-danger { flex: 1; }
  .veh-actions .veh-btn-outline, .veh-actions .veh-btn-danger { width: 100%; }
  .stk-reaches-row { align-items: flex-start; }
  .hist-top { flex-direction: column; gap: 4px; }
}

@media (max-width: 900px) {
  .customer-shell { flex-direction: column; }
  .customer-sidebar { width: 100%; flex-direction: column; align-items: stretch; padding: 0; }
  .customer-sidebar-topbar { padding: 10px 16px; }
  .customer-sidebar-brand { padding: 0; }
  .customer-sidebar-logo-img { height: 24px; } /* the top bar is tight on width here */
  .customer-menu-toggle { display: flex; }

  /* The drawer: off-canvas by default (slid fully left of the viewport),
     slides to translateX(0) when #customer-sidebar has .nav-open (toggled
     by public/js/mobile-nav.js). Fixed positioning means it doesn't matter
     that it's nested inside .customer-sidebar, which itself stays a normal
     static top bar - only this inner wrapper becomes an overlay. */
  .customer-sidebar-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    max-width: 82vw;
    background: var(--white);
    z-index: 220;
    padding: 20px 16px;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    box-shadow: 12px 0 32px oklch(15% 0.02 75 / 0.18);
  }
  .customer-sidebar.nav-open .customer-sidebar-drawer { transform: translateX(0); }
  .customer-sidebar.nav-open ~ .customer-sidebar-backdrop { display: block; opacity: 1; }

  .customer-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    border: none;
    border-radius: 8px;
    background: oklch(93% 0.006 75);
    color: var(--ink);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
  }

  .customer-nav { display: flex; flex-direction: column; }
  .customer-sidebar-footer { margin-top: auto; }
  .customer-profile { display: flex; }
  .customer-content { padding: 20px; }
  .customer-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .customer-content { padding: 16px; }
  .customer-header { flex-direction: column; align-items: stretch; }
  .customer-header .btn { width: 100%; text-align: center; }
  .customer-stats { grid-template-columns: 1fr; }
  .veh-filters { flex-direction: column; align-items: stretch; }
  .veh-search-wrap { min-width: 0; }
}

/* Floating WhatsApp chat widget - only rendered when an admin has both set
   a number and switched it on in Settings (see views/layouts/main.njk,
   services/settingsService.js). Sits above most page content but below the
   PWA install banner (z-index 500) so the two never overlap awkwardly on
   mobile - the install banner is bottom-anchored full-width too. */
.whatsapp-widget-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 400;
  width: 56px;
  height: 56px;
  border-radius: 100px;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px oklch(15% 0.02 75 / 0.22);
  transition: transform 0.15s ease;
}
.whatsapp-widget-btn:hover { transform: scale(1.06); }

/* ---------- Public blog (views/blog.njk, views/blog-post.njk) ---------- */
.blog-section { padding: 48px 0 80px; }
.blog-header { text-align: center; margin-bottom: 28px; }
.blog-header h1 { font-family: var(--font-display); font-size: 36px; margin: 0; }
.blog-header-sub { color: var(--ink-mid); margin-top: 8px; }

.blog-categories-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.blog-cat-pill {
  display: inline-block;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
.blog-cat-pill:hover { background: var(--border); }
.blog-cat-pill.active { background: var(--green); color: var(--white); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.blog-card-image {
  height: 170px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-alt);
}
.blog-card-image-placeholder { background: linear-gradient(135deg, var(--green-pale), var(--bg-alt)); }
.blog-card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card-title { font-size: 17px; margin: 0; line-height: 1.35; }
.blog-card-excerpt { font-size: 13.5px; color: var(--ink-mid); margin: 0; line-height: 1.5; }
.blog-card-meta { font-size: 12px; color: var(--ink-faint); margin-top: auto; }

.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.blog-empty svg { color: var(--ink-faint); margin-bottom: 14px; }
.blog-empty h3 { font-family: var(--font-display); font-size: 19px; margin: 0 0 6px; }
.blog-empty p { color: var(--ink-mid); margin: 0; font-size: 14px; }

.blog-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 36px; }

.blog-post-container { max-width: 760px; }
.blog-back-link { display: inline-block; font-size: 13.5px; font-weight: 600; color: var(--green-dark); text-decoration: none; margin-bottom: 18px; }
.blog-back-link:hover { text-decoration: underline; }
.blog-post-header h1 { font-family: var(--font-display); font-size: 32px; margin: 0 0 10px; line-height: 1.25; }
.blog-post-meta { font-size: 13.5px; color: var(--ink-faint); }
.blog-post-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.blog-post-featured-image { width: 100%; height: auto; border-radius: var(--radius); margin: 24px 0; display: block; }

/* Prose styling for admin-authored rich-text content (see the Quill editor
   in views/admin/blog-form.njk) - content is trusted (admin-only, not
   public-submitted), rendered as raw HTML via {{ post.content | safe }}. */
.blog-post-content { font-size: 16px; line-height: 1.75; color: var(--ink); }
.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3 { font-family: var(--font-display); margin: 32px 0 12px; line-height: 1.3; }
.blog-post-content p { margin: 0 0 18px; }
.blog-post-content ul,
.blog-post-content ol { margin: 0 0 18px; padding-left: 24px; }
.blog-post-content li { margin-bottom: 6px; }
.blog-post-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 18px 0; }
.blog-post-content a { color: var(--green-dark); }
.blog-post-content blockquote {
  border-left: 3px solid var(--green);
  margin: 18px 0;
  padding: 4px 0 4px 18px;
  color: var(--ink-mid);
  font-style: italic;
}

@media (max-width: 640px) {
  .blog-header h1 { font-size: 28px; }
  .blog-post-header h1 { font-size: 26px; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* ---------- Public shop (views/shop.njk, views/shop-product.njk) ----------
   Mirrors the blog-grid/blog-card structure above (same card shape, same
   hover lift) with the additions a product card needs that a blog card
   doesn't: a price, an out-of-stock badge, and a card that's a plain div
   (not one big <a>) since it has its own "View" link plus the grid needs
   room for that badge - a product card isn't purely a navigation target the
   way a blog card is. */
.shop-section { padding: 48px 0 80px; }
.shop-header { text-align: center; margin-bottom: 28px; }
.shop-header h1 { font-family: var(--font-display); font-size: 36px; margin: 0; }
.shop-header-sub { color: var(--ink-mid); margin-top: 8px; }

.shop-type-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.shop-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.shop-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.shop-card-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-alt);
}
.shop-card-image-placeholder { background: linear-gradient(135deg, var(--green-pale), var(--bg-alt)); }
.shop-card-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.shop-card-title { font-size: 17px; margin: 0; line-height: 1.35; }
.shop-card-excerpt { font-size: 13.5px; color: var(--ink-mid); margin: 0; line-height: 1.5; flex: 1; }
.shop-card-price { font-size: 18px; font-weight: 800; margin-top: 4px; }
.shop-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--red-dark);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.shop-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.shop-empty svg { color: var(--ink-faint); margin-bottom: 14px; }
.shop-empty h3 { font-family: var(--font-display); font-size: 19px; margin: 0 0 6px; }
.shop-empty p { color: var(--ink-mid); margin: 0; font-size: 14px; }

.shop-product-container { max-width: 920px; }
.shop-back-link { display: inline-block; font-size: 13.5px; font-weight: 600; color: var(--green-dark); text-decoration: none; margin-bottom: 18px; }
.shop-back-link:hover { text-decoration: underline; }
.shop-product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.shop-product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-alt);
  display: block;
}
.shop-product-image-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-pale), var(--bg-alt));
}
.shop-product-title { font-family: var(--font-display); font-size: 30px; margin: 0 0 10px; line-height: 1.25; }
.shop-product-price { font-size: 26px; font-weight: 800; margin: 0 0 18px; }
.shop-product-desc { font-size: 15.5px; line-height: 1.7; color: var(--ink-mid); margin: 0 0 24px; white-space: pre-line; }
.shop-product-stock { font-size: 13.5px; color: var(--ink-faint); margin: 0 0 18px; }
.shop-product-stock.out { color: var(--red); font-weight: 600; }

@media (max-width: 640px) {
  .shop-header h1 { font-size: 28px; }
  .shop-grid { grid-template-columns: 1fr; }
  .shop-product-layout { grid-template-columns: 1fr; gap: 24px; }
}
