/* ============================================================
   Spotbly — main stylesheet
   British marketplace with editorial weight. Fraunces display +
   Inter body. Warm cream paper. Terracotta accent with moss + ochre
   for context. Deliberate, not loud.
   ============================================================ */

:root {
  /* Type — display serif gives editorial weight to headings.
     Body is Inter for the modern, mobile-friendly read. */
  --font-display: "Newsreader", "Iowan Old Style", "Cambria", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Palette — warm British cream, deep ink, terracotta accent.
     Two supporting hues (ochre + moss) carry context like badges,
     verified ticks, condition kickers without colliding with accent. */
  --ink:        #0d0b09;       /* deepest text — near-black, never #000 */
  --ink-soft:   #2a2520;
  --ink-mute:   #6b6358;
  --paper:      #fbf8f3;       /* page background */
  --paper-2:    #f4ede0;       /* card hover, subtle fills */
  --paper-3:    #ede4d0;       /* slightly stronger fill */
  --rule:       #e0d4ba;       /* default 1px rule colour */
  --rule-soft:  #e0d4ba;       /* compat alias */
  --rule-strong:#0d0b09;
  --accent:     #d8542a;       /* terracotta — primary CTA, accents */
  --accent-2:   #a13a13;       /* darker terracotta — hover, focus */
  --accent-3:   #f4a98b;       /* lighter terracotta — focus rings */
  --accent-tint:rgba(216,84,42,.08);
  --ochre:      #b88a3a;       /* badge / featured */
  --ochre-tint: rgba(184,138,58,.10);
  --moss:       #5d6e3e;       /* verified, success */
  --moss-tint:  rgba(93,110,62,.10);

  --warning:    #b27500;
  --success:    #5d6e3e;       /* aligned to moss */
  --danger:     #a8231a;

  /* Layout */
  --max-w:      1280px;
  --gutter:     clamp(16px, 4vw, 36px);
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* Elevation — soft warm shadows, never harsh greys */
  --shadow-sm:  0 1px 2px rgba(45,30,20,.04), 0 1px 1px rgba(45,30,20,.04);
  --shadow:     0 4px 14px rgba(45,30,20,.06), 0 1px 2px rgba(45,30,20,.04);
  --shadow-lg:  0 16px 40px rgba(45,30,20,.10), 0 4px 12px rgba(45,30,20,.06);
  --shadow-xl:  0 24px 60px rgba(45,30,20,.14), 0 8px 24px rgba(45,30,20,.08);

  /* Motion */
  --ease:       cubic-bezier(.2,.8,.2,1);
  --ease-out:   cubic-bezier(0,0,.2,1);
  --ease-in-out:cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-2); }
hr { border: 0; border-top: 1px solid var(--rule-soft); margin: 32px 0; }

/* Buttons. Two flavours: solid (CTA) and ghost (secondary). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.005em;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform .2s var(--ease), background .2s var(--ease),
              color .2s var(--ease), border-color .2s var(--ease),
              box-shadow .2s var(--ease);
  position: relative;
}
.btn:hover  { background: var(--accent); border-color: var(--accent); color: var(--paper); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--accent-3), var(--shadow-sm);
}
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); box-shadow: none; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn--accent:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--paper); }
.btn--accent:focus-visible { box-shadow: 0 0 0 3px var(--accent-3), var(--shadow); }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 14px; font-size: 13px; }
.btn--lg { padding: 18px 28px; font-size: 16px; border-radius: var(--radius-lg); }

/* Forms. Generous, editorial. */
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.005em;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 8px;
  font-family: var(--font-body);
}
.field__hint { display: block; font-size: 12px; font-weight: 400; color: var(--ink-mute); margin-top: 2px; letter-spacing: 0; text-transform: none; }
.input, .select, .textarea {
  font-family: inherit;
  font-size: 16px;
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color .15s var(--ease),
              background .15s var(--ease),
              box-shadow .15s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-mute); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.field { margin-bottom: 20px; }
.field--error .input,
.field--error .select,
.field--error .textarea { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 13px; margin-top: 6px; }
.field__help  { color: var(--ink-mute); font-size: 13px; margin-top: 6px; }

.checkbox { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--accent); }

/* Layout shell */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

/* Header — slim single-row v4 masthead */
.site-header {
  background: rgba(251,248,243,.85);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: .5px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 60px;
}
.site-header__brand {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
}
.brand-dot {
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  vertical-align: baseline;
  margin-left: 3px;
  position: relative;
  top: -.05em;
  flex-shrink: 0;
}
.site-header__nav-inline {
  display: none;
  gap: 24px;
  margin-left: 32px;
  margin-right: auto;
}
.site-header__nav-inline a {
  font-size: 14px; font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color .15s;
}
.site-header__nav-inline a::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.site-header__nav-inline a:hover { color: var(--ink); }
.site-header__nav-inline a:hover::after { transform: scaleX(1); }

.site-header__right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.site-header__signin {
  display: none;
  font-size: 14px; font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 12px;
  transition: color .15s;
}
.site-header__signin:hover { color: var(--ink); }

.post-pill {
  background: var(--ink);
  color: var(--paper);
  padding: 9px 16px;
  font-weight: 600;
  font-size: 13px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .2s var(--ease), background .2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.post-pill:hover { background: var(--accent); color: var(--paper); transform: translateY(-1px); }
.post-pill__plus { font-size: 16px; line-height: 0; font-weight: 300; }
.post-pill--block { display: flex; justify-content: center; padding: 14px; text-align: center; border-radius: 12px; }

.menu-toggle-v4 {
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  color: var(--ink);
}
.menu-toggle-v4:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.menu-toggle-v4 svg { width: 16px; height: 16px; }

@media (min-width: 760px) {
  .site-header__inner { height: 64px; }
  .site-header__brand { font-size: 24px; }
  .site-header__nav-inline { display: flex; }
  .site-header__signin { display: inline-flex; }
  .menu-toggle-v4 { display: none; }
  .post-pill { padding: 10px 18px; }
}

/* Mobile drawer */
.site-drawer {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 100;
  transform: translateY(-100%);
  transition: transform .4s var(--ease);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.site-drawer.is-open { transform: translateY(0); }
.site-drawer__top {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 var(--gutter);
  border-bottom: .5px solid var(--rule);
}
.site-drawer__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -.022em;
  color: var(--ink);
  text-decoration: none;
  font-variation-settings: "opsz" 60;
}
.site-drawer__close {
  width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); cursor: pointer;
}
.site-drawer__close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.site-drawer__nav {
  flex: 1;
  padding: 24px var(--gutter);
}
.site-drawer__nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0;
  border-bottom: .5px solid var(--rule);
  font-size: 22px; font-weight: 600;
  letter-spacing: -.018em;
  color: var(--ink);
  text-decoration: none;
  transition: color .15s, padding-left .25s;
}
.site-drawer__nav a:hover,
.site-drawer__nav a:active {
  color: var(--accent);
  padding-left: 6px;
}
.site-drawer__nav a .arr {
  font-size: 14px; color: var(--ink-mute); font-weight: 400;
}
.site-drawer__foot {
  padding: 20px var(--gutter);
  border-top: .5px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-drawer__signin {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  text-decoration: none;
}
.site-drawer__signin:hover { background: var(--paper-2); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--ink);
  color: var(--paper-2);
  margin-top: 80px;
  padding: 56px 0 32px;
}
.site-footer a { color: var(--paper-2); text-decoration: none; }
.site-footer a:hover { color: var(--paper); }
.site-footer__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 720px) {
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
}
.site-footer__brand {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -.04em;
  color: var(--paper);
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}
.site-footer__brand .brand-dot { background: var(--accent); width: 10px; height: 10px; margin-left: 4px; top: -.06em; }
.site-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--paper); margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; font-size: 14px; line-height: 2; }
.site-footer__legal { border-top: 1px solid #2a2622; margin-top: 40px; padding-top: 24px; font-size: 12px; color: var(--ink-mute); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }

/* Editorial masthead (homepage) */
.masthead { padding: 80px 0 56px; border-bottom: 1px solid var(--rule); }
.masthead__eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .15em; color: var(--accent); font-weight: 500; }
.masthead__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.025em;
  margin: 16px 0 24px;
  max-width: 880px;
}
.masthead__title em { font-style: italic; color: var(--accent); }
.masthead__sub { font-size: 18px; color: var(--ink-soft); max-width: 620px; line-height: 1.55; margin-bottom: 36px; }

/* Hero search bar */
.hero-search {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 8px;
  background: #fff;
  padding: 8px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  max-width: 820px;
}
.hero-search .input,
.hero-search .select { border: 0; padding: 14px 16px; background: transparent; }
.hero-search .btn { white-space: nowrap; padding: 14px 24px; }
@media (max-width: 720px) {
  .hero-search { grid-template-columns: 1fr; }
}

/* Section headings */
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section__eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .15em; color: var(--accent); font-weight: 600; font-family: var(--font-body); }
.section__title {
  font-family: var(--font-display) !important;
  font-size: clamp(30px, 4.4vw, 48px) !important;
  font-weight: 500 !important;
  line-height: 1.05 !important;
  letter-spacing: -.022em !important;
  margin: 12px 0 8px !important;
  color: var(--ink) !important;
  font-variation-settings: "opsz" 72;
}
.section__title em, .section__title i, .section__title .ac { color: var(--accent); font-style: italic; font-weight: 500; }
.section__sub { color: var(--ink-soft); font-size: 15px; line-height: 1.55; margin: 0 0 28px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* Category tiles */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cat-tile {
  background: var(--paper);
  padding: 24px;
  text-decoration: none;
  color: var(--ink);
  transition: background .15s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100px;
}
.cat-tile:hover { background: #fff; color: var(--accent-2); }
.cat-tile__name { font-family: var(--font-display); font-size: 22px; line-height: 1.1; letter-spacing: -.01em; }
.cat-tile__hint { font-size: 12px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .08em; }

/* ============================================================
   Listing card — v4 editorial-modern design
   ============================================================ */
.list-cards, .list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 12px;
}
@media (min-width: 600px) {
  .list-cards, .list-grid { grid-template-columns: repeat(3, 1fr); gap: 32px 18px; }
}
@media (min-width: 980px) {
  .list-cards, .list-grid { grid-template-columns: repeat(4, 1fr); gap: 36px 24px; }
}

.list-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .3s var(--ease);
}
.list-card:hover { transform: translateY(-3px); }

.list-card__media {
  position: relative;
  margin-bottom: 8px;
}
.list-card__img {
  aspect-ratio: 1 / 1;
  background: var(--paper-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
/* Skeleton placeholder colour, set via --skel inline var on each card */
.list-card__img:not(:has(img))::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--skel, var(--paper-2));
}
.list-card__img img,
.list-card__img svg {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s ease;
}
.list-card:hover .list-card__img img,
.list-card:hover .list-card__img svg { transform: scale(1.05); }

