@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@600;700;800&display=swap');

:root {
  --bg: #0e1114;
  --bg2: #151a1f;
  --glass: #161b20;
  --glass2: #1c2228;
  --glass-border: rgba(255, 70, 85, 0.28);
  --glass-border-hover: #ff4655;
  --neon-green: #ff4655;
  --neon-blue: #46c6ff;
  --neon-purple: #b4bec8;
  --neon-red: #ff4655;
  --neon-orange: #ff8a5b;
  --text: #ece8e1;
  --text-dim: #9a9a92;
  --text-muted: #6e6e66;
  --success: #7dff9a;
  --warning: #ffcc66;
  --error: #ff4655;
  --info: #46c6ff;
  --sidebar: #0b0d10;
  --line: rgba(236, 232, 225, 0.08);
  --red: #ff4655;
  --ok: #7dff9a;
  --accent: #ff4655;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: #0e1114;
  color: var(--text);
  font-family: 'Barlow', Arial, sans-serif;
  font-size: 15px;
}

#matrix { display: none !important; }
#fx { position: fixed; inset: 0; z-index: 80; pointer-events: none; }

.app {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(255, 70, 85, 0.18), transparent 50%),
    radial-gradient(700px 380px at -10% 110%, rgba(255, 70, 85, 0.08), transparent 46%),
    #0e1114;
}

.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  background: rgba(11, 13, 16, 0.86);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
}
.brand:hover { color: var(--accent); }

.top-tab {
  margin-left: 18px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.stage { display: block; }

.rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
}

.nav-inner { display: flex; flex-wrap: wrap; gap: 2px; }

nav button {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 14px;
  cursor: pointer;
  position: relative;
}
nav button:hover { color: #fff; }
nav button.active {
  color: #fff;
  background: transparent;
}
nav button.active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
}

.user-card {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
}
.game {
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: #fff;
}
.who { color: var(--accent); }
.sub { display: none; }

.act, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform .12s ease, background .12s ease;
}
.act:hover, .btn:hover { transform: translateY(-1px); }

.act, .btn-primary, .btn-big {
  background: var(--accent);
  color: #fff;
  padding: 11px 18px;
  font-size: 14px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.btn-secondary, .act[onclick="logout()"] {
  background: transparent;
  color: #fff;
  border: 1px solid var(--line);
  clip-path: none;
  padding: 10px 16px;
}
.btn-secondary:hover { border-color: var(--accent); }

.btn-danger { background: #7a1f28; color: #fff; clip-path: none; }
.btn-success { background: #1f6a3a; color: #fff; clip-path: none; }
.btn-small { padding: 6px 10px; font-size: 12px; clip-path: none; letter-spacing: 0.08em; }

.workspace {}
main { padding: 32px 28px 48px; max-width: 1120px; }

.card {
  background: rgba(22, 27, 32, 0.9);
  border: 1px solid var(--line);
  padding: 22px;
  margin-bottom: 16px;
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  opacity: 0.85;
}

.card-header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.card-icon { display: none; }
.card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.kicker {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  border: none;
  padding: 0;
}

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 72px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 0.9;
  text-transform: uppercase;
  margin: 8px 0 16px;
}
.hero-title i {
  font-style: normal;
  color: var(--accent);
}

.lead { max-width: 520px; color: var(--text-dim); line-height: 1.6; }

.form-group { margin-bottom: 14px; }
label {
  display: block;
  margin-bottom: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  background: #0e1114;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  outline: none;
}
input:focus, textarea:focus { border-color: var(--accent); }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

.status-msg {
  margin-top: 10px;
  padding: 10px 12px;
  font-size: 13px;
  border-left: 3px solid;
  background: #0e1114;
}
.status-msg.success { color: var(--ok); border-color: var(--ok); }
.status-msg.error { color: var(--error); border-color: var(--error); }
.status-msg.warning { color: var(--warning); border-color: var(--warning); }
.status-msg.info { color: var(--info); border-color: var(--info); }

.badge-status {
  display: inline-block;
  padding: 2px 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #0e1114;
  border: 1px solid var(--line);
}
.badge-status.success { color: var(--ok); border-color: var(--ok); }
.badge-status.warning { color: var(--warning); }
.badge-status.error { color: var(--error); border-color: var(--error); }
.badge-status.info { color: var(--info); }

.table-wrapper { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  padding: 10px 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: #101418;
  border-bottom: 1px solid var(--line);
}
td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
tr:hover { background: rgba(255, 70, 85, 0.06); }

code {
  font-family: Consolas, monospace;
  font-size: 12px;
  color: var(--accent);
}

.activity-list { display: block; }
.activity-item { display: block; padding: 0; border: none; background: none; }
.activity-icon { display: none; }
.activity-title { font-weight: 700; }
.activity-meta { font-size: 12px; color: var(--text-muted); }

.toggle {
  width: 40px; height: 20px;
  background: #0e1114;
  border: 1px solid var(--line);
  position: relative;
  cursor: pointer;
}
.toggle.active { background: var(--accent); border-color: var(--accent); }
.toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: #fff;
}
.toggle.active::after { left: 22px; }

.code-box {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  letter-spacing: 0.2em;
  text-align: center;
  padding: 20px;
  margin-top: 12px;
  background: #0e1114;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.hidden { display: none !important; }
.spinner {
  display: inline-block;
  width: 12px; height: 12px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.muted, .log-line { color: var(--text-dim); }
.log-line { margin: 4px 0; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0e1114; }
::-webkit-scrollbar-thumb { background: #2a3138; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.stat-card {
  background: #161b20;
  border: 1px solid var(--line);
  padding: 16px;
}
.stat-icon { display: none; }
.stat-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 36px;
  font-weight: 800;
}
.stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--text-muted);
}
.stat-change.positive { color: var(--ok); }
.stat-change.negative { color: var(--error); }
.sub-tabs .btn.active { background: var(--accent); color: #fff; }

.btn-discord {
  background: #5865f2;
  color: #fff;
  clip-path: none;
  border: none;
}
.btn-discord:hover { background: #4752c4; }

.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #161b20;
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 13px;
}

@media (max-width: 820px) {
  .hero-title { font-size: 44px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .user-card { margin-left: 0; }
  main, .topbar, .rail { padding-left: 16px; padding-right: 16px; }
}
