/* ================================
   UI Modal
================================ */

.ui-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.ui-modal.is-open {
  display: block;
}

/* Backdrop */
.ui-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

/* Modal panel */
.ui-modal-panel {
  position: relative;
  max-width: 560px;
  width: calc(100% - 2rem);

  margin: 8vh auto;
  padding: 2rem 2.25rem;

  background: linear-gradient(
    180deg,
    rgba(15, 20, 32, 0.95),
    rgba(10, 14, 24, 0.98)
  );

  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Title */
.ui-modal-panel h2 {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 600;
}

/* Section labels */
.ui-modal-panel h3 {
  margin: 1.25rem 0 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

/* Body text */
.ui-modal-panel p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

/* Section separators */
.ui-modal-panel section + section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* CTA spacing */
.ui-modal-panel .btn {
  margin-top: 1.75rem;
}

/* Close button */
.ui-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;

  width: 32px;
  height: 32px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.06);

  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

.ui-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Prevent background scroll */
body.ui-modal-open {
  overflow: hidden;
}
