:root {
    --navy:#14213D; --amber:#FCA311; --black:#000000; --grey:#E5E5E5; --white:#FFFFFF;
    --navy-deep:#0D1528; --navy-soft:#243556; --navy-tint:#ECEEF2;
    --amber-hover:#E8920A; --amber-tint:#FFF3DC; --amber-text:#8A5A00;
    --page:#F5F5F5; --muted:#5B6478;
    --ink:var(--navy); --line:var(--grey);
    --ok:#0F7352; --ok-tint:#E4F5EE; --err:#C1443C;
    --badge-blue:#1A73E8; /* the blue Verified-seller tick only; the one colour outside the palette (4.5:1 on white) */
  }

  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: 'Sora', sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3, .display {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
  }

  /* ---- Canopy nav ---- */
  .canopy {
    height: 6px;
    background: repeating-linear-gradient(
      90deg,
      var(--navy) 0px, var(--navy) 28px,
      var(--amber) 28px, var(--amber) 56px
    );
  }
  nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
  }
  .logo {
    font-size: 20px;
    display: flex;
    align-items: baseline;
    gap: 2px;
  }
  .logo span { color: var(--amber-hover); }
  .verified-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ok-tint);
    color: var(--ok);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 100px;
  }
  .verified-pill::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--ok);
  }

  /* ---- Hero ---- */
  .hero {
    padding: 40px 24px 28px;
  }
  .hero h1 {
    font-size: 34px;
    line-height: 1.15;
    max-width: 480px;
  }
  .hero p {
    margin: 12px 0 20px;
    color: var(--muted);
    font-size: 15px;
    max-width: 440px;
  }
  .search {
    display: flex;
    gap: 8px;
  }
  .search input {
    flex: 1;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    background: white;
  }
  .search button {
    background: var(--navy);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 12px;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
  }

  /* ---- Sponsored carousel (the "big chunk" before products) ---- */
  .sponsored-wrap {
    padding: 4px 0 32px;
  }
  .sponsored-label {
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }
  .sponsored-label .tag {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
  }
  .sponsored-label .dots {
    display: flex;
    gap: 6px;
  }
  .sponsored-label .dots .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--line);
    transition: background 0.25s, transform 0.25s;
  }
  .sponsored-label .dots .dot.active {
    background: var(--amber-hover);
    transform: scale(1.3);
  }

  .sponsored-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding: 0 24px;
    scrollbar-width: none;
  }
  .sponsored-track::-webkit-scrollbar { display: none; }

  /* 16:9 full-bleed hero ad: image fills frame, scrim for legibility,
     eyebrow + headline + caption + CTA sit over it — Jumia/IG banner pattern,
     rendered in our palette instead of a generic dark-luxury treatment. */
  .ad-slide {
    scroll-snap-align: center;
    flex: 0 0 88%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    color: white;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
  }
  .ad-slide .scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(20,33,61,0.88) 0%, rgba(20,33,61,0.35) 55%, rgba(20,33,61,0.05) 100%);
  }
  .ad-slide .ad-tag {
    position: absolute;
    top: 14px; right: 16px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255,255,255,0.22);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 100px;
    z-index: 2;
  }
  .ad-slide .ad-content {
    position: relative;
    z-index: 2;
    padding: 20px 20px 22px;
    width: 100%;
  }
  .ad-slide .eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: white;
    background: rgba(20,33,61,0.45);
    backdrop-filter: blur(3px);
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 10px;
  }
  .ad-slide h3 {
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 6px;
    max-width: 85%;
  }
  .ad-slide p {
    font-size: 13px;
    opacity: 0.88;
    margin: 0 0 14px;
    max-width: 80%;
  }
  .ad-slide .ad-cta {
    display: inline-block;
    background: var(--amber);
    color: var(--ink);
    font-weight: 700;
    font-size: 13px;
    padding: 9px 18px;
    border-radius: 8px;
  }
  .ad-slide.c1 { background-image: linear-gradient(rgba(20,33,61,0.2), rgba(20,33,61,0.2)), radial-gradient(circle at 30% 20%, #243556, var(--navy)); }
  .ad-slide.c2 { background-image: linear-gradient(rgba(20,33,61,0.15), rgba(20,33,61,0.15)), radial-gradient(circle at 70% 30%, var(--amber), var(--amber-hover)); }
  .ad-slide.c3 { background-image: linear-gradient(rgba(20,33,61,0.15), rgba(20,33,61,0.15)), radial-gradient(circle at 40% 60%, var(--ok), #0F7352); }
  .ad-slide.c4 { background-image: linear-gradient(rgba(20,33,61,0.15), rgba(20,33,61,0.15)), radial-gradient(circle at 60% 40%, var(--err), #C1443C); }
  .ad-slide.c5 { background-image: linear-gradient(rgba(20,33,61,0.15), rgba(20,33,61,0.15)), radial-gradient(circle at 30% 70%, #0D1528, var(--navy)); }
  .ad-slide.c6 { background-image: linear-gradient(rgba(20,33,61,0.15), rgba(20,33,61,0.15)), radial-gradient(circle at 50% 30%, var(--amber-hover), #C47A0A); }
  .ad-slide.c7 { background-image: linear-gradient(rgba(20,33,61,0.15), rgba(20,33,61,0.15)), radial-gradient(circle at 40% 40%, #0F7352, var(--ok)); }

  /* ---- Ad copy composer ---- */
  .composer-wrap { padding: 8px 0 40px; }
  .composer {
    margin: 0 24px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  @media (min-width: 640px) {
    .composer { flex-direction: row; }
    .composer-form { flex: 1; }
    .composer-preview { flex: 1; }
  }
  .composer-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin: 12px 0 6px;
  }
  .composer-form label:first-child { margin-top: 0; }
  .composer-form input,
  .composer-form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1.5px solid var(--line);
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    resize: none;
  }
  .composer-form textarea { height: 64px; }
  .char-count {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
  }
  .composer-submit {
    width: 100%;
    margin-top: 16px;
    background: var(--navy);
    color: white;
    border: none;
    padding: 13px;
    border-radius: 10px;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
  }
  .composer-hint {
    font-size: 12px;
    color: var(--muted);
    margin: 10px 0 0;
    line-height: 1.4;
  }
  .composer-preview {
    display: flex;
    align-items: center;
  }
  .composer-preview .ad-slide { aspect-ratio: 16/9; }

  /* ---- Flash sales ---- */
  .flash-wrap { padding: 4px 0 36px; }
  .flash-label {
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
  }
  .flash-title { display: flex; align-items: center; gap: 8px; }
  .flash-title h2 { font-size: 18px; }
  .flash-icon { font-size: 18px; }
  .flash-timer {
    font-size: 12px;
    font-weight: 700;
    color: var(--err);
    background: rgba(193,68,60,0.1);
    padding: 5px 10px;
    border-radius: 100px;
  }
  .flash-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 24px 4px;
    scrollbar-width: none;
  }
  .flash-track::-webkit-scrollbar { display: none; }
  .flash-card {
    flex: 0 0 140px;
    background: white;
    border: 1.5px solid var(--err);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
  }
  .flash-badge {
    position: absolute;
    top: 8px; left: 8px;
    background: var(--err);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
  }
  .flash-img {
    height: 90px;
    background: linear-gradient(135deg, #FDECEA, #FFF3DC);
    overflow: hidden;
  }
  .flash-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .flash-body { padding: 10px 12px 12px; }
  .flash-item-title { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
  .flash-prices { display: flex; align-items: baseline; gap: 6px; }
  .flash-old { font-size: 11px; text-decoration: line-through; color: var(--muted); }
  .flash-new { font-size: 14px; font-weight: 700; color: var(--err); }

  /* ---- Category chips (awning tags) ---- */
  .chips {
    display: flex;
    gap: 10px;
    padding: 0 24px 28px;
    overflow-x: auto;
  }
  .chip {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 8px 8px 2px 2px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
  }
  .chip.active { background: var(--navy); color: white; border-bottom-color: var(--amber); }
  .chip:not(.active) { background: white; color: var(--ink); border: 1px solid var(--line); }

  /* ---- Listings grid ---- */
  .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 24px 40px;
  }
  @media (min-width: 640px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
  }

  .card {
    position: relative;
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-36px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    transition-delay: var(--reveal-delay, 0s);
  }
  .card.in-view {
    opacity: 1;
    transform: translateX(0);
  }
  @media (prefers-reduced-motion: reduce) {
    .card { transition: none; opacity: 1; transform: none; }
  }

  .card-img {
    height: 130px;
    background: linear-gradient(135deg, #ECEEF2, #FFF3DC);
    overflow: hidden;
  }
  .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .price-sticker {
    position: absolute;
    top: 10px;
    right: -6px;
    background: var(--amber);
    color: var(--ink);
    font-weight: 700;
    font-size: 13px;
    padding: 5px 12px 5px 10px;
    border-radius: 6px 2px 2px 6px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.15);
    transform: rotate(3deg);
  }
  .card-body { padding: 12px 14px 14px; }
  .card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
  }
  .card-brand {
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
  }
  .card-meta {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .card-meta .dot { color: var(--ok); }

  /* ---- Escrow code stub (the centerpiece moment) ---- */
  .section-label {
    padding: 0 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 12px;
  }
  .ticket-wrap { padding: 0 24px 48px; }
  .ticket {
    display: flex;
    background: var(--navy);
    border-radius: 16px;
    overflow: hidden;
    color: white;
  }
  .ticket-main {
    flex: 1;
    padding: 22px 20px;
  }
  .ticket-main .label {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 6px;
  }
  .ticket-main h3 {
    font-size: 17px;
    margin-bottom: 10px;
  }
  .ticket-main p {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.5;
    margin: 0;
  }
  .ticket-stub {
    width: 118px;
    flex-shrink: 0;
    background: var(--amber);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  .ticket-stub::before {
    content: "";
    position: absolute;
    left: -1px; top: 0; bottom: 0;
    width: 0;
    border-left: 2px dashed rgba(255,255,255,0.5);
  }
  .ticket-stub .code {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.05em;
  }
  .ticket-stub .code-label {
    font-size: 10px;
    font-weight: 600;
    margin-top: 4px;
    text-align: center;
    line-height: 1.3;
  }

  .trust-note {
    display: flex;
    gap: 10px;
    padding: 16px 24px 48px;
    align-items: flex-start;
  }
  .trust-note .icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--ok-tint);
    color: var(--ok);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
  }
  .trust-note p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
    margin: 0;
  }
  .trust-note strong { color: var(--ink); }

  /* ---- Bottom navigation ---- */
  body { padding-bottom: 78px; }
  .bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: white;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-around;
    padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
    z-index: 50;
  }
  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    position: relative;
    flex: 1;
    background: none;
    border: none;
    font-family: 'Sora', sans-serif;
    cursor: pointer;
  }
  .nav-item svg {
    width: 22px; height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
  }
  .nav-item.active { color: var(--navy); }
  .nav-item.active svg { stroke: var(--navy); }
  .nav-item.active::before {
    content: "";
    position: absolute;
    top: -10px;
    width: 18px; height: 3px;
    border-radius: 100px;
    background: var(--amber);
  }
  .nav-badge {
    position: absolute;
    top: -3px; right: 22%;
    background: var(--err);
    color: white;
    font-size: 9px;
    font-weight: 700;
    min-width: 15px;
    height: 15px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
  }

/* ---- Signup modal: buyer/seller fork ---- */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(20,33,61,0.5);
  z-index: 200;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-card {
  background: white;
  width: 100%;
  max-width: 420px;
  border-radius: 20px 20px 0 0;
  padding: 24px;
  max-height: 88vh;
  overflow-y: auto;
}
@media (min-width: 640px) {
  .modal-overlay { align-items: center; }
  .modal-card { border-radius: 20px; }
}
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 14px 0 6px;
}
.modal-card input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  font-family: 'Sora', sans-serif;
  font-size: 14px;
}
.role-toggle {
  display: flex;
  gap: 8px;
}
.role-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: white;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: var(--ink);
}
.role-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.role-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.4;
}
.modal-submit {
  width: 100%;
  margin-top: 20px;
  background: var(--amber);
  color: var(--ink);
  border: none;
  padding: 13px;
  border-radius: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.modal-note {
  font-size: 12px;
  text-align: center;
  margin: 10px 0 0;
  min-height: 16px;
}
.modal-note.error { color: var(--err); }
.modal-note.success { color: var(--ok); }

/* ---- Seller-only signup fields ---- */
.seller-fields-hidden { display: none; }
.seller-fields-divider {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.modal-card select {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  background: white;
  color: var(--ink);
}
.modal-card input[type="file"] {
  border: 1.5px dashed var(--line);
  padding: 14px 13px;
  font-size: 13px;
  background: #F5F5F5;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  background: rgba(20,33,61,0.06);
  border: 1px solid rgba(20,33,61,0.12);
  padding: 9px 12px;
  border-radius: 999px;
}

/* ---- Admin verification screen ---- */
.admin-page {
  background: #ECEEF2;
}
.admin-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 360px;
  gap: 20px;
}
.admin-sidebar,
.admin-main,
.admin-detail {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(20,33,61,0.04);
}
.admin-sidebar { padding: 18px; }
.admin-main { padding: 18px; }
.admin-detail { padding: 18px; }
.admin-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.admin-brand .logo {
  font-size: 18px;
}
.admin-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.filter-btn {
  background: #F5F5F5;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.admin-header h2 {
  font-size: 28px;
}
.refresh-btn {
  background: var(--amber);
  color: var(--ink);
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  cursor: pointer;
}
.verification-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.verification-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #FFFFFF;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.verification-item:hover { transform: translateY(-1px); }
.verification-item.active {
  border-color: rgba(20,33,61,0.45);
  box-shadow: inset 0 0 0 1px rgba(20,33,61,0.15);
}
.verification-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.verification-name {
  font-weight: 700;
  font-size: 15px;
}
.status-pill {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.status-pill.pending {
  background: rgba(252,163,17,0.12);
  color: #8A5A00;
}
.status-pill.approved {
  background: rgba(18, 128, 92, 0.12);
  color: var(--ok);
}
.status-pill.rejected {
  background: rgba(193, 68, 60, 0.12);
  color: var(--err);
}
.verification-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.admin-detail h3 {
  font-size: 24px;
  margin-bottom: 16px;
}
.detail-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: linear-gradient(135deg, #ECEEF2, #FFF3DC);
  display: block;
  margin-bottom: 16px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.detail-label {
  display: block;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 3px;
}
.action-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.action-row button {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  cursor: pointer;
}
.btn-approve {
  background: var(--ok);
  color: white;
}
.btn-reject {
  background: rgba(193, 68, 60, 0.12);
  color: var(--err);
}
.empty-state {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 24px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 960px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
}

/* ---- Admin review screen: live-API additions ----
   Everything below was added when the queue stopped being localStorage-only.
   It covers the connection banner, search, per-status counts, the ID
   lightbox, the reject-reason box, toasts and loading skeletons. */

/* Tells the admin at a glance whether they're looking at real submissions
   or the local demo queue. Getting this wrong is the whole risk of a
   screen that falls back silently, so it's stated, not implied. */
.data-source {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}
.data-source::before {
  content: '';
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.data-source.live {
  background: rgba(18, 128, 92, 0.1);
  color: var(--ok);
}
.data-source.local {
  background: rgba(252,163,17,0.14);
  color: #8A5A00;
}
.data-source.error {
  background: rgba(193, 68, 60, 0.12);
  color: var(--err);
}
.data-source.loading {
  background: rgba(20,33,61,0.06);
  color: var(--muted);
}

.admin-search {
  width: 100%;
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  color: var(--ink);
  background: white;
}
.admin-search:focus {
  outline: none;
  border-color: rgba(20,33,61,0.45);
}

/* The sidebar filters gain a count, so they need to be two-column. */
.filter-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.filter-count {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(20,33,61,0.08);
  color: var(--muted);
}
.filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.admin-hint {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
}
.admin-hint kbd {
  font-family: 'Sora', sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: #F5F5F5;
  color: var(--ink);
}

.verification-item:focus-visible {
  outline: 2px solid rgba(20,33,61,0.5);
  outline-offset: 2px;
}
.verification-item.busy {
  opacity: 0.55;
  pointer-events: none;
}

/* The ID photo is the actual thing being judged, so it has to be
   enlargeable — a 4:3 thumbnail is not enough to read a NIN off. */
.detail-image-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  position: relative;
}
.detail-image-btn .zoom-tag {
  position: absolute;
  bottom: 24px;
  right: 8px;
  background: rgba(20,33,61,0.72);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  pointer-events: none;
}
.detail-image.missing {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  padding: 12px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(20,33,61,0.88);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  border: none;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  font-size: 20px;
  cursor: pointer;
}

.detail-id-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.copy-btn {
  border: 1px solid var(--line);
  background: #F5F5F5;
  border-radius: 6px;
  font-family: 'Sora', sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  color: var(--muted);
  cursor: pointer;
}

/* A rejection with no stated reason is useless to the seller who has to
   fix it, so the reason is required rather than optional. */
.reason-box {
  margin-top: 14px;
  padding: 14px;
  border: 1.5px solid rgba(193, 68, 60, 0.3);
  border-radius: 12px;
  background: rgba(193, 68, 60, 0.04);
}
.reason-box[hidden] { display: none; }
.reason-box label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--err);
  margin-bottom: 6px;
}
.reason-box textarea {
  width: 100%;
  height: 70px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1.5px solid var(--line);
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  resize: none;
  color: var(--ink);
}
.reason-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
}
.reason-presets button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  padding: 5px 10px;
  color: var(--muted);
  cursor: pointer;
}
.action-row button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-ghost {
  background: rgba(20,33,61,0.06);
  color: var(--muted);
}

/* Who decided what, and when. Shown for anything already reviewed. */
.detail-audit {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(20,33,61,0.04);
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.detail-audit strong {
  color: var(--ink);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 140%);
  z-index: 250;
  max-width: 420px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(20,33,61,0.25);
  transition: transform 0.25s ease;
}
.toast.show { transform: translate(-50%, 0); }
.toast.error { background: var(--err); }
.toast.success { background: var(--ok); }

.skeleton-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #FFFFFF;
}
.skeleton-line {
  height: 11px;
  border-radius: 6px;
  margin-bottom: 9px;
  background: linear-gradient(90deg, rgba(20,33,61,0.07) 25%, rgba(20,33,61,0.13) 50%, rgba(20,33,61,0.07) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.3s linear infinite;
}
.skeleton-line:last-child { margin-bottom: 0; width: 55%; }
@keyframes skeleton-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-line { animation: none; }
  .toast { transition: none; }
}

@media (min-width: 961px) {
  /* Keep the ID photo and the approve/reject buttons in view while
     scrolling a long queue. */
  .admin-detail {
    position: sticky;
    top: 32px;
    align-self: start;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
}

/* ==================================================================
   STOREFRONT
   The buyer-facing home page, rebuilt to read like a real marketplace
   rather than a single mobile column: utility bar, sticky search
   header, three-column hero, dense product grid, real footer.

   Everything here layers on top of the original mobile styles instead
   of replacing them, so the page still collapses to one column on a
   phone — and so the class names app.js renders into (.card,
   .flash-card, .ad-slide) keep working untouched.
   ================================================================== */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Utility bar: the three promises, above everything else ---- */
.utility-bar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}
.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
}
.utility-promises {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.utility-promises::-webkit-scrollbar { display: none; }
.utility-promises span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.utility-promises span::before {
  content: "✓";
  color: var(--amber);
  font-weight: 700;
}
.utility-links {
  display: flex;
  gap: 16px;
  white-space: nowrap;
}
.utility-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 600;
}
.utility-links a:hover { color: var(--amber); }
@media (max-width: 860px) {
  .utility-links { display: none; }
}

