.alert-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
}

.alert-box {
  background: #f5f3e5;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  min-width: 300px;
}

.alert-box button {
  background: #FEA024;
  color: black;
  border: none;
  padding: 8px 15px;
  margin-top: 10px;
  border-radius: 5px;
  cursor: pointer;
}

.alert-box button:hover {
  background: #868954;
}

.alert-container.show {
  visibility: visible;
  opacity: 1;
}

.confirm-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.confirm-box {
  background: #f5f3e5;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  min-width: 300px;
}

.confirm-box button {
  background: #FEA024;
  color: black;
  border: none;
  padding: 8px 15px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
}

.confirm-box button:hover {
  background: #868954;
}

.confirm-container.show {
  visibility: visible;
  opacity: 1;
}

/* SOLO POPUP */

.popup-active .alert-container {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
}

.popup-active .alert-box {
  background: rgba(255, 69, 58, 0.9);
  color: white;
  border-radius: 12px;
}

/* LOADING */

.loader-container {
  display: none;
  position: fixed;
  inset: 0;           
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);                
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.3);    
  z-index: 10000;
}
.loader-container.show {
  display: flex;
}

.loader {
  width: 6.5rem;
  height: 6.5rem;
  border: 5px solid black;
  border-top: 5px solid #FEA024;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}