/* Payment Confirmation Modal */
.payment-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.payment-modal-overlay.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.payment-modal {
  background: linear-gradient(135deg, #1a1a1a 0%, #0e1010 100%);
  border: 3px solid #00d0a0;
  border-radius: 20px;
  padding: 40px 30px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: modalSlideIn 0.4s ease;
  box-shadow: 0 10px 40px rgba(0, 208, 160, 0.3);
}

.payment-modal.cancelled {
  border-color: #FF2F5F;
  box-shadow: 0 10px 40px rgba(255, 47, 95, 0.3);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.payment-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  width: 35px;
  height: 35px;
  min-width: 35px;
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 50%;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  box-shadow: none;
}

.payment-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.payment-modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: iconPulse 0.6s ease;
}

.payment-modal-icon.success {
  background: linear-gradient(135deg, #00d0a0, #00b894);
  box-shadow: 0 0 0 8px rgba(0, 208, 160, 0.2);
}

.payment-modal-icon.cancelled {
  background: linear-gradient(135deg, #FF2F5F, #e62958);
  box-shadow: 0 0 0 8px rgba(255, 47, 95, 0.2);
}

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

.payment-modal-icon svg {
  width: 45px;
  height: 45px;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.payment-modal-icon.success svg {
  animation: checkmark 0.6s ease 0.3s both;
}

@keyframes checkmark {
  0% {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.payment-modal h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 15px 0;
  color: #fff;
}

.payment-modal h2.success {
  color: #00d0a0;
}

.payment-modal h2.cancelled {
  color: #FF2F5F;
}

.payment-modal p {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #ddd;
  margin: 0 0 15px 0;
  padding: 0;
}

.payment-modal p strong {
  color: #00d0a0;
  font-weight: 600;
}

.payment-modal-info {
  background: rgba(0, 208, 160, 0.1);
  border: 1px solid rgba(0, 208, 160, 0.3);
  border-radius: 10px;
  padding: 15px;
  margin: 20px 0;
}

.payment-modal-info p {
  margin: 0;
  font-size: 14px;
  color: #bbb;
}

.payment-modal-button {
  background: linear-gradient(45deg, #00d0a0, #00b894);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 208, 160, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  height: auto;
  min-height: 44px;
}

.payment-modal-button:hover {
  background: linear-gradient(45deg, #00b894, #00a085);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 208, 160, 0.4);
}

.payment-modal-button.cancelled {
  background: linear-gradient(45deg, #555, #444);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.payment-modal-button.cancelled:hover {
  background: linear-gradient(45deg, #666, #555);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 600px) {
  .payment-modal {
    padding: 30px 20px;
    max-width: 90%;
  }

  .payment-modal h2 {
    font-size: 26px;
  }

  .payment-modal p {
    font-size: 14px;
  }

  .payment-modal-icon {
    width: 70px;
    height: 70px;
  }

  .payment-modal-icon svg {
    width: 40px;
    height: 40px;
  }
}
