:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --primary: #3F5B49;
  --primary-dark: #2F4537;
  --accent: #C9A961;
  --accent-dark: #A88A48;
  --text: #1F1F1F;
  --muted: #6B6B6B;
  --border: #E8E2D6;
  --danger: #B23A3A;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.font-display {
  font-family: 'Fraunces', Georgia, serif;
  font-feature-settings: "ss01" on, "ss03" on;
  letter-spacing: -0.01em;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.bg-cream { background: var(--bg); }
.bg-surface { background: var(--surface); }
.bg-primary { background: var(--primary); }
.bg-primary-dark { background: var(--primary-dark); }
.bg-accent { background: var(--accent); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }
.border-light { border-color: var(--border); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.625rem;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent {
  background: var(--accent);
  color: #1F1F1F;
}
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface); }
.btn-lg { padding: 0.95rem 1.75rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 0.85rem; font-size: 0.85rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.listing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: block;
  color: inherit;
  text-decoration: none;
}
.listing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31, 31, 31, 0.06);
}
.listing-card .photo {
  aspect-ratio: 4 / 3;
  background: #EEE9DE;
  background-size: cover;
  background-position: center;
  position: relative;
}
.listing-card .photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.18) 100%);
}

.verified-pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem; font-weight: 600;
  background: rgba(63, 91, 73, 0.08);
  color: var(--primary);
  border-radius: 999px;
  letter-spacing: 0.01em;
}
.verified-pill.gold {
  background: rgba(201, 169, 97, 0.14);
  color: var(--accent-dark);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.stat-row:last-child { border-bottom: 0; }
.stat-row .k { color: var(--muted); }
.stat-row .v { font-weight: 500; }

.input, .select, .textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  color: var(--text);
  font-family: inherit;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(63, 91, 73, 0.12);
}
.textarea { min-height: 8rem; resize: vertical; }
.label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.help { font-size: 0.78rem; color: var(--muted); margin-top: 0.25rem; }

.divider { height: 1px; background: var(--border); border: 0; }

.shimmer {
  background: linear-gradient(90deg, #EEE9DE 0%, #F6F2E8 50%, #EEE9DE 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
  border-radius: 0.5rem;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.checkmark::before {
  content: "✓";
  display: inline-block;
  margin-right: 0.3rem;
  color: var(--primary);
  font-weight: 700;
}

/* Star rating */
.stars { color: var(--accent); letter-spacing: 0.05em; }

/* Site header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 40;
}
.nav-link {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
}
.nav-link:hover { background: var(--bg); }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(31,31,31,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 60;
  padding: 1rem;
}
.modal {
  background: var(--surface);
  border-radius: 1rem;
  max-width: 30rem;
  width: 100%;
  padding: 1.75rem;
}

/* Toast */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  background: var(--text); color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0.625rem;
  font-size: 0.9rem;
  z-index: 80;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

/* Hero */
.hero-grid {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(201,169,97,0.10), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(63,91,73,0.08), transparent 40%);
}

/* Wizard step pills */
.wizard-step {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
}
.wizard-step.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.wizard-step.done {
  background: rgba(63,91,73,0.08);
  color: var(--primary);
  border-color: rgba(63,91,73,0.2);
}

/* Trust strip */
.trust-logos > * {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Avatars */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  line-height: 1;
  flex: 0 0 auto;
  overflow: hidden;
  vertical-align: middle;
  letter-spacing: 0.01em;
}

/* Seller byline */
.seller-byline {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Stat counters (homepage) */
.stat-counter {
  text-align: center;
}
.stat-counter .num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-counter .lbl {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* Activity ticker */
.ticker {
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 2.5rem;
  animation: ticker-scroll 38s linear infinite;
  will-change: transform;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { color: var(--muted); font-size: 0.85rem; }
.ticker-item b { color: var(--text); font-weight: 600; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Seller directory card */
.seller-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  color: inherit;
  text-decoration: none;
}
.seller-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31, 31, 31, 0.06);
}
