/**
 * ============================================================
 *  MixPanel CS 1.6 — Component Styles
 * ============================================================
 *  Template by Templuxo — https://templuxo.com
 * ============================================================
 */

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: var(--trans);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: var(--trans);
}
.card:hover::before { opacity: 0.7; }
.card:hover { border-color: var(--border-2); }
.card-sm { padding: 14px 16px; }
.card-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tx-3);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.card-title-icon { font-size: 13px; color: var(--accent); }

/* ── Stat Cards ─────────────────────────────────────────────── */
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: var(--trans);
}
.stat-card:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.04;
  transform: translate(20px, 20px);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
  opacity: 0.4;
  border-radius: 0 2px 2px 0;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--tx-1);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-value.accent { color: var(--accent); text-shadow: 0 0 16px rgba(77,159,255,0.2); }
.stat-value.red    { color: var(--red); text-shadow: 0 0 16px rgba(255,77,77,0.2); }
.stat-value.blue   { color: var(--blue); text-shadow: 0 0 16px rgba(77,166,255,0.2); }
.stat-value.orange { color: var(--orange); }
.stat-value.green  { color: var(--green); text-shadow: 0 0 16px rgba(57,255,110,0.2); }
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tx-3);
  margin-top: 5px;
}
.stat-delta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ok);
  margin-top: 3px;
}
.stat-delta.neg { color: var(--err); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--trans-fast);
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  user-select: none;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.15s;
}
.btn:hover::after { background: rgba(255,255,255,0.06); }
.btn:active { transform: scale(0.97); }

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #2A6FCC 100%);
  color: var(--bg-void);
  box-shadow: 0 0 20px rgba(77,159,255,0.3), 0 2px 6px rgba(0,0,0,0.3);
}
.btn-accent:hover { box-shadow: 0 0 32px rgba(77,159,255,0.45), 0 4px 12px rgba(0,0,0,0.3); }

.btn-outline {
  background: transparent;
  border-color: var(--border-2);
  color: var(--tx-2);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 10px rgba(77,159,255,0.1); }

.btn-ghost {
  background: var(--bg-elevated);
  border-color: var(--border-1);
  color: var(--tx-2);
}
.btn-ghost:hover { border-color: var(--border-2); color: var(--tx-1); }

.btn-danger {
  background: var(--red-bg);
  border-color: var(--red-border);
  color: var(--red);
}
.btn-danger:hover { background: rgba(255,77,77,0.18); box-shadow: 0 0 12px rgba(255,77,77,0.15); }

.btn-blue {
  background: var(--blue-bg);
  border-color: var(--blue-border);
  color: var(--blue);
}
.btn-blue:hover { background: rgba(77,166,255,0.18); }

.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-xs { padding: 4px 10px; font-size: 11px; }
.btn-lg { padding: 12px 28px; font-size: 14px; }
.btn-w-full { width: 100%; }
.btn-loading { opacity: 0.6; pointer-events: none; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.badge-ok      { background: var(--green-bg);  color: var(--green); border: 1px solid var(--green-border); }
.badge-err     { background: var(--red-bg);    color: var(--red);   border: 1px solid var(--red-border); }
.badge-warn    { background: var(--amber-bg);  color: var(--amber); border: 1px solid rgba(255,215,64,0.3); }
.badge-info    { background: var(--blue-bg);   color: var(--blue);  border: 1px solid var(--blue-border); }
.badge-accent  { background: var(--accent-bg); color: var(--accent);border: 1px solid var(--border-acc); }
.badge-neutral { background: var(--bg-elevated); color: var(--tx-2); border: 1px solid var(--border-1); }
.badge-ct      { background: rgba(90,186,255,0.1); color: var(--ct); border: 1px solid rgba(90,186,255,0.2); }
.badge-t       { background: rgba(255,133,52,0.1); color: var(--t);  border: 1px solid rgba(255,133,52,0.2); }
.badge-dot::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  box-shadow: 0 0 4px currentColor;
}

