:root{
  --bg:#070a12;
  --card: rgba(12, 18, 34, 0.62);
  --card2: rgba(18, 26, 42, 0.75);
  --text:#e9efff;
  --muted:#9fb0d0;
  --border:rgba(255,255,255,0.10);
  --shadow:0 18px 50px rgba(0,0,0,0.45);

  --neonA: rgba(255, 64, 180, 0.28);
  --neonB: rgba(0, 255, 200, 0.20);
  --neonC: rgba(110, 140, 255, 0.22);

  --pill: rgba(255,255,255,0.06);
  --pill2: rgba(255,255,255,0.10);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--text);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  overflow-x:hidden;
}

.bg{position:fixed; inset:0; z-index:-2}
.bg__glow{
  position:absolute;
  width:900px; height:900px;
  border-radius:999px;
  filter: blur(60px);
  opacity:1;
}
.bg__glow--a{left:-240px; top:-260px; background: radial-gradient(circle, var(--neonA), transparent 60%)}
.bg__glow--b{right:-260px; top:-180px; background: radial-gradient(circle, var(--neonB), transparent 62%)}
.bg__noise{
  position:absolute; inset:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity:.18;
}

.wrap{max-width:1120px; margin:0 auto; padding:22px}

a{color:inherit}

.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
}
.logo{
  width:46px; height:46px;
  border-radius:16px;
  display:grid; place-items:center;
  font-weight:900;
  letter-spacing:.3px;
  color:#051022;
  background: linear-gradient(135deg, rgba(255,64,180,.95), rgba(0,255,200,.65));
  box-shadow: var(--shadow);
}
.brand__title{font-size:18px; font-weight:900}
.brand__sub{font-size:12px; color:var(--muted)}

.header__right{display:flex; gap:10px; flex-wrap:wrap}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border-radius:999px;
  background: var(--pill);
  border: 1px solid var(--border);
  text-decoration:none;
  font-weight:650;
  font-size:13px;
}
.pill:hover{background: var(--pill2)}
.pill--ghost{background: transparent}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero{
  display:grid;
  grid-template-columns: 1.4fr .8fr;
  gap:18px;
  padding:18px;
}
.hero h1{margin:0 0 10px 0; font-size:28px; letter-spacing:-.4px}
.muted{color:var(--muted)}
.small{font-size:12px}

.hero__stats{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
  margin-top:14px;
}
.stat{
  padding:12px;
  border-radius:16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}
.stat__label{font-size:12px; color:var(--muted)}
.stat__value{font-size:18px; font-weight:900; margin-top:6px}

.hero__hint{
  margin-top:14px;
  display:flex; gap:10px; align-items:center;
  padding:10px 12px;
  border-radius:16px;
  background: rgba(110,140,255,0.10);
  border: 1px solid rgba(110,140,255,0.22);
}
.chip{
  font-size:12px;
  font-weight:900;
  padding:5px 10px;
  border-radius:999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid var(--border);
}

.hero__right{
  padding:14px;
  border-radius:18px;
  background: var(--card2);
  border: 1px solid var(--border);
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.badge{
  border-radius:18px;
  padding:14px;
  border:1px solid rgba(255,64,180,0.25);
  background: radial-gradient(700px 240px at 10% 0%, rgba(255,64,180,0.20), transparent 55%),
              radial-gradient(600px 260px at 90% 0%, rgba(0,255,200,0.16), transparent 55%),
              rgba(255,255,255,0.03);
}
.badge__top{font-weight:950; letter-spacing:.2em; font-size:12px}
.badge__mid{font-weight:900; font-size:18px; margin-top:6px}
.badge__bot{margin-top:6px}

.divider{
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  margin:14px 0;
}

.sectionHead{
  margin-top:18px;
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}
.sectionHead h2{margin:0; font-size:16px; letter-spacing:.2px}

.grid{
  margin-top:16px;
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap:18px;
}


.serverCard{
  position:relative;
  padding:20px;
  border-radius:22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  overflow:hidden;

  display:flex;
  flex-direction:column;
  justify-content:space-between;

  min-height:140px;   /* 🔥 key change */
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.serverCard:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
}
.serverCard:focus-within{outline:2px solid rgba(110,140,255,0.45); outline-offset:3px}

.serverCard__glow{
  position:absolute; inset:-40px;
  background: radial-gradient(450px 200px at 15% 0%, rgba(255,64,180,0.18), transparent 60%),
              radial-gradient(450px 200px at 85% 0%, rgba(0,255,200,0.14), transparent 62%);
  pointer-events:none;
}
.serverCard__head{
  position:relative;
}

/* --- GTA-ish card effects --- */

@keyframes pulseGlow {
  0%   { opacity: .55; filter: blur(38px); transform: scale(1); }
  50%  { opacity: .9;  filter: blur(48px); transform: scale(1.03); }
  100% { opacity: .55; filter: blur(38px); transform: scale(1); }
}

.serverCard{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:150px;
}

.serverCard__glow{
  position:absolute;
  inset:-60px;
  background:
    radial-gradient(420px 220px at 12% 0%, rgba(255,64,180,0.20), transparent 60%),
    radial-gradient(420px 220px at 88% 0%, rgba(0,255,200,0.16), transparent 62%);
  pointer-events:none;
  animation: pulseGlow 3.6s ease-in-out infinite;
}

.serverCard__diag{
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.28;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.08) 0px,
      rgba(255,255,255,0.08) 2px,
      transparent 2px,
      transparent 12px
    );
  mask-image: radial-gradient(900px 280px at 0% 0%, black 55%, transparent 80%);
}

