:root { --bg:#0d0b18; --panel:#17142b; --card:#201c3b; --line:#332d5c; --text:#ece9f8; --muted:#a39dc6; --acc:#ff5fa2; --acc2:#7c6cff; --ok:#7ef0b8; --bad:#ff8a8a; }
* { box-sizing:border-box; }
html,body { margin:0; background:var(--bg); color:var(--text); font:14px system-ui, "Segoe UI", sans-serif; }
header { display:flex; align-items:center; gap:14px; padding:10px 16px; border-bottom:1px solid var(--line); background:var(--panel); position:sticky; top:0; z-index:5; flex-wrap:wrap; }
header h1 { font-size:17px; margin:0; letter-spacing:.02em; } header h1 span { color:var(--acc); }
nav { display:flex; gap:6px; flex-wrap:wrap; }
nav a, .pill { background:transparent; color:var(--muted); border:1px solid var(--line); border-radius:999px; padding:6px 14px; cursor:pointer; font:inherit; text-decoration:none; }
nav a.on, .pill.on { background:var(--acc2); border-color:var(--acc2); color:#fff; }
main { max-width:1200px; margin:0 auto; padding:16px; }
.muted { color:var(--muted); font-size:12px; }
input, textarea, select { background:var(--card); color:var(--text); border:1px solid var(--line); border-radius:8px; padding:7px 9px; font:inherit; }
button { background:var(--card); color:var(--text); border:1px solid var(--line); border-radius:8px; padding:6px 12px; cursor:pointer; font:inherit; }
button.pri { background:linear-gradient(90deg, var(--acc), var(--acc2)); border:none; color:#fff; font-weight:600; }
button:disabled { opacity:.6; cursor:default; }
.hero h2 { margin:0 0 4px; font-size:24px; } .hero p { max-width:760px; margin:4px 0; }
.shopId { display:flex; gap:6px; align-items:center; margin:12px 0 4px; max-width:560px; } .shopId span { color:var(--acc); font-weight:700; } .shopId input { flex:1; }
.tabs { display:flex; gap:6px; flex-wrap:wrap; margin:12px 0 4px; } .tabs em { font-style:normal; opacity:.75; margin-left:4px; }
.group { margin:16px 0 6px; font-size:13px; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; grid-column:1 / -1; }
.grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:10px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; overflow:hidden; display:flex; flex-direction:column; }
.card.mine { border-color:var(--acc); box-shadow:0 0 0 1px var(--acc) inset; } .card.off { opacity:.55; }
.prev { position:relative; background:#06040d; display:flex; justify-content:center; aspect-ratio:1; }
.prev canvas, .prev img { width:100%; height:100%; object-fit:cover; display:block; }
.prev .badge { position:absolute; top:8px; right:8px; background:var(--acc); color:#fff; font-size:11px; font-weight:700; padding:2px 8px; border-radius:99px; }
.body { padding:10px; display:flex; flex-direction:column; gap:5px; } .body b { font-size:15px; }
.cmd { font-size:12px; color:var(--muted); } code { color:var(--ok); }
.buy { display:flex; align-items:center; gap:6px; margin-top:4px; } .price { flex:1; font-weight:800; color:var(--acc); } .price small { color:var(--muted); font-weight:400; }
dialog { background:var(--panel); color:var(--text); border:1px solid var(--line); border-radius:16px; padding:18px; max-width:380px; width:calc(100% - 32px); }
dialog::backdrop { background:#0009; } dialog .row { display:flex; gap:8px; margin-top:12px; } dialog .row > * { flex:1; text-align:center; }
dialog a.pri { display:block; padding:9px; border-radius:10px; color:#fff; text-decoration:none; font-weight:600; background:linear-gradient(90deg, var(--acc), var(--acc2)); }
table { width:100%; border-collapse:collapse; font-size:13px; } td, th { border-bottom:1px solid var(--line); padding:6px 4px; text-align:left; }
.fatal { background:#5a1630; color:#fff; padding:12px 16px; border-radius:10px; margin:10px 0; }
