/* =========================
   Download Modal
   ========================= */

.download-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.download-modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  max-width: 520px;
  margin: 10vh auto;
  background: white;
  border-radius: 24px;
  padding: 42px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  font-family: "Poppins", sans-serif;
  animation: modalIn 0.35s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-content h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.modal-check {
  display: block;
  font-size: 0.95rem;
  color: #444;
  margin: 18px 0 8px;
}

.modal-check a {
  color: #007acc;
  text-decoration: underline;
}

.modal-info {
  margin-top: 24px;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(0,122,204,0.08),
    rgba(0,255,200,0.08)
  );
}

.modal-info strong {
  display: block;
  margin-bottom: 6px;
}

.modal-info p {
  font-size: 0.95rem;
  margin: 0;
  color: #333;
}

.modal-trust {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #555;
  text-align: center;
}

.modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 32px;
}

.modal-actions button {
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
}

/* Cancel */
#cancelDownload {
  background: #eee;
  color: #333;
}

#cancelDownload:hover {
  background: #e2e2e2;
}

/* Continue CTA (matches your card-cta) */
#confirmDownload {
  background: linear-gradient(
    135deg,
    #22c55e,
    #16a34a
  );
  color: white;
  box-shadow: 0 10px 30px rgba(34,197,94,0.4);
}

#confirmDownload:hover {
  transform: translateY(-1px);
}

.modal-error {
  color: #e11d48; /* red-500 */
  font-size: 0.95rem;
  margin: 16px 0 0;
  text-align: center;
}

.modal-error.hidden {
  display: none;
}

.modal-error::before {
  content: "⚠ ";
}

.modal-resolution {
  margin: 24px 0;
  text-align: left;
}

.modal-resolution label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.modal-resolution select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 1rem;
  background: #f9f9f9;
}

.resolution-note {
  margin-top: 12px;
  font-size: 0.95rem;
  color: #16a34a;
}

.resolution-note.hidden {
  display: none;
}