:root {
  --bg: #071018;
  --panel: rgba(13, 28, 40, .78);
  --panel-strong: rgba(16, 35, 51, .92);
  --line: rgba(77, 252, 235, .18);
  --line-strong: rgba(84, 252, 252, .42);
  --text: #e8f4f6;
  --muted: #8d9ba5;
  --teal: #31e3d4;
  --blue: #3d95ff;
  --green: #49df86;
  --yellow: #f4d85d;
  --red: #ff6767;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(50, 227, 212, .14), transparent 36%),
    linear-gradient(rgba(84, 252, 252, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 252, 252, .035) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 34px 34px, 34px 34px, auto;
  min-height: 100vh;
}

.shell { width: min(1420px, calc(100vw - 48px)); margin: 0 auto; padding: 52px 0; }
.hero { text-align: center; margin-bottom: 34px; }
.hero h1 { margin: 0; font-size: clamp(44px, 6vw, 78px); letter-spacing: -.04em; text-shadow: 0 0 30px rgba(84,252,252,.18); }
.hero h1 span { display: inline-block; width: 12px; height: 12px; margin-left: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 22px var(--teal); }
.hero p, .crumbs { color: var(--muted); }
.crumbs { text-align: left; margin-bottom: 12px; font-size: 14px; }

.panel, .searchbar {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 24px 90px rgba(0,0,0,.35), inset 0 0 40px rgba(84,252,252,.035);
  backdrop-filter: blur(14px);
}

.searchbar {
  min-height: 96px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 76px 1fr 190px;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  margin-bottom: 26px;
}
.searchbar.compact { grid-template-columns: 1fr 180px; min-height: 74px; }
.search-icon { color: var(--teal); font-size: 62px; line-height: 1; text-align: center; }
input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 22px;
}
input::placeholder { color: #778691; }
button {
  border: 1px solid rgba(84,252,252,.28);
  color: var(--text);
  background: rgba(11, 28, 42, .9);
  border-radius: 10px;
  padding: 14px 18px;
  font-weight: 800;
  cursor: pointer;
}
#search-btn, #login-btn {
  background: linear-gradient(135deg, #35dfd0, #2d88ff);
  border: 0;
  font-size: 19px;
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { border-radius: 15px; padding: 28px; cursor: pointer; transition: transform .16s ease, border-color .16s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.card-head { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; }
.avatar, .avatar-wrap img { width: 84px; height: 84px; image-rendering: pixelated; border-radius: 18px; border: 2px solid var(--teal); box-shadow: 0 0 26px rgba(49,227,212,.26); }
.card h3 { margin: 0 0 6px; font-size: 25px; }
.online { color: var(--green); font-weight: 700; }
.facts { display: grid; grid-template-columns: 1fr auto; gap: 14px; color: var(--muted); margin: 11px 0; }
.facts b { color: #cdd8dc; }
.open { color: var(--teal); margin-top: 26px; border: 1px solid var(--line); border-radius: 8px; text-align: center; padding: 12px; font-weight: 800; }

.profile { display: grid; grid-template-columns: 120px 300px 1fr; gap: 28px; align-items: center; border-radius: 14px; padding: 26px; margin-bottom: 18px; }
.profile h2 { margin: 0 0 8px; font-size: 30px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 36px; border-left: 1px solid var(--line); padding-left: 34px; }
.stats span { display: block; color: var(--muted); margin-bottom: 6px; }
.stats b { color: var(--teal); font-size: 20px; }

.table-panel { border-radius: 14px; padding: 18px; }
.filters { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.filters input { font-size: 15px; margin-left: auto; max-width: 280px; border: 1px solid var(--line); padding: 12px; border-radius: 8px; }
.tab.active { color: var(--teal); background: rgba(49,227,212,.13); }
.logs { border: 1px solid rgba(255,255,255,.06); border-radius: 8px; overflow: hidden; font-family: "Cascadia Mono", "Consolas", monospace; }
.log-row { display: grid; grid-template-columns: 110px 70px 160px 170px 1fr; gap: 14px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.045); color: #d7e5e8; }
.log-row:nth-child(odd) { background: rgba(255,255,255,.018); }
.type-CHAT { color: var(--teal); }
.type-COMMAND { color: var(--yellow); }
.type-PUNISHMENT_BAN, .type-PUNISHMENT_MUTE, .type-PUNISHMENT_IP_BAN, .type-PUNISHMENT_IP_MUTE { color: var(--red); }
.level { color: var(--blue); }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 18px; color: var(--muted); }
.login-panel { max-width: 760px; margin: 0 auto; border-radius: 16px; padding: 28px; }
.error { color: var(--red); margin-top: 12px; }
.hidden { display: none !important; }

@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr; }
  .searchbar { grid-template-columns: 1fr; }
  .search-icon { display: none; }
  .profile { grid-template-columns: 1fr; }
  .stats { border-left: 0; padding-left: 0; grid-template-columns: 1fr; }
  .log-row { grid-template-columns: 1fr; }
}