/* ── Tables ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tx-3);
  padding: 8px 14px;
  border-bottom: 2px solid var(--border-1);
  white-space: nowrap;
}
tbody tr {
  border-bottom: 1px solid rgba(255,200,80,0.03);
  transition: background 0.1s;
}
tbody tr:hover { background: var(--bg-hover); }
tbody tr:last-child { border-bottom: none; }
tbody td {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--tx-2);
  vertical-align: middle;
}
.rank-1  { color: var(--accent); text-shadow: 0 0 10px rgba(77,159,255,0.3); }
.rank-2  { color: #C0C8D4; }
.rank-3  { color: #CD7F32; }
.rank-n  { color: var(--tx-3); font-family: var(--font-mono); }

/* ── Avatar ─────────────────────────────────────────────────── */
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  font-family: var(--font-mono);
}
.avatar-xs { width: 24px; height: 24px; font-size: 9px; }
.avatar-sm { width: 30px; height: 30px; font-size: 11px; }
.avatar-md { width: 36px; height: 36px; font-size: 13px; }
.avatar-lg { width: 44px; height: 44px; font-size: 16px; }

/* ── Progress Bar ───────────────────────────────────────────── */
.progress {
  width: 100%;
  height: 5px;
  background: var(--bg-overlay);
  border-radius: 20px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  transition: width 0.6s var(--ease);
  box-shadow: 0 0 6px rgba(77,159,255,0.25);
}
.progress-fill.red   { background: linear-gradient(90deg, var(--red-dim), var(--red)); box-shadow: 0 0 6px rgba(255,77,77,0.25); }
.progress-fill.blue  { background: linear-gradient(90deg, var(--blue-dim), var(--blue)); box-shadow: 0 0 6px rgba(77,166,255,0.25); }
.progress-fill.amber { background: linear-gradient(90deg, #D4A00F, var(--amber)); }

/* ── Key-Value Info Rows ────────────────────────────────────── */
.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-1);
}
.info-row:last-child { border-bottom: none; }
.info-key {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tx-3);
}
.info-val {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--tx-2);
}

/* ── Chat Box ───────────────────────────────────────────────── */
.chat-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 260px;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.chat-msg {
  display: flex;
  gap: 7px;
  align-items: baseline;
  font-size: 13px;
  animation: msg-in 0.2s var(--ease);
}
.chat-name {
  font-weight: 700;
  color: var(--tx-1);
  white-space: nowrap;
  flex-shrink: 0;
}
.chat-name.sys    { color: var(--accent); text-shadow: 0 0 6px rgba(77,159,255,0.2); }
.chat-name.ct     { color: var(--ct); }
.chat-name.t-side { color: var(--t); }
.chat-name.admin  { color: var(--red); text-shadow: 0 0 6px rgba(255,77,77,0.2); }
.chat-text { color: var(--tx-2); word-break: break-word; }
.chat-delete { transition: opacity 0.15s; font-weight: 700; }
.chat-msg:hover .chat-delete { opacity: 1 !important; }
.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid var(--border-1);
  background: var(--bg-surface);
}
.chat-input-row input {
  flex: 1;
  font-size: 13px;
  padding: 6px 10px;
}

