@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  --bg-dark: #060911;
  --bg-card: rgba(13, 19, 33, 0.85);
  --bg-inset: rgba(6, 9, 17, 0.8);
  --border-cyan: rgba(0, 240, 255, 0.3);
  --border-pink: rgba(255, 0, 127, 0.3);
  --border-subtle: rgba(255, 255, 255, 0.08);
  
  --neon-cyan: #00f0ff;
  --neon-pink: #ff007f;
  --neon-green: #00ff66;
  --neon-gold: #f59e0b;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
}

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

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 240, 255, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(255, 0, 127, 0.06) 0%, transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 30px 30px, 30px 30px;
  color: var(--text-main);
  font-family: 'Rajdhani', sans-serif;
  min-height: 100vh;
  line-height: 1.5;
  padding: 24px;
}

/* Контейнеры */
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Типографика */
h1, h2, h3, h4, .font-orbitron {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
}

.glow-cyan {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}
.glow-pink {
  color: var(--neon-pink);
  text-shadow: 0 0 10px rgba(255, 0, 127, 0.6);
}
.glow-gold {
  color: var(--neon-gold);
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}
.glow-green {
  color: var(--neon-green);
  text-shadow: 0 0 10px rgba(0, 255, 102, 0.6);
}

.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 22px; }
.text-2xl { font-size: 28px; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.font-mono { font-family: monospace; }
.uppercase { text-transform: uppercase; }

/* Флекс и Сетка (Pure CSS Grid/Flex) */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-12 { grid-template-columns: repeat(12, 1fr); }

.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }

@media (max-width: 992px) {
  .col-8, .col-6, .col-4 { grid-column: span 12; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-5 { grid-template-columns: 1fr; }
  body { padding: 12px; }
  .hud-header { flex-direction: column; }
}

/* Карточки */
.cyber-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-cyan);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.cyber-card:hover {
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.15);
}
.cyber-card-pink {
  border-color: var(--border-pink);
}
.cyber-card-pink:hover {
  border-color: rgba(255, 0, 127, 0.6);
  box-shadow: 0 0 25px rgba(255, 0, 127, 0.2);
}

/* Формы и поля ввода */
.cyber-inset {
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  width: 100%;
  transition: all 0.2s ease;
}
.cyber-inset:focus, select.cyber-inset:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  outline: none;
}
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 12px;
  font-family: monospace;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}

/* Кнопки */
.cyber-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2) 0%, rgba(0, 120, 255, 0.1) 100%);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
  transition: all 0.2s ease;
}
.cyber-btn:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.4) 0%, rgba(0, 180, 255, 0.2) 100%);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
  color: #fff;
  transform: translateY(-2px);
}
.cyber-btn-pink {
  background: linear-gradient(135deg, rgba(255, 0, 127, 0.2) 0%, rgba(180, 0, 255, 0.1) 100%);
  border-color: var(--neon-pink);
  color: var(--neon-pink);
  text-shadow: 0 0 8px rgba(255, 0, 127, 0.6);
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.2);
}
.cyber-btn-pink:hover {
  background: linear-gradient(135deg, rgba(255, 0, 127, 0.4) 0%, rgba(220, 0, 255, 0.2) 100%);
  box-shadow: 0 0 25px rgba(255, 0, 127, 0.5);
  color: #fff;
}
.cyber-btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}
.cyber-btn-block {
  width: 100%;
}

/* HUD Шапка */
.hud-header {
  margin-bottom: 32px;
}
.hud-logo-icon {
  padding: 10px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-green);
  display: inline-block;
  animation: pulseAnim 2s infinite;
}
@keyframes pulseAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

/* Таблицы */
.cyber-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.cyber-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
.cyber-table th {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px;
  color: var(--text-muted);
  font-family: monospace;
  text-transform: uppercase;
}
.cyber-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px;
}
.cyber-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Уведомления */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert-error {
  background: rgba(159, 18, 57, 0.5);
  border-color: rgba(244, 63, 94, 0.4);
  color: #fecdd3;
}
.alert-success {
  background: rgba(6, 78, 59, 0.5);
  border-color: rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
}

/* Aztec QR Блок */
.aztec-box {
  background: #ffffff;
  padding: 12px;
  border-radius: 12px;
  display: inline-block;
  border: 2px solid var(--neon-pink);
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.3);
}

/* Карточки Арены на мониторе */
.pc-card {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.4);
  text-align: center;
  transition: all 0.3s ease;
}
.pc-card.busy {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.badge-chip {
  padding: 6px 12px;
  background: rgba(255, 0, 127, 0.15);
  border: 1px solid rgba(255, 0, 127, 0.4);
  border-radius: 8px;
  font-size: 12px;
  font-family: monospace;
  font-weight: bold;
  color: var(--neon-pink);
  white-space: nowrap;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-inset);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 8px;
}

/* Иконки sizing */
.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}
.icon-lg {
  width: 28px;
  height: 28px;
}