.list-card__flag {
  position: absolute; top: 10px; left: 10px;
  background: #fff;
  padding: 5px 10px;
  font-size: 10px;
  letter-spacing: .06em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  z-index: 2;
}
.list-card__flag--featured { background: var(--ink); color: var(--paper); }
.list-card__flag--drop     { background: var(--accent); color: #fff; }

.list-card__fav {
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px; border-radius: 999px;
  background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  border: 0; cursor: pointer;
  transition: all .15s;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 3;
}
.list-card__fav:hover { background: #fff; color: var(--accent); transform: scale(1.1); }
.list-card__fav.is-saved { color: var(--accent); }
.list-card__fav.is-saved svg { fill: var(--accent); }
.list-card__fav svg { width: 17px; height: 17px; stroke-width: 1.6; }

.list-card__photos {
  position: absolute; bottom: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(15,13,11,.65);
  color: #fff;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 2;
  font-variant-numeric: tabular-nums;
}
.list-card__photos svg { width: 11px; height: 11px; stroke-width: 2; }

/* Message-seller button: collapsed by default, expands on hover (desktop);
   always visible below photo on touch. */
.list-card__msg {
  background: #fff; color: var(--ink);
  border: 0; cursor: pointer;
  padding: 9px 12px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  width: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  margin-top: 8px;
  opacity: 0;
  transform: translateY(-44px);
  max-height: 0;
  overflow: hidden;
  padding-top: 0; padding-bottom: 0;
  transition: transform .28s var(--ease),
              opacity .2s,
              max-height .28s var(--ease),
              padding .28s var(--ease),
              background .15s, color .15s;
}
.list-card__msg svg { width: 14px; height: 14px; stroke-width: 2; }
.list-card__msg:hover { background: var(--ink); color: var(--paper); }
.list-card:hover .list-card__msg {
  opacity: 1;
  transform: translateY(0);
  max-height: 60px;
  padding-top: 9px;
  padding-bottom: 9px;
}
@media (hover: none) {
  .list-card__msg {
    opacity: 1;
    transform: none;
    max-height: none;
    padding: 11px 12px;
    width: 100%;
    background: #fff;
    border: 1px solid var(--rule);
    box-shadow: none;
    overflow: visible;
  }
  .list-card__msg:active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
}

.list-card__cond {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
  line-height: 1.2;
}
.list-card__cond.is-new { color: var(--moss); }
@media (min-width: 980px) { .list-card__cond { font-size: 11px; } }

.list-card__title {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -.012em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
@media (min-width: 980px) {
  .list-card__title { font-size: 15px; margin-bottom: 10px; }
}

.list-card__sub {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--ink-mute); font-weight: 500;
  margin-bottom: 6px;
  overflow: hidden;
}
.list-card__loc {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}
.list-card__sep {
  width: 2px; height: 2px; border-radius: 50%;
  background: var(--ink-mute);
  flex-shrink: 0;
  opacity: .6;
}
.list-card__time { flex-shrink: 0; color: var(--ink-mute); }
@media (min-width: 980px) { .list-card__sub { font-size: 12px; margin-bottom: 8px; } }

.list-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.list-card__price {
  font-weight: 800; color: var(--ink);
  font-size: 16px;
  letter-spacing: -.018em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.list-card__was {
  font-size: 11px; font-weight: 500;
  color: var(--ink-mute);
  text-decoration: line-through;
  margin-left: 6px;
  letter-spacing: 0;
}
@media (min-width: 980px) { .list-card__price { font-size: 18px; } }

.list-card__verified {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 600;
  color: var(--moss);
  letter-spacing: .04em;
  flex-shrink: 0;
}
.list-card__verified svg { width: 12px; height: 12px; stroke-width: 2.5; }
@media (min-width: 980px) { .list-card__verified { font-size: 11px; } }

/* Browse layout */
.browse {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
  padding: 32px 0 80px;
}
@media (max-width: 880px) {
  .browse { grid-template-columns: 1fr; }
  /* Filters above listings on mobile, collapsed by default unless filters
     are active. */
  .browse__sidebar { order: 0; }
}
.browse__sidebar {
  border-right: 1px solid var(--rule-soft);
  padding-right: 24px;
}
@media (max-width: 880px) {
  .browse__sidebar { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--rule-soft); padding-bottom: 12px; margin-bottom: 16px; }
}

/* Collapsible filter panel — controlled via data-open attribute set
   by the toggle button. On desktop the toggle is hidden and the body
   is always visible regardless of state, so the panel behaves like a
   plain sidebar. On mobile the toggle shows and the body collapses
   when data-open is absent. */
.browse-filters__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #fff;
  user-select: none;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
}
.browse-filters__toggle svg { color: var(--ink-soft); }
.browse-filters__chev {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-mute);
  transition: transform .2s var(--ease);
}
.browse-filters[data-open] .browse-filters__chev { transform: rotate(180deg); }
.browse-filters__body { display: none; margin-top: 16px; }
.browse-filters[data-open] .browse-filters__body { display: block; }

@media (min-width: 881px) {
  /* Desktop: hide the toggle button, always show the body. */
  .browse-filters__toggle { display: none; }
  .browse-filters__body { display: block !important; margin-top: 0; }
}
.browse__title {
  font-family: var(--font-display) !important;
  font-size: clamp(28px, 3.6vw, 40px) !important;
  font-weight: 500 !important;
  letter-spacing: -.018em !important;
  line-height: 1.1 !important;
  margin: 0 0 4px !important;
  color: var(--ink) !important;
  font-variation-settings: "opsz" 60;
}
.browse__count { font-size: 14px; color: var(--ink-mute); margin-bottom: 24px; }

.filter-group { margin-bottom: 28px; }
.filter-group h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 12px;
  color: var(--ink-soft);
}
.filter-group .input,
.filter-group .select { padding: 10px 12px; font-size: 14px; }

.filter-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 12px;
  background: var(--paper-2);
  color: var(--ink);
  border-radius: 100px;
  text-decoration: none;
}
.filter-pill:hover { background: var(--ink); color: var(--paper); }

.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--rule-soft);
  padding-bottom: 16px;
  margin-bottom: 32px;
}
.sort-bar .select { width: auto; padding: 8px 28px 8px 12px; font-size: 14px; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
  font-size: 14px;
}
.pagination a, .pagination span {
  padding: 8px 12px;
  border: 1px solid var(--rule-soft);
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border-radius: var(--radius);
}
.pagination a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination .is-current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination .is-disabled { opacity: .4; pointer-events: none; }

/* Listing detail */
.detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; padding: 32px 0 80px; }
@media (max-width: 880px) { .detail { grid-template-columns: 1fr; gap: 32px; } }
.detail__breadcrumb { font-size: 13px; color: var(--ink-mute); margin-bottom: 12px; }
.detail__breadcrumb a { color: var(--ink-mute); text-decoration: none; }
.detail__breadcrumb a:hover { color: var(--ink); }
.detail__title {
  font-family: var(--font-display) !important;
  font-size: clamp(30px, 4vw, 44px) !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  letter-spacing: -.018em !important;
  margin: 0 0 12px !important;
  color: var(--ink) !important;
  font-variation-settings: "opsz" 72;
}

.attr-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--rule);
  margin-top: 24px;
}
.attr-list dt, .attr-list dd {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  margin: 0;
}
.attr-list dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); font-weight: 600; }
.attr-list dd { font-size: 15px; color: var(--ink); text-align: right; font-weight: 500; }

.detail__body { margin-top: 36px; }
.detail__body h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.012em;
  margin: 0 0 14px;
  color: var(--ink);
}
.detail__body p { font-size: 16px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 14px; }

.seller-card {
  border: 1px solid var(--rule);
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}
.seller-card__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.012em;
  margin: 0 0 4px;
  color: var(--ink);
}
.seller-card__sub  { font-size: 13px; color: var(--ink-mute); margin-bottom: 18px; }
.seller-card .btn  { width: 100%; margin-bottom: 8px; }