/* ---- Sticky search header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: white;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled {
  box-shadow: 0 6px 20px rgba(20,33,61,0.09);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 70px;
}
.site-header .logo {
  flex: 0 0 auto;
  font-size: 24px;
  color: var(--ink);
  text-decoration: none;
}

/* One search field, category-scoped — the control shoppers reach for
   first, so it gets the most horizontal room on the page. */
.header-search {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  min-width: 0;
  max-width: 640px;
  border: 1.8px solid var(--line);
  border-radius: 12px;
  background: white;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.header-search:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(20,33,61,0.1);
}
.search-scope {
  flex: 0 0 auto;
  border: none;
  border-right: 1px solid var(--line);
  background: #F5F5F5;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 0 10px;
  cursor: pointer;
}
.search-scope:focus { outline: none; }
.header-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  padding: 13px 14px;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: white;
}
.header-search input:focus { outline: none; }
.search-go {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  background: var(--amber);
  color: var(--ink);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 0 20px;
  cursor: pointer;
  transition: background 0.18s ease;
}
.search-go:hover { background: var(--amber-hover); }
.search-go svg {
  width: 17px; height: 17px;
  stroke: currentColor; fill: none; stroke-width: 2;
}

.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
  border: none;
  background: none;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 9px 11px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
}
.header-action:hover { background: rgba(20,33,61,0.07); }
.header-action svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none; stroke-width: 1.8;
}
.cart-count {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  background: var(--err);
  color: white;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* Secondary category row — desktop only; on mobile the bottom nav and
   the category rail already cover this. */
.header-nav {
  background: var(--navy);
}
.header-nav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.header-nav-inner::-webkit-scrollbar { display: none; }
.header-nav-inner a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 13px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.header-nav-inner a:hover { color: white; }
.header-nav-inner a.active {
  color: white;
  border-bottom-color: var(--amber);
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .header-search { order: 3; flex: 1 1 100%; max-width: none; }
  .header-actions { margin-left: auto; }
  .header-action span { display: none; }
  .header-action { padding: 9px; }
  .header-nav { display: none; }
  .search-go span { display: none; }
  .search-go { padding: 0 16px; }
}

/* ---- Hero: category rail · carousel · promo column ---- */
.home-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-top: 20px;
  padding-bottom: 8px;
}
@media (min-width: 1024px) {
  .home-hero {
    grid-template-columns: 236px minmax(0, 1fr) 272px;
    align-items: start;
  }
}

.cat-rail {
  display: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  overflow: hidden;
}
@media (min-width: 1024px) { .cat-rail { display: block; } }
.cat-rail-head {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 8px 10px 10px;
}
.cat-rail a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.cat-rail a:hover {
  background: rgba(20,33,61,0.07);
  color: var(--navy);
}
.cat-rail a svg {
  width: 18px; height: 18px;
  flex: 0 0 auto;
  stroke: currentColor; fill: none; stroke-width: 1.7;
  color: var(--navy);
}

/* The carousel already exists — it just needs to stop being full-bleed
   now that it lives inside a grid column. */
.home-hero .sponsored-wrap { padding: 0; }
.home-hero .sponsored-label { padding: 0; margin-bottom: 10px; }
.home-hero .sponsored-track { padding: 0; gap: 12px; }
@media (min-width: 1024px) {
  .home-hero .ad-slide { flex: 0 0 100%; aspect-ratio: 21 / 9; }
  .home-hero .ad-slide h3 { font-size: 30px; }
  .home-hero .ad-slide p { font-size: 14px; }
  .home-hero .ad-slide .ad-content { padding: 26px 28px 28px; }
}

