:root {
  --bg: #040404;
  --panel: linear-gradient(160deg, rgba(22,22,26,.92), rgba(8,8,10,.92));
  --line: rgba(255,255,255,.09);
  --line-hot: rgba(255,70,90,.75);
  --red: #ff1f33;
  --red-hot: #ff5a68;
  --red-deep: #a80016;
  --text: #ffffff;
  --muted: #a9a9b0;
  --ok: #3dee8a;
  --patch: #ffc233;
  --down: #ff4458;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; scrollbar-gutter: stable both-edges; scrollbar-width: thin; scrollbar-color: #2a2a2e transparent; }
body {
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex; flex-direction: column;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
main { flex: 1; }
.wrap { max-width: 1520px; margin: 0 auto; padding: 0 20px; }

/* ── Background: drifting red glows + faint grid ── */
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before {
  inset: -20%;
  background:
    radial-gradient(38% 34% at 80% 12%, rgba(255,31,51,.22), transparent 70%),
    radial-gradient(34% 36% at 8% 78%, rgba(200,0,30,.16), transparent 70%),
    radial-gradient(30% 30% at 55% 100%, rgba(255,60,80,.06), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
body::after { background: radial-gradient(ellipse at 50% 40%, transparent 45%, rgba(0,0,0,.55) 100%); }
#embers { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(3%, 3%, 0) scale(1.08); }
}

/* ── Page transitions ── */
.js main, .js footer { animation: page-in .6s var(--ease) backwards; }
.js body.leaving main, .js body.leaving footer {
  opacity: 0; transform: translateY(-10px);
  transition: opacity .22s ease, transform .22s ease;
  animation: none;
}
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } }

/* Live redraw of the page you are on: no entrance animations */
.js main.quiet, .js main.quiet * { animation: none !important; }
.js main.quiet .reveal { opacity: 1; }

/* ── Reveal on enter ── */
.js .reveal { opacity: 0; }
.js .reveal.in { opacity: 1; animation: rise .8s var(--ease) backwards; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* ── Header ── */
header {
  position: sticky; top: 14px; z-index: 10;
  width: min(1480px, calc(100% - 40px)); margin: 14px auto 0;
  background: rgba(10,10,12,.72);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 10px 40px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.07);
}
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; height: 60px; padding: 0 9px; }
.nav-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.balance-pill { justify-self: end; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: .2em; font-size: 19px; }
.brand img { width: 40px; height: 40px; object-fit: cover; mix-blend-mode: screen; transition: transform .5s var(--ease), filter .3s; }
.brand:hover img { transform: scale(1.12) rotate(-4deg); filter: drop-shadow(0 0 10px var(--red)); }
.menu { position: relative; display: flex; gap: 6px; }
.menu a {
  position: relative; z-index: 1;
  padding: 8px 18px; font-size: 14px; font-weight: 600; letter-spacing: .04em; border-radius: 999px;
  color: var(--muted); transition: color .35s ease, background .35s ease;
}
.menu a:hover { color: var(--text); background: rgba(255,255,255,.07); }
.menu a.active, .menu a.active:hover { color: var(--text); background: none; }
/* The red highlight is one element that glides between menu items */
.menu-pill {
  position: absolute; top: 0; left: 0; height: 100%; width: 0; border-radius: 999px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,90,104,.9), rgba(168,0,22,.9));
  box-shadow: 0 4px 18px rgba(255,31,51,.45), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .55s var(--ease), width .55s var(--ease), opacity .35s ease;
}

[hidden] { display: none !important; }

.icon-btn {
  width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: rgba(255,255,255,.06); transition: background .3s ease;
}
.icon-btn:hover { background: rgba(255,31,51,.25); }
.icon-btn i { width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .45s var(--ease), opacity .3s; }

.balance-pill {
  display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 6px 0 16px; flex: none;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; transition: border-color .3s, background .3s;
}
.balance-pill:hover { border-color: var(--line-hot); background: rgba(255,31,51,.12); }
.balance-pill b {
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: 18px; line-height: 1;
  background: linear-gradient(135deg, var(--red-hot), var(--red-deep));
}

