:root {
  --bg: #0d0d0d;
  --bg2: #141414;
  --card: #1a1a1a;
  --card-hover: #222;
  --border: #2a2a2a;
  --border-hot: #333;
  --text: #e8e8e8;
  --dim: #777;
  --muted: #555;
  --neon: #39ff14;
  --neon-dim: rgba(57, 255, 20, 0.07);
  --neon-glow: rgba(57, 255, 20, 0.25);
  --hot: #ff3131;
  --hot-dim: rgba(255, 49, 49, 0.08);
  --cash: #ffd700;
  --cash-dim: rgba(255, 215, 0, 0.08);
  --purple: #b44aff;
  --purple-dim: rgba(180, 74, 255, 0.08);
  --glitch: 'Rubik Glitch', cursive;
  --mono: 'IBM Plex Mono', monospace;
  --head: 'Syne', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  min-height: 100vh;
  cursor: crosshair;
}

::selection { background: var(--neon); color: var(--bg); }

/* Scanline overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
}

/* Flicker animation for accents */
@keyframes flicker {
  0%, 95%, 100% { opacity: 1; }
  96% { opacity: 0.4; }
  97% { opacity: 1; }
  98% { opacity: 0.6; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glitchShift {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(-2px, 1px); }
  94% { transform: translate(2px, -1px); }
  96% { transform: translate(-1px, -1px); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 52px;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--glitch);
  font-size: 20px;
  color: var(--neon);
  text-decoration: none;
  animation: flicker 4s infinite;
  text-shadow: 0 0 8px var(--neon-glow), 0 0 20px rgba(57,255,20,0.1);
}

.nav-r {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-btn {
  padding: 7px 16px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--dim);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.1s;
  text-transform: lowercase;
  text-decoration: none;
}

.nav-btn:hover { color: var(--text); }

.nav-btn--go {
  color: var(--bg);
  background: var(--neon);
  margin-left: 8px;
  font-weight: 700;
  border: none;
  animation: flicker 5s infinite;
}

.nav-btn--go:hover {
  box-shadow: 0 0 16px var(--neon-glow);
}

/* HERO */
.hero {
  padding: 100px 28px 60px;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(57,255,20,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-warning {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--hot-dim);
  border: 1px solid rgba(255,49,49,0.25);
  font-size: 10px;
  font-weight: 600;
  color: var(--hot);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 28px;
  animation: slideUp 0.4s ease both;
}

.hero-warning .blink {
  animation: blink 1s step-end infinite;
}

.hero h1 {
  font-family: var(--head);
  font-size: clamp(44px, 7vw, 78px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  animation: slideUp 0.4s ease 0.1s both;
}

.hero h1 .g {
  font-family: var(--glitch);
  color: var(--neon);
  text-shadow: 0 0 12px var(--neon-glow);
  animation: glitchShift 6s infinite;
  display: inline-block;
}

.hero h1 .cash-text {
  color: var(--cash);
  text-shadow: 0 0 10px rgba(255,215,0,0.2);
}

.hero-sub {
  font-size: 14px;
  color: var(--dim);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
  font-weight: 300;
  animation: slideUp 0.4s ease 0.2s both;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 0;
  justify-content: center;
  animation: slideUp 0.4s ease 0.3s both;
}

.btn-sketch {
  padding: 12px 28px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--neon);
  cursor: pointer;
  transition: all 0.12s;
  text-transform: lowercase;
  text-decoration: none;
}

.btn-sketch--fill {
  background: var(--neon);
  color: var(--bg);
}

.btn-sketch--fill:hover {
  box-shadow: 0 0 20px var(--neon-glow), inset 0 0 20px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.btn-sketch--ghost {
  background: transparent;
  color: var(--neon);
  border-left: none;
}

.btn-sketch--ghost:hover {
  background: var(--neon-dim);
}

/* LOOP BAR */
.loop-bar {
  margin-top: 28px;
  animation: slideUp 0.4s ease 0.4s both;
}

.loop-inner {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 400px;
  margin: 0 auto;
}

.loop-email {
  flex: 1;
  border-right: none;
  font-size: 12px;
  padding: 10px 14px;
}

.loop-btn {
  white-space: nowrap;
  padding: 10px 20px;
  font-size: 11px;
}

.loop-sub {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.04em;
}

/* INTEREST MODAL EXTRAS */
.interest-toggles {
  display: flex;
  gap: 4px;
}

.interest-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.interest-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px !important;
  color: var(--dim) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 400 !important;
  cursor: pointer;
}

.interest-check input[type="checkbox"] {
  accent-color: var(--neon);
  cursor: pointer;
}

/* TICKER */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  margin-bottom: 0;
}

.ticker-inner {
  display: flex;
  gap: 48px;
  animation: tickerScroll 20s linear infinite;
  width: max-content;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--dim);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ticker-item .val {
  color: var(--neon);
  font-weight: 700;
}

.ticker-item .hot-val {
  color: var(--hot);
  font-weight: 700;
}

/* LISTINGS */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 28px 60px;
}

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.sec-title {
  font-family: var(--head);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sec-title .live-dot {
  width: 7px;
  height: 7px;
  background: var(--neon);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--neon-glow);
  animation: blink 2s ease-in-out infinite;
}

