/* ===================================================================
   HandShakeClub — Design System
   Palette: navy (trust/primary), brass (franchise/premium), warm off-white
   Type: Newsreader (editorial display) + Inter (UI) + IBM Plex Mono (figures)
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,500&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --navy-950: #0A2A5E;
  --navy-900: #123E7D;
  --navy-800: #1E56A5;
  --navy-700: #2E6FC4;
  --brass-600: #8A6A28;
  --brass-500: #C9A227;
  --brass-300: #E4C77E;
  --brass-100: #FAF1DC;
  --paper: #FFFFFF;
  --paper-dim: #F2F5FA;
  --ink: #101828;
  --ink-soft: #4B5565;
  --ink-faint: #8996A8;
  --line: #DDE3EC;
  --green: #1B7F5E;
  --green-bg: #E7F2ED;
  --red: #A8402F;
  --white: #FFFFFF;

  --font-display: 'Newsreader', Georgia, serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius: 3px;
  --radius-lg: 6px;
  --shadow-card: 0 1px 2px rgba(11,37,69,0.06), 0 1px 1px rgba(11,37,69,0.04);
  --shadow-hover: 0 12px 24px -8px rgba(11,37,69,0.18);
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--brass-500);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--navy-950);
}
h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-600);
  font-weight: 600;
}

.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 46ch;
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- Top nav ---------- */
.topbar {
  background: var(--navy-950);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 2rem;
  color: #A9B4C4;
}
.topbar a:hover { color: var(--white); }

.nav {
  background: var(--navy-900);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 2rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}
.brand .dot { color: var(--brass-500); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: #C7D0DE;
}
.nav-links a { transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-actions { display: flex; align-items: center; gap: 0.9rem; }

.avatar-menu { position: relative; }
.avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brass-500);
  color: var(--navy-950);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.18);
}
.avatar-btn:hover { border-color: rgba(255,255,255,0.4); }
.avatar-dropdown {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  padding: 0.4rem;
  display: none;
  z-index: 50;
}
.avatar-dropdown.open { display: block; }
.avatar-dropdown .who {
  padding: 0.6rem 0.7rem 0.5rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.3rem;
  word-break: break-all;
}
.avatar-dropdown a, .avatar-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: none;
}
.avatar-dropdown a:hover, .avatar-dropdown button:hover { background: var(--paper-dim); }
.avatar-dropdown .logout { color: var(--red); }

/* ---------- Messages trigger + chat panel ---------- */
.messages-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.18);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.messages-btn:hover { border-color: rgba(255,255,255,0.4); }
.messages-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 3px;
  border-radius: 9px;
  background: var(--red);
  color: var(--white);
  font-size: 0.66rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}

.chat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,20,40,0.35);
  z-index: 200;
  display: flex;
  justify-content: flex-end;
}
.chat-panel {
  width: 400px;
  max-width: 100vw;
  height: 100%;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(10,20,40,0.18);
  animation: chat-slide-in 0.2s ease-out;
}
@keyframes chat-slide-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.chat-panel-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: var(--navy-950);
  color: var(--white);
  flex-shrink: 0;
}
.chat-back-btn, .chat-close-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.chat-back-btn:hover, .chat-close-btn:hover { background: rgba(255,255,255,0.12); }
.chat-panel-title { flex: 1; font-weight: 600; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-panel-title .sub { display: block; font-size: 0.74rem; font-weight: 400; color: rgba(255,255,255,0.65); margin-top: 0.1rem; }
.chat-panel-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }

.chat-inbox-filter {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.7rem 1rem;
  background: var(--paper-dim);
  border-bottom: 1px solid var(--line);
}
.chat-inbox-filter select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 0.7rem;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--white);
}

