:root {
  --bg: #07110c;
  --bg-2: #0b1711;
  --panel: #0f1e16;
  --panel-2: #132619;
  --line: #1d3727;
  --line-2: #27503a;
  --text: #e7f5ed;
  --muted: #8aa999;
  --dim: #5f7d6d;
  --green: #16c172;
  --green-2: #0fa35e;
  --green-glow: rgba(22, 193, 114, .35);
  --amber: #f5b83d;
  --red: #ef5b5b;
  --blue: #4ea8f5;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(22, 193, 114, .12), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(14, 120, 80, .14), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 15px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
main { flex: 1; padding: 28px 0 60px; }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 17, 12, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .container { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .08em; font-size: 19px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 10px var(--green-glow)); }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { color: var(--muted); padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.nav a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.nav a.active { color: var(--text); background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--green); }
.spacer { flex: 1; }
.userbox { display: flex; align-items: center; gap: 10px; }
.balance-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--line-2);
  padding: 6px 6px 6px 14px; border-radius: 999px; font-weight: 700;
}
.balance-pill .plus { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #03140b; font-weight: 900; }
.balance-pill .plus:hover { text-decoration: none; filter: brightness(1.1); }
.avatar-btn { display: flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; color: var(--text); position: relative; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--green), #0b6b3d); display: grid; place-items: center; font-weight: 800; color: #03140b; font-size: 13px; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; min-width: 190px; padding: 6px; box-shadow: var(--shadow); display: none; text-align: left; }
.menu.open { display: block; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--text); background: none; border: 0; cursor: pointer; font-size: 14px; }
.menu a:hover, .menu button:hover { background: var(--panel-2); text-decoration: none; }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 40px; height: 40px; color: var(--text); cursor: pointer; }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 10px 18px; font-weight: 700; cursor: pointer; transition: .15s; font-size: 14px; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: linear-gradient(180deg, #1fd67f, var(--green-2)); color: #03140b; box-shadow: 0 6px 18px var(--green-glow); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: var(--panel); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--panel-2); }
.btn-danger { background: rgba(239, 91, 91, .12); border-color: rgba(239, 91, 91, .45); color: #ff8f8f; }
.btn-danger:hover { background: rgba(239, 91, 91, .2); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; filter: none; box-shadow: none; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 600; }
.input, select.input, textarea.input {
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 13px; outline: none; width: 100%;
}
.input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22, 193, 114, .18); }
textarea.input { resize: vertical; min-height: 80px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--green); width: 16px; height: 16px; }

