/* Overlay для popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Popup контейнер */
.custom-popup {
  background: linear-gradient(135deg, #444, #2f2f2f);
  color: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
  max-width: 450px;
  width: 90%;
  text-align: center;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.popup-overlay.show .custom-popup {
  transform: scale(1);
}

/* Иконка успеха */
.popup-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: #4caf50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  animation: scaleIn 0.5s ease;
}

.popup-icon.error {
  background: #f44336;
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Заголовок */
.popup-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

/* Сообщение */
.popup-message {
  font-size: 16px;
  line-height: 1.6;
  color: #ddd;
  margin-bottom: 32px;
}

/* Кнопка */
.popup-button {
  background: #ff7a1a;
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  width: 100%;
  max-width: 200px;
}

.popup-button:hover {
  background: #e96b0f;
  transform: translateY(-2px);
}

.popup-button:active {
  transform: translateY(0);
}

/* Mobile адаптация */
@media (max-width: 768px) {
  .custom-popup {
    padding: 30px 20px;
    max-width: 90%;
  }

  .popup-icon {
    width: 60px;
    height: 60px;
    font-size: 36px;
  }

  .popup-title {
    font-size: 22px;
  }

  .popup-message {
    font-size: 15px;
  }
}