* { box-sizing: border-box; }
:root {
  --bg: #050910;
  --panel: rgba(13, 19, 33, 0.72);
  --border: #1f2a3a;
  --text: #e5ecf5;
  --muted: #93a4c0;
  --accent: #7dd3fc;
  --accent-strong: #38bdf8;
  --glow: 0 10px 60px rgba(56, 189, 248, 0.15);
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.bg-shell { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.bg-gradient {
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.25), transparent 35%),
              radial-gradient(circle at 80% 30%, rgba(56, 189, 248, 0.25), transparent 32%),
              radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.18), transparent 30%);
  filter: blur(40px);
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at center, rgba(255,255,255,0.6), transparent 75%);
  opacity: 0.6;
}

.page {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 22px 64px;
}

.hero { margin-bottom: 28px; display: flex; flex-direction: column; gap: 12px; }
.hero-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
h1 { margin: 0; font-size: 36px; letter-spacing: -0.5px; }
.subtitle { color: var(--muted); margin: 6px 0 0; }
.muted { color: var(--muted); font-size: 13px; }
.eyebrow { color: var(--muted); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #5865f2, #7dd3fc);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--glow);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.discord-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 60px rgba(88, 101, 242, 0.3); }
.discord-btn:active { transform: translateY(0); }
.pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
}
.pill.live { box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-strong); box-shadow: 0 0 12px var(--accent-strong); }

.hero-controls { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.control { display: flex; flex-direction: column; gap: 6px; min-width: 220px; color: var(--muted); font-size: 14px; }
.control label { color: var(--muted); font-weight: 500; }
.input-row { display: flex; gap: 8px; }

select, input { padding: 12px 14px; background: rgba(255,255,255,0.04); color: var(--text); border: 1px solid var(--border); border-radius: 10px; outline: none; }
select:focus, input:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 3px rgba(56,189,248,0.15); }
select option { background: var(--panel); color: var(--text); }

button { padding: 12px 16px; background: linear-gradient(135deg, #38bdf8, #8b5cf6); color: #0b1020; border: none; border-radius: 12px; font-weight: 700; cursor: pointer; box-shadow: var(--glow); transition: transform 120ms ease, box-shadow 120ms ease; }
button:hover { transform: translateY(-1px); box-shadow: 0 14px 60px rgba(56, 189, 248, 0.25); }
button:active { transform: translateY(0); }
button:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }
.ghost { background: rgba(255,255,255,0.04); color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.ghost:hover { box-shadow: 0 10px 40px rgba(255,255,255,0.1); }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 22px 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  margin-bottom: 20px;
}

.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.panel-header h2 { margin: 6px 0 0; font-size: 22px; }

.table-card { overflow: hidden; border-radius: 12px; border: 1px solid var(--border); background: rgba(8, 12, 22, 0.9); margin-top: 6px; }
 .table-card h3 { margin: 0; padding: 15px 18px 8px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
thead { background: rgba(255,255,255,0.03); }
th, td { padding: 15px 18px; text-align: left; }
th { color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--border); font-size: 13px; letter-spacing: 0.02em; }
td { border-bottom: 1px solid var(--border); font-size: 15px; }
tr:nth-child(odd) td { background: rgba(255,255,255,0.01); }
tr:hover td { background: rgba(56,189,248,0.05); }

.empty { padding: 18px; text-align: center; color: var(--muted); font-size: 15px; }

.search h3 { margin: 12px 0 0; }

.loading {
  display: none !important;
}
.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255,255,255,0.12);
  border-top-color: var(--accent-strong);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 680px) {
  .hero-top { flex-direction: column; }
  .hero-controls { width: 100%; align-items: stretch; }
  .control { width: 100%; }
  .panel-header { flex-direction: column; align-items: flex-start; }
  .input-row { flex-direction: column; }
  button, select, input { width: 100%; }
  .panel-actions { width: 100%; }
}