.hero-side {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
@media (min-width: 1024px) { .hero-side { grid-template-columns: 1fr; } }
.promo-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.promo-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.promo-icon svg {
  width: 19px; height: 19px;
  stroke: currentColor; fill: none; stroke-width: 1.8;
}
.promo-card h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 5px;
}
.promo-card p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 10px;
}
.promo-card a {
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: var(--navy);
}
.promo-card a::after { content: " →"; }
.promo-trust .promo-icon { background: var(--ok-tint); color: var(--ok); }
.promo-trust a { color: var(--ok); }
.promo-deal .promo-icon { background: rgba(252,163,17,0.16); color: var(--amber-hover); }
.promo-deal a { color: var(--amber-hover); }
.promo-info .promo-icon { background: rgba(20,33,61,0.09); color: var(--navy); }

/* ---- Service strip ---- */
.service-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.service-icon {
  width: 38px; height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ok-tint);
  color: var(--ok);
  display: flex; align-items: center; justify-content: center;
}
.service-icon svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none; stroke-width: 1.8;
}
.service-item strong { display: block; font-size: 13px; }
.service-item span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* ---- Section headers shared by every rail ---- */
.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0 14px;
}
.rail-head h2 { font-size: 22px; }
.rail-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.rail-more::after { content: " →"; }

/* ---- Flash sales, as a band rather than a loose row ---- */
.flash-wrap { padding: 8px 0 4px; }
.flash-band {
  background: linear-gradient(135deg, #0D1528, var(--navy) 60%, #243556);
  border-radius: 18px;
  padding: 18px;
  color: white;
}
.flash-band .flash-label { padding: 0; margin-bottom: 14px; }
.flash-band .flash-title { flex-wrap: wrap; }
.flash-band .flash-title h2 { color: white; font-size: 20px; }
.flash-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  flex: 1 1 100%;
}
.flash-right { display: flex; align-items: center; gap: 12px; }
.flash-band .flash-timer {
  background: var(--amber);
  color: var(--ink);
  font-size: 13px;
  padding: 7px 13px;
  font-variant-numeric: tabular-nums;
}
.flash-band .rail-more { color: var(--amber); }
.flash-band .flash-track { padding: 0 0 4px; gap: 12px; }
.flash-band .flash-card {
  flex: 0 0 168px;
  border: none;
  border-radius: 14px;
}
.flash-band .flash-img { height: 118px; }
.flash-band .flash-prices { flex-wrap: wrap; }
.flash-stock {
  height: 5px;
  border-radius: 999px;
  background: rgba(20,33,61,0.1);
  margin-top: 9px;
  overflow: hidden;
}
.flash-stock span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--err));
}
.flash-left {
  font-size: 10px;
  font-weight: 700;
  color: var(--err);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---- Category tiles ---- */
.cat-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 560px) { .cat-tiles { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .cat-tiles { grid-template-columns: repeat(8, 1fr); } }
.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.cat-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(20,33,61,0.3);
  box-shadow: 0 10px 22px rgba(20,33,61,0.08);
}
.cat-tile-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #ECEEF2, #FFF3DC);
}
.cat-tile-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ---- Filter chips ---- */
.chips {
  padding: 0 0 18px;
  gap: 8px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  border-radius: 999px;
  padding: 8px 15px;
  transition: background 0.16s ease, color 0.16s ease;
}
.chip.active { border-bottom-color: transparent; }
.chip:not(.active):hover { border-color: rgba(20,33,61,0.35); color: var(--navy); }

/* ---- Product grid ----
   .card and its children are the shape app.js renders live listings
   into, so these are restyles, not restructures. The discount badge,
   old price and wishlist button are optional children — a card
   without them still lays out correctly. */
.grid {
  padding: 0 0 8px;
  gap: 14px;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1160px) { .grid { grid-template-columns: repeat(5, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  /* Replaces the slide-in-from-left reveal: at five columns a
     horizontal sweep reads as breakage, a short lift does not. */
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease,
              box-shadow 0.2s ease, border-color 0.2s ease;
}
.card.in-view { transform: translateY(0); }
.card:hover {
  border-color: rgba(20,33,61,0.28);
  box-shadow: 0 12px 26px rgba(20,33,61,0.1);
}
.card:hover .card-img img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  .card { transform: none; }
  .card:hover .card-img img { transform: none; }
}

.card-img {
  position: relative;
  height: auto;
  aspect-ratio: 4 / 3;
}
.card-img img { transition: transform 0.35s ease; }
.card-off {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--err);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  z-index: 2;
}
.card-wish {
  position: absolute;
  top: 7px; right: 7px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: color 0.16s ease, background 0.16s ease;
}
.card-wish svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none; stroke-width: 1.9;
}
.card-wish:hover { background: white; color: var(--err); }
.card-wish.saved { color: var(--err); }
.card-wish.saved svg { fill: currentColor; }