.serverCard__corner{
  position:absolute;
  top:0;
  left:0;
  width:120px;
  height:90px;
  pointer-events:none;
  background: linear-gradient(135deg, rgba(110,140,255,0.22), rgba(255,64,180,0.10));
  clip-path: polygon(0 0, 100% 0, 0 100%);
  border-top-left-radius:22px;
  opacity:.9;
}

.serverCard__live{
  position:absolute;
  top:12px;
  right:12px;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:950;
  letter-spacing:.18em;
  color: #e9efff;
  border: 1px solid rgba(255,64,180,0.35);
  background: rgba(255,64,180,0.12);
  box-shadow: 0 0 18px rgba(255,64,180,0.18);
}

.serverCard__meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:18px;
}

.serverCard__badge{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:2px;

  padding:8px 10px;
  border-radius:14px;
  border:1px solid rgba(0,255,200,0.28);
  background: rgba(0,255,200,0.08);

  opacity:0;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease;
}

.serverCard__badgeNum{
  font-weight:950;
  font-size:16px;
  line-height:1;
}

.serverCard__badgeSub{
  font-size:11px;
  color: var(--muted);
}

.serverCard:hover .serverCard__badge{
  opacity:1;
  transform: translateY(0);
}


.serverName{
  font-weight:950;
  font-size:18px;
  letter-spacing:.2px;
}

.code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size:12px;
  color: var(--muted);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  padding:4px 8px;
  border-radius:999px;
  white-space:nowrap;
}
.serverCard__meta{
  position:relative;
  margin-top:18px;
  display:flex;
  justify-content:flex-start;
}

.cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  border-radius:14px;

  background: linear-gradient(
      135deg,
      rgba(110,140,255,0.35),
      rgba(255,64,180,0.25)
  );

  border: 1px solid rgba(110,140,255,0.45);
  font-weight:900;
  font-size:13px;
  letter-spacing:.3px;

  transition: transform .1s ease, box-shadow .15s ease;
}

.serverCard:hover .cta{
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(110,140,255,0.35);
}

.arrow{opacity:.9}

.foot{padding-top:26px; padding-bottom:34px}

@media (max-width: 940px){
  .hero{grid-template-columns:1fr; }
  .grid{grid-template-columns:1fr; }
}

.chartWrap{
  margin-top: 14px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);

  height: 420px;
  position: relative;
}


.chartFooter{
  margin-top: 10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

/* --- Players panel --- */
.playersHead{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
}

.playersTitle{
  margin:0;
  font-size:16px;
  letter-spacing:.2px;
}

.playersControls{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.playersSearch{
  width:240px;
  max-width: 70vw;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  outline:none;
}
.playersSearch::placeholder{ color: rgba(159,176,208,0.75); }
.playersSearch:focus{
  border-color: rgba(110,140,255,0.45);
  box-shadow: 0 0 0 3px rgba(110,140,255,0.14);
}

.playersTableWrap{
  overflow:auto;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.08);
}

.playersTable{
  width:100%;
  border-collapse:collapse;
  min-width: 420px;
}

.playersTable th, .playersTable td{
  padding:10px 10px;
}

.playersTable thead th{
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  font-size:12px;
  text-align:left;
}

.thRight{ text-align:right; }

.playersTable tbody td{
  border-top: 1px solid rgba(255,255,255,0.08);
}

.playerName{
  font-weight:700;
}

.playerPing{
  text-align:right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.thBtn{
  appearance:none;
  border:none;
  background:transparent;
  color: inherit;
  font: inherit;
  font-weight:900;
  letter-spacing:.06em;
  cursor:pointer;
  padding:4px 0;
}
.thBtn:hover{ color: var(--text); }
.thBtn.isActive{ color: var(--text); }

