/* EN-TÊTE FIXE HAUT */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(4, 8, 17, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.45);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.75);
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  z-index: 1000;
}

.top-bar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.system-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 1.5px;
  color: var(--neon-blue);
  text-shadow: var(--neon-glow);
}

.btn-refresh-top {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--neon-blue);
  color: var(--neon-blue);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  width: auto;
  margin: 0;
}

.quick-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(0, 240, 255, 0.18);
}

.hud-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rank-badge {
  background: var(--neon-blue);
  color: #020813;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 4px;
}

.lvl-badge {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 0.88rem;
}

.key-pill {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid var(--purple-shadow);
  color: #e9d5ff;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 20px;
}

.gold-pill {
  background: rgba(255, 200, 0, 0.14);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 2px 9px;
  border-radius: 20px;
}

/* NOTIFICATION TOAST */
#system-toast {
  position: fixed;
  top: calc(108px + env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  background: rgba(6, 18, 36, 0.98);
  border: 2px solid var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
  color: #fff;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  z-index: 2000;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}
#system-toast.show {
  transform: translateY(0);
  opacity: 1;
}
