.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(11, 31, 75, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-overlay.is-open {
  opacity: 1;
}

.modal {
  position: relative;
  width: min(440px, 100%);
  padding: 40px 36px 32px;
  border-radius: 36px;
  background: var(--white);
  text-align: center;
  transform: translateY(24px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.modal-overlay.is-open .modal {
  transform: none;
}

.modal-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 50%;
}

.modal-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal-success .modal-icon {
  background: var(--yellow-100);
  color: var(--yellow-600);
}

.modal-error .modal-icon {
  background: #ffe6e3;
  color: #d93a2b;
}

.modal-info .modal-icon,
.modal-question .modal-icon {
  background: var(--blue-100);
  color: var(--blue-600);
}

.modal h2 {
  margin-bottom: 12px;
  font-family: var(--font-title);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--navy);
}

.modal p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.modal-actions .btn {
  flex: 1;
}

@media (max-width: 480px) {
  .modal {
    padding: 32px 24px 24px;
    border-radius: 28px;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }
}
