/* Custom Modal Styles */
.custom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.custom-modal.show {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: #ffed00;
  border: 6px solid #000;
  padding: 3rem 2rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: slideUp 0.4s ease;
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.modal-icon.success::before {
  content: "✓";
  color: #000;
}

.modal-icon.error::before {
  content: "✕";
  color: #000;
}

.modal-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.modal-message {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-weight: 600;
}

.modal-btn {
  background: #000;
  color: #fff;
  border: 4px solid #000;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
}

.modal-btn:hover {
  background: #fff;
  color: #000;
  transform: translate(5px, -5px);
  box-shadow: -5px 5px 0 #000;
}

.modal-btn:active {
  transform: translate(0, 0);
  box-shadow: none;
}

/* Tablet styles */
@media (max-width: 768px) {
  .modal-content {
    padding: 2.5rem 2rem;
    border-width: 5px;
    max-width: 450px;
  }

  .modal-icon {
    font-size: 4.5rem;
    margin-bottom: 1.2rem;
  }

  .modal-title {
    font-size: 1.8rem;
    letter-spacing: 1.5px;
  }

  .modal-message {
    font-size: 1.05rem;
    margin-bottom: 1.8rem;
  }

  .modal-btn {
    padding: 0.9rem 2.5rem;
    font-size: 1.05rem;
  }
}

/* Mobile styles */
@media (max-width: 480px) {
  .custom-modal {
    padding: 1rem;
  }

  .modal-content {
    padding: 2rem 1.2rem;
    border-width: 4px;
    width: 95%;
    max-width: none;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
  }

  .modal-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
  }

  .modal-title {
    font-size: 1.4rem;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    line-height: 1.3;
  }

  .modal-message {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-weight: 500;
  }

  .modal-btn {
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    width: 100%;
    border-width: 3px;
  }

  .modal-btn:hover {
    transform: translate(3px, -3px);
    box-shadow: -3px 3px 0 #000;
  }
}

/* Extra small mobile */
@media (max-width: 360px) {
  .modal-content {
    padding: 1.5rem 1rem;
    border-width: 3px;
  }

  .modal-icon {
    font-size: 3rem;
  }

  .modal-title {
    font-size: 1.2rem;
  }

  .modal-message {
    font-size: 0.9rem;
  }

  .modal-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
}