.card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 12px 13px 14px;
}
.card-title {
  font-size: 13.5px;
  line-height: 1.35;
  margin-bottom: 7px;
  /* Two lines, then ellipsis — keeps every card in a row the same
     height regardless of how long a seller made the title. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-price-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.card-price {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 17px;
  font-weight: 700;
}
.card-price small { font-size: 11px; font-weight: 600; opacity: 0.6; }
.card-was {
  font-size: 12px;
  text-decoration: line-through;
  color: var(--muted);
}
.card-brand { margin-bottom: 4px; }
.card-meta { margin-top: auto; }

/* .card sets display:flex, which would otherwise beat the [hidden]
   default — the chip/search filter relies on this staying specific. */
.card[hidden] { display: none; }

.grid-empty {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 26px 18px;
  margin-top: 4px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.grid-more {
  display: flex;
  justify-content: center;
  padding: 18px 0 8px;
}
.load-more {
  background: white;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  border-radius: 999px;
  padding: 12px 28px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.load-more:hover { background: var(--navy); color: white; }

/* ---- Verified store rail ---- */
.store-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.store-rail::-webkit-scrollbar { display: none; }
.store-card {
  flex: 0 0 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.store-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(20,33,61,0.09);
}
.store-avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}
.store-avatar.s1 { background: linear-gradient(135deg, var(--amber), var(--amber-hover)); color: var(--ink); }
.store-avatar.s2 { background: linear-gradient(135deg, #243556, var(--navy)); }
.store-avatar.s3 { background: linear-gradient(135deg, var(--ok), #0F7352); }
.store-avatar.s4 { background: linear-gradient(135deg, var(--err), #C1443C); }
.store-avatar.s5 { background: linear-gradient(135deg, #0D1528, #243556); }
.store-avatar.s6 { background: linear-gradient(135deg, #0F7352, var(--ok)); }
.store-card strong { font-size: 13px; }
.store-meta { font-size: 11px; color: var(--muted); }
.store-badge {
  margin-top: 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--ok-tint);
  color: var(--ok);
  padding: 3px 9px;
  border-radius: 999px;
}

/* ---- Active order ticket ---- */
.ticket-wrap { padding: 0 0 12px; }
.ticket-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.ticket-steps span {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
}
.ticket-steps span.done {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}
.ticket-steps span.done::before { content: "✓ "; }
.ticket-steps span.now {
  background: var(--amber);
  color: var(--ink);
}
.trust-note { padding: 4px 0 36px; }

/* The bottom nav is a phone pattern — on desktop the header covers it,
   and the padding it reserves is just dead space. */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
}


/* =====================================================================
   Account pages: login, product detail, My Orders, payout setup.
   Uses the same tokens as the storefront (see :root at the top).
   ===================================================================== */

.cm-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--line);
}
.cm-nav-links { display: flex; align-items: center; gap: 18px; font-size: 13px; font-weight: 600; }
.cm-nav-links a, .cm-nav-links button {
  color: var(--ink); text-decoration: none; background: none; border: none;
  font: inherit; cursor: pointer; padding: 0;
}
.cm-nav-links a:hover, .cm-nav-links button:hover { color: var(--navy); }
.cm-page { max-width: 880px; margin: 0 auto; padding: 24px 24px 80px; }
.cm-back { display: inline-block; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; margin-bottom: 16px; }
.cm-back:hover { color: var(--ink); }
.cm-muted { color: var(--muted); font-size: 13px; }

/* Buttons */
.cm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; border: 1.5px solid transparent;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14px;
  cursor: pointer; text-decoration: none; transition: transform 0.1s ease, opacity 0.15s ease;
}
.cm-btn:active { transform: translateY(1px); }
.cm-btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.cm-btn[hidden] { display: none; } /* display:inline-flex above would otherwise beat the hidden attribute */
.cm-btn-primary { background: var(--amber); color: var(--ink); }
.cm-btn-primary:hover:not([disabled]) { background: var(--amber-hover); }
.cm-btn-success { background: var(--ok); color: white; }
.cm-btn-navy { background: var(--navy); color: white; }
.cm-btn-ghost { background: rgba(20,33,61,0.06); color: var(--muted); }
.cm-btn-danger { background: white; color: var(--err); border-color: rgba(193,68,60,0.45); }
.cm-btn-danger:hover:not([disabled]) { background: rgba(193,68,60,0.08); }
.cm-btn-block { width: 100%; }
.cm-btn-sm { padding: 9px 14px; font-size: 13px; }

/* Forms */
.cm-field { display: block; font-size: 12px; font-weight: 600; margin: 14px 0 6px; }
.cm-input, .cm-select, .cm-textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1.5px solid var(--line);
  font-family: 'Sora', sans-serif; font-size: 14px; background: white; color: var(--ink);
}
.cm-input:focus, .cm-select:focus, .cm-textarea:focus { outline: none; border-color: var(--navy); }
.cm-textarea { resize: vertical; min-height: 80px; }
.cm-note { font-size: 13px; margin: 12px 0 0; min-height: 18px; }
.cm-note.error { color: var(--err); }
.cm-note.success { color: var(--ok); }

.auth-card {
  max-width: 400px; margin: 48px auto; background: white; border: 1px solid var(--line);
  border-radius: 20px; padding: 28px;
}
.auth-card h1 { font-size: 26px; margin-bottom: 4px; }

/* Product detail */
.pd { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .pd { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.pd-main-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 18px;
  border: 1px solid var(--line); background: var(--ok-tint); display: block;
}
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pd-thumb {
  width: 64px; height: 64px; border-radius: 10px; object-fit: cover; cursor: pointer;
  border: 2px solid transparent; opacity: 0.7;
}
.pd-thumb.active { border-color: var(--navy); opacity: 1; }
.pd-category { font-size: 12px; font-weight: 700; color: var(--amber-hover); text-transform: uppercase; letter-spacing: 0.06em; }
.pd-title { font-size: 28px; line-height: 1.2; margin: 6px 0 10px; }
.pd-price { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 32px; }
.pd-seller { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.pd-desc { margin: 18px 0; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.pd-escrow {
  background: var(--ok-tint); color: var(--ok); border-radius: 14px;
  padding: 14px 16px; font-size: 13px; line-height: 1.5; margin: 0 0 16px;
}
.pd-escrow strong { display: block; margin-bottom: 2px; }

/* My Orders */
.ord-banner { border-radius: 14px; padding: 14px 16px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.ord-banner.success { background: var(--ok-tint); color: var(--ok); }
.ord-banner.warn { background: #FFF3DC; color: #8a5a00; }
.ord-banner.error { background: rgba(193,68,60,0.1); color: var(--err); }
.ord-list { display: flex; flex-direction: column; gap: 16px; }
.ord-card { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.ord-head { display: flex; gap: 14px; align-items: center; }
.ord-img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--ok-tint); flex: 0 0 auto; }
.ord-info { flex: 1; min-width: 0; }
.ord-title { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ord-price { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 16px; margin-top: 2px; }
.ord-date { font-size: 12px; color: var(--muted); }
.ord-status {
  display: inline-flex; font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 100px; white-space: nowrap; background: rgba(20,33,61,0.08); color: var(--muted);
}
.ord-status.PAID_ESCROW { background: var(--ok-tint); color: var(--ok); }
.ord-status.PENDING_PAYMENT { background: #FFF3DC; color: #8a5a00; }
.ord-status.DELIVERED { background: var(--amber-tint); color: var(--amber-text); }
.ord-status.DISPUTED, .ord-status.FLAGGED { background: rgba(193,68,60,0.12); color: var(--err); }
.ord-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }
/* One seller's items in a checkout: one code, one handover, one chat */
.ord-seller { border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-top: 12px; background: var(--white); }
.ord-seller-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 14px; margin-bottom: 4px; }
/* Items inside a seller box: rows, not nested cards */
.ord-seller .ord-card { margin-top: 12px; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 12px 0 0; box-shadow: none; background: transparent; }
.ord-seller .ord-head { flex-wrap: wrap; align-items: flex-start; }
.ord-seller .ord-info { flex: 1 1 calc(100% - 80px); }
.ord-seller .ord-status { margin-left: 78px; }
.ord-fee-note { font-size: 12px; color: var(--muted); margin-top: 4px; }
/* Cart: delivery per seller */
.sum-fee-lines { margin: -4px 0 8px; font-size: 12px; color: var(--muted); }
.sum-fee-line { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0 2px 10px; }
.sum-fee-line small { font-size: 11px; }
.sum-fee-rule { padding: 4px 0 0 10px; font-size: 11px; line-height: 1.4; }
.ord-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* Delivery code, drawn as a ticket with a perforated stub */
.ticket {
  display: flex; margin-top: 14px; background: var(--navy); color: white;
  border-radius: 14px; position: relative; overflow: hidden;
}
.ticket-main { flex: 1; padding: 16px 18px; }
.ticket-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); }
.ticket-code {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 38px;
  letter-spacing: 0.22em; margin: 6px 0 4px; font-variant-numeric: tabular-nums;
}
.ticket-hint { font-size: 12px; opacity: 0.8; line-height: 1.45; }
.ticket-stub {
  flex: 0 0 76px; border-left: 2px dashed rgba(255,255,255,0.35); display: flex;
  align-items: center; justify-content: center; background: rgba(255,255,255,0.08);
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; writing-mode: vertical-rl; text-transform: uppercase;
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; right: 66px; width: 20px; height: 20px;
  border-radius: 50%; background: white; border: 1px solid var(--line);
}
.ticket::before { top: -11px; }
.ticket::after { bottom: -11px; }

/* Masked chat */
.chat { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.chat-head { padding: 10px 14px; background: rgba(20,33,61,0.04); font-size: 12px; font-weight: 600; display: flex; justify-content: space-between; }
.chat-log { max-height: 240px; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #FFFFFF; }
.chat-empty { font-size: 12px; color: var(--muted); text-align: center; padding: 14px 0; }
.chat-msg { max-width: 80%; padding: 8px 12px; border-radius: 14px; font-size: 13px; line-height: 1.4; word-break: break-word; }
.chat-msg.them { align-self: flex-start; background: rgba(20,33,61,0.08); border-bottom-left-radius: 4px; }
.chat-msg.you { align-self: flex-end; background: var(--ok); color: white; border-bottom-right-radius: 4px; }
.chat-msg small { display: block; font-size: 10px; opacity: 0.65; margin-bottom: 2px; font-weight: 700; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form .cm-input { flex: 1; }

.dispute-box { margin-top: 14px; padding: 14px; border-radius: 14px; background: rgba(193,68,60,0.06); border: 1px solid rgba(193,68,60,0.25); }

.cm-empty { text-align: center; padding: 48px 24px; color: var(--muted); font-size: 14px; }
.cm-empty a { color: var(--navy); font-weight: 700; }

/* Seller payout card */
.payout-card { margin: 0 24px 28px; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 18px; max-width: 460px; }
.payout-card.needed { border: 1.5px solid var(--amber-hover); background: #FFFFFF; }
.payout-state { display: inline-flex; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 100px; margin-bottom: 8px; }
.payout-state.ok { background: var(--ok-tint); color: var(--ok); }
.payout-state.todo { background: #FFF3DC; color: #8a5a00; }

.card[data-id] { cursor: pointer; }


/* Seller dashboard: "List a new item" form + "Your listings" */
.listing-form { margin: 0 24px 28px; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 18px; max-width: 560px; }
.lf-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.lf-thumb { position: relative; width: 88px; height: 88px; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--line); background: var(--ok-tint); }
.lf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lf-thumb.cover { border-color: var(--amber-hover); }
.lf-cover-tag {
  position: absolute; left: 0; right: 0; bottom: 0; text-align: center;
  background: var(--amber); color: var(--ink); font-size: 10px; font-weight: 700; padding: 2px 0;
}
.lf-remove {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  border: none; background: rgba(20,33,61,0.8); color: white; font-size: 14px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
}
.lf-remove:hover { background: var(--err); }
.lf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .lf-two { grid-template-columns: 1fr; } }
.lf-count { font-size: 11px; color: var(--muted); margin-top: 4px; text-align: right; }
.lf-errors { margin: 12px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--err); }
.lf-errors li { margin-top: 3px; }
.lf-errors li::before { content: "• "; }

.my-listings { margin: 0 24px 28px; display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.ml-row { display: flex; gap: 12px; align-items: center; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.ml-img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--ok-tint); flex: 0 0 auto; }
.ml-info { flex: 1; min-width: 0; }
.ml-title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-price { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 14px; }
.ml-status { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; background: rgba(20,33,61,0.08); color: var(--muted); }
.ml-status.ACTIVE { background: var(--ok-tint); color: var(--ok); }
.ml-status.LOCKED { background: #FFF3DC; color: #8a5a00; }

/* ===== Palette roles (navy #14213D · amber #FCA311 · grey #E5E5E5 · white · black) =====
   Navy = structure + text. Amber = action + highlights (always with navy text on top).
   Amber is never used as text on light backgrounds; use --amber-text there. */
.logo span { background: var(--amber); color: var(--navy); padding: 0 6px; border-radius: 6px; }
.flash-timer, .flash-badge, .card-off, .cart-count { background: var(--amber); color: var(--navy); }
.flash-card { border-color: var(--amber); }
.flash-left { color: var(--amber-text); }
.pd-category, .promo-deal a { color: var(--amber-text); }
.promo-deal .promo-icon { background: var(--amber-tint); color: var(--amber-text); }
.promo-trust .promo-icon, .service-icon, .trust-note .icon { background: var(--navy-tint); color: var(--navy); }
.promo-trust a { color: var(--navy); text-decoration: underline; }
.chat-msg.you { background: var(--navy); color: var(--white); }
.cm-btn-navy:hover { background: var(--navy-soft); }
.flash-stock span { background: var(--amber); }
.store-avatar.s2 { background: linear-gradient(135deg, var(--navy), var(--navy-soft)); color: var(--white); }
.canopy { background: repeating-linear-gradient(90deg, var(--navy) 0 28px, var(--amber) 28px 56px); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.ad-slide.c1 { background-image: radial-gradient(circle at 30% 20%, var(--navy-soft), var(--navy)); }
.ad-slide.c2 { background-image: linear-gradient(rgba(0,0,0,0.12), rgba(0,0,0,0.12)), radial-gradient(circle at 70% 30%, var(--amber), var(--amber-hover)); }
.ad-slide.c3 { background-image: radial-gradient(circle at 40% 60%, var(--navy-soft), var(--navy-deep)); }
.ad-slide.c4 { background-image: linear-gradient(rgba(0,0,0,0.12), rgba(0,0,0,0.12)), radial-gradient(circle at 60% 40%, var(--amber-hover), #C47A0A); }
.ad-slide.c5 { background-image: radial-gradient(circle at 30% 70%, var(--navy-deep), var(--navy)); }
.ad-slide.c6 { background-image: linear-gradient(rgba(0,0,0,0.12), rgba(0,0,0,0.12)), radial-gradient(circle at 50% 30%, var(--amber), var(--amber-hover)); }
.ad-slide.c7 { background-image: radial-gradient(circle at 40% 40%, var(--navy), var(--navy-soft)); }
.flash-new { color: var(--navy); }

/* =====================================================================
   Shared buyer layout (js/layout.js): header + mobile bottom navigation.
   Colours come only from the :root variables. Badges are amber with navy text.
   ===================================================================== */
.nav-item { text-decoration: none; }
.nav-badge { background: var(--amber); color: var(--navy); }
[data-cart-count][hidden] { display: none; }
.header-cart .cart-count { position: absolute; top: 2px; left: 24px; }
.header-action[aria-current="page"], .header-action:focus-visible { background: var(--navy-tint); }
/* The bottom nav already has Wishlist on phones. */
@media (max-width: 900px) {
  .header-wish { display: none; }
  .header-cart .cart-count { left: 20px; }
}
/* Pages without the storefront hero still get a comfortable top gap. */
.site-header + .cm-page, .site-header + main { padding-top: 20px; }

/* ---- Cart page ---- */
.page-title { font-size: 28px; margin-bottom: 16px; }
.page-title .cm-muted { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px; }
.cart-page { max-width: 1120px; }
.cart-layout { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1fr 340px; } }
.cart-items { display: flex; flex-direction: column; gap: 10px; }
.cart-item {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px;
}
.cart-thumb img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; display: block; background: var(--grey); }
.cart-info { min-width: 0; }
.cart-title { display: block; font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-title:hover { text-decoration: underline; }
.cart-store { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cart-reserved { font-size: 12px; color: var(--amber-text); margin-top: 4px; font-weight: 600; }
.cart-price { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 17px; margin-top: 6px; }
.cart-remove {
  background: none; border: none; color: var(--muted); font: 600 12px 'Sora', sans-serif;
  cursor: pointer; padding: 6px; border-radius: 8px;
}
.cart-remove:hover { color: var(--err); background: var(--page); }
.cart-summary { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
@media (min-width: 900px) { .cart-summary { position: sticky; top: 96px; } }
.cart-summary-title { font-size: 18px; margin-bottom: 12px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 7px 0; }
.sum-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; margin-bottom: 14px; font-weight: 700; font-size: 16px; }
.sum-total span:last-child { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 20px; }
.cart-removed { margin: 6px 0 0; padding-left: 18px; }

/* ---- Product page additions ---- */
.pd-gallery { position: relative; }
.pd-wish { top: 12px; right: 12px; }
.pd-store { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.pd-store .pd-seller { margin: 0; }
.follow-btn {
  border: 1.5px solid var(--navy); background: var(--white); color: var(--navy);
  font: 700 12px 'Sora', sans-serif; padding: 6px 12px; border-radius: 100px; cursor: pointer;
}
.follow-btn.following { background: var(--navy); color: var(--white); }
.follow-btn[disabled] { opacity: 0.6; }
.pd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-actions .cm-btn { width: 100%; }

/* ---- Account area ---- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-head .page-title { margin-bottom: 16px; }
.wide-page { max-width: 1120px; }
.acct-hero {
  display: flex; align-items: center; gap: 14px; background: var(--navy); color: var(--white);
  border-radius: 18px; padding: 20px; margin-bottom: 14px;
}
.acct-hero h1 { font-size: 24px; }
.acct-avatar {
  width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; background: var(--amber); color: var(--navy);
  display: flex; align-items: center; justify-content: center; font: 800 22px 'Bricolage Grotesque', sans-serif;
}
.acct-sub { margin: 2px 0 0; font-size: 13px; color: var(--grey); overflow-wrap: anywhere; }
.acct-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .acct-grid { grid-template-columns: 1fr 1fr; } }
.acct-card {
  display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--ink); position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.acct-card:hover { border-color: var(--navy); box-shadow: 0 4px 14px rgba(20,33,61,0.08); }
.acct-icon {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; background: var(--navy-tint); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.acct-icon svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.acct-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acct-text strong { font-size: 14px; }
.acct-text small { font-size: 12px; color: var(--muted); }
.acct-badge {
  margin-left: auto; background: var(--amber); color: var(--navy); font-size: 11px; font-weight: 700;
  min-width: 22px; height: 22px; border-radius: 100px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px;
}
.acct-badge[hidden] { display: none; }
.acct-seller { margin-bottom: 10px; border-color: var(--amber); background: var(--amber-tint); }
.acct-seller .acct-icon { background: var(--amber); color: var(--navy); }
.acct-logout { margin-top: 18px; }

/* Inbox */
.inbox-list { display: flex; flex-direction: column; gap: 8px; }
.inbox-item {
  display: flex; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; cursor: pointer;
}
.inbox-item:hover { border-color: var(--navy); }
.inbox-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: 0 0 8px; background: transparent; }
.inbox-item.unread { background: var(--navy-tint); }
.inbox-item.unread .inbox-dot { background: var(--amber); }
.inbox-item.unread .inbox-title { font-weight: 700; }
.inbox-title { font-size: 14px; font-weight: 600; }
.inbox-text { font-size: 13px; color: var(--muted); margin-top: 2px; }
.inbox-time { font-size: 11px; color: var(--muted); margin-top: 6px; }

/* Settings */
.settings-page { max-width: 560px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 14px; }
.panel-title { font-size: 17px; }
.cm-input:disabled { background: var(--page); color: var(--muted); }

/* Wishlist / recently viewed grid */
.item-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .item-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .item-grid { grid-template-columns: repeat(4, 1fr); } }
.item-grid > .cm-empty { grid-column: 1 / -1; }
.item-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.item-img { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--grey); }
.item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-card.unavailable .item-img img { opacity: 0.45; }
.item-flag {
  position: absolute; left: 8px; bottom: 8px; background: var(--navy); color: var(--white);
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 100px;
}
.item-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.item-title { font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-store { font-size: 12px; color: var(--muted); }
.item-price { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 16px; margin-top: 2px; }
.item-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.item-actions .cm-btn { flex: 1 1 auto; padding: 8px 10px; font-size: 12px; }

/* Followed sellers */
.follow-list { display: flex; flex-direction: column; gap: 8px; }
.follow-row { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.follow-row .store-avatar { width: 44px; height: 44px; flex: 0 0 44px; font-size: 14px; margin: 0; }
.follow-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.follow-info strong { font-size: 14px; }

/* My orders: tabs + checkout groups */
.ord-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px 4px; scrollbar-width: none; }
.ord-tabs::-webkit-scrollbar { display: none; }
.ord-tabs button {
  flex: 0 0 auto; border: 1.5px solid var(--line); background: var(--white); color: var(--muted);
  font: 600 13px 'Sora', sans-serif; padding: 8px 14px; border-radius: 100px; cursor: pointer; white-space: nowrap;
}
.ord-tabs button.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.ord-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.ord-group-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline;
  font-size: 13px; padding: 0 2px;
}
.ord-group-head .cm-muted { margin-left: 6px; font-size: 12px; }
.ord-group-sum { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); }
.ord-group-sum strong { color: var(--ink); }
.ord-price small { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 12px; }

/* ---- Ratings: amber filled stars, grey (#E5E5E5 via --grey) empty stars ---- */
.stars-row { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); line-height: 1; }
.stars { position: relative; display: inline-block; color: var(--grey); letter-spacing: 1px; font-size: 14px; white-space: nowrap; }
.stars-fill { position: absolute; top: 0; left: 0; overflow: hidden; color: var(--amber); white-space: nowrap; }
.stars-row.compact .stars { font-size: 12px; }
.stars-num { font-weight: 600; }
.card-rating { margin-top: 4px; }
.pd-rating { margin: 6px 0 2px; }

/* Star picker on review.html */
.star-picker { display: flex; gap: 4px; margin: 6px 0 2px; }
.star-picker button {
  background: none; border: none; padding: 2px; cursor: pointer; font-size: 34px; line-height: 1;
  color: var(--grey); transition: transform 0.1s ease, color 0.1s ease;
}
.star-picker button.on { color: var(--amber); }
.star-picker button:hover { transform: scale(1.08); }
.star-hint { font-size: 12px; color: var(--muted); min-height: 16px; }
.verified-badge {
  display: inline-flex; align-items: center; gap: 4px; background: var(--ok-tint); color: var(--ok);
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 100px;
}

/* Review list on product.html */
.rv-section { margin-top: 32px; }
.rv-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.rv-head h2 { font-size: 20px; }
.rv-list { display: flex; flex-direction: column; gap: 10px; }
.rv-item { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.rv-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rv-name { font-weight: 700; font-size: 13px; }
.rv-date { font-size: 11px; color: var(--muted); margin-left: auto; }
.rv-text { margin: 8px 0 0; font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-rated { font-size: 12px; color: var(--muted); }

/* Email-verification banner on account.html */
.verify-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }

.load-more[hidden] { display: none; }

/* =====================================================================
   Kept accessibility fixes, styled to fit this look. Existing variables
   only. These come last so they win over the older rules above.
   ===================================================================== */

/* Focus: navy line + amber halo on light surfaces; amber line on navy ones. */
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 5px var(--amber); }
.utility-bar :focus-visible, .header-nav :focus-visible, .ad-slide :focus-visible,
.flash-band :focus-visible, .ticket :focus-visible { outline-color: var(--amber); box-shadow: none; }

/* Bottom nav: every item is a 44px+ target; the cart count is amber with a navy number. */
.nav-item { min-height: 44px; min-width: 44px; justify-content: center; }
.nav-badge {
  background: var(--amber); color: var(--navy);
  font-size: 11px; min-width: 18px; height: 18px; padding: 0 5px;
  font-variant-numeric: tabular-nums;
}

/* Toasts sit above the bottom nav on phones. */
.toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .toast { bottom: 28px; } }

/* Signup form: 48px fields with a stronger border (6:1 on white). */
.modal-card input, .modal-card select {
  min-height: 48px; font-size: 16px; border: 1.5px solid var(--muted);
}
.modal-card input:focus, .modal-card select:focus { border-color: var(--navy); }
.modal-card input[type="file"] { border-style: dashed; }
.role-btn { min-height: 48px; }
.modal-submit { min-height: 48px; }

/* SVG star ratings (amber fill, navy outline), replacing the ★ characters. */
.stars { display: inline-flex; position: relative; font-size: 0; letter-spacing: 0; }
.stars-base, .stars-fill { display: inline-flex; gap: 1px; }
.stars-fill { position: absolute; top: 0; left: 0; overflow: hidden; }
.star { width: 14px; height: 14px; flex: 0 0 14px; fill: var(--grey); stroke: var(--navy); stroke-width: 1.2; stroke-linejoin: round; }
.star.star-on { fill: var(--amber); }
.stars-row.compact .star { width: 12px; height: 12px; flex-basis: 12px; }

/* Real-data placeholders and states (no demo content). */
.no-photo { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--navy-tint); }
.no-photo svg { width: 32px; height: 32px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linejoin: round; }
.grid-loading { color: var(--muted); font-size: 13px; text-align: center; padding: 24px 0; margin: 0; }
.grid-retry {
  margin: 10px auto 0; display: flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border: none; border-radius: 10px;
  background: var(--amber); color: var(--navy); font-family: 'Sora', sans-serif; font-weight: 700; cursor: pointer;
}
.cat-tile-img { display: flex; align-items: center; justify-content: center; }
.cat-tile-img svg { width: 42%; height: 42%; fill: none; stroke: var(--navy); stroke-width: 1.6; }
.house-slide .ad-cta { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }

/* ---- Floating campus icons: the navy hero slide only ----
   Behind the slide text (icons z-index 1, text z-index 2), never clickable,
   transform-only, each on its own 11-18s loop. Opacity caps keep text over
   a stroke >= 4.5:1: white strokes <= 16%, amber strokes <= 24%. */
.float-icons { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.fi {
  position: absolute;
  width: var(--size); height: var(--size);
  fill: none; stroke: var(--c); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  opacity: var(--o);
  will-change: transform;
  animation: fi-drift var(--dur) ease-in-out var(--delay) infinite alternate;
}
@keyframes fi-drift {
  from { transform: translate(0, 0) rotate(calc(-1 * var(--rot))); }
  to   { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
}
.fi-1 { --size: 44px; --c: var(--amber); --o: .24; --dur: 14s; --delay: -3s;  --dx: 18px;  --dy: 24px;  --rot: 6deg;  top: 8%;  right: 7%; }
.fi-2 { --size: 34px; --c: var(--white); --o: .14; --dur: 17s; --delay: -9s;  --dx: -22px; --dy: 16px;  --rot: -5deg; top: 36%; right: 30%; }
.fi-3 { --size: 52px; --c: var(--white); --o: .12; --dur: 16s; --delay: -6s;  --dx: -14px; --dy: -26px; --rot: 6deg;  bottom: 10%; right: 5%; }
.fi-4 { --size: 40px; --c: var(--amber); --o: .18; --dur: 12s; --delay: -1s;  --dx: -16px; --dy: 20px;  --rot: -6deg; top: 12%; left: 46%; }
.fi-5 { --size: 28px; --c: var(--amber); --o: .22; --dur: 11s; --delay: -7s;  --dx: 20px;  --dy: 22px;  --rot: 5deg;  top: 10%; left: 6%; }
.fi-6 { --size: 46px; --c: var(--white); --o: .13; --dur: 18s; --delay: -12s; --dx: -26px; --dy: 14px;  --rot: -4deg; top: 30%; left: 22%; }
.fi-7 { --size: 32px; --c: var(--amber); --o: .2;  --dur: 13s; --delay: -5s;  --dx: 24px;  --dy: -18px; --rot: 6deg;  bottom: 34%; right: 18%; }
.house-slide.icons-paused .fi { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .fi { animation: none; will-change: auto; } }
/* The CalebMart slide grows to fit its text on phones and tablets. */
@media (max-width: 1023px) { .home-hero .house-slide { aspect-ratio: auto; min-height: 220px; } }
/* Visually hidden, still read by screen readers. */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Blue "Verified seller" badge (earned; an admin grants it) ----
   Blue circle + white tick (4.5:1), navy label. ID-approved sellers without
   the badge get a small grey "ID checked" label instead. */
.vbadge { display: inline-flex; align-items: center; gap: 4px; color: var(--navy); font-weight: 700; font-size: 12px; white-space: nowrap; vertical-align: middle; line-height: 1.2; }
.vbadge svg { width: 16px; height: 16px; flex: 0 0 16px; }
.vbadge circle { fill: var(--badge-blue); }
.vbadge path { fill: none; stroke: var(--white); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.vbadge.sm svg { width: 14px; height: 14px; flex-basis: 14px; }
.vbadge.lg { font-size: 14px; }
.vbadge.lg svg { width: 20px; height: 20px; flex-basis: 20px; }
.idchecked { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }

/* "Verified sellers" filter chip on the home page */
.chip.badge-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-family: inherit; cursor: pointer; }
.chip.badge-chip svg { width: 14px; height: 14px; }

/* Seller hub: "Get verified" card */
.badge-card { margin: 0 24px 28px; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 18px; max-width: 460px; }
.badge-card h3 { font-size: 16px; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.badge-card .badge-status { font-size: 13px; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.badge-card .badge-reason { font-size: 13px; color: var(--ink); background: var(--amber-tint); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
.badge-checks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.badge-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.4; }
.badge-checks .mark { flex: 0 0 20px; width: 20px; height: 20px; }
.badge-checks .mark circle { fill: var(--navy); }
.badge-checks .mark path { fill: none; stroke: var(--white); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.badge-checks .mark.todo circle { fill: none; stroke: var(--muted); stroke-width: 2; }
.badge-checks .now { color: var(--muted); }
.badge-card textarea { width: 100%; min-height: 72px; border: 1.5px solid var(--muted); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 16px; }
.badge-card .cm-btn { min-height: 48px; }
.chip.badge-chip circle { fill: var(--badge-blue); }
.chip.badge-chip path { fill: none; stroke: var(--white); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.badge-card .cm-label { display: block; font-size: 13px; font-weight: 600; margin: 4px 0 6px; }
.badge-explain { margin: 2px 0 0; font-size: 12px; color: var(--muted); }

/* =====================================================================
   Installable app (PWA): install / update bar, offline page, safe areas.
   ===================================================================== */
.pwa-bar {
  position: fixed; z-index: 240;
  left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right));
  bottom: calc(88px + env(safe-area-inset-bottom));
  max-width: 480px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 6px 10px 12px;
  background: white; color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(20,33,61,0.18);
  font-family: 'Sora', sans-serif;
}
.pwa-icon img { display: block; width: 36px; height: 36px; border-radius: 9px; }
.pwa-text { flex: 1; margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink); }
.pwa-share { width: 16px; height: 16px; vertical-align: -3px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pwa-btn {
  flex: 0 0 auto; min-height: 44px; padding: 0 16px; border: none; border-radius: 10px;
  background: var(--amber); color: var(--navy); font: 700 14px 'Sora', sans-serif; cursor: pointer;
}
.pwa-btn:hover { background: var(--amber-hover); }
.pwa-btn:disabled { opacity: .6; cursor: progress; }
.pwa-close {
  flex: 0 0 44px; width: 44px; height: 44px; border: none; background: none; border-radius: 10px;
  color: var(--navy); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.pwa-close:hover { background: var(--navy-tint); }
.pwa-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (min-width: 1024px) { .pwa-bar { bottom: 24px; right: auto; left: 24px; } }

/* Offline page */
.offline-page { padding-bottom: 0; background: var(--page); }
.offline-wrap { max-width: 420px; margin: 0 auto; padding: calc(48px + env(safe-area-inset-top)) 24px 48px; text-align: center; }
.offline-wrap .logo { justify-content: center; font-size: 22px; margin-bottom: 32px; }
.offline-icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--navy-tint); display: flex; align-items: center; justify-content: center; }
.offline-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.offline-wrap h1 { font-size: 26px; margin: 0 0 8px; }
.offline-wrap p { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0 0 20px; }
.offline-retry {
  min-height: 48px; padding: 0 28px; border: none; border-radius: 12px;
  background: var(--amber); color: var(--navy); font: 700 16px 'Sora', sans-serif; cursor: pointer;
}
.offline-retry:hover { background: var(--amber-hover); }
.offline-small { font-size: 13px !important; margin-top: 16px !important; }

/* Installed app: keep content clear of the notch and the home bar. */
.site-header, .bottom-nav { padding-left: max(0px, env(safe-area-inset-left)); padding-right: max(0px, env(safe-area-inset-right)); }
@media (display-mode: standalone) {
  .site-header { padding-top: env(safe-area-inset-top); }
  body > .canopy { margin-top: env(safe-area-inset-top); }
}

/* "Get verified" progress (15 completed sales to apply) */
.badge-card .badge-state { font-size: 13px; color: var(--ink); margin: 0 0 12px; line-height: 1.5; }
.badge-card .badge-state-label { color: var(--muted); }
.badge-progress-label { font-size: 13px; margin: 0 0 6px; color: var(--ink); }
.badge-progress { height: 10px; border-radius: 100px; background: var(--grey); overflow: hidden; }
.badge-progress span { display: block; height: 100%; background: var(--navy); border-radius: inherit; }

/* ---- Share: card button, Share button, share sheet, store page ---- */
/* The button is a full 44px target; the circle inside matches the wishlist heart. */
.card-share {
  position: absolute; top: 37px; right: 0;
  width: 44px; height: 44px; padding: 0;
  border: none; background: transparent; color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
}
.card-share span {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--white); opacity: 0.94;
  display: flex; align-items: center; justify-content: center;
}
.card-share:hover span { opacity: 1; }
.card-share svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.9; }

.share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; margin-top: 10px;
  border: 1.5px solid var(--navy); border-radius: 10px;
  background: var(--white); color: var(--navy);
  font: 700 14px 'Sora', sans-serif; cursor: pointer;
}
.share-btn:hover { background: var(--navy-tint); }
.share-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; }
.pd-store-link {
  display: inline-block; padding: 14px 0; margin: -14px 0; /* 44px tap height without moving the text */
  color: inherit; text-decoration: underline; text-underline-offset: 3px;
}

.share-sheet {
  width: min(420px, calc(100vw - 32px)); padding: 0;
  border: none; border-radius: 16px;
  background: var(--white); color: var(--ink);
}
.share-sheet::backdrop { background: rgba(13, 21, 40, 0.6); }
.share-inner { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.share-inner h2 { margin: 0; font-size: 20px; }
.share-name { margin: 0 0 6px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.share-label { font-size: 12px; font-weight: 600; margin-top: 4px; }
.share-copy { display: flex; gap: 8px; }
.share-copy input {
  flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 12px;
  border: 1.5px solid var(--muted); border-radius: 10px;
  background: var(--white); color: var(--ink);
  font: 500 16px 'Sora', sans-serif; /* 16px: iPhones zoom in on anything smaller */
}
.share-copy .cm-btn { flex: 0 0 auto; padding: 0 14px; min-height: 44px; }
.share-inner .cm-btn-ghost { color: var(--navy); min-height: 44px; }
@media (max-width: 640px) {
  .share-sheet {
    width: 100%; max-width: 100%; margin: auto 0 0;
    border-radius: 16px 16px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
}

.store-head {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; margin-bottom: 18px;
}
.store-head .store-avatar { width: 56px; height: 56px; flex: 0 0 56px; margin: 0; font-size: 18px; }
.store-info { flex: 1 1 200px; min-width: 0; }
.store-info h1 { margin: 0 0 4px; font-size: 24px; overflow-wrap: anywhere; }
.store-info p { margin: 4px 0 0; }
.store-flags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.store-head .share-btn { margin-top: 0; }
.store-card-link { display: block; color: inherit; text-decoration: none; }
@media (max-width: 480px) { .store-head .share-btn { width: 100%; } }

/* ---- Safe handover + chat additions ---- */
.ho { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.ho-title { margin: 0 0 8px; font-size: 15px; color: var(--ink); }
.ho-empty { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.ho-box { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; margin-bottom: 8px; border-radius: 10px; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.ho-box small { color: var(--muted); font-size: 12px; }
.ho-box.agreed { background: var(--ok-tint); }
.ho-box.pending { background: var(--amber-tint); }
.ho-label { font-size: 12px; font-weight: 700; }
.ho-box.agreed .ho-label { color: var(--ok); }
.ho-box.pending .ho-label { color: var(--amber-text); }
.ho-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ho-actions .cm-btn { flex: 1 1 140px; min-height: 44px; padding: 0 14px; }
.ho-actions .cm-btn-ghost { color: var(--navy); }
.ho-form { margin-top: 8px; }
.ho-form .cm-input, .ho-form .cm-select { width: 100%; min-height: 44px; font-size: 16px; }
.ho-form .cm-btn { min-height: 44px; margin-top: 8px; }
.ticket-meet { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--navy-tint); font-size: 13px; line-height: 1.45; color: var(--white); }
.ticket-meet strong { color: var(--amber); }
.chat-msg.system { align-self: center; max-width: 92%; background: var(--amber-tint); color: var(--ink); text-align: center; border-radius: 10px; }
.chat-msg.system small { opacity: 1; color: var(--amber-text); }
.chat-msg small { font-size: 11px; opacity: 1; }
.chat-form .cm-input { min-height: 44px; font-size: 16px; min-width: 0; }
.chat-form .cm-btn { min-height: 44px; }
.order-chat-btn { min-height: 44px; color: var(--navy); }

/* ---- Phone alerts toggle ---- */
.switch-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; cursor: pointer; }
.switch-text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--ink); }
.switch-text small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.switch-row input { position: absolute; right: 0; top: 50%; width: 52px; height: 44px; margin: -22px 0 0; opacity: 0; cursor: pointer; }
.switch { position: relative; flex: 0 0 52px; width: 52px; height: 30px; border-radius: 999px; background: var(--muted); transition: background 0.16s ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); transition: transform 0.16s ease; }
.switch-row input:checked + .switch { background: var(--navy); }
.switch-row input:checked + .switch::after { transform: translateX(22px); }
.switch-row input:disabled + .switch { opacity: 0.5; }
.switch-row input:disabled { cursor: not-allowed; }
.switch-row input:focus-visible + .switch { outline: 3px solid var(--amber); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .switch, .switch::after { transition: none; } }

/* ---- Report ---- */
.report-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--white); color: var(--err);
  font: 700 14px 'Sora', sans-serif; cursor: pointer;
}
.report-btn:hover { border-color: var(--err); }
.report-btn svg, .chat-report svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; }
.pd-tools, .store-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-tools { margin-top: 10px; }
.pd-tools .share-btn, .store-tools .share-btn { margin-top: 0; }
@media (max-width: 480px) {
  .store-tools { width: 100%; }
  .store-tools .share-btn, .store-tools .report-btn { flex: 1 1 140px; width: auto; }
}
.report-reasons { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.report-reasons legend { padding: 0; margin-bottom: 4px; font-size: 13px; font-weight: 700; color: var(--ink); }
.report-reason { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; color: var(--ink); cursor: pointer; }
.report-reason input { width: 20px; height: 20px; margin: 0; flex: 0 0 20px; accent-color: var(--navy); }
.report-form .cm-textarea { width: 100%; font-size: 16px; }
.report-form .lf-count { text-align: right; font-size: 12px; color: var(--muted); }
.report-form .cm-note { margin: 0; min-height: 0; }
.report-form .cm-btn { min-height: 44px; }
.share-sheet { max-height: calc(100dvh - 16px); overflow-y: auto; }
.chat-row { display: flex; align-items: center; gap: 2px; }
.chat-row.you { justify-content: flex-end; }
.chat-report {
  flex: 0 0 44px; width: 44px; height: 44px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer;
}
.chat-report:hover { background: var(--navy-tint); color: var(--err); }

/* ---- Secure Bag logo ---- */
.logo-mark { width: 32px; height: 32px; flex: 0 0 32px; margin-right: 6px; display: block; }
.logo-mark .m-handle, .logo-mark .m-check { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.logo-mark .m-handle { stroke: var(--amber); stroke-width: 4.5; }
.logo-mark .m-bag { fill: var(--navy); }
.logo-mark .m-check { stroke: var(--amber); stroke-width: 5; }
.logo-mark.on-dark .m-handle { stroke: var(--white); }
.logo-mark.on-dark .m-bag { fill: var(--amber); }
.logo-mark.on-dark .m-check { stroke: var(--navy); }
.logo:has(.logo-mark) { align-items: center; }
a.logo { color: var(--ink); text-decoration: none; min-height: 44px; }
.logo-home { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -6px 0 -6px -6px; }
.logo-home .logo-mark { margin-right: 0; }

/* ---- Watermark: one faint mark per page, behind everything ----
   Fixed to the lower right, above the phone bottom nav. Cards, forms and
   tables have their own background, so they stay clear of it. */
body::after {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  right: 8px; bottom: calc(92px + env(safe-area-inset-bottom));
  width: 200px; aspect-ratio: 1;
  background: url("../assets/brand/svg/calebmart-mark.svg") center / contain no-repeat;
  opacity: 0.04;
}
@media (min-width: 1024px) { body::after { width: 340px; right: 24px; bottom: 24px; } }
/* The homepage has its watermark in the navy hero instead. */
body:has(.home-hero)::after { content: none; }
.home-hero .house-slide::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  top: 50%; right: -2%; height: 125%; aspect-ratio: 1; transform: translateY(-50%);
  background: url("../assets/brand/svg/calebmart-mark-on-dark.svg") center / contain no-repeat;
  opacity: 0.12;
}
/* Phones: smaller and tucked to the right, clear of the headline. */
@media (max-width: 1023px) { .home-hero .house-slide::before { height: 72%; right: -18%; top: 58%; } }
@media print { body::after, .home-hero .house-slide::before { display: none; } }

/* ---- Stock: quantity control, option pickers, stock labels ---- */
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--navy); border-radius: 10px; background: var(--white); overflow: hidden; }
.qty button { width: 44px; height: 44px; border: none; background: var(--white); color: var(--navy); font: 700 20px 'Sora', sans-serif; cursor: pointer; }
.qty button:hover:not([disabled]) { background: var(--navy-tint); }
.qty button[disabled] { color: var(--muted); background: var(--page); cursor: not-allowed; }
.qty output { min-width: 40px; text-align: center; font-weight: 700; font-size: 15px; color: var(--ink); }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.cart-info .qty { margin-top: 8px; }
.cart-variant, .ord-variant { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.cart-stock, .card-stock { font-size: 12px; font-weight: 700; color: var(--amber-text); margin-top: 4px; }
.card-stock.out { color: var(--err); }
.card-price small { font-size: 11px; font-weight: 600; color: var(--muted); }
.cart-remove { min-height: 44px; min-width: 44px; }
.stock-note { display: inline-block; margin: 8px 0 0; padding: 4px 10px; min-height: 0; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 13px; font-weight: 700; }
.stock-note.ok { color: var(--ok); }
.stock-note.low { color: var(--amber-text); }
.stock-note.out { color: var(--err); }
.opt-group { border: none; margin: 14px 0 0; padding: 0; }
.opt-group legend { padding: 0; margin-bottom: 6px; font-size: 13px; color: var(--ink); }
.opt-values { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: inline-flex; cursor: pointer; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt > span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--navy); border-radius: 10px; background: var(--white); color: var(--navy); font-size: 14px; font-weight: 700; }
.opt:hover:not(.off) > span { background: var(--navy-tint); }
.opt.on > span, .opt.on:hover > span { background: var(--navy); color: var(--white); }
.opt.off { cursor: not-allowed; }
.opt.off input { cursor: not-allowed; }
.opt.off > span { border-color: var(--line); background: var(--page); color: var(--muted); text-decoration: line-through; }
.opt input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.pd-actions .cm-btn[disabled] { background: var(--grey); color: var(--muted); opacity: 1; }

/* ---- Seller hub: stock and options ---- */
.lf-toggle { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.lf-toggle input { width: 20px; height: 20px; margin: 0; flex: 0 0 20px; accent-color: var(--navy); }
.lf-toggle small { font-weight: 500; color: var(--muted); font-size: 13px; }
.opte-hint { margin: 6px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.opte-hint.error { color: var(--err); font-weight: 600; }
.opte { margin-top: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--page); }
.opte .cm-input, .ml-edit .cm-input, .ml-edit .cm-select, #lf-quantity, #lf-threshold { min-height: 44px; font-size: 16px; width: 100%; }
.opte-type { display: grid; grid-template-columns: 1fr 1.5fr auto; gap: 10px; align-items: end; margin-bottom: 8px; }
.opte-type .cm-field { margin-top: 0; }
.opte-type .cm-btn, .opte-add { min-height: 44px; color: var(--navy); padding: 0 12px; }
.opte-table { width: 100%; margin-top: 10px; border-collapse: separate; border-spacing: 0 6px; table-layout: fixed; }
.opte-table thead th { font-size: 11px; font-weight: 700; text-align: left; color: var(--muted); }
.opte-table thead th span { font-weight: 500; }
.opte-table thead th:nth-child(2) { width: 84px; }
.opte-table thead th:nth-child(3) { width: 112px; }
.opte-table tbody th { padding-right: 6px; font-size: 13px; font-weight: 600; text-align: left; color: var(--ink); overflow-wrap: anywhere; }
.opte-table td { padding: 0 0 0 6px; }
.opte-table .cm-input { padding: 0 8px; background: var(--white); }
@media (max-width: 560px) {
  .opte-type { grid-template-columns: 1fr; }
  .opte-type .cm-btn { justify-self: start; }
}
.ml-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 24px 12px; }
.ml-filter button { min-height: 44px; padding: 0 16px; border: 1.5px solid var(--navy); border-radius: 999px; background: var(--white); color: var(--navy); font: 700 13px 'Sora', sans-serif; cursor: pointer; }
.ml-filter button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.ml-status.OUT { background: var(--white); border: 1px solid var(--err); color: var(--err); }
.ml-stock { margin-top: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-size: 13px; color: var(--ink); }
.ml-stock summary { display: flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 600; cursor: pointer; }
.ml-stock-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; }
.ml-stock-label { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.ml-stepper { display: inline-flex; align-items: center; flex: 0 0 auto; border: 1.5px solid var(--navy); border-radius: 10px; overflow: hidden; }
.ml-stepper button { width: 44px; height: 44px; border: none; background: var(--white); color: var(--navy); font: 700 20px 'Sora', sans-serif; cursor: pointer; }
.ml-stepper button:hover:not([disabled]) { background: var(--navy-tint); }
.ml-stepper button[disabled] { background: var(--page); color: var(--muted); cursor: not-allowed; }
.ml-stepper output { min-width: 44px; text-align: center; font-weight: 700; font-size: 15px; }
.ml-actions .cm-btn { min-height: 44px; }

/* =====================================================================
   Standalone info pages: Buyer Protection, Help Centre, Privacy, Terms.
   Existing variables only. Body text 16px, every control 44px+.
   ===================================================================== */
.info-page { max-width: 920px; margin: 0 auto; padding: 24px 16px 48px; color: var(--ink); }
@media (min-width: 768px) { .info-page { padding: 32px 24px 64px; } }
.info-page p, .info-page li { font-size: 16px; line-height: 1.6; }
.info-page :is(p, li) { max-width: 68ch; }
.info-page a:not(.cm-btn) { color: var(--navy); font-weight: 600; text-underline-offset: 3px; }
.info-crumb { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.info-page a.info-crumb { color: var(--muted); text-decoration: none; }
.info-page a.info-crumb:hover { color: var(--ink); text-decoration: underline; }

.info-hero { background: var(--navy); color: var(--white); border-radius: 24px; padding: 28px 20px; margin-bottom: 28px; }
@media (min-width: 768px) { .info-hero { padding: 40px 40px 36px; } }
.info-hero h1 { font-size: clamp(1.75rem, 1.45rem + 1.3vw, 2.5rem); line-height: 1.1; text-wrap: balance; max-width: 22ch; }
.info-hero p { color: var(--white); margin: 12px 0 0; max-width: 56ch; }
.info-hero .info-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--amber); }
.info-hero .info-eyebrow svg { width: 20px; height: 20px; stroke: var(--amber); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.info-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.info-hero-actions .cm-btn { min-height: 48px; font-size: 15px; }
.info-hero :focus-visible { outline-color: var(--amber); box-shadow: none; }
.cm-btn-on-navy { background: transparent; color: var(--white); border-color: var(--white); }
.cm-btn-on-navy:hover { background: var(--navy-soft); }

.info-section { margin: 0 0 36px; scroll-margin-top: 88px; }
.info-section > h2 { font-size: clamp(1.25rem, 1.12rem + 0.57vw, 1.625rem); margin-bottom: 6px; }
.info-section > .info-lead { color: var(--muted); margin: 0 0 16px; }

/* Numbered steps (how escrow works) */
.info-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
@media (min-width: 768px) { .info-steps { grid-template-columns: repeat(2, 1fr); } }
.info-steps li { counter-increment: step; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 16px 64px; max-width: none; }
.info-steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--amber); color: var(--navy);
  font: 800 16px 'Bricolage Grotesque', sans-serif; font-variant-numeric: tabular-nums;
}
.info-steps strong { display: block; font-size: 16px; margin-bottom: 2px; }
.info-steps span { color: var(--muted); font-size: 15px; }

/* Rules and tips: a card per item, icon + words */
.info-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 768px) { .info-cards { grid-template-columns: repeat(2, 1fr); } }
.info-cards li { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px; max-width: none; }
.info-cards .info-icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-tint); }
.info-cards .info-icon svg { width: 22px; height: 22px; stroke: var(--navy); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.info-cards.tips .info-icon { background: var(--amber-tint); }
.info-cards strong { display: block; font-size: 16px; margin-bottom: 2px; }
.info-cards p { margin: 0; color: var(--muted); font-size: 15px; }

/* FAQ: native details/summary, 48px rows */
.faq { display: grid; gap: 8px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 16px;
  font-weight: 700; font-size: 16px; cursor: pointer; list-style: none; border-radius: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 10px; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg) translateY(-3px); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details > div { padding: 0 16px 16px; }
.faq details > div p { margin: 0 0 8px; color: var(--ink); }
.faq details > div p:last-child { margin-bottom: 0; }
.faq-group-title { font-size: 17px; margin: 20px 0 10px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Closing call to action */
.info-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--amber-tint); border-radius: 20px; padding: 20px; }
.info-cta h2 { font-size: 20px; }
.info-cta p { margin: 4px 0 0; color: var(--ink); }
.info-cta .cm-btn { min-height: 48px; font-size: 15px; }
.info-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cm-btn-outline { background: var(--white); color: var(--navy); border-color: var(--navy); }
.cm-btn-outline:hover { background: var(--navy-tint); }

