/* ==============================================================
   THIẾT KẾ NÚT BẤM VÀ POPUP THỐNG KÊ TRUY CẬP
   ============================================================== */

/* 1. Nút bấm góc trên bên phải */
.visitor-top-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5); /* Nền kính đen mờ */
  backdrop-filter: blur(5px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.visitor-top-btn:hover {
  background: rgba(0, 210, 255, 0.5); /* Sáng xanh khi rê chuột */
  transform: scale(1.1);
}

/* 2. Màn hình nền đen của Popup */
.visitor-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.visitor-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* 3. Khung nội dung Popup */
.visitor-popup-content {
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 20px 25px;
  width: 300px;
  color: #fff;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.visitor-popup-close {
  position: absolute;
  top: 5px;
  right: 15px;
  font-size: 28px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}
.visitor-popup-close:hover {
  color: #ff4d4d;
  transform: scale(1.2);
}

.visitor-popup-title {
  text-align: center;
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.visitor-stat-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1.1rem;
}

/* Dòng Tổng số lượt tô màu nổi bật */
.visitor-stat-item:last-child {
  border-bottom: none;
  font-weight: bold;
  color: #00d2ff;
}
