.site-ui-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.site-ui-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-ui-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.site-ui-modal__card {
  position: relative;
  width: min(400px, 100%);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8e8e8;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.site-ui-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(135deg, #E11B22, #FF1F1F);
}

.site-ui-modal__title { margin: 0; font-size: 1rem; font-weight: 700; color: #fff; }

.site-ui-modal__close {
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.2); color: #fff; cursor: pointer;
}

.site-ui-modal__body { padding: 20px 18px 8px; }
.site-ui-modal__message { margin: 0; color: #222; line-height: 1.65; white-space: pre-wrap; }
.site-ui-modal__actions { display: flex; gap: 10px; padding: 16px 18px 18px; }

.site-ui-modal__btn {
  flex: 1; padding: 13px 16px; border: 0; border-radius: 10px;
  font: inherit; font-weight: 700; cursor: pointer;
}

.site-ui-modal__btn--cancel { background: #f5f5f5; color: #727272; }
.site-ui-modal__btn--confirm { background: linear-gradient(135deg, #E11B22, #FF1F1F); color: #fff; }
.site-ui-modal--alert .site-ui-modal__btn--cancel { display: none; }