/* ── Account drawer ── */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 11; background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .4s ease;
}
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 12; width: 330px; max-width: 88vw;
  display: flex; flex-direction: column; gap: 18px; padding: 26px 22px 24px; overflow-y: auto;
  background: rgba(9,9,11,.97); border-right: 1px solid var(--line); border-radius: 0 28px 28px 0;
  box-shadow: 30px 0 80px rgba(0,0,0,.7);
  transform: translateX(-105%); visibility: hidden;
  transition: transform .55s var(--ease), visibility 0s .55s;
}
.drawer { scrollbar-width: thin; scrollbar-color: #2a2a2e transparent; }
.drawer > * { flex: none; }
.drawer-open .drawer { transform: none; visibility: visible; transition: transform .55s var(--ease); }
.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-open { overflow: hidden; }

.profile { display: flex; align-items: center; gap: 14px; }
.profile img {
  width: 60px; height: 60px; flex: none; border-radius: 50%; object-fit: cover; background: #000;
  border: 2px solid var(--red); box-shadow: 0 0 22px rgba(255,31,51,.45);
}
.profile div { min-width: 0; flex: 1; }
.drawer-close {
  width: 38px; height: 38px; flex: none; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.06); color: var(--text); font-size: 22px; line-height: 1;
  transition: background .3s, transform .4s var(--ease);
}
.drawer-close:hover { background: rgba(255,31,51,.3); transform: rotate(90deg); }
.profile b { display: block; font-size: 18px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile span { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.balance-box { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); position: relative; overflow: hidden; }
.balance-box::before { content: ""; position: absolute; left: 0; top: 0; width: 56px; height: 3px; background: linear-gradient(90deg, var(--red), transparent); box-shadow: 0 0 14px var(--red); }
.balance-box span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.balance-box b { display: block; font-size: 36px; font-weight: 900; line-height: 1.2; }

#topup-form { display: grid; gap: 10px; }
#topup-form label { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.topup-row {
  display: flex; align-items: center; gap: 8px; padding: 0 16px; height: 52px;
  border: 1px solid var(--line); border-radius: 14px; background: #050506; transition: border-color .3s, box-shadow .3s;
}
.topup-row:focus-within { border-color: var(--line-hot); box-shadow: 0 0 0 4px rgba(255,31,51,.12); }
.topup-row span { color: var(--muted); font-size: 20px; font-weight: 800; }
.topup-row input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text);
  font: inherit; font-size: 22px; font-weight: 800; appearance: textfield; -moz-appearance: textfield;
}
.topup-row input::-webkit-outer-spin-button, .topup-row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#topup-form small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.drawer-links { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.drawer-links a {
  display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--panel); font-weight: 700;
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease);
}
.drawer-links a i { font-style: normal; font-size: 20px; line-height: 1; color: var(--red-hot); transition: transform .4s var(--ease); }
.drawer-links a:hover, .drawer-links a.active { border-color: var(--line-hot); box-shadow: 0 0 22px rgba(255,31,51,.14); }
.drawer-links a:hover i { transform: translateX(4px); }

/* ── Admin panel ── */
.admin-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 28px; }
.admin-bar.end { justify-content: flex-end; margin: 22px 0 0; }
.hint { color: var(--muted); font-size: 13px; }
.admin-row {
  display: flex; align-items: center; gap: 16px; padding: 12px 18px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .3s;
}
.admin-row:hover { border-color: rgba(255,255,255,.2); }
.admin-row .name { flex: 1; min-width: 180px; font-weight: 800; }
.admin-row .note { display: block; color: var(--muted); font-size: 12px; font-weight: 400; overflow-wrap: anywhere; }
.admin-row .grow { flex: 1; min-width: 160px; }
.admin-thumb { width: 64px; height: 40px; flex: none; object-fit: cover; border-radius: 8px; background: #000; border: 1px solid var(--line); }
.admin-thumb.round { width: 40px; border-radius: 50%; }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-actions button, .file-btn {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer;
  background: rgba(255,255,255,.05); color: var(--text); font: inherit; font-size: 13px; font-weight: 700;
  transition: background .3s, border-color .3s;
}
.admin-actions button:hover, .file-btn:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }
.admin-actions .danger:hover { background: rgba(255,68,88,.25); border-color: var(--down); }
.admin-actions .primary { background: linear-gradient(135deg, var(--red-hot), var(--red-deep)); border-color: transparent; }
.empty-row { padding: 16px 18px; color: var(--muted); font-size: 14px; border: 1px dashed rgba(255,255,255,.14); border-radius: 12px; }
.admin-row code.key { font: 600 13px/1.4 Consolas, "SF Mono", monospace; color: var(--red-hot); letter-spacing: .04em; }