.pills {
  display: flex;
  gap: 4px;
}

.pill {
  padding: 5px 14px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.1s;
  text-transform: lowercase;
}

.pill:hover { color: var(--dim); border-color: var(--border-hot); }

.pill.on {
  color: var(--neon);
  border-color: var(--neon);
  background: var(--neon-dim);
  box-shadow: 0 0 8px rgba(57,255,20,0.08);
}

/* SEARCH BAR */
.sec-search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 180px;
  max-width: 300px;
  padding: 7px 12px;
  font-size: 12px;
}

/* CARDS */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 12px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 22px;
  position: relative;
  cursor: pointer;
  transition: all 0.15s;
  animation: slideUp 0.35s ease both;
  overflow: hidden;
}

.card:nth-child(1) { animation-delay: 0s; }
.card:nth-child(2) { animation-delay: 0.04s; }
.card:nth-child(3) { animation-delay: 0.08s; }
.card:nth-child(4) { animation-delay: 0.12s; }
.card:nth-child(5) { animation-delay: 0.16s; }
.card:nth-child(6) { animation-delay: 0.2s; }

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  transition: background 0.15s;
}

.card[data-type="selling"]::before { background: var(--neon); }
.card[data-type="buying"]::before { background: var(--cash); }

.card:hover {
  border-color: var(--border-hot);
  background: var(--card-hover);
  transform: translateX(3px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card-type {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 8px;
}

.card-type--sell {
  background: var(--neon-dim);
  color: var(--neon);
  border: 1px solid rgba(57,255,20,0.2);
}

.card-type--buy {
  background: var(--cash-dim);
  color: var(--cash);
  border: 1px solid rgba(255,215,0,0.2);
}

.card-provider {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-title {
  font-family: var(--head);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}

.card-desc {
  font-size: 11px;
  color: var(--dim);
  line-height: 1.6;
  margin-bottom: 16px;
  font-weight: 300;
}

.card-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.card-chip {
  font-size: 10px;
  padding: 3px 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--dim);
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.card-price {
  font-family: var(--head);
  font-size: 20px;
  font-weight: 700;
  color: var(--neon);
  text-shadow: 0 0 8px rgba(57,255,20,0.15);
}

.card-price .label {
  font-size: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 400;
  text-shadow: none;
  margin-left: 4px;
  text-transform: lowercase;
}

.card-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-av {
  width: 26px;
  height: 26px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--dim);
}

.card-uname {
  font-size: 11px;
  color: var(--dim);
}

.card-verified {
  width: 6px;
  height: 6px;
  background: var(--neon);
  border-radius: 50%;
  box-shadow: 0 0 4px var(--neon-glow);
}

.card-msg {
  padding: 6px 14px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--dim);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.1s;
  text-transform: lowercase;
}

.card-msg:hover {
  color: var(--neon);
  border-color: var(--neon);
  background: var(--neon-dim);
  box-shadow: 0 0 10px rgba(57,255,20,0.1);
}

/* HOW */
.how-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
  margin: 0 auto;
}