/* ── Terminal (RCON) ────────────────────────────────────────── */
.terminal {
  background: #060A04;
  border: 1px solid rgba(57,255,110,0.12);
  border-radius: var(--r-lg);
  font-family: var(--font-mono);
  font-size: 12.5px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(57,255,110,0.05);
}
.term-titlebar {
  background: #0A1008;
  border-bottom: 1px solid rgba(57,255,110,0.10);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.term-btn {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.term-btn.close  { background: #ff5f57; box-shadow: 0 0 4px rgba(255,95,87,0.3); }
.term-btn.min    { background: #febc2e; box-shadow: 0 0 4px rgba(254,188,46,0.3); }
.term-btn.max    { background: #28c840; box-shadow: 0 0 4px rgba(40,200,64,0.3); }
.term-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent2);
  margin-left: 8px;
  opacity: 0.8;
}
.term-connected {
  margin-left: auto;
  font-size: 10px;
  color: var(--ok);
  opacity: 0.7;
}
.term-body {
  padding: 12px;
  height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.term-line { line-height: 1.7; }
.term-line .cmd  { color: var(--accent2); }
.term-line .res  { color: #C0D4A8; }
.term-line .err  { color: var(--err); }
.term-line .info { color: var(--accent); }
.term-line .ok   { color: var(--ok); }
.term-line .dim  { color: var(--tx-3); }
.term-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid rgba(57,255,110,0.10);
  background: #040804;
}
.term-prompt { color: var(--accent2); font-size: 12px; opacity: 0.8; }
.term-input  {
  background: transparent;
  border: none;
  color: #C0D4A8;
  font-family: var(--font-mono);
  font-size: 12.5px;
  flex: 1;
  outline: none;
  caret-color: var(--accent2);
  padding: 0;
}

/* ── Quick RCON Buttons ─────────────────────────────────────── */
.rcon-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

/* ── Mix Lobby Cards ────────────────────────────────────────── */
.mix-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  cursor: pointer;
  transition: var(--trans);
  position: relative;
  overflow: hidden;
}
.mix-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.mix-card:hover {
  border-color: var(--border-acc);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(77,159,255,0.1);
}
.mix-card:hover::after { transform: scaleX(1); }
.mix-card.full {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.mix-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--tx-1);
  letter-spacing: 0.03em;
}
.mix-map {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--tx-3);
  margin-top: 2px;
}
.mix-slots {
  display: flex;
  gap: 3px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.slot {
  width: 24px;
  height: 24px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  transition: var(--trans-fast);
}
.slot.taken {
  background: var(--accent-bg);
  border-color: var(--border-acc);
  color: var(--accent);
  box-shadow: inset 0 0 6px rgba(77,159,255,0.08);
}
.slot.empty { background: var(--bg-overlay); color: var(--tx-4); }

/* ── Pick Phase ─────────────────────────────────────────────── */
.pick-arena {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 0;
  min-height: 380px;
}
.team-col {
  background: var(--bg-surface);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.team-header {
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.team-header.ct {
  background: rgba(90,186,255,0.08);
  border-bottom: 2px solid var(--ct);
  color: var(--ct);
  text-shadow: 0 0 10px rgba(90,186,255,0.2);
}
.team-header.t {
  background: rgba(255,133,52,0.08);
  border-bottom: 2px solid var(--t);
  color: var(--t);
  text-shadow: 0 0 10px rgba(255,133,52,0.2);
}
.team-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-1);
  animation: player-in 0.3s var(--ease-back);
}
.team-player:last-child { border-bottom: none; }
.team-player .pname { font-weight: 600; font-size: 14px; color: var(--tx-1); }
.team-player .pelo  { font-family: var(--font-mono); font-size: 11px; color: var(--tx-3); }
.pick-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 800;
  color: var(--tx-4);
  letter-spacing: 0.1em;
  padding-top: 40px;
}
.pool-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.pool-player {
  background: var(--bg-elevated);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: var(--trans);
}
.pool-player:hover {
  border-color: var(--border-acc);
  background: var(--bg-overlay);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(77,159,255,0.08);
}
.pool-player.picked {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(1);
}
.pool-player .av { margin: 0 auto 7px; }
.pool-player .pname { font-size: 12px; font-weight: 600; color: var(--tx-1); }
.pool-player .pelo  { font-family: var(--font-mono); font-size: 10px; color: var(--tx-3); margin-top: 1px; }
.pick-turn-banner {
  background: var(--bg-elevated);
  border: 1px solid var(--border-acc);
  border-radius: var(--r-lg);
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 16px rgba(77,159,255,0.06);
}
.pick-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: pulse-dot 1s ease infinite;
  flex-shrink: 0;
}