.admin-row input, .admin-row select, .field input, .field textarea, .field select {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; outline: 0;
  background: #060607; color: var(--text); font: inherit; font-size: 14px;
  transition: border-color .3s, box-shadow .3s;
}
.admin-row input:focus, .admin-row select:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--line-hot); box-shadow: 0 0 0 4px rgba(255,31,51,.12); }
.field textarea { resize: vertical; min-height: 44px; }
.field select:disabled, .field input:disabled { opacity: .5; }
.money { display: flex; align-items: center; gap: 6px; font-weight: 800; color: var(--muted); }
.money input { width: 120px; }
.form-grid { display: grid; gap: 16px; margin-bottom: 22px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.form-grid .field { margin-bottom: 0; }
.field > span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.field small { color: var(--muted); font-size: 12px; }
.field small code { padding: 1px 5px; border-radius: 5px; background: rgba(255,255,255,.08); font: 600 12px Consolas, "SF Mono", monospace; color: var(--red-hot); }

.modal {
  position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px;
  background: rgba(0,0,0,.72); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s;
}
.modal.open { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.modal-card {
  position: relative; width: 100%; max-width: 720px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 30px 28px 26px;
  background: linear-gradient(160deg, #17171b, #09090b); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 40px 100px rgba(0,0,0,.8), 0 0 50px rgba(255,31,51,.12);
  transform: translateY(24px) scale(.97); transition: transform .5s var(--ease);
  scrollbar-width: thin; scrollbar-color: #2a2a2e transparent;
}
.modal.open .modal-card { transform: none; }
.modal-card h2 { font-size: 26px; font-weight: 900; margin: 4px 0 20px; }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.06); color: var(--text); font-size: 22px; line-height: 1; transition: background .3s, transform .4s var(--ease);
}
.modal-close:hover { background: rgba(255,31,51,.3); transform: rotate(90deg); }
.ed-photo { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.ed-photo img { width: 200px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 55%, rgba(255,31,51,.2), #050505 72%); }
.ed-photo img.placeholder { mix-blend-mode: screen; }
.ed-photo div { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1; min-width: 200px; }
.ed-photo small { flex-basis: 100%; }
.ed-loader { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ed-loader code { flex: 1; min-width: 140px; padding: 9px 12px; border: 1px dashed rgba(255,255,255,.18); border-radius: 10px; font: 600 13px/1.4 Consolas, "SF Mono", monospace; color: var(--red-hot); }
.plan-table { display: grid; gap: 8px; }
.plan-head, .plan-line { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; align-items: center; }
.plan-head { color: var(--muted); font-size: 12px; }
.plan-table.two .plan-head, .plan-table.two .plan-line { grid-template-columns: 1fr 1fr; }

/* ── Key Panel ── */
.modal-card.small { max-width: 480px; }
.modal-card h2 code.key { font: 700 20px/1.3 Consolas, "SF Mono", monospace; color: var(--red-hot); overflow-wrap: anywhere; }
.key-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.key-tools input, .key-tools select, .gen select, .gen input:not([type=checkbox]), .inline-num input {
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; outline: 0;
  background: #060607; color: var(--text); font: inherit; font-size: 14px; transition: border-color .3s, box-shadow .3s;
}
.key-tools input { flex: 1; min-width: 220px; }
.key-tools input:focus, .key-tools select:focus, .gen select:focus, .gen input:focus { border-color: var(--line-hot); box-shadow: 0 0 0 4px rgba(255,31,51,.12); }
.key-row-admin code.key { cursor: pointer; font-size: 14px; transition: color .3s; }
.key-row-admin code.key:hover { color: #fff; }
.key-state, .key-pc { display: grid; gap: 4px; min-width: 150px; }
.key-state { justify-items: start; }
.key-state small, .key-pc small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.admin-actions button:disabled { opacity: .35; cursor: not-allowed; }
.gen .field { margin-bottom: 22px; }
.gen .plan-pills { margin-bottom: 10px; align-items: center; }
.gen select, .gen > .field > input { width: 100%; }
.gen small code { color: var(--red-hot); font-family: Consolas, "SF Mono", monospace; }
.inline-num { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.inline-num input { width: 110px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); flex: none; }
.check span { font-weight: 700; }
.check small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.check.off { opacity: .55; cursor: not-allowed; }
.guide { max-width: 900px; line-height: 1.75; }
.guide h3 { font-size: 20px; font-weight: 900; margin: 34px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.guide p, .guide li { color: #d5d2d8; font-size: 15px; }
.guide ol, .guide ul { padding-left: 22px; display: grid; gap: 6px; margin-bottom: 12px; }
.guide p { margin-bottom: 12px; }
.guide code { padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.08); font: 600 13px Consolas, "SF Mono", monospace; color: var(--red-hot); }
.guide-warn { padding: 14px 18px; border: 1px solid var(--patch); border-radius: 14px; background: rgba(255,194,51,.07); color: #ffe2a0; font-size: 14px; }
.guide-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: 14px; }
.guide-table th, .guide-table td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.guide-table th { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.03); }
.code { margin-bottom: 16px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #050506; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.03); }
.code-head b { font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.code-head button { padding: 5px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: rgba(255,255,255,.05); color: var(--text); font: inherit; font-size: 12px; font-weight: 700; }
.code-head button:hover { background: rgba(255,31,51,.25); }
.code pre { margin: 0; padding: 16px; overflow-x: auto; font: 13px/1.6 Consolas, "SF Mono", monospace; color: #e8e6ea; tab-size: 4; }

/* Key Panel layout: counters → tools → table */
.stat-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-card {
  padding: 16px 18px; text-align: left; cursor: pointer; border: 1px solid var(--line); border-radius: 16px;
  background: var(--panel); color: var(--text); font: inherit; position: relative; overflow: hidden;
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease);
}
.stat-card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--red); opacity: 0; transition: opacity .3s; }
.stat-card.on::before { opacity: 1; }
.stat-card b { display: block; font-size: 30px; font-weight: 900; line-height: 1.1; }
.stat-card span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.stat-card.s-unused b { color: var(--patch); }
.stat-card.s-active b { color: var(--ok); }
.stat-card.s-expired b, .stat-card.s-banned b { color: var(--down); }
.stat-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.25); }
.stat-card.on { border-color: var(--red); box-shadow: 0 0 26px rgba(255,31,51,.18); }
.key-tools { align-items: stretch; margin-bottom: 18px; }
.key-tools .btn { white-space: nowrap; }

.key-table { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel); }
.kt-head, .kt-row { display: grid; grid-template-columns: minmax(230px, 1.7fr) 1fr .7fr .9fr 1fr 1.3fr auto; gap: 16px; align-items: center; padding: 14px 20px; }
.kt-head { padding-top: 12px; padding-bottom: 12px; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.kt-head span:last-child { min-width: 292px; }
.kt-row { border-bottom: 1px solid var(--line); font-size: 14px; transition: background .3s; }
.kt-row:last-child { border-bottom: 0; }
.kt-row:hover { background: rgba(255,255,255,.03); }
.kt-row > div { min-width: 0; overflow-wrap: anywhere; }
.kt-row small { display: block; color: var(--muted); font-size: 12px; }
.kt-key code.key { font: 600 14px/1.4 Consolas, "SF Mono", monospace; color: var(--red-hot); letter-spacing: .03em; cursor: pointer; transition: color .3s; }
.kt-key code.key:hover { color: #fff; }
.kt-actions { display: flex; gap: 6px; justify-content: flex-end; min-width: 292px; }
.kt-actions button {
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; white-space: nowrap;
  background: rgba(255,255,255,.05); color: var(--text); font: inherit; font-size: 12px; font-weight: 700;
  transition: background .3s, border-color .3s;
}
.kt-actions button:hover:not(:disabled) { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }
.kt-actions button.danger:hover { background: rgba(255,68,88,.25); border-color: var(--down); }
.kt-actions button:disabled { opacity: .3; cursor: not-allowed; }
.kt-actions .icon { width: 34px; padding: 7px 0; }
.key-table .empty-row { margin: 16px; }

.panel { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.gen-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.gen .field > span { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); }
.gen .field > span i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-size: 12px; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--red-hot), var(--red-deep)); }
.gen .field > span em { font-style: normal; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.gen .field .field > span { color: var(--muted); font-size: 12px; }
.gen .field.last { margin-bottom: 0; }
.gen .form-grid { margin-bottom: 0; }
.gen-side { position: sticky; top: 96px; display: grid; gap: 16px; }
.gen-side h3 { font-size: 18px; font-weight: 900; }
.gen-side .summary-lines { margin: 0; }
.gen-side .summary-lines dd { text-align: right; overflow-wrap: anywhere; }
.gen-side .check { margin-bottom: 0; }
.made { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--ok); border-radius: 14px; }
.made b { color: var(--ok); font-size: 14px; }
.made textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #060607; resize: vertical; font: 600 13px/1.5 Consolas, "SF Mono", monospace; color: var(--red-hot); }

@media (max-width: 1180px) {
  .kt-head { display: none; }
  .kt-row { grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .kt-row .kt-key, .kt-row .kt-actions { grid-column: 1 / -1; }
  .kt-row > div[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 2px; }
  .kt-actions { justify-content: flex-start; flex-wrap: wrap; min-width: 0; }
  .gen-grid { grid-template-columns: 1fr; }
  .gen-side { position: static; }
}
@media (max-width: 700px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } }

/* My Products cards */
.product.owned .thumb .status { position: absolute; top: 14px; left: 14px; }
.owned-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.owned-head h3 { min-width: 0; overflow-wrap: anywhere; }
.chip.plan { color: var(--red-hot); flex: none; }
.owned-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.owned-actions .btn { padding: 11px 10px; font-size: 13px; }
.owned-actions .btn:only-child { grid-column: 1 / -1; }
.owned-actions .btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.reset-note { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; }
.product.owned .bought { margin: 6px 0 12px; }

/* Admin: layout pieces */
.admin-top { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.save-state { margin-top: 14px; padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--ok); border: 1px solid currentColor; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .4s var(--ease); }
.save-state.show { opacity: 1; transform: none; }
.save-state.bad { color: var(--down); }
.cat-edit { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cat-edit .cat-name {
  flex: 1; min-width: 0; padding: 6px 10px; margin-left: -10px; border: 1px solid transparent; border-radius: 10px; outline: 0;
  background: none; color: var(--text); font: inherit; font-size: 24px; font-weight: 900; transition: border-color .3s, background .3s;
}
.cat-edit .cat-name:hover { border-color: var(--line); }
.cat-edit .cat-name:focus { border-color: var(--line-hot); background: #060607; }
.cat-edit button, .cust .chev {
  width: 36px; height: 36px; flex: none; border: 1px solid var(--line); border-radius: 9px; cursor: pointer;
  background: rgba(255,255,255,.05); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; transition: background .3s, border-color .3s;
}
.cat-edit button:hover { background: rgba(255,255,255,.12); }
.cat-edit button.danger:hover { background: rgba(255,68,88,.25); border-color: var(--down); }
.add-row { border-style: dashed; background: none; }
.add-row input { flex: 1; min-width: 160px; }
.add-row button { padding: 9px 16px; border: 0; border-radius: 9px; cursor: pointer; color: #fff; font: inherit; font-size: 13px; font-weight: 800; background: linear-gradient(135deg, var(--red-hot), var(--red-deep)); transition: filter .3s; }
.add-row button:hover { filter: brightness(1.15); }
.admin-row .note i { font-style: normal; font-weight: 700; }
.admin-row .note .good { color: var(--ok); }
.admin-row .note .warn { color: var(--patch); }
.file-btn.primary { background: linear-gradient(135deg, var(--red-hot), var(--red-deep)); border-color: transparent; }
.file-btn.danger:hover { background: rgba(255,68,88,.25); border-color: var(--down); }
.admin-bar.end .file-btn.danger { margin-right: auto; }
details.cust > summary { list-style: none; cursor: pointer; }
details.cust > summary::-webkit-details-marker { display: none; }
.cust .chev { display: grid; place-items: center; cursor: pointer; transition: transform .4s var(--ease); }
details.cust[open] .chev { transform: rotate(180deg); }
.cust-orders { display: grid; gap: 8px; margin: 8px 0 8px 28px; padding-left: 16px; border-left: 2px solid var(--line); }
.site-group { margin-bottom: 34px; }
.site-group h3 { font-size: 20px; font-weight: 900; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.site-group .form-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.admin-help { margin: -18px 0 26px; max-width: 760px; }
.admin-actions .icon { width: 36px; padding: 8px 0; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 2; min-width: 200px; }
.chip { padding: 4px 11px; border-radius: 999px; border: 1px solid currentColor; font-size: 12px; font-weight: 800; white-space: nowrap; }
.chip.ok { color: var(--ok); }
.chip.out { color: var(--down); }
.plan-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.plan-pills button {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 16px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  background: #0b0b0d; color: var(--muted); font: inherit; font-size: 14px; font-weight: 700;
  transition: border-color .3s, background .3s, color .3s;
}
.plan-pills button:hover { color: var(--text); border-color: rgba(255,255,255,.25); }
.plan-pills button.active { color: var(--text); border-color: var(--red); background: rgba(255,31,51,.1); }
.plan-pills b { min-width: 26px; padding: 2px 8px; border-radius: 999px; font-size: 12px; text-align: center; color: #06140c; background: var(--ok); }
.plan-pills b.out { background: var(--down); color: #fff; }
.ed-section { margin: 26px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red-hot); }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 6px; }
.price-grid .field { margin-bottom: 0; }
.price-grid input { width: 100%; min-width: 0; }
#stock-new { font-family: Consolas, "SF Mono", monospace; }
.key-list button {
  flex: none; padding: 5px 10px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer;
  background: rgba(255,255,255,.05); color: var(--text); font: inherit; font-size: 12px; font-weight: 700;
  transition: background .3s, border-color .3s;
}
.key-list button:hover { background: rgba(255,68,88,.25); border-color: var(--down); }
.key-list { max-height: 260px; overflow-y: auto; display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #060607; scrollbar-width: thin; scrollbar-color: #2a2a2e transparent; }
.key-list > div { display: flex; align-items: center; gap: 10px; }
.key-list code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 600 13px/1.4 Consolas, "SF Mono", monospace; color: var(--red-hot); }
.key-list .none { color: var(--muted); font-size: 14px; }
@media (max-width: 600px) { .form-grid.two { grid-template-columns: 1fr; } }

/* ── Support page ── */
.steps { margin-bottom: 28px; }
.steps .step { display: block; margin-bottom: 8px; color: var(--red-hot); font-size: 12px; font-weight: 800; letter-spacing: .22em; }

/* ── Product detail page ── */
a.product { color: inherit; }
.product .price small.from { margin: 0 6px 0 0; text-transform: uppercase; letter-spacing: .08em; }
.btn.full { width: 100%; }
.back { display: inline-block; margin-bottom: 22px; color: var(--muted); font-size: 14px; font-weight: 600; transition: color .3s, transform .4s var(--ease); }
.back:hover { color: var(--text); transform: translateX(-4px); }
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; animation: rise .7s var(--ease) backwards; }
.pd-media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 18px;
  background: radial-gradient(circle at 50% 55%, rgba(255,31,51,.2), #050505 72%);
}
.pd-media img { width: 100%; height: 100%; object-fit: cover; }
.pd-media img.placeholder { mix-blend-mode: screen; }
.pd-features { margin-top: 20px; padding: 24px 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.pd-features h4 { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red-hot); margin-bottom: 14px; }
.pd-features p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.pd-features ul { list-style: none; display: grid; gap: 10px; }
.pd-features li { position: relative; padding-left: 24px; font-size: 15px; }
.pd-features li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--red); box-shadow: 0 0 10px var(--red); transform: rotate(45deg); }

.pd-info h1 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 900; line-height: 1.15; margin-bottom: 12px; }
.pd-price { display: flex; align-items: center; gap: 14px; margin: 16px 0 26px; }
.pd-price b { font-size: 34px; font-weight: 900; }
.stock-badge { padding: 5px 12px; border: 1px solid var(--line-hot); border-radius: 8px; color: var(--red-hot); font-size: 13px; font-weight: 700; white-space: nowrap; }
.stock-badge.out { border-color: rgba(255,255,255,.2); color: var(--muted); }
.pd-label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }

