:root {
  --bg: #07080d;
  --surface: rgba(18, 21, 35, 0.85);
  --surface-strong: #121524;
  --border: rgba(139, 92, 246, 0.24);
  --purple: #8b5cf6;
  --blue: #38bdf8;
  --text: #f4f6fc;
  --muted: #94a3b8;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
  background: radial-gradient(circle at top left, #131129 0%, var(--bg) 52%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}
.bg-glow-1 { top: -120px; left: -80px; background: var(--purple); }
.bg-glow-2 { bottom: -140px; right: -80px; background: var(--blue); }

.glass {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  border-left: none;
  border-right: none;
  border-top: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
}
.brand small { color: var(--blue); font-size: 11px; font-weight: 600; }

.nav-links, .nav-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 28px 22px 48px;
  flex: 1;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 18px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: rgba(139, 92, 246, 0.48); }

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(125deg, rgba(22, 18, 48, 0.95), rgba(10, 22, 40, 0.92));
}
.hero h1 { font-size: 36px; line-height: 1.15; margin: 12px 0; }
.hero p { color: var(--muted); max-width: 650px; line-height: 1.6; margin-bottom: 20px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.btn {
  border: none;
  border-radius: 9px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  color: #fff;
  transition: transform 0.12s, opacity 0.15s;
}
.btn:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--purple), var(--blue)); }
.btn-ghost { background: rgba(25, 30, 48, 0.85); border: 1px solid var(--border); }
.btn-danger { background: rgba(248, 113, 113, 0.14); border: 1px solid rgba(248, 113, 113, 0.5); color: var(--red); }

.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.14);
  color: var(--blue);
}
.pill-green { border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.14); color: var(--green); }
.pill-purple { border-color: rgba(139, 92, 246, 0.45); background: rgba(139, 92, 246, 0.16); color: #c4b5fd; }
.pill-red { border-color: rgba(248, 113, 113, 0.45); background: rgba(248, 113, 113, 0.14); color: var(--red); }

label { display: block; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  background: #0b0d16;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13.5px;
  margin-bottom: 12px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--purple); }

.game-cover { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; margin-bottom: 12px; background: #0d101b; }
.kpi-val { font-size: 22px; font-weight: 800; margin: 6px 0 4px; color: var(--blue); }
.muted { color: var(--muted); font-size: 13px; }

.footer {
  border-top: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(8, 10, 17, 0.9);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  padding: 12px 18px;
  border-radius: 10px;
  background: #14182a;
  border: 1px solid var(--blue);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.hidden { display: none; }