/* ── Map Vote ───────────────────────────────────────────────── */
.map-vote-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--trans-fast);
}
.map-vote-item:hover   { border-color: var(--border-2); }
.map-vote-item.voted   { border-color: var(--border-acc); background: var(--accent-bg); }
.map-vote-name  { padding: 8px 10px 2px; font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--tx-1); }
.map-vote-count { padding: 0 10px 6px; font-size: 11px; color: var(--tx-3); }
.map-vote-bar   { height: 3px; background: var(--bg-overlay); }
.map-vote-fill  { height: 100%; background: linear-gradient(90deg, var(--accent-dim), var(--accent)); transition: width 0.5s var(--ease); }

/* ── Map Select Grid ────────────────────────────────────────── */
.map-select-item {
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  padding: 10px;
  cursor: pointer;
  text-align: center;
  transition: var(--trans-fast);
  background: var(--bg-elevated);
  position: relative;
}
.map-select-item:hover   { border-color: var(--border-2); }
.map-select-item.selected {
  border-color: var(--accent);
  background: var(--accent-bg);
  box-shadow: 0 0 12px rgba(77,159,255,0.1);
}
.map-select-item .check {
  position: absolute;
  top: 5px; right: 6px;
  font-size: 11px;
  color: var(--accent);
  display: none;
}
.map-select-item.selected .check { display: block; }
.map-select-item .map-label { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--tx-2); }

/* ── Lobby Players List ─────────────────────────────────────── */
.lobby-player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-1);
}
.lobby-player:last-child { border-bottom: none; }

/* ── Notification Toast ─────────────────────────────────────── */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 14px 18px 14px 16px;
  min-width: 280px;
  max-width: 360px;
  z-index: 9998;
  box-shadow: var(--shadow-lg);
  transform: translateX(calc(100% + 30px));
  transition: transform 0.4s var(--ease);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.toast.show { transform: translateX(0); }
.toast-bar {
  width: 3px;
  border-radius: 3px;
  align-self: stretch;
  flex-shrink: 0;
  min-height: 20px;
}
.toast.ok   .toast-bar { background: var(--ok);   box-shadow: 0 0 6px var(--ok); }
.toast.err  .toast-bar { background: var(--err);  box-shadow: 0 0 6px var(--err); }
.toast.warn .toast-bar { background: var(--warn); box-shadow: 0 0 6px var(--warn); }
.toast.info .toast-bar { background: var(--info); box-shadow: 0 0 6px var(--info); }
.toast-content { flex: 1; }
.toast-title { font-weight: 700; font-size: 14px; color: var(--tx-1); margin-bottom: 2px; }
.toast-msg   { font-size: 12px; color: var(--tx-3); }
.toast-close {
  background: none;
  border: none;
  color: var(--tx-3);
  font-size: 14px;
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.15s;
  line-height: 1;
}
.toast-close:hover { color: var(--tx-1); }

/* ── Loading Spinner ────────────────────────────────────────── */
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border-1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── ELO Bar ────────────────────────────────────────────────── */
.elo-bar { width: 100%; }
.elo-bar-track {
  height: 4px;
  background: var(--bg-overlay);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 4px;
}
.elo-bar-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--orange), var(--accent));
  transition: width 0.6s var(--ease);
  box-shadow: 0 0 6px rgba(77,159,255,0.2);
}

/* ── Code Block ────────────────────────────────────────────── */
.code-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--tx-2);
  overflow-x: auto;
  white-space: pre;
  line-height: 1.8;
}
.code-block .kw  { color: var(--accent); }
.code-block .fn  { color: var(--blue); }
.code-block .str { color: var(--orange); }
.code-block .cmt { color: var(--tx-4); }
.code-block .ok  { color: var(--ok); }

/* ── Live Score Board ───────────────────────────────────────── */
.live-score-board {
  display: flex;
  align-items: center;
  gap: 12px;
}
.live-score-ct {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  color: var(--ct);
  text-shadow: 0 0 14px rgba(90,186,255,0.3);
}
.live-score-t {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  color: var(--t);
  text-shadow: 0 0 14px rgba(255,133,52,0.3);
}
.live-score-sep {
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--tx-4);
}