.plans { display: grid; gap: 10px; margin-bottom: 24px; }
.plans button {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 18px; cursor: pointer; text-align: left;
  border: 1px solid var(--line); border-radius: 14px; background: #0b0b0d; color: var(--text); font: inherit;
  transition: border-color .3s, background .3s, box-shadow .3s, transform .4s var(--ease);
}
.plans button b { display: block; font-size: 16px; font-weight: 800; }
.plans button small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.plans button em { font-style: normal; font-size: 16px; font-weight: 800; padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,.06); transition: background .3s; }
.plans button:hover:not(:disabled) { border-color: rgba(255,255,255,.28); transform: translateX(3px); }
.plans button.active { border-color: var(--red); background: rgba(255,31,51,.08); box-shadow: 0 0 26px rgba(255,31,51,.16); }
.plans button.active em { background: rgba(255,31,51,.3); }
.plans button.active::after {
  content: "✓"; position: absolute; top: -9px; right: -9px; width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; font-weight: 900; box-shadow: 0 0 12px var(--red);
  animation: pop .4s var(--ease);
}
@keyframes pop { from { transform: scale(0); } }
.plans button:disabled { opacity: .45; cursor: not-allowed; }
.plans button:disabled small { color: var(--down); }

.qty { display: flex; height: 48px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #0b0b0d; }
.qty button { width: 54px; border: 0; cursor: pointer; background: rgba(255,255,255,.05); color: var(--text); font-size: 22px; transition: background .3s; }
.qty button:hover:not(:disabled) { background: rgba(255,31,51,.3); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty output { flex: 1; display: grid; place-items: center; font-size: 18px; font-weight: 800; }

.summary-lines { margin: 0 0 18px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 8px; }
.summary-lines div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.summary-lines dt { color: var(--muted); }
.summary-lines dd { font-weight: 700; }
.summary-lines .total { padding-top: 10px; border-top: 1px solid var(--line); font-size: 16px; }
.summary-lines .total dd { font-weight: 900; }
.summary-lines dd.short { color: var(--down); }
.pd-info .btn.full { padding: 15px 28px; font-size: 15px; }
@media (max-width: 860px) { .pd { grid-template-columns: 1fr; gap: 28px; } }

/* ── My Products page ── */
.product .key-row { margin: 4px 0 14px; }
.product .key-row code { white-space: normal; word-break: break-all; }
.product .bought { color: var(--muted); font-size: 13px; margin: 2px 0 12px; }
.product .btn.full { width: 100%; }
.empty { padding: 48px 24px; text-align: center; border: 1px dashed rgba(255,255,255,.16); border-radius: 16px; color: var(--muted); }
.empty p { margin-bottom: 18px; }
.key-row { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border: 1px dashed rgba(255,255,255,.18); border-radius: 10px; background: #050506; }
.key-row code { flex: 1; min-width: 0; font: 600 13px/1.4 Consolas, "SF Mono", monospace; letter-spacing: .04em; color: var(--red-hot); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.key-row .copy { flex: none; padding: 5px 12px; border: 0; border-radius: 8px; cursor: pointer; background: rgba(255,255,255,.08); color: var(--text); font: inherit; font-size: 12px; font-weight: 700; transition: background .3s; }
.key-row .copy:hover { background: rgba(255,31,51,.3); }
.drawer-nav { display: none; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.drawer-nav a { padding: 10px 14px; border-radius: 12px; color: var(--muted); font-weight: 600; transition: background .3s, color .3s; }
.drawer-nav a:hover, .drawer-nav a.active { background: rgba(255,255,255,.06); color: var(--text); }
.admin-2fa { padding: 12px 14px; border: 1px solid var(--patch); border-radius: 12px; background: rgba(255,194,51,.07); color: #ffe2a0; font-size: 13px; line-height: 1.5; }
.sound-toggle {
  margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px;
  border: 0; border-radius: 12px; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .3s, color .3s;
}
.sound-toggle:hover { background: rgba(255,255,255,.06); color: var(--text); }
.sound-toggle b { color: var(--ok); font-weight: 800; }
.sound-toggle.off b { color: var(--muted); }

/* ── Login page ── */
.login { display: grid; place-items: center; padding: 32px 16px; }
.login-card {
  position: relative; width: 100%; max-width: 420px; padding: 44px 34px 30px; text-align: center;
  display: grid; gap: 14px; justify-items: center; border-radius: 28px;
  background: linear-gradient(165deg, rgba(26,26,31,.94), rgba(7,7,9,.96));
  box-shadow: 0 40px 100px rgba(0,0,0,.75), 0 0 70px rgba(255,31,51,.14);
  animation: rise .9s var(--ease) backwards;
}
/* Slowly rotating red light running around the card edge */
.login-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--spin, 0deg), rgba(255,255,255,.08), rgba(255,31,51,.9) 12%, rgba(255,255,255,.08) 28%, rgba(255,255,255,.08) 62%, rgba(255,90,104,.6) 74%, rgba(255,255,255,.08) 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 7s linear infinite;
}
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --spin: 360deg; } }
.login-card > * { animation: rise .8s var(--ease) backwards; }
.login-card > :nth-child(1) { animation-delay: .12s; }
.login-card > :nth-child(2) { animation-delay: .2s; }
.login-card > :nth-child(3) { animation-delay: .28s; }
.login-card > :nth-child(4) { animation-delay: .36s; }
.login-card > :nth-child(n+5) { animation-delay: .44s; }

.login-logo { position: relative; width: 150px; margin-bottom: -4px; }
.login-logo::before {
  content: ""; position: absolute; inset: 4%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,31,51,.55), transparent 68%);
  filter: blur(22px); animation: pulse 4s ease-in-out infinite;
}
.login-logo img {
  position: relative; width: 100%; mix-blend-mode: screen;
  mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  animation: float 6s ease-in-out infinite;
}
.login-card h1 {
  font-size: 38px; font-weight: 900; letter-spacing: .22em; padding-left: .22em; line-height: 1.1;
  background: linear-gradient(100deg, #fff 20%, #ff8a94 50%, #fff 80%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite, rise .8s var(--ease) .2s backwards;
}
.login-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px;
  border: 1px solid var(--line-hot); color: var(--red-hot); background: rgba(255,31,51,.08);
  font-size: 11px; font-weight: 800; letter-spacing: .2em;
}
.login-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1.8s ease-in-out infinite; }
.login-card p { color: var(--muted); font-size: 15px; max-width: 320px; margin-bottom: 6px; }
.login-card .btn { width: 100%; padding: 14px 24px; font-size: 15px; border-radius: 12px; }
.login-error { width: 100%; padding: 11px 14px; border: 1px solid var(--down); border-radius: 12px; color: #ffb3ba; background: rgba(255,68,88,.08); font-size: 14px; }
.btn.discord {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(135deg, #6a76ff, #4752c4);
  box-shadow: 0 8px 26px rgba(88,101,242,.4), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn.discord:hover { box-shadow: 0 14px 40px rgba(88,101,242,.65), inset 0 1px 0 rgba(255,255,255,.38); }
.btn.discord svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.login-note { margin-top: 8px; padding-top: 16px; width: 100%; border-top: 1px solid var(--line); color: #77777e; font-size: 12px; letter-spacing: .04em; }
/* ── Buttons ── */
.btn {
  display: inline-block; padding: 12px 28px; font-weight: 800; font-size: 14px; letter-spacing: .06em; text-align: center;
  background: linear-gradient(135deg, var(--red-hot), var(--red) 45%, var(--red-deep));
  border: 0; border-radius: 6px; color: #fff; cursor: pointer;
  box-shadow: 0 6px 20px rgba(255,31,51,.3), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .3s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 38px rgba(255,31,51,.75), inset 0 1px 0 rgba(255,255,255,.4); filter: brightness(1.1); }
.btn:active { transform: translateY(0) scale(.97); }
.btn.ghost { background: #0d0d0f; border: 1px solid rgba(255,255,255,.22); box-shadow: none; }
.btn.ghost:hover { background: #17171a; border-color: var(--line-hot); box-shadow: 0 8px 30px rgba(0,0,0,.6); }
.btn.disabled { background: rgba(255,255,255,.05); color: #6f6a70; box-shadow: none; pointer-events: none; }

.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 20; transform: translateX(-50%);
  max-width: calc(100% - 32px); padding: 13px 22px; border-radius: 999px;
  background: rgba(10,10,12,.95); border: 1px solid var(--line-hot); color: var(--text);
  font-size: 14px; font-weight: 600; box-shadow: 0 12px 40px rgba(0,0,0,.7);
  animation: toast-in .45s var(--ease);
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px); } }

/* ── Page basics ── */
.page { padding: 72px 0 110px; }
.eyebrow { color: var(--red-hot); font-size: 13px; font-weight: 800; letter-spacing: .3em; text-shadow: 0 0 18px rgba(255,31,51,.8); }
h1.title {
  font-size: clamp(32px, 5vw, 52px); font-weight: 900; margin: 6px 0 10px; letter-spacing: -.01em;
  background: linear-gradient(100deg, #fff 65%, var(--red-hot) 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub { color: var(--muted); max-width: 560px; margin-bottom: 40px; font-size: 17px; }
.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, 1fr); }

.card {
  display: block; position: relative; padding: 28px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  backdrop-filter: blur(8px);
  transition: transform .45s var(--ease), border-color .35s, box-shadow .45s var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--red), transparent); box-shadow: 0 0 14px var(--red);
  transition: width .5s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--line-hot); box-shadow: 0 18px 50px rgba(0,0,0,.6), 0 0 28px rgba(255,31,51,.16); }
.card:hover::before { width: 100%; }
.card h3 { font-size: 19px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; }
.todo { color: #ffb3ba; font-size: 12px; border: 1px dashed rgba(255,90,104,.6); border-radius: 6px; padding: 3px 10px; display: block; width: fit-content; margin-bottom: 22px; }

/* ── Home ── */
.hero { padding: 100px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.hero h1 { font-size: clamp(42px, 7vw, 84px); line-height: 1; font-weight: 900; letter-spacing: -.02em; }
.hero h1 .glow {
  display: inline-block;
  background: linear-gradient(100deg, #ff8a94, var(--red) 45%, #ff8a94 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgba(255,31,51,.7));
  animation: shine 5s linear infinite;
}
@keyframes shine { to { background-position: -200% 0; } }
.hero p { color: var(--muted); margin: 22px 0 34px; max-width: 470px; font-size: 18px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { position: relative; justify-self: center; width: 100%; max-width: 460px; }
.hero-art::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,31,51,.35), transparent 68%);
  filter: blur(30px); animation: pulse 4s ease-in-out infinite;
}
.hero-art img {
  position: relative; width: 100%; mix-blend-mode: screen;
  mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-16px); } }