.chat-inbox-item {
  display: flex;
  gap: 0.7rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  background: var(--white);
  text-align: left;
  width: 100%;
  border-left: none; border-right: none; border-top: none;
}
.chat-inbox-item:hover { background: var(--paper-dim); }
.chat-inbox-item .thumb { width: 44px; height: 44px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; background: var(--paper-dim); }
.chat-inbox-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.chat-inbox-item .info { flex: 1; min-width: 0; }
.chat-inbox-item .row1 { display: flex; justify-content: space-between; gap: 0.5rem; }
.chat-inbox-item .name { font-weight: 600; font-size: 0.88rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-inbox-item .time { font-size: 0.7rem; color: var(--ink-faint); flex-shrink: 0; }
.chat-inbox-item .listing { font-size: 0.76rem; color: var(--ink-faint); margin-bottom: 0.15rem; }
.chat-inbox-item .preview { font-size: 0.82rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-inbox-item.unread .preview, .chat-inbox-item.unread .name { color: var(--ink); font-weight: 700; }
.chat-inbox-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--navy-800); flex-shrink: 0; margin-top: 0.3rem; }

.chat-thread { flex: 1; overflow-y: auto; padding: 1rem 1rem 0.5rem; display: flex; flex-direction: column; gap: 0.55rem; }
.chat-bubble { max-width: 78%; padding: 0.55rem 0.8rem; border-radius: 12px; font-size: 0.88rem; line-height: 1.4; word-wrap: break-word; }
.chat-bubble.mine { align-self: flex-end; background: var(--navy-900); color: var(--white); border-bottom-right-radius: 3px; }
.chat-bubble.theirs { align-self: flex-start; background: var(--paper-dim); color: var(--ink); border-bottom-left-radius: 3px; }
.chat-bubble .time { display: block; font-size: 0.66rem; margin-top: 0.25rem; opacity: 0.65; }

.chat-compose { display: flex; gap: 0.5rem; padding: 0.8rem 1rem; border-top: 1px solid var(--line); background: var(--white); flex-shrink: 0; }
.chat-compose input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 0.6rem 1rem; font-family: inherit; font-size: 0.88rem; }
.chat-compose input:focus { outline: none; border-color: var(--navy-700); }
.chat-compose button { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-900); color: var(--white); border: none; flex-shrink: 0; font-size: 1rem; }
.chat-compose button:hover { background: var(--navy-800); }
.chat-compose button:disabled { opacity: 0.5; }

@media (max-width: 480px) { .chat-panel { width: 100vw; } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.62rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--navy-800); color: var(--white); }
.btn-primary:hover { background: var(--navy-700); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.28); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.6); }
.btn-outline { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn-outline:hover { background: var(--navy-900); color: var(--white); }
.btn-outline.active { background: var(--navy-900); color: var(--white); }
.btn-danger { background: transparent; color: var(--red); border-color: var(--red); }
.btn-danger:hover { background: var(--red); color: var(--white); }
.btn-sm { padding: 0.42rem 0.85rem; font-size: 0.82rem; }
.btn-block { width: 100%; }

.btn-verify { background: var(--white); color: var(--ink-soft); border-color: var(--line); }
.btn-verify:hover { border-color: var(--green); color: var(--green); }
.btn-verify.active { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-verify.active:hover { background: var(--green); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--paper-dim) 0%, var(--paper) 100%);
  color: var(--ink);
  padding: 5.5rem 0 4rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(30,86,165,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,86,165,0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(60% 60% at 20% 20%, black, transparent);
}
.hero .wrap { position: relative; }
.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-800);
  margin-bottom: 1.1rem;
}
.hero h1 { color: var(--navy-950); max-width: 15ch; }
.hero .lede { color: var(--ink-soft); max-width: 48ch; margin-top: 1rem; font-size: 1.15rem; }

.searchbar {
  margin-top: 2.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr auto;
  gap: 0.4rem;
  max-width: 840px;
  box-shadow: 0 16px 32px -14px rgba(10,42,94,0.18);
}
.searchbar input, .searchbar select {
  border: none;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  border-right: 1px solid var(--line);
}
.searchbar select:last-of-type, .searchbar input:last-of-type { border-right: none; }
.searchbar button {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  padding: 0 1.4rem;
}
.searchbar button:hover { background: var(--navy-800); }

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3.2rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}
.stat .num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy-950);
}
.stat .label {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: 0.2rem;
}

