#bpm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 999999;
  align-items: center;
  justify-content: center;
}
#bpm-overlay.bpm-show { display: flex; }
#bpm-overlay.bpm-pos-top { align-items: flex-start; padding-top: 40px; }
#bpm-overlay.bpm-pos-bottom { align-items: flex-end; padding-bottom: 40px; }

#bpm-popup {
  background: var(--bpm-bg, #1a1a2e);
  color: var(--bpm-text, #ffffff);
  border-radius: 20px;
  padding: 48px 32px 32px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  animation: bpm-in 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes bpm-in {
  from { opacity:0; transform: scale(0.85) translateY(20px); }
  to   { opacity:1; transform: scale(1) translateY(0); }
}

#bpm-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--bpm-text, #fff);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  line-height: 34px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
#bpm-close:hover { background: rgba(255,255,255,0.3); }

.bpm-truck { font-size: 52px; margin-bottom: 10px; display: block; animation: bpm-truck 1.5s ease-in-out infinite alternate; }
@keyframes bpm-truck { from { transform: translateX(-6px); } to { transform: translateX(6px); } }

#bpm-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
  color: var(--bpm-text, #fff);
}

.bpm-msg {
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.6;
  margin: 0 0 22px;
}

#bpm-countdown {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.bpm-unit {
  background: rgba(0,0,0,0.35);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 62px;
}
.bpm-unit span {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--bpm-accent, #e94560);
  line-height: 1;
}
.bpm-unit label {
  display: block;
  font-size: 9px;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}
.bpm-sep {
  font-size: 26px;
  font-weight: 800;
  color: var(--bpm-accent, #e94560);
  align-self: center;
  padding-bottom: 18px;
  opacity: 0.7;
}

.bpm-btn {
  display: inline-block;
  background: var(--bpm-accent, #e94560);
  color: #fff !important;
  text-decoration: none !important;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  transition: opacity 0.2s, transform 0.15s;
}
.bpm-btn:hover { opacity: 0.9; transform: translateY(-2px); }
