:root{
  --bg:#0a0b0d;
  --bg2:#111317;
  --card:#15181d;
  --card-hover:#1b1f26;
  --border:#23272f;
  --border-hi:#33373f;
  --text:#e9eaec;
  --muted:#8b909a;
  --muted2:#6a6f78;
  --yellow:#ffd400;
  --yellow-dim:#c9a900;
  --radius:14px;
  --maxw:1180px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 20px}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:0;z-index:20;
  background:rgba(10,11,13,.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.header-inner{display:flex;align-items:center;gap:20px;height:64px}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:20px;letter-spacing:.5px}
.logo .mark{
  width:34px;height:34px;border-radius:9px;
  background:var(--yellow);color:#0a0b0d;
  display:grid;place-items:center;font-size:20px;font-weight:900;
  box-shadow:0 0 22px rgba(255,212,0,.35);
}
.logo .name b{color:var(--yellow)}
.header-nav{margin-left:auto;display:flex;align-items:center;gap:22px}
.header-nav a{color:var(--muted);font-size:14px;font-weight:500;transition:color .15s}
.header-nav a:hover{color:var(--text)}
.tg-btn{
  background:var(--yellow);color:#0a0b0d !important;font-weight:700;
  padding:9px 16px;border-radius:10px;font-size:14px;
}
.tg-btn:hover{background:#ffe23f}

/* ---------- Hero ---------- */
.hero{
  padding:54px 0 30px;
  background:
    radial-gradient(700px 300px at 78% -10%, rgba(255,212,0,.10), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  border-bottom:1px solid var(--border);
}
.hero h1{font-size:40px;line-height:1.12;margin:0 0 14px;font-weight:800;letter-spacing:-.5px}
.hero h1 .hl{color:var(--yellow)}
.hero p{color:var(--muted);font-size:17px;max-width:560px;margin:0}
.hero-badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.badge{
  border:1px solid var(--border-hi);border-radius:999px;
  padding:6px 14px;font-size:13px;color:var(--muted);
  display:flex;align-items:center;gap:7px;background:var(--card)
}
.badge .dot{width:7px;height:7px;border-radius:50%;background:var(--yellow)}

/* ---------- Toolbar ---------- */
.toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:26px 0 6px}
.search{flex:1;min-width:200px;position:relative}
.search input{
  width:100%;background:var(--card);border:1px solid var(--border);
  color:var(--text);padding:11px 14px;border-radius:11px;font-size:14px;outline:none;
}
.search input:focus{border-color:var(--yellow-dim)}
.cats{display:flex;flex-wrap:wrap;gap:8px}
.chip{
  border:1px solid var(--border);background:var(--card);color:var(--muted);
  padding:7px 14px;border-radius:999px;font-size:13px;font-weight:500;
  cursor:pointer;transition:all .15s;white-space:nowrap;
}
.chip:hover{border-color:var(--border-hi);color:var(--text)}
.chip.active{background:var(--yellow);border-color:var(--yellow);color:#0a0b0d;font-weight:700}

/* ---------- Grid ---------- */
.section-title{font-size:14px;text-transform:uppercase;letter-spacing:1.5px;color:var(--muted2);margin:34px 0 14px;font-weight:700}
.grid{
  display:grid;gap:16px;padding:6px 0 20px;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
}
.card{
  background:var(--card);border:1px solid var(--border);border-radius:var(--radius);
  padding:20px;display:flex;flex-direction:column;gap:12px;
  transition:transform .15s, border-color .15s, background .15s;
  position:relative;overflow:hidden;
}
.card:hover{transform:translateY(-3px);border-color:var(--border-hi);background:var(--card-hover)}
.card:hover .mono{box-shadow:0 0 24px rgba(255,212,0,.30)}
.card .top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.mono{
  width:48px;height:48px;border-radius:12px;flex:none;
  background:linear-gradient(140deg,#26282d,#17191d);
  border:1px solid var(--border-hi);
  color:var(--yellow);display:grid;place-items:center;
  font-size:22px;font-weight:900;transition:box-shadow .2s;
}
.card .cat{font-size:11px;color:var(--muted2);text-transform:uppercase;letter-spacing:.8px;font-weight:600}
.card h3{margin:0;font-size:17px;font-weight:700}
.card .desc{color:var(--muted);font-size:13.5px;flex:1;margin:0}
.card .meta{display:flex;gap:8px;flex-wrap:wrap;font-size:11.5px;color:var(--muted2)}
.card .meta span{border:1px solid var(--border);border-radius:6px;padding:2px 7px}
.card .foot{display:flex;align-items:center;justify-content:space-between;margin-top:4px;padding-top:14px;border-top:1px solid var(--border)}
.price{font-size:20px;font-weight:800}
.price b{color:var(--yellow)}
.price .per{font-size:12px;color:var(--muted2);font-weight:500}
.btn{
  background:var(--yellow);color:#0a0b0d;font-weight:700;font-size:14px;
  padding:9px 18px;border-radius:10px;border:none;cursor:pointer;
  display:inline-flex;align-items:center;gap:7px;transition:background .15s;
}
.btn:hover{background:#ffe23f}
.btn.ghost{background:transparent;border:1px solid var(--border-hi);color:var(--text)}
.btn.ghost:hover{border-color:var(--yellow-dim);background:var(--card)}
.btn.block{width:100%;justify-content:center;padding:13px}

/* ---------- Product page ---------- */
.crumbs{color:var(--muted2);font-size:13px;padding:22px 0 0}
.crumbs a:hover{color:var(--yellow)}
.product{display:grid;grid-template-columns:1fr 320px;gap:30px;padding:24px 0 50px;align-items:start}
.product .mono.lg{width:76px;height:76px;font-size:34px;border-radius:16px}
.product h1{font-size:32px;margin:16px 0 8px;font-weight:800}
.product .lead{color:var(--muted);font-size:16px}
.spec{margin-top:26px;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}
.spec .row{display:flex;justify-content:space-between;padding:13px 18px;border-bottom:1px solid var(--border);font-size:14px}
.spec .row:last-child{border-bottom:none}
.spec .row span:first-child{color:var(--muted)}
.buybox{
  background:var(--card);border:1px solid var(--border);border-radius:var(--radius);
  padding:22px;position:sticky;top:84px;
}
.buybox .p{font-size:32px;font-weight:800;margin-bottom:4px}
.buybox .p b{color:var(--yellow)}
.buybox .note{color:var(--muted2);font-size:13px;margin:14px 0 18px;line-height:1.6}
.buybox ul{list-style:none;padding:0;margin:0 0 18px;font-size:13.5px;color:var(--muted)}
.buybox li{display:flex;gap:9px;padding:5px 0}
.buybox li::before{content:"✓";color:var(--yellow);font-weight:800}

/* ---------- Forms ---------- */
.form-wrap{max-width:560px;margin:0 auto;padding:34px 0 60px}
.panel{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:26px}
.panel h1{margin:0 0 6px;font-size:24px}
.panel .sub{color:var(--muted);font-size:14px;margin-bottom:22px}
.field{margin-bottom:16px}
.field label{display:block;font-size:13px;color:var(--muted);margin-bottom:7px}
.field input,.field textarea{
  width:100%;background:var(--bg2);border:1px solid var(--border);color:var(--text);
  padding:12px 14px;border-radius:10px;font-size:14px;outline:none;font-family:inherit;
}
.field input:focus,.field textarea:focus{border-color:var(--yellow-dim)}
.field textarea{resize:vertical;min-height:78px}
.orderline{display:flex;align-items:center;gap:14px;background:var(--bg2);border:1px solid var(--border);border-radius:12px;padding:14px;margin-bottom:22px}
.orderline .mono{width:44px;height:44px;font-size:20px}
.orderline .grow{flex:1}
.orderline .grow .n{font-weight:700}
.orderline .grow .c{font-size:12px;color:var(--muted2)}
.orderline .pr{font-size:20px;font-weight:800;color:var(--yellow)}

/* ---------- Order status ---------- */
.status-pill{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:600;padding:6px 13px;border-radius:999px;border:1px solid var(--border-hi)}
.status-pill .dot{width:8px;height:8px;border-radius:50%}
.st-new{color:#ffd400}.st-new .dot{background:#ffd400}
.st-paid{color:#4ea8ff}.st-paid .dot{background:#4ea8ff}
.st-done{color:#3ecf8e}.st-done .dot{background:#3ecf8e}
.st-canceled{color:#8b909a}.st-canceled .dot{background:#8b909a}
.paybox{margin-top:22px;padding:20px;border:1px dashed var(--yellow-dim);border-radius:12px;background:rgba(255,212,0,.05)}
.paybox h3{margin:0 0 8px;color:var(--yellow)}

/* ---------- Alerts ---------- */
.alert{background:rgba(255,80,80,.1);border:1px solid rgba(255,80,80,.35);color:#ff9a9a;padding:12px 16px;border-radius:10px;font-size:14px;margin-bottom:18px}

/* ---------- Admin ---------- */
.admin-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin:24px 0}
.stat{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:16px}
.stat .n{font-size:26px;font-weight:800}
.stat .l{font-size:12px;color:var(--muted2);text-transform:uppercase;letter-spacing:.6px}
.stat.rev .n{color:var(--yellow)}
.table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius)}
table{width:100%;border-collapse:collapse;font-size:13.5px;min-width:760px}
th{text-align:left;padding:12px 14px;color:var(--muted2);font-weight:600;text-transform:uppercase;font-size:11px;letter-spacing:.6px;border-bottom:1px solid var(--border)}
td{padding:12px 14px;border-bottom:1px solid var(--border);vertical-align:middle}
tr:last-child td{border-bottom:none}
td select{background:var(--bg2);border:1px solid var(--border);color:var(--text);padding:6px 8px;border-radius:8px;font-size:13px}

/* ---------- Legal / prose ---------- */
.legal{max-width:820px;margin:0 auto;padding:30px 0 60px}
.legal h1{font-size:28px;margin:0 0 6px}
.legal .updated{color:var(--muted2);font-size:13px;margin-bottom:26px}
.legal h2{font-size:18px;margin:30px 0 10px;color:var(--text)}
.legal p,.legal li{color:var(--muted);font-size:14.5px;line-height:1.75}
.legal ul,.legal ol{padding-left:20px}
.legal li{margin:5px 0}
.legal a{color:var(--yellow)}
.legal .req-table{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;margin:16px 0}
.legal .req-table .row{display:flex;gap:14px;padding:13px 18px;border-bottom:1px solid var(--border);font-size:14px}
.legal .req-table .row:last-child{border-bottom:none}
.legal .req-table .row .k{color:var(--muted2);flex:0 0 42%}
.legal .req-table .row .v{color:var(--text);font-weight:500}

/* ---------- Footer ---------- */
.site-footer{border-top:1px solid var(--border);margin-top:40px;padding:30px 0;color:var(--muted2);font-size:13px}
.site-footer .cols{display:flex;justify-content:space-between;flex-wrap:wrap;gap:18px}
.site-footer a:hover{color:var(--yellow)}
.foot-links{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start}

/* ---------- Responsive ---------- */
@media(max-width:760px){
  .hero h1{font-size:30px}
  .hero{padding:38px 0 24px}
  .product{grid-template-columns:1fr;gap:22px}
  .buybox{position:static}
  .header-nav a:not(.tg-btn){display:none}
  .grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}
  .card{padding:16px}
}