/* Inline "learn more" link inside the escrow notes on product and cart */
.pd-escrow a { color: inherit; font-weight: 700; text-underline-offset: 3px; display: inline-block; padding: 4px 0; }

/* ---- Order progress timeline (My orders, Seller hub) ----
   Done: navy dot + check. Now: amber dot + clock + "Now". Next: hollow dot,
   muted words. Disputed / Under review / Refunded get their own icon. */
.otl { margin: 12px 0 0; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.otl > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 8px 14px;
  font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; border-radius: 14px;
}
.otl > summary::-webkit-details-marker { display: none; }
.otl > summary::after {
  content: ""; flex: 0 0 9px; width: 9px; height: 9px; margin-left: auto;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg) translateY(-2px);
}
.otl[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.otl-now { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--navy-tint); color: var(--navy); white-space: nowrap; }
.otl-steps { list-style: none; margin: 0; padding: 4px 14px 14px; }
.otl-step { position: relative; display: flex; gap: 12px; padding-bottom: 14px; }
.otl-step:last-child { padding-bottom: 0; }
.otl-step:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--line); }
.otl-step.done:not(:last-child)::before { background: var(--navy); }
.otl-dot { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 2px solid var(--muted); }
.otl-dot svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.otl-step.done .otl-dot { background: var(--navy); border-color: var(--navy); color: var(--white); }
.otl-step.current .otl-dot { background: var(--amber); border-color: var(--navy); color: var(--navy); }
.otl-step.otl-alert.done .otl-dot { background: var(--white); border-color: var(--navy); color: var(--navy); }
.otl-body { min-width: 0; padding-top: 3px; }
.otl-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 14px; color: var(--ink); }
.otl-state { font-size: 12px; font-weight: 700; color: var(--muted); }
.otl-step.current .otl-state { color: var(--navy); background: var(--amber-tint); padding: 1px 8px; border-radius: 999px; }
.otl-time { font-size: 13px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 2px; }
.otl-detail { font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 2px; overflow-wrap: anywhere; }
.otl-step.next .otl-label strong { font-weight: 600; color: var(--muted); }
.ord-no { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* ---- Help Centre: quick links and the contact form ---- */
.help-quick { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 32px; padding: 0; border: 0; }
@media (min-width: 600px) { .help-quick { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .help-quick { grid-template-columns: repeat(4, 1fr); } }
.info-page .help-quick a { display: flex; flex-direction: column; gap: 2px; min-height: 64px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); }
.info-page .help-quick a:hover { border-color: var(--navy); }
.help-quick strong { font-size: 16px; }
.help-quick span { font-size: 14px; font-weight: 500; color: var(--muted); }

.help-form, .help-sent { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 20px 16px; }
@media (min-width: 768px) { .help-form, .help-sent { padding: 28px; } }
.help-form[hidden], .help-sent[hidden] { display: none; }
.hf-field { margin: 0 0 20px; }
.hf-label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.hf-optional { font-weight: 500; color: var(--muted); }
.hf-input {
  display: block; width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px;
  border: 1.5px solid var(--muted); background: var(--white); color: var(--ink);
  font: 400 16px 'Sora', sans-serif;
}
.hf-input:focus { border-color: var(--navy); }
.hf-short { max-width: 240px; text-transform: uppercase; letter-spacing: 0.04em; }
.hf-short::placeholder { text-transform: none; letter-spacing: 0; }
.hf-textarea { min-height: 148px; resize: vertical; line-height: 1.5; }
.hf-help { margin: 6px 0 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.hf-error { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--err); line-height: 1.45; }
.hf-error::before { content: "!"; flex: 0 0 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--err); color: var(--white); font-size: 12px; font-weight: 800; margin-top: 1px; }
.hf-error[hidden] { display: none; }
.hf-field.has-error .hf-input { border: 2px solid var(--err); }
.hf-who { margin: 0 0 20px; padding: 12px 14px; border-radius: 12px; background: var(--navy-tint); font-size: 15px; font-weight: 600; }
.hf-summary { margin: 0 0 20px; padding: 14px 16px; border: 2px solid var(--err); border-radius: 12px; background: var(--white); }
.hf-summary h3 { font-size: 17px; margin-bottom: 6px; }
.hf-summary ul { margin: 0; padding-left: 20px; }
.hf-summary li { font-size: 15px; }
.info-page .hf-summary a { color: var(--err); display: inline-block; padding: 4px 0; }
.hf-file-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hf-file, .hf-file-clear { min-height: 48px; }
.hf-file-name { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; min-width: 0; }
.hf-file-row input:focus-visible + .hf-file { outline: 2px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 5px var(--amber); }
.hf-submit { min-height: 48px; min-width: 180px; font-size: 15px; }
@media (max-width: 599px) { .hf-submit { width: 100%; } }
.help-sent h3 { font-size: 20px; margin-bottom: 6px; }
.help-sent p { margin: 0 0 16px; }
.help-sent .cm-btn { min-height: 48px; }