/* Multi-step post-ad */
.steps {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: var(--ink-mute);
  margin: 0 0 28px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.steps::-webkit-scrollbar { display: none; }
.steps__item { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.steps__item.is-active { color: var(--ink); }
.steps__item.is-active .steps__num { background: var(--accent); color: #fff; border-color: var(--accent); }
.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}
.steps__sep { color: var(--rule); flex-shrink: 0; }

/* Post-an-ad flow — defensive against theme bleed.
   Uses .post-form .post-form__h instead of bare h2 so theme h2 styles
   can't override us. */
.post-form {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 0 64px;
}
@media (min-width: 760px) { .post-form { padding: 48px 0 80px; } }

.post-form .post-form__h,
.post-form h2 {
  font-family: var(--font-display) !important;
  font-size: clamp(26px, 3.4vw, 36px) !important;
  font-weight: 500 !important;
  letter-spacing: -.018em !important;
  line-height: 1.15 !important;
  color: var(--ink) !important;
  margin: 0 0 10px !important;
  text-transform: none !important;
  font-variation-settings: "opsz" 60;
}
.post-form .post-form__sub,
.post-form .sub {
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  font-weight: 400 !important;
  color: var(--ink-soft) !important;
  margin: 0 0 28px !important;
  max-width: 560px !important;
}

.post-form__back { margin-bottom: 12px; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-mute);
  text-decoration: none;
  padding: 6px 10px 6px 0;
  border-radius: 6px;
  transition: color .15s, transform .15s;
}
.back-link:hover { color: var(--ink); transform: translateX(-2px); }

.post-form__actions {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  margin-top: 32px;
}

/* Stage 1 — big tappable parent tiles */
.cat-tile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
@media (min-width: 600px) {
  .cat-tile-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
.cat-tile-v4 {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 18px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s, transform .15s, box-shadow .15s, background .15s;
  position: relative;
}
.cat-tile-v4:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
}
.cat-tile-v4__icon {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.cat-tile-v4:hover .cat-tile-v4__icon { background: var(--accent); color: #fff; }
.cat-tile-v4__icon svg { width: 22px; height: 22px; }
.cat-tile-v4__name {
  font-size: 16px; font-weight: 600;
  letter-spacing: -.01em;
  flex: 1;
}
.cat-tile-v4__arr {
  color: var(--ink-mute);
  font-size: 18px;
  transition: transform .2s, color .2s;
}
.cat-tile-v4:hover .cat-tile-v4__arr { color: var(--ink); transform: translateX(3px); }

/* Stage 2 — compact row list */
.cat-list {
  display: flex; flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.cat-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background .15s;
  margin: 0;
  /* defeat the global `label` text-transform/letter-spacing/font-size */
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.005em;
  text-transform: none;
  color: var(--ink);
}
.cat-row:last-child { border-bottom: 0; }
.cat-row:hover { background: var(--paper-2); }
.cat-row input[type="radio"] {
  width: 18px; height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}
.cat-row__label {
  font-size: 15px; font-weight: 500;
  flex: 1;
  letter-spacing: -.005em;
}
.cat-row__hint {
  font-size: 12px; color: var(--ink-mute); font-weight: 500;
  text-transform: uppercase; letter-spacing: .04em;
}
.cat-row:has(input:checked) { background: var(--accent-tint); }
.cat-row:has(input:checked) .cat-row__label { color: var(--accent-2); font-weight: 600; }

.cat-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin-top: 16px; }
.cat-picker label { margin: 0; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 15px; }
.cat-picker .cat-radio {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  background: var(--paper);
  transition: all .15s var(--ease);
  font-weight: 500;
  color: var(--ink);
}
.cat-picker .cat-radio:hover { background: #fff; }
.cat-picker input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.cat-picker input[type="radio"]:checked + .cat-radio {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; }
.plan {
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: #fff;
  position: relative;
  transition: all .15s var(--ease);
}
.plan:hover { border-color: var(--ink); }
.plan input[type="radio"] { position: absolute; opacity: 0; }
.plan input[type="radio"]:checked + label .plan__inner {
  outline: 2px solid var(--accent);
  outline-offset: 8px;
  border-radius: var(--radius);
}
.plan label { margin: 0; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink); cursor: pointer; }
.plan__name  { font-family: var(--font-display); font-size: 22px; letter-spacing: -.01em; margin-bottom: 4px; }
.plan__price { font-family: var(--font-display); font-size: 32px; color: var(--accent); margin-bottom: 16px; }
.plan__features { font-size: 14px; color: var(--ink-soft); list-style: none; padding: 0; margin: 0; }
.plan__features li { padding: 4px 0; }
.plan__features li::before { content: '✓ '; color: var(--success); margin-right: 4px; }

/* Auth pages */
.auth { max-width: 440px; margin: 80px auto; }
.auth h1 {
  font-family: var(--font-display) !important;
  font-size: clamp(28px, 3.5vw, 36px) !important;
  font-weight: 500 !important;
  letter-spacing: -.018em !important;
  line-height: 1.15 !important;
  margin: 0 0 10px !important;
  color: var(--ink) !important;
  font-variation-settings: "opsz" 60;
}
.auth__sub { color: var(--ink-soft); margin-bottom: 32px; }
.auth__alt { text-align: center; margin-top: 24px; font-size: 14px; color: var(--ink-soft); }
.auth__alt a { color: var(--accent); }
.alert {
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  font-size: 14px;
}
.alert--error   { background: #fde8e6; color: var(--danger); border: 1px solid #f5bbb7; }
.alert--success { background: #e3f2e7; color: var(--success); border: 1px solid #b8dabf; }
.alert--warn    { background: #fff5e0; color: #7a5400; border: 1px solid #f1d692; }
.alert--info    { background: var(--accent-tint); color: var(--accent-2); border: 1px solid #f0baa3; }

/* Static editorial pages */
.editorial { max-width: 720px; margin: 64px auto; padding: 0 var(--gutter); }
.editorial p  { font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.editorial ul { font-size: 17px; line-height: 1.9; color: var(--ink-soft); padding-left: 20px; }

/* Dashboard */
.dash { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding: 40px 0 80px; }
@media (max-width: 880px) { .dash { grid-template-columns: 1fr; gap: 24px; } }
.dash-nav { display: flex; flex-direction: column; gap: 4px; font-size: 14px; border-right: 1px solid var(--rule-soft); padding-right: 24px; }
@media (max-width: 880px) { .dash-nav { flex-direction: row; flex-wrap: wrap; border-right: 0; padding-right: 0; border-bottom: 1px solid var(--rule-soft); padding-bottom: 16px; } }
.dash-nav a { padding: 10px 12px; text-decoration: none; color: var(--ink-soft); border-radius: var(--radius); }
.dash-nav a:hover { background: var(--paper-2); color: var(--ink); }
.dash-nav a.is-active { background: var(--ink); color: var(--paper); }

.dash__title {
  font-family: var(--font-display) !important;
  font-size: clamp(28px, 3.6vw, 40px) !important;
  font-weight: 500 !important;
  letter-spacing: -.018em !important;
  line-height: 1.1 !important;
  margin: 0 0 28px !important;
  color: var(--ink) !important;
  font-variation-settings: "opsz" 60;
}

.kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 40px; }
.kpi__card { border: 1px solid var(--rule-soft); padding: 20px; border-radius: var(--radius-lg); background: #fff; }
.kpi__label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); margin-bottom: 6px; }
.kpi__value { font-family: var(--font-display); font-size: 32px; letter-spacing: -.01em; }

.listing-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.listing-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); padding: 12px 8px; border-bottom: 1px solid var(--rule); font-weight: 500; }
.listing-table td { padding: 16px 8px; border-bottom: 1px solid var(--rule-soft); }
.listing-table tr:hover { background: var(--paper-2); }

.status-badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 3px;
  font-weight: 500;
}
.status-active   { background: #e3f2e7; color: var(--success); }
.status-pending_payment, .status-pending_moderation { background: #fff4e1; color: var(--warning); }
.status-draft    { background: var(--paper-2); color: var(--ink-mute); }
.status-expired, .status-user_paused { background: var(--paper-2); color: var(--ink-soft); }
.status-rejected, .status-archived   { background: #fde8e6; color: var(--danger); }

/* 404 */
.error-page { text-align: center; padding: 120px var(--gutter); }
.error-page__code { font-family: var(--font-display); font-size: 120px; letter-spacing: -.04em; line-height: 1; color: var(--accent); margin: 0; }
.error-page__msg { font-size: 20px; color: var(--ink-soft); margin: 16px 0 32px; }

/* Honest helpers */
.text-center { text-align: center; }
.muted { color: var(--ink-mute); }
.small { font-size: 13px; }
.flex { display: flex; gap: 16px; align-items: center; }
.flex--between { justify-content: space-between; }
.mb-0 { margin-bottom: 0 !important; }
.mt-32 { margin-top: 32px; }

/* Page-load staggered reveal (subtle) */
@media (prefers-reduced-motion: no-preference) {
  .stagger > * { opacity: 0; transform: translateY(8px); animation: rise .6s var(--ease) forwards; }
  .stagger > *:nth-child(1) { animation-delay: .04s; }
  .stagger > *:nth-child(2) { animation-delay: .08s; }
  .stagger > *:nth-child(3) { animation-delay: .12s; }
  .stagger > *:nth-child(4) { animation-delay: .16s; }
  .stagger > *:nth-child(5) { animation-delay: .20s; }
  .stagger > *:nth-child(6) { animation-delay: .24s; }
  .stagger > *:nth-child(n+7) { animation-delay: .28s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* Photo uploader (post-an-ad step 2) */
.photo-uploader { margin-top: 12px; }
.photo-uploader__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.photo-uploader__list:empty { display: none; }
.photo-uploader__item {
  position: relative;
  aspect-ratio: 1;
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.photo-uploader__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-uploader__item:first-child::after {
  content: 'Cover';
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 2px 6px;
  border-radius: 2px;
}
.photo-uploader__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(21,17,13,.8);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
}
.photo-uploader__remove:hover { background: var(--accent); }
.photo-uploader__drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 32px 24px;
  border: 2px dashed var(--rule-soft);
  border-radius: var(--radius-lg);
  background: var(--paper);
  cursor: pointer;
  text-align: center;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.photo-uploader__drop:hover,
.photo-uploader__drop.is-dragover {
  border-color: var(--accent);
  background: #fff;
}
.photo-uploader__icon { font-family: var(--font-display); font-size: 32px; color: var(--ink-mute); line-height: 1; }
.photo-uploader__cta  { font-weight: 500; color: var(--ink); }
.photo-uploader__status { font-size: 13px; color: var(--ink-mute); margin-top: 10px; min-height: 18px; }
.photo-uploader__status.is-error { color: var(--danger); }

/* Bookmark button states */
[data-bookmark-toggle].is-bookmarked .bookmark-icon { color: var(--accent); }
[data-bookmark-toggle].is-bookmarked .bookmark-icon::before { content: '♥'; }
[data-bookmark-toggle] .bookmark-icon::before { content: '♡'; }
[data-bookmark-toggle] .bookmark-icon { display: inline-block; margin-right: 4px; }

/* ============================================================
   Phase 6 — Messaging & trust
   ============================================================ */

/* Messages layout (dashboard) */
.msg-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  background: #fff;
  min-height: 520px;
  overflow: hidden;
}
@media (max-width: 720px) {
  .msg-layout { grid-template-columns: 1fr; }
  .msg-pane:not(:has(.msg-pane__head)) { display: none; }
}
.msg-sidebar {
  border-right: 1px solid var(--rule-soft);
  overflow-y: auto;
  max-height: 640px;
}
.msg-thread {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule-soft);
  text-decoration: none;
  color: inherit;
  transition: background .15s var(--ease);
}
.msg-thread:hover { background: var(--paper-2); color: var(--ink); }
.msg-thread.is-active { background: var(--paper-2); }
.msg-thread__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.msg-thread.is-unread .msg-thread__top strong { color: var(--ink); }
.msg-thread__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.msg-thread__title { margin-top: 4px; }
.msg-thread__snip  { margin-top: 4px; }

.msg-pane {
  display: flex;
  flex-direction: column;
  min-height: 520px;
}
.msg-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.msg-pane__head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule-soft);
}
.msg-pane__body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  max-height: 480px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg-bubble {
  max-width: 70%;
  padding: 10px 14px;
  background: var(--paper-2);
  border-radius: 12px 12px 12px 4px;
  align-self: flex-start;
}
.msg-bubble.is-mine {
  background: var(--ink);
  color: var(--paper);
  align-self: flex-end;
  border-radius: 12px 12px 4px 12px;
}
.msg-bubble.is-mine .msg-bubble__meta { color: rgba(251, 250, 246, 0.6); }
.msg-bubble__body { font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg-bubble__meta { margin-top: 4px; font-size: 11px; }

.msg-pane__compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
  padding: 12px 16px;
  border-top: 1px solid var(--rule-soft);
  background: var(--paper);
}
.msg-pane__compose .textarea { min-height: 56px; resize: vertical; }
.msg-pane__compose .btn { align-self: stretch; }
[data-msg-status] { grid-column: 1 / -1; min-height: 16px; }
[data-msg-status].is-error { color: var(--danger); }

/* Generic modal (used for Message-from-listing + Report) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(21, 17, 13, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
}
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 32px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.modal h2 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -.01em;
  margin: 0 0 8px;
  font-weight: 500;
}
.modal__sub { color: var(--ink-soft); margin-bottom: 20px; font-size: 14px; }
.modal__close {
  background: transparent;
  border: 0;
  font-size: 20px;
  color: var(--ink-mute);
  cursor: pointer;
  float: right;
  margin-top: -8px;
  margin-right: -8px;
  line-height: 1;
}
.modal__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* Phone reveal */
[data-reveal-phone].is-revealed .reveal-phone-label { color: var(--accent); font-weight: 500; }

/* ============================================================
   Phase 7 — Polish
   ============================================================ */

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 16px 0;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, .15);
}
.cookie-banner a { color: var(--accent); }
.cookie-banner__inner {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}
.cookie-banner__msg {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  max-width: 720px;
  color: var(--paper-2);
}
/* Two versions of the message — short for mobile, long for desktop.
   Default: show the long one. The mobile media query swaps them. */
.cookie-banner__short { display: none; }
.cookie-banner__long  { display: inline; }
.cookie-banner__actions { display: flex; gap: 8px; }
.cookie-banner__actions .btn--ghost {
  color: var(--paper);
  border-color: rgba(255,255,255,.2);
}
.cookie-banner__actions .btn--ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.3);
  color: var(--paper);
}

