/* ===============================
   POWERTALK GLOBAL MODAL SYSTEM
   Theme: Deep Royal Purple (#6A0DAD)
   =============================== */

#modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  backdrop-filter: blur(3px);
}

.modal-box {
  background: #fff;
  width: 90%;
  max-width: 420px;
  padding: 26px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  animation: fadeSlideUp 0.25s ease-out;
  border-top: 6px solid #6A0DAD;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #6A0DAD;
  font-family: "Poppins", sans-serif;
}

.modal-message {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 18px;
  color: #333;
  font-family: "Poppins", sans-serif;
}

.modal-btn {
  padding: 10px 22px;
  background: #6A0DAD;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  transition: 0.2s;
}

.modal-btn:hover {
  background: #540b8c;
}

/* Loading Spinner */
.spinner {
  border: 4px solid #eee;
  border-top: 4px solid #6A0DAD;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  margin: 20px auto;
  animation: spin 0.8s linear infinite;
}

/* Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Error Shake */
@keyframes shake {
  0% { transform: translateX(0px); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-6px); }
  100% { transform: translateX(0px); }
}
