/* ============================================================================
   turbo.css — Phản hồi mượt: thanh progress khi chuyển trang + đồng hồ ping.
   Nhẹ, không chặn UI, hợp galaxy skin.
   ========================================================================== */

/* Thanh progress trên đỉnh trang */
#turbo-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 99999;
  background: linear-gradient(90deg, #ff3cac, #784ba0, #2b86c5, #42e695);
  box-shadow: 0 0 10px rgba(120, 75, 160, .8);
  opacity: 0;
  transition: width .2s ease, opacity .3s ease;
  pointer-events: none;
}
#turbo-progress.active { opacity: 1; }

/* Đồng hồ ping góc dưới phải */
#turbo-ping {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 99998;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-family: 'Rajdhani', 'Chakra Petch', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #e8ecff;
  background: rgba(15, 16, 30, .55);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  user-select: none;
  pointer-events: none;
  opacity: .85;
  transition: opacity .3s ease;
}
#turbo-ping .turbo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9aa;
  box-shadow: 0 0 6px currentColor;
  transition: background .3s ease;
}
#turbo-ping.good  .turbo-dot { background: #42e695; }
#turbo-ping.mid   .turbo-dot { background: #ffcc4d; }
#turbo-ping.bad   .turbo-dot { background: #ff5470; }

@media (max-width: 768px) {
  #turbo-ping { font-size: 11px; right: 8px; bottom: 8px; padding: 4px 8px; }
}