/* Verification badges */
.badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 3px;
  white-space: nowrap;
}
.badge--verified {
  background: var(--success);
  color: #fff;
}
.badge--email {
  background: var(--paper-2);
  color: var(--ink-mute);
  font-size: 13px;
  padding: 1px 6px;
  letter-spacing: 0;
}

/* ============================================================
   v4 design — hero gradient, stat strip, category icons,
   featured slider, credo
   ============================================================ */

/* ---- HERO ---- */
.hero-v4 {
  position: relative;
  overflow: hidden;
  padding: 70px 0 80px;
  isolation: isolate;
}
.hero-v4__bg, .hero-v4__bg-extra, .hero-v4__grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
.hero-v4__bg::before, .hero-v4__bg::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: .55;
  animation: hero-drift 22s ease-in-out infinite alternate;
}
.hero-v4__bg::before {
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle at center, var(--accent) 0%, transparent 65%);
  top: -15%; left: -10%; animation-delay: 0s;
}
.hero-v4__bg::after {
  width: 55vw; height: 55vw; max-width: 700px; max-height: 700px;
  background: radial-gradient(circle at center, var(--ochre) 0%, transparent 65%);
  bottom: -25%; right: -15%; animation-delay: -11s;
}
.hero-v4__bg-extra {
  width: 50vw; height: 50vw; max-width: 600px; max-height: 600px;
  border-radius: 50%; filter: blur(70px); opacity: .35;
  background: radial-gradient(circle at center, var(--moss) 0%, transparent 65%);
  top: 35%; left: 40%;
  animation: hero-drift 28s -5s ease-in-out infinite alternate;
}
.hero-v4__grain {
  opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}
@keyframes hero-drift {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(40px,-30px) scale(1.08); }
  100% { transform: translate(-30px,40px) scale(.94); }
}

.hero-v4__inner {
  max-width: 780px; margin: 0 auto; text-align: center;
  position: relative;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 7px 14px; border-radius: 999px;
  margin-bottom: 28px;
  opacity: 0; transform: translateY(-6px);
  animation: hero-rise .8s .1s both var(--ease);
}
.hero-kicker__pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  position: relative;
}
.hero-kicker__pulse::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: var(--accent); opacity: .45;
  animation: hero-pulse 2s ease-out infinite;
}
@keyframes hero-pulse {
  0% { transform: scale(.7); opacity: .6; }
  70% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}
.hero-v4__title {
  font-family: var(--font-display) !important;
  font-size: clamp(48px, 9vw, 96px) !important;
  line-height: .95 !important;
  font-weight: 600 !important;
  letter-spacing: -.025em !important;
  color: var(--ink) !important;
  margin: 0 0 28px !important;
  font-variation-settings: "opsz" 72; /* max optical size on Newsreader axis */
}
.hero-v4__accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
  position: relative;
  padding: 0 .04em;
}
.hero-v4__accent::after {
  content: ""; position: absolute;
  left: .04em; right: .04em; bottom: .02em; height: .06em;
  background: var(--accent); border-radius: 999px;
  transform: scaleX(0); transform-origin: left;
  animation: hero-drawline 1.2s 1.3s var(--ease) forwards;
  opacity: .6;
}
@keyframes hero-drawline { to { transform: scaleX(1); } }
.hero-v4__title .word {
  display: inline-block;
  opacity: 0; transform: translateY(.4em);
  animation: hero-rise .9s both var(--ease);
}
.hero-v4__title .word:nth-child(1) { animation-delay: .20s; }
.hero-v4__title .word:nth-child(2) { animation-delay: .30s; }
.hero-v4__title .word:nth-child(3) { animation-delay: .40s; }
.hero-v4__title .word:nth-child(4) { animation-delay: .50s; }
.hero-v4__title .word:nth-child(5) { animation-delay: .60s; }
.hero-v4__title .word:nth-child(6) { animation-delay: .72s; }
@keyframes hero-rise { to { opacity: 1; transform: translateY(0); } }

.hero-v4__lede {
  font-size: 17px; line-height: 1.55; font-weight: 400;
  color: var(--ink-soft);
  max-width: 540px; margin: 0 auto 36px;
  opacity: 0; transform: translateY(8px);
  animation: hero-rise .9s 1.0s both var(--ease);
}
.hero-v4__search {
  max-width: 600px; margin: 0 auto 24px;
  display: flex; align-items: stretch;
  background: #fff;
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 1px 0 rgba(15,13,11,.04), 0 12px 32px -8px rgba(15,13,11,.12), 0 0 0 1px var(--rule);
  opacity: 0; transform: translateY(8px);
  animation: hero-rise .9s 1.2s both var(--ease);
  transition: box-shadow .25s, transform .25s;
}
.hero-v4__search:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(15,13,11,.04), 0 24px 40px -10px rgba(15,13,11,.18), 0 0 0 1px var(--ink);
}
.hero-v4__search-icon {
  width: 44px; display: flex; align-items: center; justify-content: center;
  color: var(--ink-mute); flex-shrink: 0;
}
.hero-v4__search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-family: inherit; font-size: 15px;
  padding: 14px 4px; color: var(--ink); min-width: 0;
}
.hero-v4__search input::placeholder { color: var(--ink-mute); }
.hero-v4__search button {
  background: var(--ink); color: var(--paper);
  border: 0; border-radius: 999px; padding: 0 22px;
  font-family: inherit; font-weight: 600; font-size: 13px;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.hero-v4__search button:hover { background: var(--accent); }

.hero-v4__chips {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  opacity: 0; transform: translateY(8px);
  animation: hero-rise .9s 1.4s both var(--ease);
}
.hero-v4__chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; color: var(--ink-soft);
  padding: 7px 12px; background: rgba(255,255,255,.65);
  border: 1px solid var(--rule);
  border-radius: 999px;
  text-decoration: none;
  transition: all .15s;
}
.hero-v4__chip:hover {
  background: #fff; border-color: var(--ink); color: var(--ink);
  transform: translateY(-1px);
}
@media (min-width: 760px) {
  .hero-v4 { padding: 96px 0 110px; }
  .hero-v4__title { font-size: clamp(64px, 7vw, 96px); margin-bottom: 28px; }
  .hero-v4__lede { font-size: 19px; margin-bottom: 40px; }
}

/* ---- STAT STRIP ---- */
.strip-v4 {
  border-top: .5px solid var(--rule);
  border-bottom: .5px solid var(--rule);
  background: var(--paper);
}
.strip-v4__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 20px 0;
}
.strip-v4__item {
  padding: 12px var(--gutter);
  border-right: .5px solid var(--rule);
  border-bottom: .5px solid var(--rule);
}
.strip-v4__item:nth-child(2n) { border-right: 0; }
.strip-v4__item:nth-last-child(-n+2) { border-bottom: 0; }
.strip-v4__num {
  font-size: 24px; line-height: 1; font-weight: 800;
  letter-spacing: -.022em; margin-bottom: 4px;
  color: var(--ink);
}
.strip-v4__ac { color: var(--accent); }
.strip-v4__label {
  font-size: 11px; letter-spacing: .06em;
  color: var(--ink-mute); font-weight: 500;
}
@media (min-width: 760px) {
  .strip-v4__inner { grid-template-columns: repeat(4, 1fr); padding: 24px 0; }
  .strip-v4__item { padding: 4px 28px; border-bottom: 0; }
  .strip-v4__item:nth-child(2n) { border-right: .5px solid var(--rule); }
  .strip-v4__item:last-child { border-right: 0; }
  .strip-v4__num { font-size: 30px; }
}

/* ---- SECTION HEAD ---- */
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: 28px; gap: 16px;
}
.section__title .ac { color: var(--accent); }
.section-link {
  font-size: 13px; font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 0; border-bottom: 1.5px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.section-link:hover { color: var(--accent); border-color: var(--accent); }
@media (min-width: 760px) { .section-head { margin-bottom: 36px; } }

/* ---- CATEGORY ICON GRID ---- */
.cat-icon-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.cat-icon-card {
  background: var(--paper-2);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 18px 12px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all .25s var(--ease);
  position: relative;
}
.cat-icon-card:hover {
  background: #fff;
  border-color: var(--ink);
  transform: translateY(-2px);
}
.cat-icon-card__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); margin-bottom: 10px;
  transition: transform .35s var(--ease), color .15s;
}
.cat-icon-card:hover .cat-icon-card__icon {
  transform: scale(1.1) rotate(-3deg); color: var(--accent);
}
.cat-icon-card__icon svg { width: 30px; height: 30px; stroke-width: 1.5; }
.cat-icon-card__name {
  font-size: 13px; font-weight: 600; color: var(--ink);
  line-height: 1.2; margin-bottom: 3px; letter-spacing: -.01em;
}
.cat-icon-card__count {
  font-size: 11px; color: var(--ink-mute); font-weight: 500;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 600px) {
  .cat-icon-grid { grid-template-columns: repeat(6, 1fr); gap: 8px; }
  .cat-icon-card { padding: 24px 14px; }
  .cat-icon-card__icon { width: 52px; height: 52px; margin-bottom: 14px; }
  .cat-icon-card__icon svg { width: 34px; height: 34px; }
  .cat-icon-card__name { font-size: 14px; margin-bottom: 4px; }
  .cat-icon-card__count { font-size: 12px; }
}

/* ---- FEATURED SLIDER ---- */
.slider-wrap { position: relative; }
.slider {
  display: flex; gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  margin: 0 calc(var(--gutter) * -1);
  padding-left: var(--gutter); padding-right: var(--gutter);
  scroll-padding-left: var(--gutter);
}
.slider::-webkit-scrollbar { display: none; }
.slider .list-card {
  flex: 0 0 80%; max-width: 300px;
  scroll-snap-align: start;
}
@media (min-width: 600px) { .slider .list-card { flex-basis: 44%; } }
@media (min-width: 980px) { .slider .list-card { flex-basis: 28%; max-width: none; } }
.slider-controls { display: none; gap: 8px; }
.slider-btn {
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--rule); background: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .15s;
  color: var(--ink);
}
.slider-btn:hover:not(:disabled) {
  background: var(--ink); border-color: var(--ink); color: var(--paper);
}
.slider-btn:disabled { opacity: .35; cursor: not-allowed; }
.slider-btn svg { width: 16px; height: 16px; }
@media (min-width: 760px) { .slider-controls { display: flex; } }