/* ---- Signup: "I agree to the Terms and Privacy Policy" ---- */
.terms-check { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; margin: 18px 0 0; padding: 12px; border-radius: 12px; background: var(--navy-tint); cursor: pointer; }
.modal-card .terms-check input[type="checkbox"] { flex: 0 0 24px; width: 24px; height: 24px; min-height: 24px; margin: 0; accent-color: var(--navy); border: none; cursor: pointer; }
.terms-check span { font-size: 14px; line-height: 1.5; color: var(--ink); padding: 1px 0; }
.terms-check a { color: var(--navy); font-weight: 700; text-underline-offset: 3px; }
.terms-check.has-error { outline: 2px solid var(--err); }
.terms-error { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--err); }
.terms-error[hidden] { display: none; }

/* ---- Privacy Policy and Terms ---- */
.legal-head { margin: 0 0 24px; }
.legal-head h1 { font-size: clamp(1.75rem, 1.45rem + 1.3vw, 2.5rem); line-height: 1.1; }
.legal-meta { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.legal-summary { background: var(--amber-tint); border-radius: 16px; padding: 16px 18px; margin: 0 0 24px; }
.legal-summary h2 { font-size: 18px; margin-bottom: 6px; }
.legal-summary ul { margin: 0; padding-left: 20px; }
.legal-toc { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 0 0 28px; }
.legal-toc h2 { font-size: 16px; margin-bottom: 6px; }
.legal-toc ol { margin: 0; padding-left: 22px; columns: 1; }
@media (min-width: 768px) { .legal-toc ol { columns: 2; column-gap: 32px; } }
.legal-toc li { break-inside: avoid; }
.info-page .legal-toc a { display: inline-block; padding: 10px 0; min-height: 44px; }
.legal-doc section { margin: 0 0 28px; scroll-margin-top: 88px; }
.legal-doc h2 { font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem); margin: 0 0 8px; }
.legal-doc h3 { font-size: 16px; margin: 14px 0 6px; }
.legal-doc ul, .legal-doc ol { padding-left: 22px; }
.legal-doc li { margin-bottom: 6px; }
.legal-table-wrap { overflow-x: auto; margin: 8px 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); line-height: 1.5; }
.legal-table th { background: var(--navy-tint); font-weight: 700; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-ph { background: var(--amber-tint); color: var(--navy); font-weight: 700; padding: 0 4px; border-radius: 4px; border: 1px dashed var(--navy); }
.legal-top { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }

/* ---- Site footer (js/layout.js) on every public page ----
   In the page flow, so on phones it sits above the fixed bottom nav:
   body keeps the nav's height (plus the iPhone home-bar area) free. */
.cm-footer { background: var(--navy); color: var(--white); margin-top: 40px; padding: 32px 0 24px; }
.cm-footer-inner { display: grid; gap: 20px; }
@media (min-width: 1024px) {
  .cm-footer-inner { grid-template-columns: minmax(280px, 1fr) auto; align-items: start; column-gap: 48px; }
  .cm-footer-copy { grid-column: 1 / -1; }
}
.cm-footer-logo { display: inline-flex; align-items: center; min-height: 44px; font-size: 22px; color: var(--white); text-decoration: none; }
a.cm-footer-logo { color: var(--white); }
.cm-footer-brand p { margin: 8px 0 0; max-width: 46ch; font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--white) 82%, var(--navy)); }
.cm-footer-nav { display: block; padding: 0; border: 0; }
.cm-footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
@media (min-width: 600px) { .cm-footer-nav ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cm-footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: flex-end; } }
.cm-footer-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--white); text-decoration: none; }
.cm-footer-nav a:hover { color: var(--amber); text-decoration: underline; text-underline-offset: 4px; }
.cm-footer-nav a[aria-current="page"] { color: var(--amber); }
.cm-footer :focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; box-shadow: none; }
.cm-footer-copy { margin: 4px 0 0; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--white) 20%, var(--navy)); font-size: 14px; color: color-mix(in srgb, var(--white) 82%, var(--navy)); }
@media (max-width: 1023px) { body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); } }

