/* BOOT LOADER — màn hình chờ khi trang tải ngân hàng đề */
#site-boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: #f4f8f6;
  transition: opacity .35s ease, visibility .35s ease;
}
#site-boot.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-logo-wrap {
  position: relative;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Vòng chạy quanh logo */
.boot-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(16, 185, 129, .18);
  border-top-color: var(--green-600, #059669);
  animation: bootSpin .9s linear infinite;
}
@keyframes bootSpin { to { transform: rotate(360deg); } }

.boot-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  animation: bootPulse 1.8s ease-in-out infinite;
}
@keyframes bootPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: .88; }
}

/* Tên thương hiệu + chấm nhấp nháy */
.boot-word {
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #1f2937;
}
.boot-word span { color: var(--green-600, #059669); }

.boot-dots {
  display: flex;
  gap: 7px;
}
.boot-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(5, 150, 105, .35);
  animation: bootDot 1.2s ease-in-out infinite;
}
.boot-dots i:nth-child(2) { animation-delay: .15s; }
.boot-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bootDot {
  0%, 100% { transform: translateY(0) scale(1); opacity: .45; }
  40% { transform: translateY(-5px) scale(1.15); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .boot-ring, .boot-logo, .boot-dots i { animation: none; }
}
