[hidden] { display: none !important; }
:root {
  --bg: #0d1014; --panel: #151a21; --panel2: #1b2129; --line: #262e39; --text: #e7ebf0; --muted: #8b96a5;
  --gold: #f5b82e; --gold2: #ffcf5c; --green: #3fb950; --red: #f85149; --blue: #58a6ff; --purple: #bc8cff;
  --radius: 12px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 Inter, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: Oswald, Inter, sans-serif; letter-spacing: .01em; line-height: 1.15; margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
button { font: inherit; cursor: pointer; }
.muted { color: var(--muted); }
.demo-bar { background: repeating-linear-gradient(45deg, #2a2108, #2a2108 12px, #241c06 12px, #241c06 24px); color: var(--gold2); font-size: 13px; text-align: center; padding: 6px 16px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(13,16,20,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 24px; height: 62px; }
.brand { font: 700 24px Oswald, sans-serif; display: flex; align-items: center; gap: 8px; }
.brand span { color: var(--gold); }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--gold), #d9881a); color: #1b1203; display: grid; place-items: center; font-size: 18px; }
.nav { display: flex; gap: 20px; font-weight: 600; font-size: 14px; color: var(--muted); }
.nav a:hover, .nav a.on { color: var(--text); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; background: none; border: 0; color: var(--text); font-size: 26px; }
.bell { position: relative; background: var(--panel2); border: 1px solid var(--line); color: var(--text); width: 38px; height: 38px; border-radius: 10px; }
.bell .dot { position: absolute; top: -4px; right: -4px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; border-radius: 99px; padding: 1px 5px; }
.user-chip { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.role { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); }
.role.seller { color: var(--gold); } .role.buyer { color: var(--blue); } .role.admin { color: var(--purple); }

/* Buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; transition: .15s; }
.btn:hover { border-color: #3a4554; }
.btn.gold { background: linear-gradient(135deg, var(--gold), #e39b1c); color: #1b1203; border: 0; }
.btn.gold:hover { filter: brightness(1.08); }
.btn.green { background: var(--green); border: 0; color: #04140a; }
.btn.danger { color: var(--red); }
.btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
input, select, textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 10px 12px; font: inherit; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 5px; text-transform: uppercase; letter-spacing: .05em; }
.field { margin-bottom: 14px; }

/* Layout pieces */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.page { padding-top: 28px; padding-bottom: 60px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: 32px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.stat .v { font: 600 26px Oswald, sans-serif; margin-top: 2px; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 80% 0%, rgba(245,184,46,.18), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(88,166,255,.10), transparent 50%); }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 56px 16px; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { color: var(--muted); font-size: 17px; max-width: 34em; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; font-size: 13px; color: var(--muted); }
.trust i { color: var(--green); }
.flow { display: flex; flex-direction: column; gap: 10px; }
.flow-step { display: flex; gap: 14px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.flow-step .n { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--panel2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold); font-size: 17px; }
.flow-step b { display: block; }
.flow-step span { color: var(--muted); font-size: 13px; }
.section { padding: 36px 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 14px; }
.section-head h2 { font-size: 24px; }
.section-head a { color: var(--gold); font-weight: 600; font-size: 14px; }

/* Listing cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .15s; }
.card:hover { border-color: #3a4554; transform: translateY(-2px); }
.card-top { padding: 16px 16px 12px; background: linear-gradient(160deg, var(--panel2), var(--panel)); border-bottom: 1px solid var(--line); }
.card-top .row { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.acct-name { font: 600 19px Oswald, sans-serif; }
.tagline { font-size: 12px; color: var(--muted); }
.srv { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #22303f; color: var(--blue); white-space: nowrap; }
.power { font: 600 30px Oswald, sans-serif; margin-top: 8px; }
.power small { font: 500 12px Inter; color: var(--muted); margin-left: 4px; }
.card-body { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mini { background: var(--bg); border-radius: 8px; padding: 6px 8px; }
.mini .k { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.mini .v { font-weight: 700; font-size: 14px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.price { font: 600 24px Oswald, sans-serif; color: var(--gold); }
.verified { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--green); }
.sold-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: rgba(248,81,73,.15); color: var(--red); }

/* Status chips */
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.st-awaiting_bind { background: rgba(139,150,165,.15); color: var(--muted); }
.st-bound { background: rgba(88,166,255,.15); color: var(--blue); }
.st-listed { background: rgba(245,184,46,.15); color: var(--gold); }
.st-sold { background: rgba(188,140,255,.15); color: var(--purple); }
.st-transferred { background: rgba(63,185,80,.15); color: var(--green); }
.st-returned { background: rgba(248,81,73,.12); color: var(--red); }

/* Browse */
.browse { display: grid; grid-template-columns: 250px 1fr; gap: 20px; align-items: start; }
.filters { position: sticky; top: 82px; }
.filters .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.result-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; flex-wrap: wrap; }
.result-head select { width: auto; }

/* Listing detail */
.detail-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.detail-head h1 { font-size: 40px; }
.vstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.vstat { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.vstat .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.vstat .v { font: 600 22px Oswald, sans-serif; }
.vbox-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.desc { white-space: pre-wrap; color: #cdd4dd; }
.buybox .price { font-size: 42px; }
.guarantee { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.guarantee i { color: var(--green); margin-right: 6px; }
.seller-card { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #2b3646, #1b2129); display: grid; place-items: center; font: 700 18px Oswald; color: var(--gold); }

/* Dashboards */
.holding { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 10px; }
.holding .meta { font-size: 13px; color: var(--muted); }
.holding .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: end; }
.escrow-addr { font-family: ui-monospace, Menlo, monospace; background: var(--bg); border: 1px dashed var(--gold); color: var(--gold2); padding: 10px 12px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; word-break: break-all; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 12px 0; }
.steps li { counter-increment: s; position: relative; padding: 6px 0 6px 34px; color: #cdd4dd; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 5px; width: 24px; height: 24px; border-radius: 7px; background: var(--panel2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--gold); }
.code-box { text-align: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.code { font: 600 44px ui-monospace, Menlo, monospace; letter-spacing: .25em; color: var(--gold2); }
.bar { height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; margin: 8px 0; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--green)); }
.sim { border: 1px dashed #4a3a10; background: #1d1807; border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--gold2); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; padding: 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl-wrap { overflow-x: auto; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty i { font-size: 36px; display: block; margin-bottom: 8px; }

/* Messages */
.threads { display: grid; grid-template-columns: 300px 1fr; gap: 16px; min-height: 420px; }
.thread-item { padding: 12px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.thread-item:hover, .thread-item.on { background: var(--panel2); border-color: var(--line); }
.bubbles { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; padding: 4px; }
.bubble { max-width: 75%; padding: 9px 12px; border-radius: 12px; background: var(--panel2); font-size: 14px; }
.bubble.mine { align-self: flex-end; background: #3a2c0b; }
.bubble small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }

/* Auth */
.auth { max-width: 420px; margin: 40px auto; }
.demo-logins { display: grid; gap: 8px; margin-top: 14px; }
.tabs { display: flex; gap: 6px; background: var(--bg); padding: 4px; border-radius: 10px; margin-bottom: 16px; }
.tabs button { flex: 1; background: none; border: 0; color: var(--muted); padding: 8px; border-radius: 8px; font-weight: 600; }
.tabs button.on { background: var(--panel2); color: var(--text); }

/* Notifications dropdown, modal, toast */
.notif-pop { position: absolute; right: 16px; top: 64px; width: 340px; max-height: 420px; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.5); z-index: 40; }
.notif { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.notif.unread { background: rgba(245,184,46,.06); }
.notif small { display: block; color: var(--muted); font-size: 11px; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal-box { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; }
.modal-box h2 { margin-bottom: 12px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--panel2); border: 1px solid var(--line); padding: 11px 18px; border-radius: 12px; font-weight: 600; z-index: 60; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.search-results { max-height: 280px; overflow-y: auto; margin-top: 8px; }
.search-results button { width: 100%; text-align: left; background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 10px 12px; margin-bottom: 6px; display: flex; justify-content: space-between; gap: 8px; }
.search-results button:hover { border-color: var(--gold); }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; padding: 22px 0; text-align: center; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 8px 0 0; }

@media (max-width: 900px) {
  .hero-inner, .cols, .browse, .threads { grid-template-columns: 1fr; }
  .filters { position: static; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 62px; left: 0; right: 0; background: var(--panel); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 8px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; }
  .top-inner { gap: 12px; }
  .user-chip .name { display: none; }
  .vstats { grid-template-columns: repeat(2, 1fr); }
  .holding { grid-template-columns: 1fr; }
  .holding .actions { justify-content: start; }
  .notif-pop { left: 16px; width: auto; }
}