.how-step {
  padding: 28px;
  border-right: 1px solid var(--border);
  position: relative;
}

.how-step:last-child { border-right: none; }

.how-n {
  font-family: var(--head);
  font-size: 48px;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: 10px;
}

.how-step h3 {
  font-family: var(--head);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.how-step p {
  font-size: 11px;
  color: var(--dim);
  line-height: 1.6;
  font-weight: 300;
}

/* DISCLAIMER STRIP */
.disclaimer {
  padding: 16px 28px;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.disclaimer a {
  color: var(--dim);
}

/* FOOTER */
footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  text-transform: lowercase;
}

/* MODAL */
.mo {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

.mo.open { opacity: 1; pointer-events: all; }

.mo-box {
  background: var(--card);
  border: 1px solid var(--border);
  width: 90%;
  max-width: 480px;
  transform: translateY(8px);
  transition: transform 0.2s;
}

.mo.open .mo-box { transform: translateY(0); }

.mo-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mo-head h3 {
  font-family: var(--head);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.mo-x {
  width: 26px;
  height: 26px;
  background: var(--border);
  border: none;
  color: var(--dim);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mo-x:hover { background: var(--hot); color: white; }

.mo-body { padding: 20px; }

.fg { margin-bottom: 14px; }

.fg label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 5px;
}

.fi {
  width: 100%;
  padding: 9px 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  outline: none;
  transition: border-color 0.1s;
}

.fi:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 2px var(--neon-dim);
}

.fi-sel {
  appearance: none;
  background: var(--bg) url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23555' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  padding-right: 30px;
}

.fi-ta { resize: vertical; min-height: 70px; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.mo-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0;
}

.mo-foot .btn-sketch { flex: 1; text-align: center; display: flex; align-items: center; justify-content: center; }
.mo-foot .btn-sketch + .btn-sketch { border-left: none; }

/* Contact info reveal */
.card-contact {
  display: none;
  padding: 10px 0 0;
  font-size: 11px;
  color: var(--neon);
  word-break: break-all;
}

.card-contact.show { display: block; }

/* Own listing controls */
.card-own-controls {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}

.card-own-btn {
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  text-transform: lowercase;
  transition: all 0.1s;
}

.card-own-btn:hover { border-color: var(--dim); color: var(--text); }
.card-own-btn--del { color: var(--hot); }
.card-own-btn--del:hover { border-color: var(--hot); background: var(--hot-dim); }
.card-own-btn--edit { color: var(--dim); }
.card-own-btn--edit:hover { border-color: var(--neon); color: var(--neon); background: var(--neon-dim); }
.card-own-btn--traded { color: var(--cash); }
.card-own-btn--traded:hover { border-color: var(--cash); background: var(--cash-dim); }

.card-traded-badge {
  font-size: 9px;
  padding: 2px 7px;
  border: 1px solid var(--cash);
  color: var(--cash);
  border-radius: 2px;
  letter-spacing: 0.08em;
  margin-left: auto;
}

.card--traded { opacity: 0.6; }

/* AI suggest button */
.ai-btn {
  background: none;
  border: 1px solid var(--purple);
  color: var(--purple);
  cursor: pointer;
  font-size: 9px;
  font-family: var(--mono);
  padding: 2px 7px;
  border-radius: 2px;
  margin-left: 8px;
  opacity: 0.75;
  transition: opacity 0.15s;
  vertical-align: middle;
}
.ai-btn:hover { opacity: 1; }
.ai-btn:disabled { opacity: 0.35; cursor: default; }

/* Trust score stat */
.profile-stat--trust .profile-stat-val { color: var(--neon); }

/* Nav auth states */
.nav-logged-in { display: none; }
.nav-logged-in.show { display: flex; align-items: center; gap: 2px; }
.nav-logged-out { display: flex; align-items: center; gap: 2px; }
.nav-logged-out.hide { display: none; }

.nav-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  margin-right: 4px;
}

.nav-username {
  font-size: 11px;
  color: var(--dim);
  margin-right: 8px;
}

/* Loading state */
.grid-loading {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-size: 12px;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 18px;
  background: var(--card);
  border: 1px solid var(--neon);
  color: var(--neon);
  font-family: var(--mono);
  font-size: 11px;
  z-index: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  border-color: var(--hot);
  color: var(--hot);
}

/* CHAT MODAL */
.mo-box--chat {
  max-width: 860px;
  width: 92%;
  height: 78vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}

.chat-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: var(--bg); }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); }