/* ---------- Sections ---------- */
section { padding: 4.2rem 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.2rem;
  gap: 2rem;
}
.section-head h2 { margin-top: 0.4rem; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Category split (Business vs Franchise) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.split-card {
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.split-card.business { background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); color: var(--white); }
.split-card.franchise { background: linear-gradient(150deg, var(--brass-300), var(--brass-500)); color: var(--navy-950); }
.split-card .eyebrow { color: inherit; opacity: 0.7; }
.split-card.business .eyebrow { color: var(--brass-300); opacity: 1; }
.split-card h3 { color: inherit; font-size: 1.6rem; margin: 0.5rem 0 0.6rem; }
.split-card p { max-width: 34ch; opacity: 0.85; margin-bottom: 1.4rem; font-size: 0.95rem; }
.split-card .go { font-weight: 600; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 0.4rem; }

/* ---------- Listing grid & cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: block;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card-media {
  position: relative;
  aspect-ratio: 4/2.7;
  background: var(--paper-dim);
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: rgba(10,42,94,0.88);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 2px;
}
.badge.franchise { background: var(--brass-500); color: var(--navy-950); }
.badge.verified { background: var(--green); }
/* A card can carry a type badge (top-left) plus a status badge — keep them from overlapping. */
.badge.badge-right { left: auto; right: 0.7rem; }
.card-body { padding: 1.1rem 1.15rem 1.25rem; }
.card-industry {
  font-size: 0.72rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--navy-950);
  margin-bottom: 0.15rem;
}
.card-loc { font-size: 0.83rem; color: var(--ink-soft); margin-bottom: 0.85rem; }

/* signature element: financial ticker chip */
.ticker {
  display: flex;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.ticker div {
  flex: 1;
  padding: 0.4rem 0.5rem;
  border-right: 1px solid var(--line);
}
.ticker div:last-child { border-right: none; }
.ticker .tlabel { display: block; color: var(--ink-faint); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.12rem; }
.ticker .tval { color: var(--navy-950); font-weight: 600; }
.ticker .tval.up { color: var(--green); }

/* ---------- Filters ---------- */
.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.4rem;
  align-items: start;
}
.filters {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  position: sticky;
  top: 6rem;
}
.filters h4 { font-family: var(--font-ui); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin: 1.1rem 0 0.6rem; }
.filters h4:first-child { margin-top: 0; }
.filter-row { display: flex; align-items: center; gap: 0.55rem; font-size: 0.9rem; padding: 0.3rem 0; color: var(--ink-soft); }
.filter-row input[type="checkbox"] { accent-color: var(--navy-900); }
.filters select, .filters input[type=text] {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-family: inherit;
}
.range-row { display: flex; gap: 0.5rem; }

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.3rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.results-head select { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.4rem 0.6rem; font-family: inherit; font-size: 0.85rem; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.step { padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.step .n { font-family: var(--font-mono); color: var(--brass-600); font-weight: 600; font-size: 0.85rem; }
.step h3 { margin: 0.7rem 0 0.5rem; }
.step p { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

/* ---------- Detail page ---------- */
.breadcrumb { font-size: 0.82rem; color: var(--ink-faint); margin-bottom: 1.4rem; }
.breadcrumb a:hover { color: var(--navy-900); }
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2.6rem; align-items: start; }
.detail-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; background: var(--paper-dim); margin-bottom: 1.6rem; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.4rem; }
.detail-head h1 { font-size: 1.9rem; }
.detail-meta { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.6rem; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; }
.kpi { background: var(--white); padding: 1.1rem 1rem; }
.kpi .tlabel { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); }
.kpi .tval { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 600; color: var(--navy-950); margin-top: 0.25rem; }

.prose h3 { margin: 1.8rem 0 0.7rem; font-size: 1.15rem; }
.prose p { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.7; margin-bottom: 0.8rem; }
.prose ul, .prose ol { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.7; margin: 0 0 0.8rem 1.3rem; }
.prose li { margin-bottom: 0.35rem; }
.prose strong { color: var(--ink); }