/* ---- CREDO ---- */
.credo-v4 {
  background: var(--ink); color: var(--paper);
  padding: 64px 0;
  position: relative; overflow: hidden;
}
.credo-v4::before {
  content: ""; position: absolute;
  top: -20%; right: -10%;
  width: 50vw; height: 50vw; max-width: 600px; max-height: 600px;
  background: radial-gradient(circle at center, var(--accent) 0%, transparent 65%);
  filter: blur(80px); opacity: .4;
  pointer-events: none;
}
.credo-v4__inner { position: relative; }
.credo-v4__eyebrow {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ochre); font-weight: 600; margin-bottom: 18px;
}
.credo-v4__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.4vw, 64px);
  line-height: 1.0; font-weight: 500; letter-spacing: -.022em;
  color: var(--paper); margin: 0 0 36px;
  font-variation-settings: "opsz" 72;
}
.credo-v4__title .ac { color: var(--ochre); font-style: italic; font-weight: 500; }
.credo-v4__points { display: grid; grid-template-columns: 1fr; gap: 28px; }
.credo-v4__point { padding-top: 14px; border-top: 1.5px solid var(--ochre); }
.credo-v4__h {
  font-family: var(--font-body);
  font-size: 18px; font-weight: 700;
  margin: 12px 0 8px; letter-spacing: -.015em;
  color: var(--paper);
}
.credo-v4__h .ac { color: var(--ochre); }
.credo-v4__b {
  font-size: 14px; line-height: 1.6;
  color: rgba(251,248,243,.7); font-weight: 400; margin: 0;
}
@media (min-width: 760px) {
  .credo-v4 { padding: 96px 0; }
  .credo-v4__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
  .credo-v4__title { margin-bottom: 0; }
  .credo-v4__points { grid-template-columns: 1fr 1fr; gap: 36px; }
  .credo-v4__h { font-size: 20px; }
  .credo-v4__b { font-size: 15px; }
}

/* ---- Reveal-on-scroll ---- */
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(12px); }
.stagger.in > * { animation: hero-rise .7s both var(--ease); }
.stagger.in > *:nth-child(1) { animation-delay: 0s; }
.stagger.in > *:nth-child(2) { animation-delay: .05s; }
.stagger.in > *:nth-child(3) { animation-delay: .10s; }
.stagger.in > *:nth-child(4) { animation-delay: .15s; }
.stagger.in > *:nth-child(5) { animation-delay: .20s; }
.stagger.in > *:nth-child(6) { animation-delay: .25s; }
.stagger.in > *:nth-child(7) { animation-delay: .30s; }
.stagger.in > *:nth-child(8) { animation-delay: .35s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .stagger > * { opacity: 1; transform: none; }
}

/* ============================================================
   Empty state — used in dashboard panels, bookmarks, messages
   ============================================================ */
.empty-state {
  max-width: 380px;
  margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
}
.empty-state__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
}
.empty-state__icon svg { width: 26px; height: 26px; }
.empty-state__title {
  font-family: var(--font-display) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: -.015em !important;
  color: var(--ink) !important;
  margin: 0 0 8px !important;
  line-height: 1.25 !important;
}
.empty-state__body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-mute);
  margin: 0 0 20px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.empty-state .btn { font-size: 14px; padding: 11px 18px; }
@media (min-width: 760px) {
  .empty-state { padding: 80px 24px; }
  .empty-state__title { font-size: 22px !important; }
}

/* ============================================================
   Categories index page
   ============================================================ */
.categories-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 0 80px;
}
@media (min-width: 760px) { .categories-page { padding: 56px 0 96px; } }
.categories-page__head { margin-bottom: 32px; max-width: 720px; }
.categories-page__title {
  font-family: var(--font-display) !important;
  font-size: clamp(32px, 4.6vw, 52px) !important;
  font-weight: 500 !important;
  line-height: 1.05 !important;
  letter-spacing: -.022em !important;
  margin: 8px 0 12px !important;
  color: var(--ink) !important;
  font-variation-settings: "opsz" 72;
}
.categories-page__title .ac { color: var(--accent); font-style: italic; font-weight: 500; }
.categories-page__sub {
  font-size: 15px !important;
  line-height: 1.55 !important;
  color: var(--ink-soft) !important;
  margin: 0 !important;
  max-width: 560px !important;
}

/* ============================================================
   Editorial pages — safety, help, cookies, privacy, terms, about
   ============================================================ */
.editorial {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 0 80px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}
@media (min-width: 760px) { .editorial { padding: 56px 0 96px; font-size: 17px; } }

.editorial h1 {
  font-family: var(--font-display) !important;
  font-size: clamp(32px, 4.6vw, 48px) !important;
  letter-spacing: -.022em !important;
  line-height: 1.05 !important;
  font-weight: 500 !important;
  margin: 0 0 24px !important;
  color: var(--ink) !important;
  font-variation-settings: "opsz" 72;
}
.editorial h2 {
  font-family: var(--font-display) !important;
  font-size: clamp(22px, 2.8vw, 28px) !important;
  font-weight: 500 !important;
  letter-spacing: -.012em !important;
  line-height: 1.2 !important;
  margin: 48px 0 14px !important;
  color: var(--ink) !important;
  text-transform: none !important;
  font-variation-settings: "opsz" 60;
}
.editorial p { margin: 0 0 16px; }
.editorial .lede {
  font-size: 18px !important;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 28px;
}
@media (min-width: 760px) { .editorial .lede { font-size: 20px !important; } }
.editorial ul, .editorial ol {
  margin: 0 0 20px;
  padding-left: 22px;
}
.editorial li { margin-bottom: 6px; }
.editorial li::marker { color: var(--accent); }
.editorial strong { color: var(--ink); font-weight: 600; }
.editorial a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.editorial a:hover { color: var(--accent-2); }
.editorial code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .85em;
  background: var(--paper-2);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--ink);
}
.editorial .help-dl {
  margin: 0 0 24px;
  padding: 0;
}
.editorial .help-dl dt {
  font-weight: 600;
  color: var(--ink);
  margin-top: 18px;
  font-size: 16px;
}
.editorial .help-dl dd {
  margin: 4px 0 0;
  padding: 0;
  color: var(--ink-soft);
}
.editorial .cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 14px;
}
.editorial .cookie-table th,
.editorial .cookie-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.editorial .cookie-table thead th {
  background: var(--paper-2);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
}

/* Listing detail — bookmark button. SVG heart fills when saved. */
.btn--bookmark {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.btn--bookmark .bookmark-icon { width: 16px; height: 16px; flex-shrink: 0; }
.btn--bookmark.is-bookmarked { color: var(--accent); border-color: var(--accent); }
.btn--bookmark.is-bookmarked .bookmark-icon { fill: var(--accent); stroke: var(--accent); }

/* Listing detail page polish */
.detail__price {
  font-family: var(--font-body) !important;
  font-size: clamp(32px, 4.5vw, 48px) !important;
  font-weight: 700 !important;
  letter-spacing: -.022em !important;
  color: var(--ink) !important;
  margin: 0 0 20px !important;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.detail__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}
.detail__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}
.detail__chip--cond {
  background: var(--ochre-tint);
  border-color: rgba(184,138,58,.3);
  color: #6e4d10;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 11px;
  font-weight: 600;
}
.detail__chip svg { flex-shrink: 0; opacity: .75; }

.detail__owner-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--accent-tint);
  border: 1px solid rgba(216,84,42,.18);
  padding: 14px 18px;
  border-radius: var(--radius);
  margin: 0 0 28px;
}
.detail__owner-msg {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-2);
}

.detail__gallery { margin: 8px 0 32px; }
.detail__gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}
.detail__gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.detail__gallery-thumbs img {
  aspect-ratio: 1;
  object-fit: cover;
  cursor: pointer;
  opacity: .65;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  transition: opacity .15s, transform .15s;
  box-shadow: none;
  margin: 0;
}
.detail__gallery-thumbs img:hover { opacity: 1; transform: translateY(-1px); }
.detail__gallery-thumbs img.is-active { opacity: 1; border-color: var(--ink); }

/* Profile avatar */
.profile-avatar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  margin: 0 0 24px;
}
.profile-avatar__img {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper-2);
  flex-shrink: 0;
}
.profile-avatar__controls { flex: 1; }
.profile-avatar__remove {
  background: none; border: 0;
  color: var(--ink-mute);
  text-decoration: underline;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 10px;
  font-family: inherit;
}
.profile-avatar__remove:hover { color: var(--danger); }

/* ============================================================
   v0.9.4 — Mobile optimisation pass
   ============================================================ */

/* iOS zoom-on-focus prevention: every input/textarea/select must be 16px+
   to keep iOS from auto-zooming into the field on tap. */
input, textarea, select, .input, .textarea {
  font-size: 16px !important;
}

/* Tap-target minimum: 44px is the Apple HIG floor */
.btn, .post-pill, .menu-toggle-v4, .site-drawer__close,
.list-card__fav, .cat-row, .cat-tile-v4, .field input, .field textarea {
  min-height: 44px;
}

