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

:root {
  --bg: #f7f5f2;
  --white: #fff;
  --border: #ddd9d2;
  --border-light: #eceae5;
  --text: #1c1a17;
  --text-mid: #4f4b45;
  --text-muted: #9a9289;
  --gold: #a87c2a;
  --gold-light: #c9962e;
  --gold-bg: #fdf6e8;
  --gold-border: #dfc070;
  --red: #b83030;
  --green: #2a7a50;
  --green-bg: #edf6f2;
  --blue: #2a4e8a;
  --blue-light: #edf2fc;
  --blue-mid: #3a5fa0;
  --ink: #1a1f2e;
  --ink-mid: #252d40;
  --ink-accent: #c9962e;
  --tag-bg: #efede8;
  --font: 'DM Sans', sans-serif;
  --mono: 'DM Mono', monospace;
  --display: 'Bricolage Grotesque', sans-serif;
}

body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 13px; line-height: 1.5; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── topbar ── */
.topbar {
  background: var(--ink);
  color: #9aa0b0;
  font-size: 11px;
  padding: 6px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  flex-wrap: nowrap;
  gap: 6px;
  overflow: hidden;
}
.topbar-spots { display: flex; gap: 22px; flex-wrap: nowrap; align-items: center; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.topbar-spots::-webkit-scrollbar { display: none; }
.spot-item { display: flex; gap: 5px; align-items: center; }
.spot-metal { color: var(--ink-accent); font-weight: 500; }
.spot-price { color: #ddd8d0; }
.up { color: #60c090; }
.dn { color: #d07060; }
.topbar-right { display: flex; gap: 18px; }
.topbar-right a { color: #788090; font-size: 11px; transition: color 0.2s; }
.topbar-right a:hover { color: #ddd8d0; text-decoration: none; }

/* ── header ── */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.logo {
  font-family: 'Cormorant', serif;
  font-size: 26px;
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  transform: skewX(-5deg);
  transform-origin: left bottom;
  text-decoration: none;
  user-select: none;
  cursor: default;
}
.logo .logo-eta {
  font-family: 'GFS Didot', serif;
  font-size: 32px;
  font-weight: 400;
  font-style: italic;
  color: var(--gold-light);
  line-height: 1;
  margin-right: 1px;
}
.logo .logo-rest {
  font-weight: 300;
  font-style: italic;
  color: var(--text);
}
.logo .logo-mate {
  background: linear-gradient(90deg, #c9962e, #e8b840);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  font-style: italic;
}

.search-wrap {
  display: flex;
  flex: 1;
  max-width: 540px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.search-wrap:focus-within { border-color: var(--blue-mid); }
.search-select {
  background: var(--tag-bg);
  border: none;
  border-right: 1px solid var(--border);
  padding: 0 10px;
  font-family: var(--font);
  font-size: 12px;
  color: var(--text-mid);
  outline: none;
  cursor: pointer;
}
.search-input {
  flex: 1;
  border: none;
  padding: 9px 13px;
  font-family: var(--font);
  font-size: 13px;
  outline: none;
  background: var(--white);
}
.search-btn {
  background: var(--gold);
  border: none;
  color: white;
  padding: 0 18px;
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}
.search-btn:hover { background: var(--gold-light); }

.header-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.hdr-link[hidden] { display: none; }
.hdr-link {
  font-size: 12px;
  color: var(--text-mid);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1.2;
  padding: 4px 6px;
  border-radius: 5px;
  transition: background 0.15s;
}
.hdr-link:hover { background: var(--tag-bg); color: var(--text); text-decoration: none; }
.hdr-icon { font-size: 17px; }
.sell-btn {
  background: var(--ink);
  color: var(--ink-accent) !important;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 12px !important;
  border: 1px solid rgba(201,150,46,0.35);
  flex-direction: row !important;
  gap: 6px !important;
  border-radius: 6px;
  transition: background 0.2s !important;
}
.sell-btn:hover { background: var(--ink-mid) !important; text-decoration: none !important; }

/* ── navbar ── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden auto;
  gap: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.navbar::-webkit-scrollbar { display: none; }
.navbar a {
  color: var(--text-mid);
  font-size: 12.5px;
  font-weight: 400;
  padding: 9px 12px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  margin-bottom: -1px;
}
.navbar a:hover { color: var(--text); text-decoration: none; border-bottom-color: var(--border); }
.navbar a.active { color: var(--blue); font-weight: 500; border-bottom-color: var(--blue); }
.navbar a.nav-new { color: #c9962e; font-weight: 500; }
.navbar a.nav-new:hover { color: #e0aa38; border-bottom-color: #c9962e; }
.navbar a.nav-deals { color: #e05050; font-weight: 500; }
.navbar a.nav-deals:hover { color: #f06060; border-bottom-color: #e05050; }

/* ── layout ── */
.page-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: 188px 1fr;
  gap: 14px;
  align-items: start;
}

/* ── sidebar ── */
.sidebar {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
}
.sidebar-section { border-bottom: 1px solid var(--border-light); }
.sidebar-section:last-child { border-bottom: none; }
.sidebar-title {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-bottom: 1px solid var(--border-light);
  font-family: var(--display);
}
.sidebar-links { list-style: none; padding: 4px 0; }
.sidebar-links li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--text);
  border-radius: 0;
  transition: background 0.12s;
}
.sidebar-links li a:hover { background: var(--blue-light); text-decoration: none; }
.sidebar-links li a.active { color: var(--blue); font-weight: 500; background: var(--blue-light); }
.count { font-size: 10px; color: var(--text-muted); font-family: var(--mono); }
.filter-group { padding: 8px 12px; }
.filter-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.filter-row input[type=checkbox] { accent-color: var(--blue); }
.filter-row label { font-size: 12px; color: var(--text); cursor: pointer; }
.filter-row label:hover { color: var(--blue); }
.price-inputs { display: flex; gap: 6px; align-items: center; }
.price-inputs input {
  width: 66px;
  border: 1px solid var(--border);
  padding: 5px 7px;
  font-size: 12px;
  font-family: var(--mono);
  background: var(--bg);
  color: var(--text);
  outline: none;
  border-radius: 4px;
}
.price-inputs input:focus { border-color: var(--blue); }

/* ── catalog ── */
.catalog { display: flex; flex-direction: column; gap: 0; }
.breadcrumb { font-size: 11px; color: var(--text-muted); padding: 2px 0 10px; display: flex; gap: 5px; align-items: center; }
.breadcrumb a { color: var(--blue); }

.results-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-bottom: none;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px 8px 0 0;
  min-height: 42px;
  flex-wrap: wrap;
}
.results-count {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--mono);
  display: flex;
  align-items: center;
  gap: 8px;
}
.results-count strong {
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.results-count .rc-divider {
  width: 1px; height: 12px;
  background: var(--border);
}
.results-count .rc-sellers {
  color: var(--green);
  font-size: 10.5px;
  font-weight: 500;
}
.sort-chips {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding: 7px 0;
}
.sort-chip {
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 400;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  letter-spacing: 0.01em;
}
.sort-chip:hover {
  border-color: var(--blue-mid);
  color: var(--blue);
  background: var(--blue-light);
}
.sort-chip.active {
  background: var(--ink);
  color: var(--ink-accent);
  border-color: rgba(201,150,46,0.4);
  font-weight: 500;
}

/* ── product grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--border);
  border-top: none;
  background: var(--border);
  gap: 1px;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

/* ── bulk row ── */
.bulk-row-wrap {
  grid-column: 1 / -1;
  background: var(--ink);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
}
.bulk-card {
  background: #1e2538;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  position: relative;
  border-top: 2px solid var(--ink-accent);
}
.bulk-card:hover {
  background: #252d42;
  box-shadow: inset 0 0 0 1px rgba(201,150,46,0.35), 0 0 20px rgba(201,150,46,0.08);
}
.bulk-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-accent);
  font-family: var(--mono);
}
.bulk-icon { font-size: 24px; line-height: 1; margin: 2px 0; }
.bulk-name {
  font-size: 15px;
  font-weight: 600;
  color: #e4dfd6;
  font-family: var(--display);
  letter-spacing: -0.01em;
}
.bulk-forms { font-size: 10px; color: #7a8298; line-height: 1.7; font-family: var(--mono); }
.bulk-ref-price { font-size: 10px; color: #556070; font-family: var(--mono); margin-top: 2px; }
.bulk-seller-line { display: flex; align-items: baseline; gap: 5px; margin-top: 3px; }
.bulk-from { font-size: 10px; color: #7a8298; font-family: var(--mono); }
.bulk-price { font-size: 19px; font-weight: 600; color: var(--ink-accent); font-family: var(--display); letter-spacing: -0.02em; }
.bulk-unit { font-size: 10px; color: #556070; font-family: var(--mono); }
/* bulk-seller-count now in ping block */
.bulk-btn {
  margin-top: 6px;
  background: var(--ink-accent);
  color: var(--ink);
  border: none;
  padding: 7px 10px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s;
}
.bulk-btn:hover { background: #daa838; }
.bulk-min {
  position: absolute;
  top: 9px; right: 10px;
  font-size: 9px;
  font-family: var(--mono);
  background: rgba(201,150,46,0.12);
  color: var(--ink-accent);
  border: 1px solid rgba(201,150,46,0.25);
  padding: 2px 6px;
  border-radius: 3px;
}

/* ── product cards ── */
.product-card {
  background: var(--white);
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: box-shadow 0.18s, transform 0.18s;
  position: relative;
}
.product-card:hover {
  box-shadow: 0 6px 24px rgba(42,78,138,0.13), inset 0 0 0 2px var(--blue-mid);
  transform: translateY(-2px);
  z-index: 2;
}

.card-img {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #f0ede6 0%, #e8e4da 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}
.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 35% 35%, rgba(255,255,255,0.5) 0%, transparent 65%);
  pointer-events: none;
}
.card-img-inner { transition: transform 0.3s; }
.product-card:hover .card-img-inner { transform: scale(1.07); }

.card-badges { position: absolute; top: 6px; left: 6px; display: flex; flex-direction: column; gap: 3px; }
.badge { font-size: 9px; font-family: var(--mono); font-weight: 500; padding: 2px 6px; letter-spacing: 0.04em; line-height: 1.4; border-radius: 3px; }
.b-bullion { background: var(--gold-bg); color: var(--gold); border: 1px solid var(--gold-border); }
.b-graded { background: var(--blue-light); color: var(--blue); border: 1px solid #c0d4f0; }
.b-new { background: var(--red); color: white; }
.b-sale { background: var(--red); color: white; }

.card-sku { font-size: 9.5px; font-family: var(--mono); color: var(--text-muted); }
.card-name { font-size: 12.5px; font-weight: 500; color: var(--blue); line-height: 1.3; font-family: var(--display); }
.card-name:hover { text-decoration: underline; }
.card-spec { font-size: 10px; color: var(--text-muted); line-height: 1.6; font-family: var(--mono); }
.card-grade {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-family: var(--mono);
  background: var(--blue-light);
  color: var(--blue);
  padding: 2px 7px;
  border: 1px solid #c0d4f0;
  width: fit-content;
  border-radius: 3px;
}

/* ── market / seller section on card ── */
.card-market {
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-from-line { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.card-from-label { font-size: 9.5px; font-family: var(--mono); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.card-price { font-size: 19px; font-weight: 700; color: var(--ink); font-family: var(--display); letter-spacing: -0.03em; }
.card-price-unit { font-size: 9px; color: var(--text-muted); font-family: var(--mono); }
.card-ref { font-size: 10px; color: var(--text-muted); font-family: var(--mono); }
.card-seller-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.card-seller-count {
  font-size: 10px;
  font-family: var(--mono);
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.ping-dot {
  position: relative;
  width: 7px; height: 7px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ping-dot-core {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.ping-dot-ring {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid var(--green);
  opacity: 0;
  animation: ping 2.6s ease-out infinite;
  pointer-events: none;
}
.ping-dot-ring:nth-child(3) { animation-delay: 1.0s; }
@keyframes ping {
  0%   { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.9); opacity: 0; }
}
/* bulk variant */
.bulk-seller-count {
  font-size: 10px;
  color: #5dbb8a;
  font-family: var(--mono);
  display: flex;
  align-items: center;
  gap: 6px;
}
/* results bar variant */
.results-count .rc-sellers {
  color: var(--green);
  font-size: 10.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-compare-btn {
  font-size: 10.5px;
  font-family: var(--font);
  font-weight: 600;
  color: var(--white);
  background: var(--blue);
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.15s;
  border-radius: 4px;
}
.card-compare-btn:hover { background: var(--blue-mid); box-shadow: 0 2px 8px rgba(42,78,138,0.25); }

/* ══════════════════════════════════
   SELLER DRAWER
══════════════════════════════════ */
.drawer-wrap {
  height: 0;
  overflow: visible;
  position: relative;
}
.seller-drawer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 500;
  background: var(--white);
  border: 2px solid var(--blue-mid);
  border-radius: 10px 10px 0 0;
  border-bottom: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.22);
  max-height: var(--drawer-max-h, 62vh);
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.drawer-wrap.open .seller-drawer {
  transform: translateY(0);
}

.drawer-header {
  background: var(--ink);
  color: white;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.drawer-header h3 {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: white;
}
.drawer-subtitle { font-size: 11px; color: #8898b8; font-family: var(--mono); margin-top: 2px; }
.drawer-close {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: #aab4c8;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font);
  border-radius: 5px;
  transition: all 0.15s;
}
.drawer-close:hover { background: rgba(255,255,255,0.1); color: white; }

.ref-bar {
  background: var(--gold-bg);
  border-bottom: 1px solid var(--gold-border);
  padding: 9px 18px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.ref-item { display: flex; flex-direction: column; gap: 1px; }
.ref-label { font-size: 9px; font-family: var(--mono); color: var(--text-muted); }
.ref-value { font-size: 14px; font-weight: 600; font-family: var(--display); color: var(--text); letter-spacing: -0.02em; }

/* seller table */
.seller-table { width: 100%; border-collapse: collapse; }
.seller-table thead tr { background: var(--tag-bg); border-bottom: 1px solid var(--border); }
.seller-table th { padding: 7px 14px; font-size: 10.5px; font-weight: 600; color: var(--text-mid); font-family: var(--display); text-align: left; letter-spacing: 0.01em; }
.seller-table tbody tr { border-bottom: 1px solid var(--border-light); transition: background 0.1s; }
.seller-table tbody tr:hover { background: var(--blue-light); }
.seller-table td { padding: 10px 14px; font-size: 12px; vertical-align: middle; }

/* ── seller cell — the new social-aware component ── */
.seller-cell { display: flex; align-items: center; gap: 10px; }
.seller-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--tag-bg);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.2s;
}
.seller-avatar:hover { border-color: var(--blue); }
.seller-info { display: flex; flex-direction: column; gap: 2px; }
.seller-handle {
  font-weight: 600;
  color: var(--text);
  font-size: 12.5px;
  cursor: pointer;
  transition: color 0.15s;
}
.seller-handle:hover { color: var(--blue); }
.seller-socials { display: flex; gap: 6px; align-items: center; }
.social-pill {
  font-size: 9px;
  font-family: var(--mono);
  padding: 1px 6px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 3px;
  border: 1px solid transparent;
}
.social-reddit { background: #fff0e8; color: #c04000; border-color: #e8b090; }
.social-reddit:hover { background: #FF4500; color: white; }
.social-x { background: #f0f0f0; color: #333; border-color: #ccc; }
.social-x:hover { background: #111; color: white; }
.social-insta { background: #fdf0f8; color: #a030a0; border-color: #dfa0df; }
.social-insta:hover { background: #C13584; color: white; }
.social-phone { background: var(--green-bg); color: var(--green); border-color: #a0d0b8; }

.seller-badge-chip {
  font-size: 9px;
  font-family: var(--mono);
  padding: 2px 6px;
  border-radius: 3px;
}
.chip-pro { background: var(--blue-light); color: var(--blue); border: 1px solid #c0d4f0; }
.chip-verified { background: var(--green-bg); color: var(--green); border: 1px solid #a0d0b8; }
.chip-new { background: #fff0e8; color: #c04000; border: 1px solid #e8b090; }
.chip-member { background: var(--gold-bg); color: var(--gold); border: 1px solid var(--gold-border); }
.chip-tribe { background: rgba(255,255,255,0.05); color: #9aa0b4; border: 1px solid rgba(255,255,255,0.1); font-style: italic; }

.seller-rating { font-size: 11px; color: var(--text-mid); font-family: var(--mono); }
.star { color: var(--gold-light); }
.trade-count { font-size: 10px; color: var(--text-muted); font-family: var(--mono); }

.seller-qty { font-family: var(--mono); font-size: 11px; }
.seller-premium { font-family: var(--mono); font-size: 11px; }
.premium-pos { color: var(--red); }
.premium-neg { color: var(--green); }

.seller-price { font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.seller-price-unit { font-size: 9px; color: var(--text-muted); font-family: var(--mono); }

.seller-ship { font-size: 10px; color: var(--text-muted); font-family: var(--mono); }
.ship-free { color: var(--green); font-weight: 500; }

.seller-notes { font-size: 10px; color: var(--text-muted); font-family: var(--mono); line-height: 1.6; max-width: 180px; }

/* ── contact request button ── */
.request-btn {
  background: var(--ink);
  color: var(--ink-accent);
  border: 1px solid rgba(201,150,46,0.3);
  padding: 7px 13px;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.2s;
  white-space: nowrap;
}
.request-btn:hover { background: var(--ink-mid); border-color: var(--ink-accent); }
.request-btn.best {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.request-btn.best:hover { background: #1f6040; }

.drawer-footer {
  background: var(--tag-bg);
  border-top: 1px solid var(--border-light);
  padding: 9px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}
.sell-this { font-family: var(--font); font-size: 11.5px; color: var(--blue); font-weight: 500; cursor: pointer; }
.sell-this:hover { text-decoration: underline; }

/* ══════════════════════════════════
   SELLER PROFILE MODAL
══════════════════════════════════ */
/* ════════════════════════════════════════════
   nm modal system — single source of truth
   ════════════════════════════════════════════ */

/* backdrop */
.nm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,18,15,0.65);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.nm-overlay.is-open { display: flex; }

/* base modal shell */
.nm-modal {
  background: var(--white);
  border-radius: 12px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,0,0,0.06);
  animation: nmSlide 0.22s cubic-bezier(0.22,1,0.36,1);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}
@keyframes nmSlide {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* sizes */
.nm-modal--sm { max-width: 440px; }
.nm-modal--md { max-width: 600px; }
.nm-modal--lg { max-width: 880px; }

/* structural sections */
.nm-modal__head {
  background: var(--ink);
  padding: 18px 22px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.nm-modal__head-left { display: flex; align-items: flex-start; gap: 14px; flex: 1; min-width: 0; }
.nm-modal__title {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.nm-modal__sub {
  font-size: 11px;
  color: #7a8298;
  font-family: var(--mono);
  margin-top: 3px;
}
.nm-modal__close {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #9aa0b4;
  width: 28px; height: 28px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.nm-modal__close:hover { background: rgba(255,255,255,0.15); color: white; }

.nm-modal__body {
  padding: 20px 22px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nm-modal__foot {
  padding: 14px 22px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  background: var(--bg);
}

/* stat strip (used in profile head) */
.nm-stat-strip {
  display: grid;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.nm-stat-strip .stat-cell {
  padding: 13px 18px;
  display: flex; flex-direction: column; gap: 2px;
  border-right: 1px solid var(--border-light);
}
.nm-stat-strip .stat-cell:last-child { border-right: none; }

/* coin avatar (reused across modals) */
.nm-coin-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 38% 32%, #e8c96a 0%, #c9962e 40%, #8a6010 100%);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.3), inset 0 -2px 5px rgba(0,0,0,0.45),
    0 0 0 2px #7a5010, 0 0 0 3.5px rgba(201,150,46,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

/* section labels */
.nm-section-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

/* context card (listing preview in memo) */
.nm-context-card {
  background: var(--tag-bg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.nm-context-emoji { font-size: 28px; }
.nm-context-body { flex: 1; }
.nm-context-name { font-size: 13px; font-weight: 600; color: var(--text); font-family: var(--display); letter-spacing: -0.01em; }
.nm-context-meta { font-size: 11px; color: var(--text-muted); font-family: var(--mono); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }

/* field */
.nm-field { display: flex; flex-direction: column; gap: 5px; }
.nm-label {
  font-size: 10.5px; font-weight: 600; color: var(--text-mid);
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.07em;
  display: flex; justify-content: space-between; align-items: center;
}
.nm-label-hint { font-weight: 400; color: var(--text-muted); text-transform: none; letter-spacing: 0; }
.nm-input {
  border: 1.5px solid var(--border);
  border-radius: 7px;
  padding: 9px 12px;
  font-family: var(--font); font-size: 13px; color: var(--text);
  outline: none; width: 100%;
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.nm-input:focus { border-color: var(--blue-mid); box-shadow: 0 0 0 3px rgba(42,78,138,0.1); }
.nm-textarea {
  border: 1.5px solid var(--border);
  border-radius: 7px;
  padding: 10px 12px;
  font-family: var(--font); font-size: 13px; color: var(--text);
  outline: none; width: 100%;
  background: var(--white);
  resize: vertical; min-height: 96px;
  line-height: 1.6;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.nm-textarea:focus { border-color: var(--blue-mid); box-shadow: 0 0 0 3px rgba(42,78,138,0.1); }
.nm-char-count { font-size: 10px; color: var(--text-muted); font-family: var(--mono); text-align: right; }
.nm-char-count.near { color: var(--gold); }
.nm-char-count.over { color: var(--red); }

/* disclosure */
.nm-disclosure {
  background: var(--blue-light);
  border: 1px solid rgba(42,78,138,0.15);
  border-radius: 7px;
  padding: 11px 13px;
  font-size: 11.5px;
  color: var(--blue);
  line-height: 1.75;
}
.nm-disclosure strong { color: var(--ink); }

/* sent confirmation state */
.nm-sent-state {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  gap: 12px;
}
.nm-sent-state.is-visible { display: flex; }
.nm-sent-icon { font-size: 42px; }
.nm-sent-title { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.nm-sent-body { font-size: 13px; color: var(--text-mid); line-height: 1.75; max-width: 320px; }

/* buttons */
.nm-btn-primary {
  background: var(--ink);
  color: var(--ink-accent);
  border: 1px solid rgba(201,150,46,0.3);
  border-radius: 7px;
  padding: 10px 20px;
  font-family: var(--font); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
  display: flex; align-items: center; gap: 7px;
}
.nm-btn-primary:hover { background: var(--ink-mid); box-shadow: 0 3px 10px rgba(0,0,0,0.15); }
.nm-btn-secondary {
  background: none;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px 16px;
  font-family: var(--font); font-size: 13px;
  cursor: pointer; transition: all 0.15s;
}
.nm-btn-secondary:hover { border-color: var(--blue-mid); color: var(--blue); }

/* bottom-sheet on mobile */
@media (max-width: 600px) {
  .nm-overlay { padding: 0; align-items: flex-end; }
  .nm-modal { border-radius: 16px 16px 0 0; max-height: 92vh; max-width: 100% !important; }
  .nm-modal--lg { flex-direction: column; }
}

/* legacy alias — keeps old JS working during transition */
.modal-overlay { display: none; }
.modal-overlay.open { display: none; }

/* profile modal — built on nm system */
/* ══════════════════════════════════
   PROFILE CARD (full)
══════════════════════════════════ */
.profile-modal {
  background: #13151e;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  width: 100%; max-width: 720px;
  max-height: 88vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  animation: spSlide 0.22s cubic-bezier(0.22,1,0.36,1);
}
.pm-head {
  background: #1e2235;
  padding: 22px 26px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: flex-start; gap: 18px;
  flex-shrink: 0;
}
.pm-avatar {
  width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,rgba(201,150,46,0.25),rgba(201,150,46,0.06));
  border: 2px solid rgba(201,150,46,0.3);
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.pm-meta { flex: 1; min-width: 0; }
.pm-handle {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px; font-weight: 600; color: #e8e4dc; letter-spacing: -0.02em;
}
.pm-since { font-size: 10.5px; color: #556070; font-family: 'DM Mono', monospace; margin-top: 3px; }
.pm-chips { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.pm-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.pm-stat {
  padding: 14px 18px; display: flex; flex-direction: column; gap: 3px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.pm-stat:last-child { border-right: none; }
.pm-stat-val {
  font-family: 'Cormorant', serif; font-size: 22px; font-weight: 600;
  color: #e8e4dc; font-style: italic;
}
.pm-stat-label { font-size: 10px; color: #556070; font-family: 'DM Mono', monospace; }
.pm-body {
  display: flex; flex: 1; overflow: hidden;
}
.pm-left {
  width: 220px; flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.06);
  overflow-y: auto;
  padding: 18px 0;
}
.pm-section-label {
  font-size: 9.5px; font-family: 'DM Mono', monospace;
  color: #556070; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0 18px; margin-bottom: 10px; margin-top: 4px;
}
.pm-social-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 18px; transition: background 0.15s;
}
.pm-social-row:hover { background: rgba(255,255,255,0.03); }
.pm-social-icon { font-size: 14px; width: 20px; text-align: center; flex-shrink: 0; }
.pm-social-platform { font-size: 10.5px; color: #9aa0b4; font-family: 'DM Mono', monospace; width: 64px; flex-shrink: 0; }
.pm-social-value { font-size: 11.5px; color: #c9962e; font-family: 'DM Mono', monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-social-locked { font-size: 10.5px; color: #3a4458; font-family: 'DM Mono', monospace; font-style: italic; }
.pm-right {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column;
}
.pm-bio-section {
  padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pm-bio {
  font-size: 12.5px; color: #9aa0b4; line-height: 1.75;
  font-family: 'DM Sans', sans-serif;
}
.pm-listings-section { padding: 18px 22px; flex: 1; }
.pm-listings-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin-top: 10px;
}
.pm-listing-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; padding: 12px 14px; cursor: pointer; transition: all 0.15s;
}
.pm-listing-card:hover { border-color: rgba(201,150,46,0.3); background: rgba(201,150,46,0.03); }
.pm-lc-emoji { font-size: 18px; margin-bottom: 6px; }
.pm-lc-name { font-size: 11.5px; color: #e8e4dc; font-family: 'DM Sans', sans-serif; line-height: 1.4; margin-bottom: 6px; }
.pm-lc-price { font-family: 'Cormorant', serif; font-size: 17px; font-weight: 600; color: #c9962e; font-style: italic; }
.pm-lc-premium { font-size: 10px; font-family: 'DM Mono', monospace; margin-top: 2px; }
.pm-lc-premium.pos { color: #9aa0b4; }
.pm-lc-premium.neg { color: #4caf87; }
.pm-foot {
  padding: 14px 22px; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; gap: 10px; flex-shrink: 0;
}

/* ══════════════════════════════════
   MEMO MODAL
══════════════════════════════════ */
/* memo styles → nm- system */
.memo-sent.show { display: flex; }
.sent-icon { font-size: 44px; }
.sent-title { font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--text); }
.sent-body { font-size: 12.5px; color: var(--text-mid); line-height: 1.7; max-width: 300px; }
.sent-note {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--tag-bg);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 8px 14px;
  font-family: var(--mono);
}

/* ── pagination ── */
.pagination { background: var(--white); border: 1px solid var(--border); border-top: none; padding: 10px 14px; display: flex; align-items: center; gap: 4px; border-radius: 0 0 8px 8px; margin-top: 0; }
.page-btn { border: 1px solid var(--border); background: var(--bg); color: var(--text); padding: 4px 10px; font-size: 12px; font-family: var(--font); cursor: pointer; transition: all 0.15s; border-radius: 4px; }
.page-btn:hover, .page-btn.active { background: var(--blue); color: white; border-color: var(--blue); }

/* ── footer ── */
footer { border-top: 1px solid var(--border); background: var(--white); padding: 14px 20px; display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); flex-wrap: wrap; gap: 8px; margin-top: 16px; }
footer a { color: var(--blue); font-size: 11px; }

@media (max-width: 1000px) {
  .page-wrap { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .product-grid, .bulk-row-wrap { grid-template-columns: repeat(3, 1fr); }
  .seller-table th:nth-child(3),
  .seller-table td:nth-child(3),
  .seller-table th:nth-child(6),
  .seller-table td:nth-child(6) { display: none; }
}

@media (max-width: 700px) {
  /* topbar — hide sign-in links, keep spots */
  .topbar { padding: 5px 12px; }
  .topbar-right { display: none; }
  .topbar-spots { gap: 12px; }

  /* header — stack search below logo row */
  header { padding: 0 12px; }
  .header-inner { gap: 10px; padding: 10px 0; }
  .search-wrap { order: 3; flex: unset; width: 100%; max-width: 100%; }
  .header-actions { margin-left: auto; }
  /* hide watchlist label on small screens */
  .hdr-link span:last-child { display: none; }
  .hdr-link { padding: 6px 8px; }
  .hdr-icon { font-size: 20px; }
  .sell-btn { padding: 8px 10px; }

  /* navbar — smaller padding, scrollable */
  .navbar { padding: 0 12px; }
  .navbar a { padding: 9px 10px; font-size: 12px; }

  /* page padding */
  .page-wrap { padding: 10px 12px; }

  /* grid — 2 cols */
  .product-grid, .bulk-row-wrap { grid-template-columns: repeat(2, 1fr); }

  /* bulk cards — tighter */
  .bulk-card { padding: 10px 11px; }
  .bulk-name { font-size: 13px; }
  .bulk-price { font-size: 16px; }
  .bulk-forms { font-size: 9px; }
  .bulk-icon { font-size: 20px; }

  /* product cards */
  .card-img { font-size: 40px; }
  .card-price { font-size: 16px; }

  /* drawer — full width, no horizontal scroll on table */
  .drawer-header { padding: 10px 14px; }
  .drawer-header h3 { font-size: 13px; }
  .drawer-subtitle { font-size: 10px; }
  .ref-bar { gap: 16px; padding: 8px 14px; overflow-x: auto; flex-wrap: nowrap; }
  .ref-value { font-size: 13px; }

  /* seller table on mobile — hide less critical cols */
  .seller-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .seller-table th:nth-child(3),
  .seller-table td:nth-child(3) { display: none; }
  .seller-table th:nth-child(7),
  .seller-table td:nth-child(7) { display: none; }
  .seller-table td, .seller-table th { padding: 8px 10px; }
  .seller-avatar { width: 28px; height: 28px; font-size: 13px; }
  .seller-handle { font-size: 11.5px; }
  .seller-socials { display: none; }
  .seller-price { font-size: 14px; }
  .request-btn { padding: 6px 10px; font-size: 10.5px; }

  /* modals — full screen feel */
  .profile-modal, .memo-modal { max-width: 100%; margin: 0 10px; border-radius: 10px; }
  .profile-stats { grid-template-columns: repeat(3, 1fr); }
  .stat-val { font-size: 17px; }

  /* pagination */
  .pagination { padding: 8px 12px; flex-wrap: wrap; gap: 4px; }
  .page-btn { padding: 5px 10px; }

  /* footer */
  footer { flex-direction: column; gap: 6px; text-align: center; font-size: 10.5px; }

  /* results bar */
  .results-bar { padding: 7px 12px; }
  .results-count { font-size: 12px; }
}

@media (max-width: 400px) {
  .product-grid, .bulk-row-wrap { grid-template-columns: repeat(2, 1fr); }
  .bulk-min { display: none; }
  .logo { font-size: 22px; } .logo .logo-eta { font-size: 27px; }
  .card-name { font-size: 11.5px; }
}


/* ══ merged from trailing style blocks ══ */

/* ── signup overlay ── */
#signupOverlay {
  position: fixed;
  inset: 0;
  background: rgba(10,12,18,0.85);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}
#signupOverlay.open { display: flex; }

.sp-success-wrap {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  padding: 52px 40px;
  flex: 1;
  animation: spSlide 0.3s cubic-bezier(0.22,1,0.36,1);
}
.sp-success-wrap.show { display: flex; }

@keyframes spSlide {
  from { opacity:0;transform:translateY(18px) scale(0.98); }
  to   { opacity:1;transform:translateY(0) scale(1); }
}
@media (max-width: 680px) {
  #signupOverlay {
    padding: 0;
    align-items: flex-end;
  }
  #signupOverlay > div {
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 18px 18px 0 0 !important;
    max-height: 92vh !important;
    flex-direction: column !important;
  }
  #signupOverlay > div > div:first-child {
    display: none !important;
  }
  #sp-form-wrap {
    padding: 28px 22px 32px !important;
    overflow-y: auto !important;
    position: relative;
  }
  .sp-success-wrap {
    padding: 40px 24px !important;
  }
  .sort-chips { gap: 3px; }
  .sort-chip { font-size: 10.5px; padding: 4px 9px; }
}
.sp-pw-bar { flex:1;height:3px;border-radius:2px;background:rgba(255,255,255,0.08);transition:background 0.3s; }
.sp-pw-bar.weak   { background:#e05858; }
.sp-pw-bar.medium { background:#c9962e; }
.sp-pw-bar.strong { background:#3dba7e; }
.tribe-btn {
  flex:1;background:rgba(255,255,255,0.03);border:1.5px solid rgba(255,255,255,0.08);
  border-radius:7px;padding:8px 6px;font-family:'DM Mono',monospace;font-size:11px;
  color:#556070;cursor:pointer;transition:all 0.15s;
}
.tribe-btn:hover { border-color:rgba(201,150,46,0.3);color:#9aa0b4; }
.tribe-btn.tribe-active { border-color:#c9962e;color:#c9962e;background:rgba(201,150,46,0.08); }
.sp-active { display:flex !important; }
@keyframes coinIdle {
  0%,100% { transform: rotateY(0deg); }
  50%      { transform: rotateY(14deg); }
}
.sp-field-err {
  font-size:10.5px;color:#e05858;font-family:'DM Mono',monospace;
  min-height:14px;display:block;
}
.sp-tier-card {
  background:rgba(255,255,255,0.03);
  border:1.5px solid rgba(255,255,255,0.08);
  border-radius:10px;padding:16px 18px;cursor:pointer;
  display:flex;gap:14px;transition:border-color 0.2s;
}
.sp-tier-card:hover { border-color:rgba(201,150,46,0.3); }
.sp-tier-card.sp-tier-active { border-color:rgba(201,150,46,0.6);background:rgba(201,150,46,0.04); }
.sp-tier-radio {
  width:18px;height:18px;border-radius:50%;
  border:1.5px solid #556070;
  display:flex;align-items:center;justify-content:center;
  margin-top:2px;flex-shrink:0;transition:all 0.2s;
}
.sp-tier-radio--on {
  border-color:#c9962e;background:#c9962e;
}
.sp-tier-radio--on::after {
  content:'';width:7px;height:7px;border-radius:50%;background:#13151e;
}
#sp-nudge {
  position:fixed;bottom:20px;left:50%;transform:translateX(-50%);
  background:#1e2235;border:1px solid rgba(201,150,46,0.35);
  border-radius:10px;padding:12px 18px;
  display:flex;align-items:center;gap:14px;
  font-size:13px;color:#9aa0b4;
  box-shadow:0 8px 32px rgba(0,0,0,0.5);
  z-index:1500;animation:spSlide 0.3s cubic-bezier(0.22,1,0.36,1);
  font-family:'DM Sans',sans-serif;white-space:nowrap;
}
#sp-nudge button {
  background:#c9962e;color:#13151e;border:none;border-radius:6px;
  padding:7px 14px;font-size:12px;font-weight:600;cursor:pointer;
  font-family:'DM Sans',sans-serif;transition:background 0.2s;
}
#sp-nudge button:hover { background:#e8b840; }


.ac-nav-btn {
  display:block;width:100%;text-align:left;
  background:none;border:none;
  padding:9px 20px;font-size:12.5px;
  font-family:'DM Mono',monospace;color:#9aa0b4;
  cursor:pointer;transition:all 0.15s;letter-spacing:0.02em;
}
.ac-nav-btn:hover { color:#e8e4dc;background:rgba(255,255,255,0.04); }
.ac-nav-active { color:#c9962e !important;background:rgba(201,150,46,0.06) !important;border-left:2px solid #c9962e; }
.ac-field { display:flex;flex-direction:column;gap:5px; }
.ac-label { font-size:10.5px;font-weight:500;color:#9aa0b4;font-family:'DM Mono',monospace;letter-spacing:0.08em;text-transform:uppercase; }
.ac-input {
  background:rgba(255,255,255,0.04);border:1.5px solid rgba(255,255,255,0.1);
  border-radius:8px;padding:10px 12px;font-family:'DM Sans',sans-serif;
  font-size:13.5px;color:#e8e4dc;outline:none;width:100%;transition:border-color 0.2s;
}
.ac-input:focus { border-color:#c9962e;box-shadow:0 0 0 3px rgba(201,150,46,0.1); }
.ac-input:disabled { opacity:0.45;cursor:not-allowed; }
.ac-hint { font-size:10px;color:#556070;font-family:'DM Mono',monospace; }
.ac-tribe-btn {
  background:rgba(255,255,255,0.04);border:1.5px solid rgba(255,255,255,0.1);
  border-radius:20px;padding:5px 14px;font-size:11px;
  font-family:'DM Mono',monospace;color:#9aa0b4;cursor:pointer;transition:all 0.15s;
}
.ac-tribe-btn:hover { border-color:rgba(201,150,46,0.3);color:#e8e4dc; }
.ac-tribe-active { border-color:rgba(201,150,46,0.6) !important;color:#c9962e !important;background:rgba(201,150,46,0.06) !important; }
.ac-toggle-row { display:flex;align-items:center;gap:10px;cursor:pointer;padding:4px 0; }
.ac-toggle-label { font-size:12.5px;color:#9aa0b4;font-family:'DM Sans',sans-serif; }
.ac-save-btn {
  background:#c9962e;color:#13151e;border:none;border-radius:8px;
  padding:11px 24px;font-family:'DM Sans',sans-serif;font-size:13.5px;
  font-weight:600;cursor:pointer;align-self:flex-start;transition:all 0.2s;
}
.ac-save-btn:hover { background:#e8b840;transform:translateY(-1px); }


.ct-tab-pill {
  background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.1);
  border-radius:20px;padding:5px 14px;font-size:11px;
  font-family:'DM Mono',monospace;color:#9aa0b4;cursor:pointer;transition:all 0.15s;
}
.ct-tab-pill:hover { color:#e8e4dc; }
.ct-tab-active { background:rgba(201,150,46,0.08) !important;border-color:rgba(201,150,46,0.4) !important;color:#c9962e !important; }
.ct-tab-body[hidden] { display:none; }
.ct-tab-body { flex:1;overflow-y:auto;display:flex;flex-direction:column; }
.ct-contact-row {
  display:flex;align-items:center;gap:14px;
  padding:14px 24px;border-bottom:1px solid rgba(255,255,255,0.05);
  transition:background 0.15s;cursor:pointer;
}
.ct-contact-row:hover { background:rgba(255,255,255,0.02); }
.ct-avatar {
  width:38px;height:38px;border-radius:50%;flex-shrink:0;
  background:linear-gradient(135deg,rgba(201,150,46,0.25),rgba(201,150,46,0.08));
  border:1px solid rgba(201,150,46,0.2);
  display:flex;align-items:center;justify-content:center;
  font-size:13px;font-family:'DM Mono',monospace;color:#c9962e;font-weight:600;
}
.ct-memo-row {
  display:flex;align-items:flex-start;gap:14px;
  padding:14px 24px;border-bottom:1px solid rgba(255,255,255,0.05);
  transition:background 0.15s;cursor:pointer;
}
.ct-memo-row:hover { background:rgba(255,255,255,0.02); }
.ct-status {
  font-size:9.5px;font-family:'DM Mono',monospace;
  border-radius:10px;padding:2px 8px;border:1px solid;
  white-space:nowrap;flex-shrink:0;margin-top:2px;
}
.ct-status-pending  { color:#c9962e;border-color:rgba(201,150,46,0.3);background:rgba(201,150,46,0.06); }
.ct-status-accepted { color:#4caf87;border-color:rgba(76,175,135,0.3);background:rgba(76,175,135,0.06); }
.ct-status-declined { color:#9aa0b4;border-color:rgba(154,160,180,0.2);background:rgba(154,160,180,0.04); }

/* memo row details */
.ct-memo-info { flex:1;min-width:0; }
.ct-memo-top { display:flex;align-items:center;gap:8px; }
.ct-memo-handle { font-family:'DM Mono',monospace;font-size:12px;color:#e4e4e4; }
.ct-memo-role { font-size:11px; }
.ct-memo-listing { font-size:10.5px;color:#9aa0b4;margin-top:3px;font-family:'DM Mono',monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.ct-memo-preview { font-size:11px;color:#9aa0b4;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.ct-memo-date { font-size:10px;color:#6b7280;margin-top:3px;font-family:'DM Mono',monospace; }

/* contact row details */
.ct-contact-info { flex:1; }
.ct-contact-handle { font-family:'DM Mono',monospace;font-size:12px;color:#e4e4e4; }
.ct-contact-meta { font-size:10.5px;color:#9aa0b4;margin-top:2px;font-family:'DM Mono',monospace; }

/* chain view */
.ct-chain[hidden] { display:none; }
.ct-chain { padding:20px 24px;display:flex;flex-direction:column;gap:16px;flex:1;overflow-y:auto; }
.ct-back { background:none;border:none;color:#9aa0b4;font-family:'DM Mono',monospace;font-size:11px;cursor:pointer;padding:0;text-align:left; }
.ct-back:hover { color:#e4e4e4; }
.ct-chain-header { display:flex;align-items:center;gap:12px; }
.ct-chain-who { flex:1;min-width:0; }
.ct-chain-handle { font-family:'DM Mono',monospace;font-size:13px;color:#e4e4e4; }
.ct-chain-listing { font-size:11px;color:#9aa0b4;font-family:'DM Mono',monospace;margin-top:2px; }
.ct-chain-body { background:rgba(255,255,255,0.03);border-radius:8px;padding:16px; }
.ct-chain-message { font-size:12px;color:#e4e4e4;line-height:1.5;white-space:pre-wrap; }
.ct-chain-meta { font-size:10.5px;color:#9aa0b4;margin-top:10px;font-family:'DM Mono',monospace; }
.ct-chain-footer { display:flex;flex-direction:column;gap:10px; }
.ct-chain-actions { display:flex;gap:10px; }
.cc-state-hint { font-size:11px;color:#9aa0b4;font-family:'DM Mono',monospace; }
.cc-state-ok { font-size:11px;color:#4caf87;font-family:'DM Mono',monospace; }
.cc-state-muted { font-size:11px;color:#6b7280;font-family:'DM Mono',monospace; }
.ct-contact-reveal { font-size:11px;color:#4caf87;font-family:'DM Mono',monospace;margin-top:4px; }
.ct-contact-link { font-size:11px;color:#c9962e;font-family:'DM Mono',monospace;margin-top:4px; }


.lst-grade-btn {
  background:rgba(255,255,255,0.04);border:1.5px solid rgba(255,255,255,0.1);
  border-radius:20px;padding:5px 13px;font-size:11px;
  font-family:'DM Mono',monospace;color:#9aa0b4;cursor:pointer;transition:all 0.15s;
}
.lst-grade-btn:hover { border-color:rgba(201,150,46,0.3);color:#e8e4dc; }
.lst-grade-active { border-color:rgba(201,150,46,0.6) !important;color:#c9962e !important;background:rgba(201,150,46,0.06) !important; }


/* ══ hover classes (replaces inline onmouseover/onmouseout) ══ */
.btn-gold-cta:hover { background: #e8b840 !important; transform: translateY(-1px); }

/* dark modal close buttons */
.modal-close-btn:hover { background: rgba(255,255,255,0.12); }
.modal-close-btn-light:hover { background: rgba(255,255,255,0.08); }

/* sign-out button */
.btn-signout:hover { border-color: rgba(224,88,88,0.4); color: #e05858; }

/* contact row ghost button */
.btn-ghost-gold:hover { border-color: rgba(201,150,46,0.3); color: #c9962e; }

/* dark-theme input focus (signup, signin, account) */
.dark-input {
  background:rgba(255,255,255,0.04);border:1.5px solid rgba(255,255,255,0.1);
  border-radius:8px;padding:11px 13px;font-family:'DM Sans',sans-serif;
  font-size:13.5px;color:#e8e4dc;outline:none;width:100%;
  transition:border-color 0.2s, box-shadow 0.2s;
}
.dark-input:focus {
  border-color: #c9962e;
  box-shadow: 0 0 0 3px rgba(201,150,46,0.1);
}

/* ══ accessibility ══ */
*:focus-visible {
  outline: 2px solid var(--blue-mid);
  outline-offset: 2px;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue-mid);
  outline-offset: 2px;
}
/* skip-to-content (screen reader shortcut) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* ══════════════════════════════════════════════════
   DARK MODAL DESIGN SYSTEM
   shared classes for all modal overlays
   ══════════════════════════════════════════════════ */

/* overlay backdrop */
.dk-overlay {
  position:fixed;inset:0;background:rgba(10,12,20,0.75);z-index:2100;
  display:none;align-items:center;justify-content:center;padding:20px;
  backdrop-filter:blur(4px);
}
.dk-overlay.open, .dk-overlay.is-open { display:flex; }

/* modal shell */
.dk-shell {
  background:#13151e;border:1px solid rgba(255,255,255,0.08);
  border-radius:14px;overflow:hidden;
  box-shadow:0 32px 80px rgba(0,0,0,0.7);
  animation:spSlide 0.22s cubic-bezier(0.22,1,0.36,1);
}

/* modal header bar */
.dk-head {
  background:#1e2235;padding:20px 24px;
  border-bottom:1px solid rgba(255,255,255,0.06);
  display:flex;align-items:center;justify-content:space-between;
}

/* ✕ close button (circle) */
.dk-close {
  background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.1);
  color:#9aa0b4;width:28px;height:28px;border-radius:50%;font-size:13px;
  cursor:pointer;display:flex;align-items:center;justify-content:center;
  transition:all 0.15s;flex-shrink:0;
}
.dk-close:hover { background:rgba(255,255,255,0.12); color:white; }

/* gold CTA button — the primary action */
.dk-btn-gold {
  background:#c9962e;color:#13151e;border:none;border-radius:8px;
  padding:13px 24px;font-family:'DM Sans',sans-serif;font-size:14px;
  font-weight:600;cursor:pointer;transition:all 0.2s;
}
.dk-btn-gold:hover { background:#e8b840; transform:translateY(-1px); }

/* secondary / ghost button */
.dk-btn-ghost {
  background:none;color:#9aa0b4;border:1.5px solid rgba(255,255,255,0.08);
  border-radius:8px;padding:12px 20px;font-family:'DM Sans',sans-serif;
  font-size:13px;cursor:pointer;transition:all 0.2s;
}
.dk-btn-ghost:hover { border-color:rgba(255,255,255,0.2); color:#e8e4dc; }

/* headings — cormorant italic */
.dk-h1 { font-family:'Cormorant',serif;font-size:28px;font-weight:300;font-style:italic;color:#e8e4dc;letter-spacing:-0.01em;line-height:1.1; }
.dk-h2 { font-family:'Cormorant',serif;font-size:24px;font-weight:300;font-style:italic;color:#e8e4dc; }
.dk-h3 { font-family:'Cormorant',serif;font-size:22px;font-weight:300;font-style:italic;color:#e8e4dc; }
.dk-h4 { font-family:'Cormorant',serif;font-size:20px;font-weight:300;font-style:italic;color:#e8e4dc; }

/* gold accent inline */
.dk-gold { color:#c9962e;font-weight:600; }

/* body text */
.dk-body { font-size:13px;color:#9aa0b4;line-height:1.8;font-family:'DM Sans',sans-serif; }
.dk-body-sm { font-size:12.5px;color:#9aa0b4;line-height:1.7; }

/* mono labels (form fields) */
.dk-label {
  font-size:10.5px;font-weight:500;color:#9aa0b4;
  font-family:'DM Mono',monospace;letter-spacing:0.08em;text-transform:uppercase;
}

/* mono hints */
.dk-hint { font-size:10px;color:#556070;font-family:'DM Mono',monospace; }
.dk-hint-lg { font-size:11px;color:#556070;font-family:'DM Mono',monospace; }
.dk-sub { font-size:10.5px;color:#556070;font-family:'DM Mono',monospace;margin-top:2px; }

/* mono captions */
.dk-caption { font-size:11px;color:#556070;font-family:'DM Mono',monospace; }
.dk-caption-gold { font-size:11px;color:#c9962e;font-family:'DM Mono',monospace; }
.dk-caption-green { font-size:11px;font-family:'DM Mono',monospace;color:#4caf87;min-height:14px; }

/* form field wrapper */
.dk-field { display:flex;flex-direction:column;gap:4px; }

/* confirmation summary row */
.dk-confirm-row {
  display:flex;justify-content:space-between;padding:10px 14px;
  background:rgba(255,255,255,0.03);
}
.dk-confirm-label { font-size:11px;color:#556070;font-family:'DM Mono',monospace; }
.dk-confirm-val { font-size:13px;color:#e8e4dc;font-weight:500; }
.dk-confirm-val--gold { font-size:13px;color:#c9962e;font-weight:600; }
.dk-confirm-val--green { font-size:13px;color:#3dba7e;font-weight:500; }

/* step wizard circle */
.dk-step-circle {
  width:26px;height:26px;border-radius:50%;border:1.5px solid #556070;
  display:flex;align-items:center;justify-content:center;
  font-size:11px;font-family:'DM Mono',monospace;color:#556070;
  background:#13151e;position:relative;z-index:1;transition:all 0.3s;
}
.dk-step-label { font-size:9.5px;font-family:'DM Mono',monospace;color:#556070;text-transform:uppercase;letter-spacing:0.1em; }

/* trust point icon (gold coin circle) */
.dk-trust-icon {
  width:28px;height:28px;border-radius:50%;flex-shrink:0;
  background:radial-gradient(ellipse at 38% 32%,#d4a830 0%,#9a7020 60%,#6a4c10 100%);
  box-shadow:inset 0 1px 3px rgba(255,255,255,0.2),inset 0 -1px 3px rgba(0,0,0,0.4);
  display:flex;align-items:center;justify-content:center;font-size:12px;margin-top:1px;
}

/* trust point row */
.dk-trust-row { display:flex;gap:10px;align-items:flex-start; }
.dk-trust-title { font-size:11.5px;font-weight:500;color:#e8e4dc;margin-bottom:2px; }
.dk-trust-desc { font-size:10px;color:#556070;font-family:'DM Mono',monospace;line-height:1.6; }

/* utility */
.dk-center { text-align:center; }
.dk-mt-auto { margin-top:auto; }
.dk-flex-col { display:flex;flex-direction:column; }
.dk-flex-row { display:flex;align-items:center; }
.dk-gap-4 { gap:4px; }
.dk-gap-8 { gap:8px; }
.dk-gap-10 { gap:10px; }
.dk-gap-16 { gap:16px; }
.dk-gap-18 { gap:18px; }
.dk-gap-22 { gap:22px; }
.dk-w-full { width:100%; }


/* ── additional dark modal classes (phase 3) ── */
.dk-name { font-size:13px;font-weight:600;color:#e8e4dc;font-family:'DM Sans',sans-serif; }
.dk-tier-price { font-family:'Cormorant',serif;font-size:20px;font-weight:600;color:#c9962e;font-style:italic; }
.dk-tier-label { font-weight:600;font-size:14px;color:#e8e4dc; }
.dk-tier-desc { font-size:12px;color:#9aa0b4;line-height:1.6; }
.dk-step-divider { flex:1;height:1px;background:rgba(255,255,255,0.07);margin-bottom:18px; }
.dk-panel { display:none;flex-direction:column;gap:16px;flex:1; }
.dk-btn-row { display:flex;gap:10px;margin-top:auto; }
.dk-grid-2col { display:grid;grid-template-columns:1fr 1fr;gap:14px; }
.dk-empty-state {
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:10px;padding:60px 32px;text-align:center;
}
.dk-empty-icon { font-size:36px;opacity:0.3; }
.dk-empty-desc { font-size:11px;color:#556070;font-family:'DM Mono',monospace;line-height:1.7;max-width:320px; }
.dk-tab-panel { padding:28px 32px;display:none;flex-direction:column;gap:22px; }
.dk-field-error { font-size:10.5px;color:#e05858;font-family:'DM Mono',monospace;min-height:14px;display:block; }

/* ── signup step nodes ── */
.sp-node { display:flex;flex-direction:column;align-items:center;gap:5px;flex:1;position:relative; }
.sp-node.active .dk-step-circle { border-color:var(--gold);color:var(--gold); }
.sp-node.done   .dk-step-circle { border-color:#5dbb8a;color:#5dbb8a; }
.sp-node.active .dk-step-label  { color:var(--gold); }
.sp-node.done   .dk-step-label  { color:#5dbb8a; }

/* ── account modal tab panel ── */
.ac-tab { display:none;flex-direction:column;gap:22px;padding:28px 32px; }
.ac-tab.active { display:flex; }
.sp-field-check { font-size:11px;color:#5dbb8a;margin-top:2px; }
.sp-node\:\:after { } /* inline connector div, styled via HTML attr */


/* ══════════════════════════════════════════════════
   EXTRACTED INLINE STYLES  ·  phase 4
   ══════════════════════════════════════════════════ */

/* ── topbar ── */
.topbar-indicative { font-size:10px;color:#3a4458;font-family:var(--mono); }

/* ── price separator (sidebar) ── */
.price-sep { color:var(--text-muted);font-size:11px; }

/* ── pagination next ── */
.page-btn--next { margin-left:6px; }

/* ── drawer ref-value accent ── */
.ref-value--green { color:var(--green); }

/* ── drawer table scroll wrap ── */
.drawer-scroll { flex:1;overflow-y:auto; }

/* ── signup shell (the outer flex container) ── */
.sp-shell {
  background:#13151e;border:1px solid rgba(255,255,255,0.08);
  border-radius:14px;width:100%;max-width:880px;max-height:90vh;
  overflow:hidden;display:flex;box-shadow:0 32px 80px rgba(0,0,0,0.7);
  animation:spSlide 0.25s cubic-bezier(0.22,1,0.36,1);
}

/* ── signup left strip ── */
.sp-left {
  width:220px;flex-shrink:0;background:#1e2235;
  border-right:1px solid rgba(255,255,255,0.06);
  padding:36px 28px;display:flex;flex-direction:column;gap:0;
  position:relative;overflow:hidden;
}

/* background glyph ── */
.sp-bg-glyph {
  position:absolute;bottom:-80px;left:-30px;
  font-family:'GFS Didot',serif;font-size:320px;
  color:rgba(201,150,46,0.04);line-height:1;
  pointer-events:none;user-select:none;
}

/* ── logo lockup in dark modals ── */
.dk-logo {
  font-family:'Cormorant',serif;font-size:22px;font-weight:300;
  font-style:italic;letter-spacing:0.02em;transform:skewX(-5deg);
  transform-origin:left bottom;display:flex;align-items:baseline;
  margin-bottom:32px;
}
.dk-logo-eta {
  font-family:'GFS Didot',serif;font-size:27px;font-style:italic;
  color:#c9962e;margin-right:1px;
}
.dk-logo-rest { color:#e8e4dc;font-weight:300; }
.dk-logo-mate {
  background:linear-gradient(90deg,#c9962e,#e8b840);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
  background-clip:text;font-weight:600;
}

/* greek motto */
.dk-motto-greek {
  font-family:'GFS Didot',serif;font-size:13px;color:#c9962e;
  letter-spacing:0.12em;opacity:0.8;margin-bottom:4px;
}
.dk-motto-english {
  font-family:'DM Mono',monospace;font-size:9px;color:#556070;
  letter-spacing:0.2em;text-transform:uppercase;margin-bottom:36px;
}
.dk-motto-sm {
  font-family:'GFS Didot',serif;font-size:11px;color:#c9962e;
  letter-spacing:0.15em;opacity:0.8;
}
.dk-motto-xs {
  font-family:'GFS Didot',serif;font-size:12px;color:#c9962e;
  letter-spacing:0.15em;opacity:0.8;
}

/* ── signup trust points container ── */
.dk-trust-block { display:flex;flex-direction:column;gap:16px;margin-top:auto; }

/* ── signup right / form area ── */
.sp-form {
  flex:1;padding:36px 40px;overflow-y:auto;display:flex;
  flex-direction:column;gap:0;
}

/* ── close button (absolute, top-right, circle) ── */
.dk-close-abs {
  position:absolute;top:16px;right:16px;
  background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.1);
  color:#9aa0b4;width:30px;height:30px;border-radius:50%;
  font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;
  transition:all 0.15s;
}
.dk-close-abs:hover { background:rgba(255,255,255,0.12);color:white; }

/* ── step track row ── */
.sp-step-track { display:flex;align-items:center;margin-bottom:32px; }
.sp-step-connector {
  position:absolute;top:13px;left:50%;right:-50%;
  height:1px;background:rgba(255,255,255,0.07);z-index:0;
}
.sp-step-node { align-items:center;gap:5px;flex:1; }

/* ── panel 1 helper ── */
.dk-mt-neg4 { margin-top:-4px; }
.dk-mt-neg6 { margin-top:-6px; }
.dk-mt-neg8 { margin-top:-8px; }
.dk-mt-neg10 { margin-top:-10px; }
.dk-mt-4 { margin-top:4px; }
.dk-mt-6 { margin-top:6px; }

/* ── tier card inner layout ── */
.sp-tier-inner { flex:1; }
.sp-tier-top { display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px; }

/* ── why-a-fee callout ── */
.sp-fee-callout {
  background:rgba(201,150,46,0.06);border:1px solid rgba(201,150,46,0.2);
  border-radius:8px;padding:13px 15px;font-size:11.5px;color:#9aa0b4;line-height:1.75;
}
.sp-fee-callout strong { color:#c9962e; }

/* ── tribe selector label ── */
.sp-tribe-wrap { display:flex;flex-direction:column;gap:8px; }
.sp-tribe-label {
  font-size:10.5px;font-family:'DM Mono',monospace;color:#556070;letter-spacing:0.05em;
}
.sp-tribe-label-hint { color:#3a4458;margin-left:4px; }
.sp-tribe-row { display:flex;gap:8px; }

/* ── panel 3 confirm ── */
.sp-confirm-center {
  display:flex;flex-direction:column;align-items:center;
  padding:16px 0 20px;gap:8px;text-align:center;
}

/* ── gold coin medallion ── */
.dk-coin {
  width:76px;height:76px;border-radius:50%;
  background:radial-gradient(ellipse at 38% 32%,#e8c96a 0%,#c9962e 40%,#8a6010 100%);
  box-shadow:inset 0 3px 6px rgba(255,255,255,0.35),inset 0 -3px 8px rgba(0,0,0,0.5),
    0 0 0 3px #7a5010,0 0 0 5px #c9962e,0 0 0 8px rgba(201,150,46,0.2),
    0 8px 24px rgba(0,0,0,0.6);
  display:flex;align-items:center;justify-content:center;
  font-family:'GFS Didot',serif;font-size:40px;color:#fff8e8;
  text-shadow:0 1px 3px rgba(0,0,0,0.4);position:relative;
}
.dk-coin--lg {
  width:100px;height:100px;font-size:54px;
  box-shadow:inset 0 4px 8px rgba(255,255,255,0.35),inset 0 -4px 10px rgba(0,0,0,0.5),
    0 0 0 4px #7a5010,0 0 0 7px #c9962e,0 0 0 11px rgba(201,150,46,0.18),
    0 12px 40px rgba(0,0,0,0.7);
}

/* ── confirm summary rows ── */
.dk-confirm-stack { display:flex;flex-direction:column;gap:1px;border-radius:8px;overflow:hidden; }

/* ── terms checkbox label ── */
.sp-terms-label {
  display:flex;gap:10px;align-items:flex-start;
  font-size:12px;color:#556070;line-height:1.6;cursor:pointer;
}
.sp-terms-check { accent-color:#c9962e;margin-top:3px;flex-shrink:0; }

/* ── success message text ── */
.sp-success-title {
  font-family:'Cormorant',serif;font-size:32px;font-weight:300;
  font-style:italic;color:#e8e4dc;
}
.sp-success-body { max-width:300px; }
.sp-success-cta { margin-top:6px;padding:13px 36px; }

/* link inline helper */
.dk-link-gold { color:#c9962e;text-decoration:none; }
.dk-link-gold:hover { text-decoration:underline; }

/* ── signin overlay ── */
#signinOverlay {
  position:fixed;inset:0;background:rgba(10,12,20,0.75);z-index:2100;
  display:none;align-items:center;justify-content:center;padding:20px;
  backdrop-filter:blur(4px);
}
#signinOverlay.open { display:flex; }

/* signin shell */
.si-shell {
  background:#13151e;border:1px solid rgba(255,255,255,0.08);
  border-radius:14px;width:100%;max-width:400px;overflow:hidden;
  box-shadow:0 32px 80px rgba(0,0,0,0.7);
  animation:spSlide 0.22s cubic-bezier(0.22,1,0.36,1);
}

/* signin head */
.si-head {
  background:#1e2235;padding:24px 28px 20px;
  border-bottom:1px solid rgba(255,255,255,0.06);
  position:relative;display:flex;align-items:center;gap:16px;
}

/* ── coin scene (signin 3d coin) ── */
.si-coin-scene { perspective:220px;flex-shrink:0;width:48px;height:48px; }
.si-coin {
  width:48px;height:48px;position:relative;
  transform-style:preserve-3d;
  animation:coinIdle 2.8s cubic-bezier(0.4,0,0.2,1) infinite;
}
.si-coin-front {
  position:absolute;inset:0;border-radius:50%;
  backface-visibility:hidden;
  background:
    radial-gradient(ellipse 28% 22% at 32% 28%, rgba(255,252,220,0.95) 0%, transparent 100%),
    radial-gradient(ellipse at 40% 35%, #f0c040 0%, #c98a10 40%, #7a5008 75%, #3d2500 100%);
  box-shadow:
    inset 0 0 16px rgba(0,0,0,0.5),
    inset -3px -3px 8px rgba(0,0,0,0.4),
    0 0 0 3px #5a3a06,
    0 0 0 5px #b87a0e,
    0 0 0 7px #5a3a06;
  transform:translateZ(3px);
  display:flex;align-items:center;justify-content:center;
  font-family:'GFS Didot',serif;font-size:22px;color:#fff8e8;
  font-style:italic;text-shadow:0 1px 3px rgba(0,0,0,0.6);
}
.si-coin-back {
  position:absolute;inset:0;border-radius:50%;
  backface-visibility:hidden;
  background:radial-gradient(ellipse at 40% 35%, #c98a10 0%, #7a5008 50%, #3d2500 100%);
  box-shadow:
    inset 0 0 16px rgba(0,0,0,0.5),
    0 0 0 3px #5a3a06,
    0 0 0 5px #b87a0e,
    0 0 0 7px #5a3a06;
  transform:translateZ(-3px) rotateY(180deg);
  display:flex;align-items:center;justify-content:center;
  font-family:'GFS Didot',serif;font-size:14px;color:rgba(255,248,232,0.3);
  font-style:italic;
}

/* signin head text */
.si-title {
  font-family:'Cormorant',serif;font-size:22px;font-weight:300;
  font-style:italic;color:#e8e4dc;line-height:1.1;
}
.si-subtitle {
  font-size:11px;color:#556070;font-family:'DM Mono',monospace;
  margin-top:3px;letter-spacing:0.04em;
}

/* signin close */
.si-close {
  position:absolute;top:14px;right:14px;
  background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.1);
  color:#9aa0b4;width:28px;height:28px;border-radius:50%;font-size:13px;
  cursor:pointer;display:flex;align-items:center;justify-content:center;
  transition:all 0.15s;
}
.si-close:hover { background:rgba(255,255,255,0.12);color:white; }

/* signin form body */
.si-form { padding:24px 28px;display:flex;flex-direction:column;gap:14px; }

/* signin error */
.si-error {
  display:none;font-size:11.5px;color:#e05858;
  background:rgba(224,88,88,0.08);border:1px solid rgba(224,88,88,0.2);
  border-radius:7px;padding:9px 12px;font-family:'DM Mono',monospace;
}

/* signin field stack */
.dk-field-stack { display:flex;flex-direction:column;gap:5px; }

/* signin success flash */
.si-success {
  display:none;padding:32px 28px;text-align:center;
  flex-direction:column;align-items:center;gap:10px;
}
.si-success-check { font-size:32px; }
.si-success-title {
  font-family:'Cormorant',serif;font-size:22px;font-weight:300;color:#e8e4dc;
}
.si-success-handle {
  font-family:'DM Mono',monospace;font-size:12px;color:#c9962e;
}

/* ── profile modal foot buttons ── */
.pm-memo-btn {
  flex:1;background:#c9962e;color:#13151e;border:none;border-radius:8px;
  padding:11px;font-size:13.5px;font-weight:600;font-family:'DM Sans',sans-serif;
  cursor:pointer;transition:all 0.2s;
}
.pm-memo-btn:hover { background:#e8b840; }
.pm-close-btn {
  background:rgba(255,255,255,0.04);color:#9aa0b4;
  border:1px solid rgba(255,255,255,0.1);border-radius:8px;
  padding:11px 20px;font-size:13px;font-family:'DM Sans',sans-serif;
  cursor:pointer;transition:all 0.15s;
}
.pm-close-btn:hover { background:rgba(255,255,255,0.08);color:#e8e4dc; }

/* ── profile modal left divider ── */
.pm-divider { height:1px;background:rgba(255,255,255,0.06);margin:14px 0; }

/* ── profile modal info container ── */
.pm-info { padding:0 18px;display:flex;flex-direction:column;gap:8px; }

/* ── memo modal grid ── */
.mm-grid-2 { display:grid;grid-template-columns:1fr 1fr;gap:12px; }

/* ── memo modal reply hint ── */
.mm-reply-hint { margin-left:auto;font-size:10.5px;color:var(--text-muted);font-family:var(--mono); }

/* ── memo modal sent note ── */
.mm-sent-note { font-size:11px;color:var(--text-muted);font-family:var(--mono); }

/* ── account modal shell ── */
.ac-shell {
  background:#13151e;border:1px solid rgba(255,255,255,0.08);
  border-radius:14px;width:100%;max-width:720px;max-height:88vh;
  overflow:hidden;display:flex;box-shadow:0 32px 80px rgba(0,0,0,0.7);
  animation:spSlide 0.22s cubic-bezier(0.22,1,0.36,1);
}

/* account sidebar */
.ac-sidebar {
  width:220px;flex-shrink:0;background:#0f1118;
  border-right:1px solid rgba(255,255,255,0.06);
  display:flex;flex-direction:column;
}

/* account avatar block */
.ac-avatar-block {
  padding:24px 20px 20px;border-bottom:1px solid rgba(255,255,255,0.06);
}
.ac-avatar {
  width:52px;height:52px;border-radius:50%;
  background:linear-gradient(135deg,#c9962e,#7a5010);
  display:flex;align-items:center;justify-content:center;
  font-size:26px;margin-bottom:12px;cursor:pointer;
  border:2px solid rgba(201,150,46,0.25);
  transition:border-color 0.2s;
}
.ac-avatar:hover { border-color:rgba(201,150,46,0.5); }

/* account nav */
.ac-nav { padding:12px 0;flex:1; }

/* account signout block */
.ac-signout-block { padding:16px 20px;border-top:1px solid rgba(255,255,255,0.06); }
.ac-signout-btn {
  width:100%;background:none;border:1px solid rgba(255,255,255,0.1);
  border-radius:7px;padding:9px;color:#9aa0b4;font-size:12px;
  font-family:'DM Mono',monospace;cursor:pointer;transition:all 0.15s;
}
.ac-signout-btn:hover { border-color:rgba(224,88,88,0.4);color:#e05858; }

/* account content pane */
.ac-content { flex:1;overflow-y:auto;position:relative; }

/* account close (absolute top-right) */
.ac-close {
  position:absolute;top:16px;right:16px;
  background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.1);
  color:#9aa0b4;width:28px;height:28px;border-radius:50%;font-size:13px;
  cursor:pointer;display:flex;align-items:center;justify-content:center;
  transition:all 0.15s;z-index:1;
}
.ac-close:hover { background:rgba(255,255,255,0.12);color:white; }

/* account tier badge */
.ac-tier-badge {
  display:inline-flex;align-items:center;gap:6px;
  background:rgba(201,150,46,0.1);border:1px solid rgba(201,150,46,0.25);
  border-radius:20px;padding:5px 12px;
  font-size:11px;font-family:'DM Mono',monospace;color:#c9962e;
}

/* account tribe row */
.ac-tribe-row { display:flex;gap:8px;margin-top:2px; }

/* ── contacts shell ── */
.ct-shell {
  background:#13151e;border:1px solid rgba(255,255,255,0.08);
  border-radius:14px;width:100%;max-width:680px;max-height:88vh;
  overflow:hidden;display:flex;flex-direction:column;
  box-shadow:0 32px 80px rgba(0,0,0,0.7);
  animation:spSlide 0.22s cubic-bezier(0.22,1,0.36,1);
}

/* contacts head right controls */
.ct-head-right { display:flex;align-items:center;gap:8px; }

/* contacts close */
.ct-close {
  background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.1);
  color:#9aa0b4;width:28px;height:28px;border-radius:50%;font-size:13px;
  cursor:pointer;display:flex;align-items:center;justify-content:center;
  margin-left:8px;transition:all 0.15s;
}
.ct-close:hover { background:rgba(255,255,255,0.12);color:white; }

/* contacts empty text */
.ct-empty-text { font-size:13px;color:#9aa0b4;font-family:'DM Sans',sans-serif; }

/* contacts list container */
.ct-list { display:none;flex-direction:column; }

/* ── seller upsell shell ── */
.su-shell {
  background:#13151e;border:1px solid rgba(255,255,255,0.08);
  border-radius:14px;width:100%;max-width:400px;overflow:hidden;
  box-shadow:0 32px 80px rgba(0,0,0,0.7);
  animation:spSlide 0.22s cubic-bezier(0.22,1,0.36,1);
}

/* upsell body */
.su-body { padding:28px 24px;display:flex;flex-direction:column;gap:18px; }

/* upsell price card */
.su-price-card {
  background:rgba(201,150,46,0.06);border:1px solid rgba(201,150,46,0.15);
  border-radius:10px;padding:16px 18px;display:flex;flex-direction:column;gap:10px;
}
.su-price-top { display:flex;justify-content:space-between;align-items:baseline; }
.su-price-label { font-size:13px;font-weight:600;color:#e8e4dc; }
.su-price-val { font-family:'Cormorant',serif;font-size:22px;font-weight:600;color:#c9962e;font-style:italic; }
.su-price-features { font-size:11.5px;color:#9aa0b4;line-height:1.7; }

/* upsell disclaimer */
.su-disclaimer {
  background:rgba(255,255,255,0.02);border:1px solid rgba(255,255,255,0.07);
  border-radius:8px;padding:12px 14px;font-size:11px;color:#556070;
  font-family:'DM Mono',monospace;line-height:1.75;
}

/* ── listing modal shell ── */
.lst-shell {
  background:#13151e;border:1px solid rgba(255,255,255,0.08);
  border-radius:14px;width:100%;max-width:560px;max-height:90vh;
  overflow-y:auto;box-shadow:0 32px 80px rgba(0,0,0,0.7);
  animation:spSlide 0.22s cubic-bezier(0.22,1,0.36,1);
}

/* listing head */
.lst-head {
  background:#1e2235;padding:20px 24px;
  border-bottom:1px solid rgba(255,255,255,0.06);
  display:flex;align-items:center;justify-content:space-between;
  position:sticky;top:0;z-index:1;
}

/* listing form body */
.lst-body { padding:28px 24px;display:flex;flex-direction:column;gap:20px; }

/* listing grade row */
.lst-btn-row { display:flex;gap:8px;flex-wrap:wrap; }

/* listing textarea */
.lst-textarea { resize:vertical;font-family:'DM Sans',sans-serif; }

/* select cursor */
.dk-cursor-pointer { cursor:pointer; }

/* ── ping-dot green override (bulk cards) ── */
.ping-dot--green { --green:#5dbb8a; }
.ping-dot--green .ping-dot-core { background:#5dbb8a; }
.ping-dot--green .ping-dot-ring { border-color:#5dbb8a; }

/* seller count muted color */
.card-seller-muted { color:var(--text-muted); }