.chat-msg {
  max-width: 80%;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.5;
  background: var(--bg2);
  border: 1px solid var(--border);
  align-self: flex-start;
  word-break: break-word;
}

.chat-msg-meta {
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}

.chat-msg--own {
  align-self: flex-end;
  border-color: rgba(57,255,20,0.3);
  background: rgba(57,255,20,0.05);
}

.chat-msg--own .chat-msg-meta { text-align: right; }

.chat-input-row {
  display: flex;
  border-top: 1px solid var(--border);
}

.chat-input {
  flex: 1;
  border: none;
  border-right: 1px solid var(--border);
}

.chat-input:focus { box-shadow: none; }

.chat-send {
  padding: 10px 20px;
  border: none;
  font-size: 11px;
}

.chat-empty {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  padding: 40px 20px;
}

/* CHAT SIDEBAR */
.chat-sidebar {
  width: 260px;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  overflow-y: auto;
  background: var(--bg);
}

.chat-sidebar::-webkit-scrollbar { width: 4px; }
.chat-sidebar::-webkit-scrollbar-track { background: var(--bg); }
.chat-sidebar::-webkit-scrollbar-thumb { background: var(--border); }

.cs-section {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.cs-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 10px;
}

.cs-user { display: flex; align-items: center; gap: 10px; }

.cs-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  flex-shrink: 0;
  object-fit: cover;
}

.cs-av--init {
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--dim);
}

.cs-username { font-size: 13px; font-weight: 600; color: var(--text); }
.cs-dim { font-size: 10px; color: var(--muted); }

.cs-listing-title {
  font-family: var(--head);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.cs-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }

.cs-tag {
  font-size: 9px;
  padding: 2px 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--dim);
}

.cs-tag--sell { border-color: rgba(57,255,20,0.25); color: var(--neon); background: var(--neon-dim); }
.cs-tag--buy { border-color: rgba(255,215,0,0.25); color: var(--cash); background: var(--cash-dim); }

.cs-prices { margin-bottom: 10px; }

.cs-price-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 3px;
}

.cs-neon { color: var(--neon); font-weight: 700; }

.cs-desc {
  font-size: 11px;
  color: var(--dim);
  line-height: 1.5;
  margin-bottom: 8px;
}

.cs-row {
  font-size: 10px;
  margin-bottom: 5px;
  display: flex;
  gap: 6px;
  align-items: baseline;
  flex-wrap: wrap;
}

.cs-link { color: var(--neon); text-decoration: none; }
.cs-link:hover { text-decoration: underline; }
.cs-neon-text { color: var(--neon); word-break: break-all; }

.cs-other {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity 0.1s;
}

.cs-other:hover { opacity: 0.7; }
.cs-other:last-child { border-bottom: none; }

.cs-other-title {
  flex: 1;
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs-other-price { font-size: 11px; color: var(--neon); flex-shrink: 0; }

/* CONVERSATIONS LIST */
.conv-list { padding: 0; }

.conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
}