@media (max-width: 760px) {

  /* Hero — smaller headline so it doesn't wrap awkwardly on 390px */
  .hero-v4 { padding: 28px 0 32px !important; }
  .hero-v4__title {
    font-size: clamp(34px, 8.5vw, 48px) !important;
    line-height: 1 !important;
    margin: 0 0 16px !important;
  }
  .hero-v4__sub {
    font-size: 15px !important;
    margin: 0 0 20px !important;
    padding: 0 4px;
  }
  .hero-v4__search { margin-bottom: 14px !important; }
  .hero-v4__chips { gap: 6px !important; }

  /* Header — give the post-an-ad pill room without crowding the dot */
  .site-header__inner { gap: 8px !important; padding: 0 14px !important; }
  .site-header__brand { font-size: 20px !important; }
  .post-pill { padding: 8px 12px !important; font-size: 13px !important; }
  .post-pill__plus { font-size: 14px !important; }
  .menu-toggle-v4 { width: 40px !important; height: 40px !important; flex-shrink: 0; }

  /* Cookie banner — compact form on mobile.
     The short message + tighter padding reduces vertical footprint
     from ~200px down to ~120px so it doesn't bury page CTAs. */
  .cookie-banner__inner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 12px 14px !important;
  }
  .cookie-banner__short { display: inline !important; }
  .cookie-banner__long  { display: none !important; }
  .cookie-banner__msg {
    font-size: 13px !important;
    line-height: 1.4 !important;
    text-align: left !important;
    margin: 0 !important;
  }
  .cookie-banner__actions {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .cookie-banner__actions .btn {
    flex: 1 !important;
    justify-content: center !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    min-height: 42px !important;
  }

  /* Steps row — collapse to "Step N of 4 — Label" plain text */
  .steps-mobile-fallback { display: block; }
  .steps { display: none !important; }
  .steps-mobile-fallback {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink-soft);
    margin: 0 0 16px;
  }
  .steps-mobile-fallback strong { color: var(--ink); }
  .steps-mobile-fallback .accent { color: var(--accent); }

  /* Categories index — 2 cols on phone, not 3 */
  .cat-icon-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .cat-icon-card {
    padding: 22px 14px !important;
    min-height: 140px;
  }
  .cat-icon-card__name { font-size: 15px !important; }

  /* Categories page header */
  .categories-page { padding: 28px 0 60px !important; }
  .categories-page__title { font-size: 28px !important; }

  /* Dashboard nav — horizontal scroll instead of wrapped pile */
  .dash {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    padding: 24px 0 60px !important;
  }
  .dash > * { min-width: 0; }
  .dash-nav-wrap {
    /* Right-edge fade gradient telegraphs that the nav scrolls
       horizontally. Pseudo-element sits absolute over the last 36px
       of the wrap and fades from transparent to paper.
       min-width:0 is critical — without it, the nav's intrinsic content
       width (all tabs unwrapped) forces the grid track to expand and
       overflow the viewport. */
    position: relative;
    min-width: 0;
    overflow: hidden;
  }
  .dash-nav-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 100%;
    background: linear-gradient(90deg, rgba(252,250,246,0), var(--paper) 80%);
    pointer-events: none;
    z-index: 1;
  }
  .dash-nav {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--rule) !important;
    padding: 0 24px 12px 0 !important;
    gap: 4px !important;
    scrollbar-width: none;
  }
  .dash-nav::-webkit-scrollbar { display: none; }
  .dash-nav a {
    flex-shrink: 0 !important;
    padding: 9px 14px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    white-space: nowrap;
  }
  /* Sign out doesn't belong in the horizontal scroll on mobile — hide
     it from the tab strip. (It still exists in the desktop sidebar
     and there's a header menu on mobile.) */
  .dash-nav__signout {
    display: none !important;
  }

  /* Dashboard listings table → card list on mobile */
  .listing-table { display: none !important; }
  .listing-cards-mobile { display: flex !important; flex-direction: column; gap: 10px; }

  /* My-listings page-head: stack title + post-new button */
  .dash__main .flex--between {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .dash__main .flex--between .btn {
    align-self: flex-start;
    padding: 10px 16px !important;
  }

  /* Listing detail — sticky bottom action bar */
  .detail { padding-bottom: 76px; }
  .detail__title { font-size: 22px !important; line-height: 1.2 !important; }
  .detail__h2,
  .detail__body h3 {
    font-family: var(--font-display) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    margin: 0 0 10px !important;
  }
  .detail__price { font-size: 24px !important; }

  /* The seller-card (Message, Phone, Save) becomes a sticky bar */
  .seller-card {
    position: fixed !important;
    left: 0; right: 0; bottom: 0;
    background: var(--paper) !important;
    border: 0 !important;
    border-top: 1px solid var(--rule) !important;
    border-radius: 0 !important;
    padding: 10px 12px !important;
    z-index: 40;
    box-shadow: 0 -6px 16px rgba(0,0,0,.06);
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
  }
  .seller-card__name,
  .seller-card__sub,
  .seller-card .seller-card__profile-link,
  .seller-card > a.muted {
    display: none !important;
  }
  .seller-card .btn {
    flex: 1 !important;
    padding: 12px 8px !important;
    font-size: 13px !important;
    min-height: 44px;
    white-space: nowrap;
  }
  .seller-card .btn--bookmark {
    flex: 0 0 48px !important;
    padding: 0 !important;
  }
  .seller-card .btn--bookmark .bookmark-label { display: none; }
  /* Cookie banner sits ABOVE the sticky action bar */
  .has-detail-bar ~ .cookie-banner,
  body:has(.has-detail-bar) .cookie-banner { bottom: 64px !important; }

  /* Profile picture row — stack on mobile */
  .profile-avatar { gap: 14px !important; padding: 14px 0 !important; }
  .profile-avatar__img { width: 64px !important; height: 64px !important; }

  /* Editorial pages — tighter padding */
  .editorial { padding: 24px 0 60px !important; }
  .editorial h1 { font-size: 26px !important; line-height: 1.15 !important; }
  .editorial .lede { font-size: 16px !important; }
  .editorial h2 { font-size: 18px !important; margin-top: 32px !important; }
  .editorial .cookie-table { font-size: 12px; }
  .editorial .cookie-table th,
  .editorial .cookie-table td { padding: 8px 6px; }

  /* Post-form on mobile */
  .post-form { padding: 24px 0 60px !important; }
  .post-form__h { font-size: 24px !important; }
  .post-form__sub { font-size: 14px !important; margin-bottom: 24px !important; }

  /* Cat-tile-v4 — taller for easier touch */
  .cat-tile-v4 { padding: 16px 14px !important; }
  .cat-tile-v4__icon { width: 36px !important; height: 36px !important; }
  .cat-tile-v4__icon svg { width: 20px !important; height: 20px !important; }
  .cat-tile-v4__name { font-size: 15px !important; }
}

/* Listing cards on mobile — desktop hides them, mobile shows them */
.listing-cards-mobile { display: none; }
.listing-card-mobile {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-bottom: 12px;
  align-items: stretch;
}
.listing-card-mobile__thumb {
  flex-shrink: 0;
  width: 88px; height: 88px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--paper-2), var(--paper-3));
  overflow: hidden;
  display: block;
  align-self: flex-start;
}
.listing-card-mobile__thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.listing-card-mobile__body {
  flex: 1; min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.listing-card-mobile__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.listing-card-mobile__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.008em;
  line-height: 1.3;
  flex: 1;
  /* Clamp to two lines on cramped screens */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-card-mobile__title:hover { color: var(--accent); }
.listing-card-mobile__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-mute);
}
.listing-card-mobile__price {
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.listing-card-mobile__actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 6px;
}
.listing-card-mobile__actions .btn {
  flex: 1;
  padding: 7px 10px !important;
  font-size: 12px !important;
  min-height: 32px;
  justify-content: center;
  text-align: center;
}

/* Listing detail — section h2 like "Description" */
.detail__h2 {
  font-family: var(--font-display) !important;
  font-size: 22px !important;
  font-weight: 500 !important;
  letter-spacing: -.012em !important;
  line-height: 1.2 !important;
  margin: 0 0 14px !important;
  color: var(--ink) !important;
}

/* Graceful fallback for unavailable hero image */
.detail__gallery--no-image::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  background:
    linear-gradient(135deg, var(--paper-2) 0%, var(--paper-3) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  margin-bottom: 8px;
}

/* ============================================================
   Auth pages — two-column split layout
   Brand pitch panel on the left (desktop only), form on the right.
   On mobile, the brand panel hides and the form takes the full width.
   ============================================================ */
.auth-split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - 60px); /* header is 60px */
  background: var(--paper);
}

@media (min-width: 880px) {
  .auth-split { grid-template-columns: 1.1fr 1fr; }
}

.auth-split__brand {
  display: none; /* mobile: hidden */
  background: var(--ink);
  color: var(--paper);
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.auth-split__brand::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 80%; height: 80%;
  background: radial-gradient(circle at 30% 30%, var(--accent) 0%, transparent 60%);
  filter: blur(60px);
  opacity: .35;
  z-index: -1;
  pointer-events: none;
}
@media (min-width: 880px) {
  .auth-split__brand { display: flex; align-items: center; }
}

.auth-split__brand-inner {
  max-width: 460px;
  margin: 0 auto;
}

.auth-split__eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 20px;
}

.auth-split__pitch {
  font-family: var(--font-display) !important;
  font-size: clamp(36px, 4vw, 52px) !important;
  font-weight: 500 !important;
  line-height: 1.05 !important;
  letter-spacing: -.022em !important;
  color: var(--paper) !important;
  margin: 0 0 32px !important;
  font-variation-settings: "opsz" 72;
}
.auth-split__pitch em {
  color: var(--ochre);
  font-style: italic;
  font-weight: 500;
  position: relative;
}
.auth-split__pitch em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.05em; height: .04em;
  background: var(--ochre);
  border-radius: 999px;
  opacity: .6;
}

.auth-split__lede {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(251,248,243,.75);
  margin: 0;
}

.auth-split__points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.auth-split__points li {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(251,248,243,.75);
  padding-left: 28px;
  position: relative;
}
.auth-split__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 18px; height: 1.5px;
  background: var(--ochre);
}
.auth-split__points li strong {
  display: block;
  color: var(--paper);
  font-weight: 600;
  margin-bottom: 2px;
}

.auth-split__form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
@media (min-width: 880px) {
  .auth-split__form { padding: 80px 64px; }
}

.auth-split__form-inner {
  width: 100%;
  max-width: 420px;
}

.auth-split__title {
  font-family: var(--font-display) !important;
  font-size: clamp(28px, 3.8vw, 36px) !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  letter-spacing: -.018em !important;
  margin: 0 0 12px !important;
  color: var(--ink) !important;
  font-variation-settings: "opsz" 60;
}

.auth-split__sub {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 32px;
}

.auth-form { margin-bottom: 24px; }
.auth-form .field { margin-bottom: 16px; }
.auth-form__row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .auth-form__row-2 { grid-template-columns: 1fr; gap: 0; }
}

.auth-form .field__label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.auth-form .field__label-row label,
.auth-form .field__label-row > span {
  margin-bottom: 0;
}
.auth-form__forgot {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0;
  text-transform: none;
}
.auth-form__forgot:hover { color: var(--accent-2); text-decoration: underline; }

.auth-form__remember {
  margin: 4px 0 24px;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 400;
}

.auth-form__legal {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-mute);
  margin: 0 0 20px;
}
.auth-form__legal a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }

.auth-split__alt {
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 24px 0 0;
}
.auth-split__alt a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}
.auth-split__alt a:hover { text-decoration: underline; }

/* Dashboard listings table — image column */
.listing-table__th-img { width: 60px; }
.listing-table__td-img { width: 60px; padding-right: 0 !important; }
.listing-table__thumb {
  display: block;
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--paper-2), var(--paper-3));
  overflow: hidden;
  position: relative;
}
.listing-table__thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.listing-table__title-link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  display: block;
  line-height: 1.3;
}
.listing-table__title-link:hover { color: var(--accent); }

/* Mobile listing card thumbnail — see canonical block above */

/* ============================================================
   Post-complete (Stripe return) success page
   ============================================================ */
.post-complete {
  max-width: 560px;
  margin: 0 auto;
  padding: 64px 0 96px;
  text-align: center;
}
.post-complete__icon {
  width: 72px; height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--moss-tint);
  color: var(--moss);
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-complete__icon svg { width: 36px; height: 36px; stroke-width: 2.2; }
.post-complete__eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.post-complete__title {
  font-family: var(--font-display) !important;
  font-size: clamp(32px, 4.4vw, 48px) !important;
  font-weight: 500 !important;
  line-height: 1.08 !important;
  letter-spacing: -.022em !important;
  margin: 0 0 20px !important;
  color: var(--ink) !important;
  font-variation-settings: "opsz" 72;
}
.post-complete__title em {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}
.post-complete__lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 36px;
  max-width: 440px;
  margin-left: auto; margin-right: auto;
}
.post-complete__card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 0 0 32px;
  text-align: left;
}
.post-complete__card-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.post-complete__listing-id {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  color: var(--ink-mute);
  font-weight: 500;
  flex-shrink: 0;
}
.post-complete__listing-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.012em;
  color: var(--ink);
  margin: 0;
  flex: 1;
}
.post-complete__order {
  font-size: 12px;
  color: var(--ink-mute);
  margin: 0;
}
.post-complete__order code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: rgba(0,0,0,.04);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink-soft);
}
.post-complete__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .post-complete__actions { flex-direction: column; }
  .post-complete__actions .btn { width: 100%; }
}

.post-complete__icon--error {
  background: rgba(168,35,26,.08);
  color: var(--danger);
}
.post-complete__support {
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 24px;
}
.post-complete__support a { color: var(--accent); }

/* ============================================================
   Accessibility
   ============================================================ */
.skip-link {
  position: absolute;
  left: 0; top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 18px;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
  font-size: 14px;
  z-index: 9999;
  text-decoration: none;
  transform: translateY(-100%);
  transition: transform .15s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Visually hide while keeping accessible to 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;
}