@keyframes pulse { 50% { opacity: .55; transform: scale(1.12); } }
.home-links { padding-bottom: 110px; }

/* ── Status badge ── */
.status {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid currentColor; background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
  box-shadow: 0 0 18px -4px currentColor;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: blink 1.8s ease-in-out infinite; }
.status.ok { color: var(--ok); }
.status.patch { color: var(--patch); }
.status.down { color: var(--down); }
.status.down::before { animation: none; }
@keyframes blink { 50% { opacity: .35; } }

/* ── Product categories ── */
.tabs {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 6px; margin-bottom: 36px;
  background: rgba(10,10,12,.72); border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(12px);
}
.tabs button {
  padding: 9px 22px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .04em;
  background: transparent; color: var(--muted);
  transition: color .3s ease, background .35s ease, box-shadow .35s ease;
}
.tabs button:hover { color: var(--text); background: rgba(255,255,255,.07); }
.tabs button.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(255,90,104,.9), rgba(168,0,22,.9));
  box-shadow: 0 4px 18px rgba(255,31,51,.45), inset 0 1px 0 rgba(255,255,255,.25);
}
.cat { margin-bottom: 52px; }
.cat:not([hidden]) { animation: rise .6s var(--ease) backwards; }
.cat-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cat-head h2 { font-size: 24px; font-weight: 900; }
.cat-head h2::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 12px; border-radius: 3px; background: var(--red); box-shadow: 0 0 14px var(--red); transform: rotate(45deg) translateY(-3px); }
.cat-head span { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* ── Product box cards ── */
.product {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  backdrop-filter: blur(8px);
  transition: transform .5s var(--ease), border-color .35s, box-shadow .5s var(--ease);
}
.product:hover { transform: translateY(-8px); border-color: var(--line-hot); box-shadow: 0 24px 60px rgba(0,0,0,.65), 0 0 32px rgba(255,31,51,.2); }
.product .thumb {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: radial-gradient(circle at 50% 55%, rgba(255,31,51,.2), #050505 72%); border-bottom: 1px solid var(--line);
}
.product .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.product .thumb img.placeholder { mix-blend-mode: screen; }
.product:hover .thumb img { transform: scale(1.08); }
.product .thumb .status { position: absolute; top: 14px; left: 14px; }
.product .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product h3 { font-size: 20px; font-weight: 800; }
.product .desc { color: var(--muted); font-size: 15px; margin: 6px 0 20px; flex: 1; }
.product .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product .price { font-size: 26px; font-weight: 900; }
.product .price small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.product.is-down .thumb, .product.is-out .thumb { filter: grayscale(.85) brightness(.7); }

/* ── Status page ── */
.summary { margin-bottom: 28px; }
.summary .card b { display: block; font-size: 52px; font-weight: 900; line-height: 1.1; text-shadow: 0 0 30px currentColor; }
.summary .ok b { color: var(--ok); } .summary .patch b { color: var(--patch); } .summary .down b { color: var(--down); }
.summary .ok::before { background: linear-gradient(90deg, var(--ok), transparent); box-shadow: 0 0 14px var(--ok); }
.summary .patch::before { background: linear-gradient(90deg, var(--patch), transparent); box-shadow: 0 0 14px var(--patch); }
.summary .down::before { background: linear-gradient(90deg, var(--down), transparent); box-shadow: 0 0 14px var(--down); }
.summary span { color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.status-list { display: grid; gap: 10px; }
.status-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; padding: 18px 24px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; backdrop-filter: blur(8px);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease);
}
.status-row:hover { transform: translateX(6px); border-color: var(--line-hot); box-shadow: 0 10px 34px rgba(0,0,0,.6), 0 0 22px rgba(255,31,51,.12); }
.status-row .name { font-weight: 800; font-size: 17px; }
.status-row .cat-tag { margin-left: 12px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.status-row .note { color: var(--muted); font-size: 13px; font-weight: 400; display: block; }
.status-row .date { color: var(--muted); font-size: 13px; }

footer { padding: 30px 0; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

@media (max-width: 860px) {
  .g3 { grid-template-columns: 1fr 1fr; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 280px; order: -1; }
  .menu { display: none; }
  .drawer-nav { display: flex; }
  .nav { grid-template-columns: 1fr auto; }
}
@media (max-width: 600px) {
  .g3 { grid-template-columns: 1fr; }
  .status-row { grid-template-columns: 1fr auto; }
  .status-row .date { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; }
}
