:root {
  --bg: #09090b;
  --panel: #121214;
  --side: #0e0e10;
  --line: #2a2a31;
  --text: #f4f4f0;
  --mut: #8a8a92;
  --red: #ff3b3b;
  --ok: #34d399;
  --warn: #fbbf24;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.glow {
  position: fixed;
  width: 520px;
  height: 520px;
  right: -160px;
  top: -180px;
  background: radial-gradient(circle, rgba(255,59,59,.16), transparent 68%);
  pointer-events: none;
}
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.card {
  width: min(420px, 100%);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.mark {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 28px;
}
.mark i, .side .brand i {
  font-style: normal;
  background: linear-gradient(120deg, var(--red), #ff8a3d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sub { color: var(--mut); font-size: 13px; }
label { display: flex; flex-direction: column; gap: 6px; color: var(--mut); font-size: 13px; font-weight: 600; }
input, .search {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0c0c0e;
  outline: none;
}
input:focus, .search:focus { border-color: var(--red); }
.primary, .ghost, .plan, .navbtn, .mini {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
}
.primary { background: linear-gradient(120deg, var(--red), #ff8a3d); color: white; }
.primary:disabled { opacity: .6; cursor: default; }
.ghost, .mini { background: transparent; border: 1px solid var(--line); color: var(--mut); }
.mini { padding: 7px 10px; border-radius: 9px; font-size: 12px; }
.mini:hover { color: var(--text); }
.mini.danger:hover { color: #ff6b6b; border-color: rgba(255,59,59,.45); }
.err { color: #ff6b6b; font-size: 13px; min-height: 18px; text-align: center; }
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side {
  background: var(--side);
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { font-family: "Space Grotesk", sans-serif; font-size: 24px; font-weight: 700; padding: 6px 10px 18px; }
.navbtn { text-align: left; background: transparent; color: var(--mut); }
.navbtn.on { background: rgba(255,59,59,.12); color: var(--text); }
.side .ghost { margin-top: auto; }
.main { padding: 28px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.head h1 { font-family: "Space Grotesk", sans-serif; font-size: 32px; letter-spacing: -0.04em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat, .bar, .fresh, table {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.stat { padding: 18px 20px; }
.stat b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 32px; margin-top: 4px; }
.stat span { color: var(--mut); font-size: 13px; font-weight: 600; }
.bar, .fresh { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.plans, .rowacts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.plan { background: transparent; border: 1px solid var(--line); color: var(--mut); }
.plan.on { color: var(--text); border-color: var(--red); background: rgba(255,59,59,.12); }
.search { width: min(280px, 100%); }
.fresh b, .code { font-family: Consolas, ui-monospace, monospace; letter-spacing: .04em; }
.fresh b { font-size: 20px; }
table { width: 100%; border-collapse: collapse; overflow: hidden; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
th { color: var(--mut); font-size: 12px; font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.empty { padding: 28px 16px; color: var(--mut); }
.pill { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: capitalize; }
.pill.active { color: var(--ok); background: rgba(52,211,153,.12); }
.pill.expired { color: var(--warn); background: rgba(251,191,36,.12); }
.pill.banned { color: #ff6b6b; background: rgba(255,59,59,.12); }
.tablewrap { overflow-x: auto; border-radius: 18px; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { height: auto; position: static; }
  .stats { grid-template-columns: 1fr; }
  .head, .bar, .fresh { flex-direction: column; align-items: stretch; }
}