/* ── Admin Table Red Highlight ──────────────────────────────── */
.row-banned { background: rgba(255,77,77,0.04) !important; }
.row-banned td { color: var(--tx-2); }

/* ── Admin Action Button Group ──────────────────────────────── */
.action-group { display: flex; gap: 4px; align-items: center; }

/* ── Dot pulse for live badge ───────────────────────────────── */
#live-badge { animation: pulse-dot 1.5s ease infinite; }

.red { color: var(--red); }

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.dot.ok   { background: var(--ok);   box-shadow: 0 0 8px var(--ok); }
.dot.err  { background: var(--err);  box-shadow: 0 0 6px var(--err); }
.dot.warn { background: var(--warn); box-shadow: 0 0 6px var(--warn); }
.dot.live { background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: pulse-dot 2s ease infinite; }

/* ── Map Thumbnail ──────────────────────────────────────────── */
.map-thumb {
  width: 44px;
  height: 30px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.map-thumb-text {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  color: rgba(0,0,0,0.6);
  letter-spacing: 0.05em;
}

/* ── Multi-server selector ──────────────────────────────────── */
.server-select {
  background: var(--bg-overlay);
  border: 1px solid var(--border-1);
  color: var(--tx-2);
  border-radius: var(--r-sm);
  padding: 3px 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  cursor: pointer;
  outline: none;
}
.server-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(77,159,255,0.12); }

/* ── Map Score Thumb (in player history) ─────────────────────── */
.map-score-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 28px;
  border-radius: var(--r-sm);
  font-size: 11px;
  border: 1px solid var(--border-1);
  flex-shrink: 0;
}
.map-score-thumb.won {
  background: var(--green-bg);
  border-color: var(--green-border);
  color: var(--green);
}
.map-score-thumb.lost {
  background: var(--red-bg);
  border-color: var(--red-border);
  color: var(--red);
}

/* ── Match Scoreboard ───────────────────────────────────────── */
.match-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.match-side { text-align: center; }
.match-side-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.match-side-label.ct { color: var(--ct); }
.match-side-label.t  { color: var(--t); }
.match-side-score {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 800;
}
.match-side-score.ct { color: var(--ct); text-shadow: 0 0 20px rgba(90,186,255,0.25); }
.match-side-score.t  { color: var(--t); text-shadow: 0 0 20px rgba(255,133,52,0.25); }
.match-center { text-align: center; padding: 0 24px; }
.match-status { font-size: 12px; color: var(--tx-3); }
.match-status.live { color: var(--ok); text-shadow: 0 0 8px rgba(57,255,110,0.3); }

/* ── Match Team Titles ──────────────────────────────────────── */
.match-team-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.match-team-title.ct { color: var(--ct); border-bottom: 2px solid var(--ct); padding-bottom: 8px; }
.match-team-title.t  { color: var(--t);  border-bottom: 2px solid var(--t);  padding-bottom: 8px; }

/* ── My Row (highlight player's own row) ─────────────────────── */
.my-row {
  background: var(--accent-bg) !important;
}

/* ── Rank Badge ─────────────────────────────────────────────── */
.rank-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ── Achievement Card ───────────────────────────────────────── */
.ach-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-1);
  background: var(--bg-surface);
  transition: var(--trans);
}
.ach-card:hover {
  transform: translateY(-1px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-sm);
}
.ach-card.locked {
  opacity: 0.35;
}
.ach-icon {
  font-size: 28px;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}
.ach-rarity {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ── Dot Live ───────────────────────────────────────────────── */
.dot.live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  flex-shrink: 0;
}

/* ── Flex Wrap ──────────────────────────────────────────────── */
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }

/* ── Cursor Blink ───────────────────────────────────────────── */
.cursor-blink::after {
  content: '\2588';
  animation: blink 1s step-end infinite;
  color: var(--accent2);
  margin-left: 4px;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── Glow Accent ────────────────────────────────────────────── */
.glow-accent {
  animation: glow-pulse 3s ease infinite;
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(77,159,255,0.3); }
  50% { box-shadow: 0 0 24px rgba(77,159,255,0.5); }
}