/* ---- Shared header: 44px targets, 3:1 search border ---- */
.header-action { min-height: 44px; min-width: 44px; justify-content: center; }
.header-search { min-height: 44px; border-color: var(--muted); }
.header-nav-inner a { display: inline-flex; align-items: center; min-height: 44px; }
.cm-footer-nav a { min-width: 44px; width: 100%; }
@media (min-width: 1024px) { .cm-footer-nav a { width: auto; padding: 0 4px; } }
.header-search { min-height: 48px; }

/* ---- Account settings: Sign out of all devices ---- */
.settings-text { margin: 6px 0 14px; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 60ch; }
.settings-danger { min-height: 48px; color: var(--black); border: 2px solid var(--black); background: var(--white); }
.settings-danger:hover:not([disabled]) { background: var(--page); }
.settings-danger svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cm-btn-danger-solid { background: var(--black); color: var(--white); min-height: 48px; }
.cm-btn-danger-solid:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 5px var(--amber); }
.confirm-sheet { width: min(440px, calc(100% - 32px)); border: 0; border-radius: 24px; padding: 24px; color: var(--ink); background: var(--white); box-shadow: 0 12px 40px color-mix(in srgb, var(--navy) 22%, transparent); }
.confirm-sheet::backdrop { background: color-mix(in srgb, var(--navy) 55%, transparent); }
.confirm-sheet h2 { font-size: 20px; margin-bottom: 8px; }
.confirm-sheet p { margin: 0; font-size: 15px; line-height: 1.55; }
.confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.confirm-actions .cm-btn { min-height: 48px; }
@media (max-width: 480px) { .confirm-actions .cm-btn { flex: 1 1 100%; } }
.cm-btn-ghost { min-height: 44px; }
/* Form fields across the account pages: 48px, 16px text (no zoom on iPhone), 3:1+ border. */
.cm-input, .cm-select { min-height: 48px; font-size: 16px; border-color: var(--muted); }
.cm-textarea { font-size: 16px; border-color: var(--muted); }
.cm-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 8px; }