.conv-item:hover { background: var(--bg2); }

.conv-item-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--dim);
  flex-shrink: 0;
}

.conv-item-av img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.conv-item-info {
  flex: 1;
  min-width: 0;
}

.conv-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.conv-item-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.conv-item-time {
  font-size: 9px;
  color: var(--muted);
  flex-shrink: 0;
}

.conv-item-listing {
  font-size: 10px;
  color: var(--neon);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-item-preview {
  font-size: 11px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero { padding: 80px 20px 50px; }
  .grid { grid-template-columns: 1fr; }
  .how-bar { grid-template-columns: 1fr; }
  .how-step { border-right: none; border-bottom: 1px solid var(--border); }
  .ticker-inner { gap: 32px; }
  nav { padding: 0 16px; }
  .section { padding: 32px 20px 48px; }
  .mo-box--chat { width: 95%; height: 90vh; }
  .chat-layout { flex-direction: column; }
  .chat-sidebar { width: 100%; border-left: none; border-top: 1px solid var(--border); max-height: 180px; }
}

/* ── Profile Modal ─────────────────────────────────── */
.mo-box--profile { max-width: 500px; }

.profile-header {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
}

.profile-av {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--neon);
  flex-shrink: 0;
}

.profile-av--init {
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--neon);
}

.profile-info { display: flex; flex-direction: column; gap: 0.3rem; }
.profile-username { font-family: var(--head); font-size: 1.25rem; font-weight: 700; color: var(--text); }
.profile-since { font-size: 0.75rem; color: var(--dim); }

.profile-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding: 0.8rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.profile-stat { flex: 1; text-align: center; font-size: 0.72rem; color: var(--dim); }
.profile-stat-val {
  font-family: var(--head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--neon);
  margin-bottom: 0.2rem;
}

.profile-listings { display: flex; flex-direction: column; gap: 0.5rem; }

.profile-listing-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.8rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.profile-listing-card:hover { border-color: var(--neon); }

.profile-listing-title {
  flex: 1;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-listing-price { font-size: 0.82rem; color: var(--neon); font-weight: 600; white-space: nowrap; }

.card-uname-link { cursor: pointer; transition: color 0.15s; }
.card-uname-link:hover { color: var(--neon); text-decoration: underline; }

/* ── Profile Full Page ──────────────────────────────── */
.profile-page {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.22s ease;
}
.profile-page.open { transform: translateX(0); }

.profile-page-nav {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 1.5rem;
  z-index: 1;
}

.profile-page-back {
  background: none;
  border: none;
  color: var(--neon);
  font-family: var(--mono);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.03em;
}
.profile-page-back:hover { text-decoration: underline; }

.profile-page-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.profile-av--lg {
  width: 80px;
  height: 80px;
  font-size: 1.5rem;
}

/* ── Profile Hover Preview ──────────────────────────── */
.profile-preview {
  position: fixed;
  z-index: 200;
  background: var(--bg2);
  border: 1px solid var(--border-hot);
  border-radius: 6px;
  padding: 0.8rem;
  width: 200px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.6);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
}
.profile-preview.show { opacity: 1; }

.pp-user { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }

.pp-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--neon);
  flex-shrink: 0;
}
.pp-av--init {
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--neon);
}

.pp-username { font-weight: 600; font-size: 0.85rem; color: var(--text); }
.pp-since { font-size: 0.7rem; color: var(--dim); }

.pp-stats {
  display: flex;
  gap: 0.8rem;
  font-size: 0.72rem;
  color: var(--dim);
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
}

.profile-dm-btn {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  padding: 0.3rem 0.9rem;
  width: fit-content;
}

/* ── Admin Panel ──────────────────────────────────────── */
.admin-badge {
  display: inline-block;
  font-size: 9px;
  padding: 2px 7px;
  border: 1px solid var(--neon);
  color: var(--neon);
  border-radius: 2px;
  letter-spacing: 0.1em;
  margin-left: 8px;
  vertical-align: middle;
}

