.app-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.app-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.app-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.68);
  backdrop-filter: blur(6px);
}

.app-modal-card {
  position: relative;
  width: min(440px, 100%);
  padding: 34px;
  border: 1px solid rgba(194, 139, 60, 0.42);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(194, 139, 60, 0.18), transparent 36%),
    #fbf7ef;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  color: #111;
  transform: translateY(18px) scale(0.97);
  transition: transform 220ms ease;
}

.app-modal.is-open .app-modal-card {
  transform: translateY(0) scale(1);
}

.app-modal-kicker {
  margin: 0 0 10px;
  color: #bd8639;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.app-modal-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 0.95;
}

.app-modal-message {
  margin: 18px 0 0;
  color: #4f4a43;
  font-size: 1rem;
  line-height: 1.65;
}

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

.app-modal-button {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.15);
  background: transparent;
  color: #111;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.app-modal-button:hover {
  transform: translateY(-2px);
}

.app-modal-primary {
  border-color: #bd8639;
  background: #bd8639;
  color: #070707;
}

.app-modal-secondary {
  background: rgba(255, 255, 255, 0.52);
}

@media (max-width: 520px) {
  .app-modal-card {
    padding: 28px 22px;
  }

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

  .app-modal-button {
    width: 100%;
  }
}