/* ---------- Chat extras: I'm here, read ticks, safety warning, closed chat ---------- */
.ho-here { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 4px 0 10px; }
.ho-here .cm-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.ho-here small { font-size: 12px; color: var(--muted); }
.chat-msg.system.arrived { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: var(--ok-tint); color: var(--ink); font-weight: 600; }
.chat-msg.system.arrived small { flex-basis: 100%; }
.chat-msg.system.arrived svg { color: var(--ok); flex: 0 0 auto; }
.chat-tick { align-self: flex-end; margin-top: -4px; font-size: 11px; font-weight: 600; color: var(--muted); }
.chat-tick.seen { color: var(--navy); }
.chat-warn { margin: 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--amber-tint); border: 1px solid var(--amber); color: var(--ink); font-size: 13px; line-height: 1.45; }
.chat-warn p { margin: 0 0 8px; }
.chat-warn strong { display: block; margin-bottom: 2px; }
.chat-warn-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-warn-actions .cm-btn { min-height: 44px; }
.chat-closed { padding: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); text-align: center; }
.chat-closed strong { color: var(--ink); }


/* "Waking up CalebMart…" banner (js/wake.js), shown while the API starts. */
.cm-wake {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  z-index: 260; width: min(560px, calc(100% - 32px));
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--navy); color: var(--white);
  font-size: 13px; font-weight: 600; line-height: 1.4;
  box-shadow: 0 12px 30px -10px rgba(13, 21, 40, .45);
}
.cm-wake[hidden] { display: none; }
.cm-wake-text { flex: 1; }
.cm-wake-spin {
  flex: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--navy-soft); border-top-color: var(--amber);
  animation: cm-wake-spin .9s linear infinite;
}
.cm-wake[data-state="ready"] .cm-wake-spin,
.cm-wake[data-state="stuck"] .cm-wake-spin { animation: none; border-color: var(--amber); }
.cm-wake-btn {
  flex: none; min-height: 36px; padding: 0 14px; border: 0; border-radius: 9px;
  background: var(--amber); color: var(--navy); font: inherit; font-weight: 700; cursor: pointer;
}
.cm-wake-btn:hover { background: var(--amber-hover); }
.cm-wake-btn:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
@keyframes cm-wake-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cm-wake-spin { animation: none; border-color: var(--amber); } }