/* ---------- hero / market ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #0d2a1c 0%, #0b1a13 55%, #0a2318 100%);
  border: 1px solid var(--line-2); border-radius: 20px; padding: 34px 36px; margin-bottom: 26px;
}
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; background: url(/img/logo.svg) center/contain no-repeat; opacity: .12; transform: rotate(12deg); }
.hero h1 { margin: 0 0 8px; font-size: 32px; letter-spacing: -.01em; }
.hero h1 span { color: var(--green); }
.hero p { margin: 0; color: var(--muted); max-width: 640px; }
.hero .badges { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; position: relative; z-index: 1; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(22, 193, 114, .1); border: 1px solid rgba(22, 193, 114, .3); color: #9ff0c8; font-size: 13px; font-weight: 600; }

.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab { padding: 10px 18px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-weight: 700; }
.tab:hover { color: var(--text); text-decoration: none; }
.tab.active { background: var(--panel-2); color: var(--text); border-color: var(--green); }

.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.toolbar .search { flex: 1; min-width: 220px; position: relative; }
.toolbar .search .input { padding-left: 40px; }
.toolbar .search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.toolbar select.input { width: auto; min-width: 180px; }
.count { color: var(--muted); font-size: 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: .18s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.card .thumb { aspect-ratio: 1; background: radial-gradient(circle at 50% 40%, #183626, #0b1711 70%); display: grid; place-items: center; position: relative; }
.card .thumb img { width: 78%; height: 78%; object-fit: contain; }
.card .stock { position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: var(--muted); border: 1px solid var(--line); }
.card .stock.low { color: var(--amber); border-color: rgba(245, 184, 61, .4); }
.card .stock.out { color: var(--red); border-color: rgba(239, 91, 91, .4); }
.card .type-tag { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: var(--green); color: #03140b; letter-spacing: .05em; }
.card .body { padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .name { font-weight: 700; font-size: 15px; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.stat .k { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.stat .v { font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 4px; }
.rbx { width: 13px; height: 13px; }
.card .desc { color: var(--muted); font-size: 13px; }
.card .buy-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.price { font-size: 20px; font-weight: 800; color: var(--green); }
.card.soldout { opacity: .55; }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.skeleton { background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); height: 340px; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- panels / pages ---------- */
.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-title h1 { margin: 0; font-size: 28px; }
.page-title p { margin: 4px 0 0; color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel h2 { margin: 0 0 14px; font-size: 18px; }
.auth-wrap { max-width: 420px; margin: 30px auto; }
.auth-wrap .panel { padding: 30px; }
.auth-wrap h1 { margin: 0 0 6px; font-size: 26px; }
.auth-wrap .sub { color: var(--muted); margin: 0 0 22px; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.alert-error { background: rgba(239, 91, 91, .1); border: 1px solid rgba(239, 91, 91, .4); color: #ffb0b0; }
.alert-info { background: rgba(78, 168, 245, .08); border: 1px solid rgba(78, 168, 245, .35); color: #b8dcff; }
.alert-warn { background: rgba(245, 184, 61, .08); border: 1px solid rgba(245, 184, 61, .4); color: #ffe0a3; }
.alert-ok { background: rgba(22, 193, 114, .08); border: 1px solid rgba(22, 193, 114, .4); color: #a6f0cb; }
.hidden { display: none !important; }

/* wallet */
.wallet-grid { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.big-balance { font-size: 40px; font-weight: 800; color: var(--green); letter-spacing: -.02em; }
.methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.method { position: relative; border: 1px solid var(--line-2); border-radius: 12px; padding: 16px; cursor: pointer; background: var(--bg-2); transition: .15s; text-align: left; }
.method:hover { border-color: var(--green); }
.method.selected { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22, 193, 114, .18); }
.method .ic { font-size: 22px; margin-bottom: 6px; }
.method .t { font-weight: 700; }
.method .s { font-size: 12px; color: var(--muted); }
.method .soon { position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--amber); letter-spacing: .06em; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.quick button { flex: 1; min-width: 60px; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); background: var(--bg-2); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, .015); }
.pos { color: var(--green); font-weight: 700; }
.neg { color: var(--red); font-weight: 700; }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.pending { color: var(--amber); background: rgba(245, 184, 61, .1); }
.status.delivered { color: var(--green); background: rgba(22, 193, 114, .1); }
.status.error { color: var(--red); background: rgba(239, 91, 91, .1); }

/* purchases */
.orders { display: flex; flex-direction: column; gap: 12px; }
.order { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.order-row { display: grid; grid-template-columns: 64px 1fr auto auto auto; gap: 16px; align-items: center; padding: 14px 16px; }
.order-row .oth { width: 64px; height: 64px; border-radius: 10px; background: var(--bg-2); display: grid; place-items: center; overflow: hidden; }
.order-row .oth img { width: 85%; height: 85%; object-fit: contain; }
.order-row .meta { min-width: 0; }
.order-row .meta .n { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-row .meta .d { color: var(--muted); font-size: 13px; }
.order-details { border-top: 1px solid var(--line); padding: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.kv { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.kv .k { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.kv .v { margin-top: 4px; font-weight: 600; word-break: break-word; }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: ui-monospace, Consolas, monospace; font-size: 17px; color: var(--green); letter-spacing: .04em; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); cursor: pointer; font-weight: 600; font-size: 13px; }
.chip.active { background: var(--green); color: #03140b; border-color: var(--green); }
.chip .n { opacity: .75; margin-left: 4px; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(2, 8, 5, .72); backdrop-filter: blur(4px); z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-bg.open { display: flex; }
.modal { background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: pop .18s ease-out; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-close { background: none; border: 0; color: var(--muted); font-size: 24px; cursor: pointer; line-height: 1; }
.modal-body { padding: 22px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }
.buy-summary { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.buy-summary .oth { width: 76px; height: 76px; border-radius: 12px; background: var(--bg-2); display: grid; place-items: center; flex-shrink: 0; }
.buy-summary .oth img { width: 85%; height: 85%; object-fit: contain; }
.reqs { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
.reqs li { display: flex; gap: 10px; align-items: flex-start; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.reqs li b { color: var(--text); }
.reqs .ri { color: var(--green); font-weight: 900; }
.line-total { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px dashed var(--line-2); margin-top: 6px; font-weight: 700; }

/* toast */
#toasts { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--panel-2); border: 1px solid var(--line-2); border-left: 4px solid var(--green); padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); max-width: 360px; animation: pop .2s; font-size: 14px; }
.toast.error { border-left-color: var(--red); }

/* admin */
.admin-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.admin-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 16px; color: var(--muted); font-weight: 700; cursor: pointer; white-space: nowrap; }
.admin-tabs button.active { color: var(--text); border-bottom-color: var(--green); }
.admin-tabs .n { background: var(--amber); color: #1a1200; border-radius: 999px; padding: 0 7px; font-size: 12px; margin-left: 6px; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat-card .k { color: var(--muted); font-size: 13px; }
.stat-card .v { font-size: 24px; font-weight: 800; margin-top: 2px; }
.mini { font-size: 12px; color: var(--muted); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.email-frame { width: 100%; height: 480px; border: 1px solid var(--line); border-radius: 10px; background: #0b1410; }

footer { border-top: 1px solid var(--line); padding: 34px 0 22px; color: var(--dim); font-size: 13px; margin-top: 40px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--green); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 26px; align-items: start; }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col h4 { margin: 0 0 4px; font-size: 13px; color: var(--text); font-weight: 700; }
.foot-logo { width: auto; height: 30px; display: block; align-self: flex-start; filter: none; }
.foot-brand p { margin: 8px 0 0; max-width: 320px; line-height: 1.5; }
.foot-discord { align-self: flex-start; margin-top: 4px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); }
.legal { max-width: 820px; margin: 0 auto; padding: 10px 0 20px; }
.legal h1 { font-size: 30px; margin: 10px 0 4px; }
.legal .updated { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.legal h2 { font-size: 19px; margin: 28px 0 8px; color: var(--text); }
.legal p, .legal li { color: var(--muted); line-height: 1.65; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal a { color: var(--green); }
.legal .alert { margin: 18px 0; }
.nav-discord { color: #a9b4ff !important; font-weight: 600; }
.nav-discord:hover { color: #c7ceff !important; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

@media (max-width: 900px) {
  .wallet-grid { grid-template-columns: 1fr; }
  .order-row { grid-template-columns: 56px 1fr auto; }
  .order-row .price-col { display: none; }
  .order-row .oth { width: 56px; height: 56px; }
}
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); flex-direction: column; padding: 10px 16px; margin: 0; }
  .nav.open { display: flex; }
  .burger { display: grid; place-items: center; }
  .avatar-btn .uname { display: none; }
  .hero { padding: 24px 20px; }
  .hero h1 { font-size: 24px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card .body { padding: 10px; }
  .price { font-size: 17px; }
  .card .buy-row { flex-direction: column; align-items: stretch; }
  .form-grid { grid-template-columns: 1fr; }
  .order-row { grid-template-columns: 48px 1fr; gap: 10px; }
  .order-row .oth { width: 48px; height: 48px; }
  .order-row .status-col, .order-row .act-col { grid-column: 2; }
  .toolbar select.input { flex: 1; }
}

/* ---------- purchase wizard ---------- */
.wiz { max-width: 640px; }
.wiz .modal-head { gap: 12px; }
.wiz-back { background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; width: 28px; line-height: 1; }
.wiz-back:disabled { visibility: hidden; }
.stepper { display: flex; align-items: center; flex: 1; gap: 0; }
.stepper .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--dim); flex-shrink: 0; transition: .2s; }
.stepper .dot.done, .stepper .dot.now { background: var(--green); border-color: var(--green); color: #03140b; }
.stepper .dot.now { box-shadow: 0 0 0 4px rgba(22, 193, 114, .2); }
.stepper .bar { flex: 1; height: 3px; background: var(--line-2); margin: 0 6px; border-radius: 3px; overflow: hidden; }
.stepper .bar i { display: block; height: 100%; width: 0; background: var(--green); transition: width .3s; }
.stepper .bar.done i { width: 100%; }
.stepper .bar.half i { width: 50%; }
.step-title { text-align: center; font-size: 18px; font-weight: 800; margin: 4px 0 6px; }
.step-sub { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.wiz-item { display: flex; gap: 16px; align-items: center; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px dashed var(--line-2); }
.wiz-item .oth { width: 84px; height: 84px; border-radius: 14px; background: radial-gradient(circle at 50% 40%, #183626, #0b1711 70%); display: grid; place-items: center; flex-shrink: 0; }
.wiz-item .oth img { width: 86%; height: 86%; object-fit: contain; }
.wiz-item .nm { font-weight: 800; font-size: 18px; }
.wiz-item .mini b { color: var(--text); }
.wiz-item .tot { margin-left: auto; text-align: right; }
.wiz-item .tot .price { font-size: 22px; }
.search-row { display: flex; gap: 10px; }
.search-row .input { flex: 1; }
.reqs-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.req { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; font-size: 13px; color: var(--muted); }
.req .ri { font-size: 20px; display: block; margin-bottom: 4px; }
.req b { color: var(--text); display: block; font-size: 13px; }
.disclaimer { font-size: 12px; color: var(--dim); text-align: center; margin: 18px 0 0; line-height: 1.5; }
.who { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 20px; }
.who .av { width: 180px; height: 180px; border-radius: 20px; background: radial-gradient(circle at 50% 35%, #1a3a29, #0b1711 70%); border: 1px solid var(--line-2); overflow: hidden; display: grid; place-items: center; }
.who .av img { width: 100%; height: 100%; object-fit: contain; }
.who .dn { font-size: 13px; color: var(--muted); }
.yn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.smalls { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; max-height: 330px; overflow: auto; padding: 2px; }
.small { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px; text-align: center; cursor: pointer; transition: .15s; color: var(--text); }
.small:hover { border-color: var(--green); }
.small.sel { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22, 193, 114, .22); background: #0f2519; }
.small img { width: 70px; height: 70px; object-fit: contain; margin: 0 auto 6px; }
.small .n { font-weight: 700; font-size: 13px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.small .r { font-size: 12px; color: var(--muted); margin-top: 2px; }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--green); animation: spin .8s linear infinite; margin: 30px auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
.review { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.review .row { display: flex; align-items: center; gap: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.review .row img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: var(--panel); }
.review .row .k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); font-weight: 700; }
.review .row .v { font-weight: 700; }
.review .row .end { margin-left: auto; text-align: right; }
@media (max-width: 560px) {
  .reqs-row { grid-template-columns: 1fr; }
  .search-row { flex-direction: column; }
  .wiz-item .tot { display: none; }
  .who .av { width: 140px; height: 140px; }
  .smalls { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .topbar .container { gap: 10px; }
  .userbox { gap: 6px; }
  .balance-pill { padding: 4px 4px 4px 10px; font-size: 14px; gap: 6px; }
  .balance-pill .plus { width: 24px; height: 24px; }
  .avatar-btn { padding: 3px; }
}
@media (max-width: 420px) {
  .brand { font-size: 0; gap: 0; }
  .brand img { width: 32px; height: 32px; }
}

/* ---------- account menu / captcha / settings ---------- */
.menu { min-width: 240px; }
.menu-head { display: flex; gap: 10px; align-items: center; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-head .mini { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
img.avatar { display: block; }
.cap-label { font-size: 13px; color: var(--muted); font-weight: 600; display: block; margin-bottom: 6px; }
.cap-row { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.cap-img svg { display: block; border-radius: 10px; border: 1px solid var(--line-2); width: 150px; height: 50px; }
.cap-row .cap-in { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .2em; font-weight: 700; }
.captcha-box { margin-bottom: 4px; }
.otp-input { text-align: center; font-size: 26px; letter-spacing: .4em; font-weight: 800; font-family: ui-monospace, Consolas, monospace; }
.settings { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.settings-nav { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 4px; }
.settings-nav a { padding: 10px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; }
.settings-nav a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.settings-nav a.active { background: var(--panel-2); color: var(--text); box-shadow: inset 3px 0 0 var(--green); }
.settings section.panel { margin-bottom: 18px; scroll-margin-top: 86px; }
.settings section.panel h2 { display: flex; align-items: center; gap: 10px; }
.settings section .desc { color: var(--muted); margin: -6px 0 16px; font-size: 14px; }
.settings form { max-width: 460px; }
.avatar-edit { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.avatar-edit .big { width: 104px; height: 104px; border-radius: 50%; overflow: hidden; border: 2px solid var(--line-2); background: linear-gradient(135deg, var(--green), #0b6b3d); display: grid; place-items: center; font-size: 42px; font-weight: 800; color: #03140b; flex-shrink: 0; }
.avatar-edit .big img { width: 100%; height: 100%; object-fit: cover; }
.pill-on { background: rgba(22, 193, 114, .12); color: var(--green); border: 1px solid rgba(22, 193, 114, .4); font-size: 12px; padding: 2px 10px; border-radius: 999px; font-weight: 800; }
.pill-off { background: rgba(255, 255, 255, .04); color: var(--muted); border: 1px solid var(--line-2); font-size: 12px; padding: 2px 10px; border-radius: 999px; font-weight: 800; }
.qr-wrap { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin: 6px 0 16px; }
.qr-wrap .qr { background: #fff; padding: 6px; border-radius: 12px; line-height: 0; }
.qr-wrap .qr svg { width: 180px; height: 180px; }
.secret { font-family: ui-monospace, Consolas, monospace; background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: 8px; padding: 8px 10px; word-break: break-all; letter-spacing: .06em; font-size: 14px; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; font-family: ui-monospace, Consolas, monospace; font-size: 16px; margin: 10px 0 14px; }
.codes span { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px; text-align: center; letter-spacing: .08em; }
.steps-list { margin: 0 0 14px; padding-left: 20px; color: var(--muted); font-size: 14px; }
.steps-list li { margin-bottom: 4px; }
@media (max-width: 860px) {
  .settings { grid-template-columns: 1fr; }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; }
  .settings-nav a { white-space: nowrap; }
}

/* ---------- seller ---------- */
.seller-line { font-size: 12px; color: var(--muted); margin-top: -2px; }
.seller-line .seller-link { display: inline-flex; align-items: center; gap: 5px; color: var(--text); font-weight: 600; }
.seller-line .seller-link img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.seller-line .verified { color: var(--green); font-weight: 600; }
.acct { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); margin-bottom: 10px; }
.acct img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--panel); }
.acct .meta { flex: 1; min-width: 0; }
.seller-wallet-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.wpill { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 8px 16px; }
.wpill .k { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.wpill .v { font-size: 18px; font-weight: 800; color: var(--green); }
.wpill.pending .v { color: var(--amber); }
code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font-size: .9em; }

/* ---------- deal stat ---------- */
.card .stats.stats-3 { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.card .stats.stats-3 .stat { min-width: 0; padding: 6px 7px; }
.card .stats.stats-3 .stat .v { font-size: 12px; line-height: 1.2; overflow-wrap: anywhere; }
.stat.deal { border-color: rgba(22, 193, 114, .35); background: rgba(22, 193, 114, .06); }
.stat.deal .v { color: var(--green); white-space: nowrap; }
@media (max-width: 420px) { .card .stats.stats-3 { gap: 4px; } .card .stats.stats-3 .stat { padding: 5px 6px; } }

/* ---------- demand / rarity tags ---------- */
.card .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: -2px; }
.dtag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.rtag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #e9c46a; background: rgba(233, 196, 106, .12); border: 1px solid rgba(233, 196, 106, .4); }
.type-tag.rare { background: linear-gradient(135deg, #e9c46a, #c99a2e); color: #2a1e00; }

/* ---------- cumulative demand filters ---------- */
.demand-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 18px; }
.demand-filters .flabel { font-size: 12px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; margin-right: 2px; }
.demand-filters .fsep { width: 1px; height: 20px; background: var(--line-2); margin: 0 2px; }
.fchip { font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: 999px; cursor: pointer; background: var(--panel); border: 1px solid var(--line-2); color: var(--muted); transition: .12s; }
.fchip:hover { color: var(--text); border-color: var(--c, var(--green)); }
.fchip.on { color: var(--c, var(--green)); background: color-mix(in srgb, var(--c, var(--green)) 14%, transparent); border-color: color-mix(in srgb, var(--c, var(--green)) 55%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, var(--green)) 30%, transparent); }
.fchip.rare { --c: #e9c46a; }

/* ---------- crypto deposit ---------- */
.crypto-dep { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.crypto-dep .qr { background: #fff; padding: 8px; border-radius: 12px; line-height: 0; flex-shrink: 0; }
.crypto-dep .qr svg { width: 150px; height: 150px; display: block; }
.crypto-dep .addr-box { flex: 1; min-width: 220px; }
.crypto-dep .addr-box label { font-size: 13px; color: var(--muted); font-weight: 600; display: block; margin-bottom: 6px; }
.crypto-dep .addr { display: flex; gap: 8px; align-items: center; }
.crypto-dep .addr code { flex: 1; min-width: 0; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; font-size: 12px; word-break: break-all; }

.wallet-grid > .panel { min-width: 0; }
@media (max-width: 560px) {
  .crypto-dep { flex-direction: column; align-items: center; }
  .crypto-dep .addr-box { min-width: 0; width: 100%; }
  .crypto-dep .qr { align-self: center; }
}

/* ---------- payment methods: preview + mock checkout ---------- */
.method.off { opacity: .85; }
.method .soon.preview { color: var(--green); }
.pay-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mock-card { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px; margin: 10px 0; }
.mock-methods { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.mock-methods .mm { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; }
.mock-methods .mm.sel { border-color: var(--green); color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }
.mock-brand { text-align: center; margin-top: 12px; color: var(--dim); }

/* ---------- brand logo (wordmark image) ---------- */
.brand { gap: 0; }
.brand .brand-logo { width: auto; height: 34px; display: block; filter: none; }
@media (max-width: 760px) { .brand .brand-logo { height: 30px; } }
@media (max-width: 420px) { .brand { font-size: 0; } .brand .brand-logo { height: 28px; } }

/* ---------- saved cards ---------- */
.saved-cards { display: flex; flex-direction: column; gap: 8px; }
.saved-card { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); background: var(--bg-2); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.saved-card.sel { border-color: var(--green); box-shadow: 0 0 0 2px rgba(22,193,114,.2) inset; }
.saved-card input[type=radio] { accent-color: var(--green); }
.saved-card .cc-brand { font-weight: 700; }
.saved-card .cc-num { font-family: ui-monospace, monospace; color: var(--muted); }
.saved-card .cc-exp { color: var(--dim); font-size: 13px; }
.saved-card .cc-def { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--green); background: rgba(22,193,114,.12); border: 1px solid rgba(22,193,114,.4); padding: 2px 8px; border-radius: 999px; }
.saved-card .cc-mk { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; }
.saved-card .cc-del { background: none; border: 0; color: var(--dim); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 2px; }
.saved-card .cc-del:hover { color: var(--red); }

/* ---------- top ticker: recently sold + giveaway ---------- */
.ticker-wrap { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(10,22,15,.6), transparent); }
.ticker-inner { display: flex; align-items: stretch; gap: 0; padding: 12px 20px; }
.ts-block { flex: 1; min-width: 0; }
.ts-title { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 0 2px 8px; }
.ts-scroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; cursor: grab; scroll-behavior: smooth; touch-action: pan-x; }
.ts-scroll::-webkit-scrollbar { display: none; height: 0; }
.ts-scroll:active { cursor: grabbing; }
.ts-item { position: relative; flex: 0 0 auto; width: 118px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: 10px; padding: 8px; user-select: none; border-bottom: 2px solid var(--green-2); }
.ts-price { position: absolute; top: 6px; left: 8px; font-size: 12px; font-weight: 800; color: #cfeede; text-shadow: 0 1px 2px #000; z-index: 1; }
.ts-thumb { height: 66px; display: grid; place-items: center; }
.ts-thumb img { max-height: 64px; max-width: 90%; object-fit: contain; pointer-events: none; }
.ts-name { font-size: 11.5px; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.ts-empty { color: var(--dim); font-size: 13px; padding: 24px 6px; }

.gw-block { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; margin-left: 22px; padding-left: 22px; border-left: 2px dashed var(--line-2); color: var(--text); align-self: center; }
.gw-block:hover { text-decoration: none; }
.gw-prize { width: 56px; height: 56px; border-radius: 12px; background: radial-gradient(circle at 50% 40%, #16351f, #0a1510 70%); border: 1px solid var(--line-2); display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 0 18px rgba(22,193,114,.18); }
.gw-prize img { width: 86%; height: 86%; object-fit: contain; }
.gw-info { min-width: 0; }
.gw-tag { font-size: 11px; font-weight: 800; color: var(--green); letter-spacing: .04em; }
.gw-name { font-weight: 800; font-size: 15px; white-space: nowrap; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.gw-entries { font-size: 12px; color: var(--muted); }
.gw-entries b { color: var(--green); }
.gw-cost { font-size: 11px; color: var(--dim); }
.gw-timer { display: flex; gap: 6px; }
.gw-cell { background: #1a0b0b; border: 1px solid #3a1414; border-radius: 8px; padding: 5px 2px; width: 40px; text-align: center; }
.gw-num { font-family: ui-monospace, Consolas, monospace; font-weight: 800; font-size: 18px; color: #ff6b6b; line-height: 1; }
.gw-lbl { font-size: 9px; color: var(--dim); text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }

@media (max-width: 860px) {
  .ticker-inner { flex-direction: column; gap: 14px; }
  .gw-block { margin: 0; padding: 12px 0 0; border-left: 0; border-top: 2px dashed var(--line-2); width: 100%; align-self: stretch; }
  .gw-name { max-width: none; }
  .gw-timer { margin-left: auto; }
}

/* ---------- giveaways page ---------- */
.gw-grid .gw-card .type-tag { background: linear-gradient(135deg,#1fd67f,#0fa35e); }
.gw-timer-card { display: flex; gap: 6px; justify-content: center; margin: 8px 0; }
.gw-stats { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 10px; }
.gw-stats > div { display: flex; justify-content: space-between; font-size: 13px; }
.gw-stats .k { color: var(--muted); }
.gw-stats .v { font-weight: 700; }

/* ---------- Buy Robux ---------- */
.rbx-buy { max-width: 560px; }
.rbx-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.rbx-picks .chip { cursor: pointer; }
.rbx-summary { margin-top: 14px; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; background: var(--bg-2); }
.rbx-sumrow { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }
.rbx-sumrow + .rbx-sumrow { border-top: 1px dashed var(--line-2); }
.rbx-sumrow .price { font-size: 18px; }

/* ---------- admin cookie cells ---------- */
.cookie-cell { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cookie-val { font-size: 11px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--bg-2); padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line-2); }
.cookie-val[data-shown="1"] { white-space: normal; word-break: break-all; }

/* ---------- admin item autocomplete ---------- */
.ac-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; margin-top: 4px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.5); max-height: 280px; overflow-y: auto; }
.ac-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; cursor: pointer; color: var(--text); }
.ac-item:last-child { border-bottom: 0; }
.ac-item:hover, .ac-item.sel { background: var(--bg-2); }
.ac-name { font-weight: 600; font-size: 14px; }
.ac-rare { color: var(--amber); }
.ac-meta { color: var(--muted); font-size: 12px; white-space: nowrap; }
.ac-empty { padding: 10px 12px; color: var(--muted); font-size: 13px; }
