.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease forwards;
}

.popup-overlay.active {
  display: flex;
}

.popup-box {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 2.5rem 2rem;
  max-width: 640px;
  width: 90%;
  color: white;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  animation: scaleIn 0.3s ease forwards;
  background: url("../images/vivax_800x800.jpg") no-repeat right / cover;
  font-size: 18px;
}

.popup-box div span {
  text-transform: uppercase;
  font-weight: bold;
}

.popup-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
  border-radius: inherit;
}

.popup-box > * {
  position: relative;
  z-index: 1;
}

.popup-box p {
  line-height: 1.5;
  color: white;
  margin: 0 0 1.8rem;
}

.popup-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.popup-buttons .btn {
  min-width: 100px;
  padding: 12px 0;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.popup-buttons .yes {
  background: #bc2229;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 8px;
}
.popup-buttons .yes:hover,
.popup-buttons .yes:focus {
  outline: none;
}

.popup-buttons .no {
  background: #f0f0f0;
  color: #444;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 8px;
}
.popup-buttons .no:hover,
.popup-buttons .no:focus {
  background: #dcdcdc;
  outline: none;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 480px) {
  .popup-box {
    padding: 2rem 1.5rem;
  }
  .popup-buttons .btn {
    width: 100%;
    min-width: auto;
  }
}