/* ---------- Legal pages ---------- */
.legal-meta { color: var(--ink-faint); font-size: 0.85rem; margin-bottom: 2rem; }
.legal-notice {
  background: var(--brass-100);
  border: 1px solid var(--brass-300);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 2.4rem;
}
.legal-highlight {
  background: var(--navy-950);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.4rem;
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 2.4rem;
}
.legal-highlight strong { color: var(--brass-300); }
.legal-toc { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.2rem 1.4rem; margin-bottom: 2.4rem; background: var(--paper-dim); }
.legal-toc h4 { font-family: var(--font-ui); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: 0.7rem; }
.legal-toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; font-size: 0.88rem; }
.legal-toc li { margin-bottom: 0.4rem; }
.legal-toc a:hover { color: var(--navy-900); }
.legal-section { padding-top: 1.6rem; border-top: 1px solid var(--line); margin-top: 1.6rem; }
.legal-section:first-of-type { border-top: none; margin-top: 0; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }
.prose ul { padding-left: 1.2rem; color: var(--ink-soft); font-size: 0.96rem; line-height: 1.8; }

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
}
.sidebar-price { font-family: var(--font-mono); font-size: 1.9rem; font-weight: 600; color: var(--navy-950); }
.sidebar-price .cur { font-size: 1rem; color: var(--ink-faint); }
.seller-row { display: flex; align-items: center; gap: 0.7rem; margin: 1rem 0 1.2rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-800); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; }
.seller-row .name { font-weight: 600; font-size: 0.9rem; }
.seller-row .since { font-size: 0.78rem; color: var(--ink-faint); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  max-width: 620px;
}
.form-card.narrow { max-width: 440px; margin: 0 auto; }
fieldset { border: none; margin-bottom: 1.6rem; }
legend { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--navy-950); margin-bottom: 0.9rem; padding: 0; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.field .hint { font-size: 0.78rem; color: var(--ink-faint); font-weight: 400; margin-top: 0.3rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--paper);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-700); background: var(--white); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.toggle-group { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.toggle-group button {
  flex: 1;
  padding: 0.75rem;
  background: var(--white);
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-right: 1px solid var(--line);
}
.toggle-group button:last-child { border-right: none; }
.toggle-group button.active { background: var(--navy-950); color: var(--white); }
.dropzone {
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  background: var(--paper-dim);
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--navy-700); background: var(--white); }
.dropzone p { margin: 0.2rem 0; font-size: 0.9rem; color: var(--ink-soft); }
.dropzone .dropzone-browse { color: var(--navy-900); font-weight: 600; text-decoration: underline; }
#dropzone-preview img {
  display: block;
  max-width: 100%;
  max-height: 220px;
  margin: 0 auto 0.9rem;
  border-radius: var(--radius);
}
.google-signin { margin-bottom: 1.4rem; display: flex; justify-content: center; }
.divider { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.4rem; color: var(--ink-faint); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form-msg { font-size: 0.88rem; margin-top: 1rem; min-height: 1.2em; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: var(--red); }

/* ---------- Auth header state ---------- */
.header-auth { display: flex; align-items: center; gap: 0.8rem; font-size: 0.88rem; }
.header-auth .who { color: #C7D0DE; }
.header-auth button, .header-auth a { color: var(--white); }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 4rem 1rem; color: var(--ink-faint); }
.empty p { margin-top: 0.5rem; }

/* ---------- Footer ---------- */
footer { background: var(--navy-950); color: #8C97A8; padding: 3.5rem 0 2rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-grid .brand { margin-bottom: 0.8rem; }
.footer-grid p { font-size: 0.86rem; max-width: 30ch; line-height: 1.6; }
.footer-grid h5 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: #5C6779; margin-bottom: 0.9rem; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.87rem; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; font-size: 0.8rem; display: flex; justify-content: space-between; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .detail-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 1.2rem; }
  .searchbar { grid-template-columns: 1fr; }
  .searchbar input, .searchbar select { border-right: none; border-bottom: 1px solid var(--line); }
  .hero-stats { flex-wrap: wrap; gap: 1.6rem; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