/* Make sure :focus-visible is consistent across all links */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Gallery slider on listing detail
   ============================================================ */
.gallery-slider {
  margin: 8px 0 32px;
  position: relative;
}
.gallery-slider__viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  background: var(--paper-2);
  aspect-ratio: 4 / 3;
}
.gallery-slider__viewport:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.gallery-slider__track {
  display: flex;
  height: 100%;
  transition: transform .35s var(--ease);
  will-change: transform;
}
.gallery-slider__slide {
  flex: 0 0 100%;
  position: relative;
  background: linear-gradient(135deg, var(--paper-2), var(--paper-3));
}
.gallery-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-slider__slide--no-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--paper-2), var(--paper-3));
}

/* Arrow buttons */
.gallery-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  transition: transform .15s var(--ease), background .15s, opacity .15s;
  opacity: .9;
  z-index: 2;
}
.gallery-slider__arrow svg { width: 22px; height: 22px; }
.gallery-slider__arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
  opacity: 1;
}
.gallery-slider__arrow:active { transform: translateY(-50%) scale(0.96); }
.gallery-slider__arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.gallery-slider__arrow[disabled],
.gallery-slider__arrow.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.gallery-slider__arrow--prev { left: 12px; }
.gallery-slider__arrow--next { right: 12px; }

/* Counter in corner */
.gallery-slider__counter {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(13, 11, 9, .72);
  color: #fff;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  z-index: 2;
  backdrop-filter: blur(4px);
}

/* Dots under the slider */
.gallery-slider__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}
.gallery-slider__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: var(--rule);
  border: none;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.gallery-slider__dot:hover { background: var(--ink-mute); transform: scale(1.2); }
.gallery-slider__dot.is-active { background: var(--ink); width: 24px; border-radius: 4px; }
.gallery-slider__dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Mobile: smaller arrows, tighter padding */
@media (max-width: 600px) {
  .gallery-slider__arrow { width: 38px; height: 38px; }
  .gallery-slider__arrow svg { width: 18px; height: 18px; }
  .gallery-slider__arrow--prev { left: 8px; }
  .gallery-slider__arrow--next { right: 8px; }
  .gallery-slider__counter { bottom: 10px; right: 10px; font-size: 11px; }
}

/* ============================================================
   Phone verification (dashboard → profile)
   ============================================================ */
.phone-verify {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.phone-verify__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.phone-verify__h {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.018em;
  color: var(--ink);
  margin: 0;
}
.phone-verify__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .01em;
}
.phone-verify__badge--ok {
  background: var(--moss-tint);
  color: var(--moss);
}
.phone-verify__badge svg { width: 13px; height: 13px; }

.phone-verify__lede {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 20px;
  max-width: 540px;
}

.phone-verify__row { margin-bottom: 14px; }
.phone-verify__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.phone-verify__input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-wrap: wrap;
}
.phone-verify__input-row .input {
  flex: 1;
  min-width: 200px;
}
.phone-verify__code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 18px;
  letter-spacing: .15em;
  font-variant-numeric: tabular-nums;
  text-align: center;
  max-width: 200px;
}

.phone-verify__alert {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.45;
  border: 1px solid transparent;
}
.phone-verify__alert--error {
  background: rgba(168, 35, 26, .06);
  color: var(--danger);
  border-color: rgba(168, 35, 26, .2);
}
.phone-verify__alert--success {
  background: var(--moss-tint);
  color: var(--moss);
  border-color: rgba(93, 110, 62, .25);
}

@media (max-width: 480px) {
  .phone-verify__input-row { flex-direction: column; }
  .phone-verify__input-row .btn { width: 100%; }
  .phone-verify__code { max-width: 100%; }
}

/* ============================================================
   Dashboard home — redesigned v0.9.12
   ============================================================ */

/* HERO STRIP -------------------------------------------------- */
.dash-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.dash-hero__main { flex: 1; min-width: 0; }
.dash-hero__greeting {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.022em;
  color: var(--ink);
  margin: 0 0 6px;
  font-variation-settings: "opsz" 60;
}
.dash-hero__sub {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}
.dash-hero__cta { flex-shrink: 0; }

/* ATTENTION PANEL -------------------------------------------- */
.dash-attention {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-bottom: 32px;
}
.dash-attention__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), border-color .15s;
}
.dash-attention__item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--ink-mute);
}
.dash-attention__icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dash-attention__icon svg { width: 18px; height: 18px; }
.dash-attention__item--accent  .dash-attention__icon { background: var(--accent-3); color: var(--accent); }
.dash-attention__item--warn    .dash-attention__icon { background: var(--ochre-tint); color: var(--ochre); }
.dash-attention__item--neutral .dash-attention__icon { background: var(--paper-2); color: var(--ink-soft); }
.dash-attention__label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}
.dash-attention__arr {
  color: var(--ink-mute);
  font-size: 16px;
  transition: transform .15s var(--ease);
}
.dash-attention__item:hover .dash-attention__arr {
  transform: translateX(3px);
  color: var(--ink);
}

/* KPI CARDS — replaces older .kpi block visually ------------ */
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.dash-kpi {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: border-color .15s, box-shadow .15s;
}
.dash-kpi:hover {
  border-color: var(--ink-mute);
  box-shadow: var(--shadow-sm);
}
.dash-kpi__label {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
  font-weight: 600;
}
.dash-kpi__value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.dash-kpi__delta {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: .01em;
  white-space: nowrap;
}
.dash-kpi__delta--up   { background: var(--moss-tint); color: var(--moss); }
.dash-kpi__delta--down { background: rgba(168, 35, 26, .08); color: var(--danger); }

/* CHART STRIP ------------------------------------------------ */
.dash-chart {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 32px;
}
.dash-chart__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.dash-chart__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.012em;
  color: var(--ink);
  margin: 0;
}
.dash-chart__legend {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--ink-soft);
}
.dash-chart__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dash-chart__swatch {
  display: inline-block;
  width: 10px; height: 2px;
  border-radius: 1px;
}
.dash-chart__swatch--views { background: var(--accent); }
.dash-chart__swatch--saves { background: var(--moss); }

.dash-chart__canvas {
  position: relative;
  width: 100%;
}
.dash-chart__canvas svg {
  width: 100%;
  height: 100px;
  display: block;
}
.dash-chart__line {
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dash-chart__line--views { stroke: var(--accent); }
.dash-chart__line--saves { stroke: var(--moss); stroke-dasharray: 3 2; }
.dash-chart__area {
  vector-effect: non-scaling-stroke;
}
.dash-chart__area--views {
  fill: var(--accent);
  fill-opacity: 0.08;
  stroke: none;
}
.dash-chart__scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}

/* LOWER TWO-COLUMN ------------------------------------------ */
.dash-lower {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
@media (max-width: 880px) {
  .dash-lower { grid-template-columns: 1fr; }
}
.dash-panel {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.dash-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  gap: 8px;
}
.dash-panel__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.012em;
  color: var(--ink);
  margin: 0;
}
.dash-panel__more {
  font-size: 13px;
  color: var(--ink-mute);
  text-decoration: none;
  transition: color .15s;
}
.dash-panel__more:hover { color: var(--accent); }
.dash-panel__empty {
  font-size: 14px;
  color: var(--ink-mute);
  margin: 16px 0 0;
}

/* LISTINGS LIST INSIDE PANEL --------------------------------- */
.dash-listings {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dash-listings__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.dash-listings__item:last-child { border-bottom: 0; }
.dash-listings__thumb {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(135deg, var(--paper-2), var(--paper-3));
  display: block;
}
.dash-listings__thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.dash-listings__body {
  flex: 1;
  min-width: 0;
}
.dash-listings__title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 4px;
  line-height: 1.3;
  letter-spacing: -.008em;
  /* Single-line ellipsis */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.dash-listings__title:hover { color: var(--accent); }
.dash-listings__meta {
  font-size: 12px;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.dash-listings__price {
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.dash-listings__dot { color: var(--rule); }
.dash-listings__status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: .02em;
  flex-shrink: 0;
}
.dash-listings__status.is-active  { background: var(--moss-tint); color: var(--moss); }
.dash-listings__status.is-pending { background: var(--ochre-tint); color: var(--ochre); }

/* ACTIVITY FEED ---------------------------------------------- */
.dash-activity {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dash-activity__item {
  border-bottom: 1px solid var(--rule-soft);
}
.dash-activity__item:last-child { border-bottom: 0; }
.dash-activity__link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  text-decoration: none;
  color: inherit;
  transition: opacity .15s;
}
.dash-activity__link:hover { opacity: 0.7; }
.dash-activity__icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dash-activity__icon svg { width: 14px; height: 14px; }
.dash-activity__icon--heart   { background: var(--accent-3); color: var(--accent); }
.dash-activity__icon--message { background: var(--moss-tint); color: var(--moss); }
.dash-activity__body { flex: 1; min-width: 0; }
.dash-activity__label {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
}
.dash-activity__time {
  display: block;
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

/* Mobile adjustments ---------------------------------------- */
@media (max-width: 600px) {
  .dash-hero { flex-direction: column; align-items: stretch; }
  .dash-hero__cta .btn { width: 100%; }
  .dash-kpi { padding: 14px 16px; }
  .dash-kpi__value { font-size: 26px; }
  .dash-chart, .dash-panel { padding: 18px; }
}

/* ============================================================
   Listing detail — revamped sidebar v0.9.13
   ============================================================ */

.detail__aside { min-width: 0; }

/* The sticky container lets seller actions follow the viewport
   while the user scrolls through a long description. We only
   stick on desktop — on mobile the aside flows below the body
   and sticky would be confusing. */
@media (min-width: 880px) {
  .detail__sticky {
    position: sticky;
    top: 88px;  /* clears the site header */
  }
}

/* Seller card — cleaner head with avatar + identity, action stack below */
.seller-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.seller-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.seller-card__avatar {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-2);
}
.seller-card__avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.seller-card__who { flex: 1; min-width: 0; }
.seller-card__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.012em;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.seller-card__sub {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 2px;
  line-height: 1.4;
}
.seller-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.seller-card__actions .btn { padding-left: 14px; padding-right: 14px; }
.seller-card__profile {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-mute);
  text-decoration: none;
  padding-top: 12px;
  border-top: 1px solid var(--rule-soft);
  transition: color .15s;
}
.seller-card__profile:hover { color: var(--accent); }

/* Safety card — sits below the seller card */
.safety-card {
  margin-top: 16px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.safety-card__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.safety-card__title svg {
  width: 18px; height: 18px;
  color: var(--moss);
  flex-shrink: 0;
}
.safety-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.safety-card__list li {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}
.safety-card__list li strong {
  color: var(--ink);
  font-weight: 600;
  margin-right: 2px;
}
.safety-card__bullet {
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--moss);
  font-weight: 700;
  font-size: 14px;
}
.safety-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
}
.safety-card__more {
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: color .15s;
}
.safety-card__more:hover { color: var(--accent); }
.safety-card__report {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 12px;
  color: var(--ink-mute);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  transition: color .15s;
}
.safety-card__report:hover { color: var(--danger); }
.safety-card__report svg { flex-shrink: 0; }