.admin-panel {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border-hot);
  padding-top: 1.5rem;
}

.admin-panel-title {
  font-size: 0.7rem;
  color: var(--neon);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.admin-tab {
  background: none;
  border: 1px solid var(--border);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 4px 14px;
  cursor: crosshair;
  border-radius: 2px;
  transition: all 0.1s;
}
.admin-tab.on, .admin-tab:hover {
  border-color: var(--neon);
  color: var(--neon);
  background: var(--neon-dim);
}

.admin-growth-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  font-size: 0.72rem;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}

.admin-table th {
  text-align: left;
  padding: 7px 10px;
  color: var(--dim);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  white-space: nowrap;
  background: var(--bg2);
}

.admin-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-row--done td { opacity: 0.45; }

.admin-name-link {
  color: var(--text);
  text-decoration: none;
}
.admin-name-link:hover { color: var(--neon); }

.admin-contacts { display: flex; gap: 6px; align-items: center; }

.admin-cl {
  color: var(--dim);
  font-size: 0.68rem;
  text-decoration: none;
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 2px;
}
.admin-cl:hover { border-color: var(--neon); color: var(--neon); }

.admin-done {
  color: var(--neon);
  font-size: 0.8rem;
}

.admin-outreach-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 2px 8px;
  cursor: crosshair;
  border-radius: 2px;
}
.admin-outreach-btn:hover { border-color: var(--cash); color: var(--cash); }
.admin-outreach-btn:disabled { opacity: 0.4; cursor: default; }

.admin-stats { display: flex; flex-direction: column; gap: 1.5rem; }
.admin-stats-section { display: flex; flex-direction: column; gap: 0.3rem; }
.admin-stats-section .cs-label { margin-bottom: 0.4rem; }

.admin-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
  color: var(--dim);
}
.admin-stat-val {
  color: var(--neon);
  font-weight: 600;
}

/* ── Escrow ──────────────────────────────────────────── */
.card-escrow-badge {
  font-size: 9px;
  padding: 2px 7px;
  border: 1px solid var(--purple);
  color: var(--purple);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.card-escrow-btn {
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--purple);
  background: var(--purple-dim);
  border: 1px solid var(--purple);
  cursor: pointer;
  transition: all 0.1s;
  text-transform: lowercase;
}

.card-escrow-btn:hover {
  box-shadow: 0 0 10px rgba(180,74,255,0.15);
  background: rgba(180,74,255,0.15);
}

.escrow-breakdown {
  margin-bottom: 20px;
}

.escrow-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.escrow-row--dim {
  font-size: 11px;
  color: var(--dim);
}

.escrow-row--total {
  font-weight: 700;
  color: var(--neon);
  border-bottom: none;
  padding-top: 10px;
  font-size: 15px;
}

.escrow-card-el {
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  min-height: 44px;
}

.escrow-error {
  font-size: 11px;
  color: var(--hot);
  min-height: 16px;
}

/* Deal items in My Deals modal */
.deal-item {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.deal-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.deal-listing {
  font-family: var(--head);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  margin-right: 12px;
}

.deal-amount {
  font-size: 14px;
  color: var(--neon);
  font-weight: 700;
  flex-shrink: 0;
}

.deal-item-mid {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.deal-role {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border: 1px solid var(--border);
  color: var(--dim);
}

.deal-status {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
}

.deal-status--pending-payment { border: 1px solid var(--dim); color: var(--dim); }
.deal-status--paid { border: 1px solid var(--cash); color: var(--cash); }
.deal-status--delivered { border: 1px solid var(--purple); color: var(--purple); }
.deal-status--confirmed, .deal-status--released { border: 1px solid var(--neon); color: var(--neon); }
.deal-status--disputed { border: 1px solid var(--hot); color: var(--hot); }
.deal-status--refunded { border: 1px solid var(--hot); color: var(--hot); }

.deal-actions {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