/* =====================================================================
   Frontend admin app — /admin/* pages
   =====================================================================
   Layout mirrors the seller dashboard (sidebar nav + main column) but
   uses denser typography and a cooler ink colour to signal "this is the
   admin surface, not the consumer surface". Capability-gated by the
   server; no client-side hiding.
   ===================================================================== */

/* --- Admin layout --- */
.admin {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 40px 0 80px;
}
@media (max-width: 880px) {
  .admin { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 24px 0 60px; }
  .admin > * { min-width: 0; }
}
.admin__main { min-width: 0; }

/* --- Admin nav --- */
.admin-nav-wrap { position: relative; }
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  border-right: 1px solid var(--rule-soft);
  padding-right: 24px;
}
.admin-nav__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--ink-soft);
  border-radius: var(--radius);
  gap: 8px;
}
.admin-nav__item:hover { background: var(--paper-2); color: var(--ink); }
.admin-nav__item.is-active { background: var(--ink); color: var(--paper); }
.admin-nav__badge {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  min-width: 20px;
  text-align: center;
}
.admin-nav__item.is-active .admin-nav__badge { background: #fff; color: var(--ink); }
.admin-nav__back {
  margin-top: 20px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ink-mute);
  text-decoration: none;
  border-top: 1px solid var(--rule-soft);
}
.admin-nav__back:hover { color: var(--accent); }

@media (max-width: 880px) {
  .admin-nav-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 100%;
    background: linear-gradient(90deg, rgba(252,250,246,0), var(--paper) 80%);
    pointer-events: none;
    z-index: 1;
  }
  .admin-nav {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0 !important;
    border-bottom: 1px solid var(--rule);
    padding: 0 24px 12px 0 !important;
    gap: 4px;
    scrollbar-width: none;
  }
  .admin-nav::-webkit-scrollbar { display: none; }
  .admin-nav__item {
    flex-shrink: 0 !important;
    padding: 9px 14px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    white-space: nowrap;
  }
  .admin-nav__back { display: none; }
}

/* --- Admin hero --- */
.admin-hero { margin-bottom: 32px; }
.admin-hero__chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 4px 10px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  margin-right: 12px;
  vertical-align: middle;
}
.admin-hero__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 500;
  letter-spacing: -.018em;
  line-height: 1.1;
  margin: 0 0 8px;
  color: var(--ink);
}
.admin-hero__sub { color: var(--ink-mute); font-size: 15px; margin: 0; }

/* --- KPIs --- */
.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.admin-kpis--secondary { margin-bottom: 32px; }
@media (max-width: 880px) {
  .admin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
.admin-kpi {
  display: block;
  padding: 20px 18px;
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .15s;
}
.admin-kpi:hover { border-color: var(--rule); transform: translateY(-1px); }
.admin-kpi--alert {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(214, 80, 50, .04), transparent);
}
.admin-kpi--alert .admin-kpi__value { color: var(--accent); }
.admin-kpi__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.admin-kpi__value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--ink);
}
.admin-kpi--sm .admin-kpi__value { font-size: 24px; }
.admin-kpi--sm { padding: 16px 14px; }

/* --- Panels (activity, etc.) --- */
.admin-panel {
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px;
  margin-bottom: 24px;
}
.admin-panel__head { margin-bottom: 14px; }
.admin-panel__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  margin: 0;
}
.admin-panel--empty { color: var(--ink-mute); font-style: italic; }
.admin-panel__empty { margin: 0; color: var(--ink-mute); font-style: italic; }

/* --- Activity feed --- */
.admin-feed { list-style: none; padding: 0; margin: 0; }
.admin-feed__item { border-bottom: 1px solid var(--rule-soft); }
.admin-feed__item:last-child { border-bottom: 0; }
.admin-feed__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  text-decoration: none;
  color: inherit;
}
.admin-feed__link:hover { color: var(--accent); }
.admin-feed__kind {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
  min-width: 70px;
  text-align: center;
}
.admin-feed__kind--listing { background: #e8f5e9; color: #2e7d32; }
.admin-feed__kind--pending { background: #fff4e5; color: #b26a00; }
.admin-feed__kind--report  { background: #fce8e6; color: #b71c1c; }
.admin-feed__label { flex: 1; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-feed__time { font-size: 12px; color: var(--ink-mute); flex-shrink: 0; }

/* --- Moderation queue cards --- */
.admin-mod-queue { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.admin-mod-card {
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px;
}
.admin-mod-card__head { margin-bottom: 12px; }
.admin-mod-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 6px;
}
.admin-mod-card__title a { color: var(--ink); text-decoration: none; }
.admin-mod-card__title a:hover { color: var(--accent); }
.admin-mod-card__meta {
  font-size: 13px;
  color: var(--ink-mute);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.admin-mod-card__report-pill {
  background: #fce8e6;
  color: #b71c1c;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.admin-mod-card__preview {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 14px;
  padding: 12px;
  background: var(--paper-2);
  border-radius: 6px;
}
.admin-mod-card__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-mod-card__reject { color: var(--danger); }
.admin-mod-card__view {
  margin-left: auto;
  font-size: 13px;
  color: var(--ink-mute);
  text-decoration: none;
}
.admin-mod-card__view:hover { color: var(--accent); }

/* --- Admin tables --- */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.admin-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-mute);
  padding: 12px 16px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule-soft);
}
.admin-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14px;
  vertical-align: top;
}
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: rgba(0,0,0,.02); }
.admin-table__muted { font-size: 12px; color: var(--ink-mute); margin-top: 2px; }
.admin-table__code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--ink-mute); }
.admin-table__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-table__action {
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
}
.admin-table__action:hover { border-color: var(--ink); }
.admin-table__action--danger { color: var(--danger); border-color: rgba(214, 80, 50, .3); }
.admin-table__action--danger:hover { border-color: var(--danger); background: rgba(214, 80, 50, .04); }

@media (max-width: 880px) {
  /* Stack tables to card-list style on mobile. Each row's cells flow
     vertically inside its tr, with the header label inserted from CSS
     content via data-* fallbacks (but for now we just keep the table
     scrollable horizontally — simpler, ships now). */
  .admin-table { display: block; overflow-x: auto; }
}

/* --- Pills (status, role, featured, etc.) --- */
.admin-pill {
  display: inline-block;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-soft);
}
.admin-pill--active             { background: #e8f5e9; color: #2e7d32; }
.admin-pill--pending_moderation { background: #fff4e5; color: #b26a00; }
.admin-pill--expired            { background: #f5f5f5; color: #666; }
.admin-pill--rejected           { background: #fce8e6; color: #b71c1c; }
.admin-pill--archived           { background: #f5f5f5; color: #666; }
.admin-pill--user_paused        { background: #fff4e5; color: #b26a00; }
.admin-pill--draft              { background: #f0f0f0; color: #666; }
.admin-pill--featured           { background: var(--ink); color: var(--paper); }
.admin-pill--alert              { background: #fce8e6; color: #b71c1c; }
.admin-pill--open               { background: #fff4e5; color: #b26a00; }
.admin-pill--resolved           { background: #e8f5e9; color: #2e7d32; }
.admin-pill--dismissed          { background: #f5f5f5; color: #666; }
.admin-pill--succeeded          { background: #e8f5e9; color: #2e7d32; }
.admin-pill--refunded           { background: #fff4e5; color: #b26a00; }
.admin-pill--failed             { background: #fce8e6; color: #b71c1c; }

/* --- Filter bar (search + select on listings/users pages) --- */
.admin-filterbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.admin-filterbar .input,
.admin-filterbar .select { flex: 1; min-width: 180px; max-width: 320px; }
.admin-filterbar__clear { font-size: 13px; color: var(--ink-mute); text-decoration: none; }
.admin-filterbar__clear:hover { color: var(--accent); }

/* --- Pagination --- */
.admin-pagination {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  padding: 20px 0;
  font-size: 14px;
}
.admin-pagination a { text-decoration: none; color: var(--accent); }
.admin-pagination__pos { color: var(--ink-mute); }

/* --- Reports list --- */
.admin-reports { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.admin-report-card {
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px;
}
.admin-report-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.admin-report-card__subject {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 4px;
}
.admin-report-card__subject a { color: var(--ink); text-decoration: none; }
.admin-report-card__subject a:hover { color: var(--accent); }
.admin-report-card__meta { font-size: 13px; color: var(--ink-mute); }
.admin-report-card__reason {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 12px;
  padding: 12px;
  background: var(--paper-2);
  border-radius: 6px;
}
.admin-report-card__notes { font-size: 13px; color: var(--ink-soft); margin: 0 0 12px; }
.admin-report-card__actions { display: flex; gap: 8px; }

/* --- Tab strip (Reports filter by status) --- */
.admin-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--rule-soft); }
.admin-tabs__tab {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mute);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.admin-tabs__tab:hover { color: var(--ink); }
.admin-tabs__tab.is-active { color: var(--ink); border-bottom-color: var(--accent); }

/* --- 403 error page --- */
.error-page { padding: 80px 0; max-width: 600px; }
.error-page__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -.02em;
  margin: 0 0 16px;
  color: var(--ink);
}
.error-page__body { font-size: 16px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 24px; }
.error-page .btn { margin-right: 8px; }

/* --- Dashboard nav: Admin link (visible to moderators only) --- */
.dash-nav__admin-link {
  margin-top: 16px;
  padding: 10px 12px;
  font-weight: 600;
  color: var(--accent) !important;
  text-decoration: none;
  border-top: 1px solid var(--rule-soft);
  font-size: 14px;
}
.dash-nav__admin-link:hover { background: rgba(214, 80, 50, .05); }
@media (max-width: 880px) {
  /* On mobile, the dash-nav is a horizontal tab strip; the admin link
     becomes another pill in that strip with the accent colour to stand out. */
  .dash-nav__admin-link {
    border-top: 0 !important;
    margin-top: 0 !important;
    border-radius: 999px !important;
    padding: 9px 14px !important;
    font-size: 13px !important;
  }
}

/* --- Inline moderator action bar on listing detail --- */
.mod-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0 0;
  padding: 12px 16px;
  background: linear-gradient(180deg, #1a1a1a, #2a2a2a);
  color: #fff;
  border-radius: var(--radius);
  font-size: 14px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.mod-bar__label { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mod-bar__status { font-size: 13px; color: rgba(255, 255, 255, .7); }
.mod-bar__reports { color: #ffaa66; text-decoration: none; font-size: 13px; }
.mod-bar__reports:hover { color: #ffcc99; }
.mod-bar__actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mod-bar__actions .btn {
  font-size: 13px;
  padding: 6px 12px;
}
.mod-bar__actions .btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.25);
}
.mod-bar__actions .btn--ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); }
.mod-bar__admin-link {
  margin-left: 8px;
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  font-size: 13px;
}
.mod-bar__admin-link:hover { color: #fff; }

@media (max-width: 880px) {
  .mod-bar { font-size: 13px; padding: 10px 12px; position: static; }
  .mod-bar__actions { width: 100%; justify-content: flex-start; }
}
