/* ===== Overlay ===== */
.mc-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;

  background: rgba(0,5,13,0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.mc-modal.is-open {
  opacity: 1;
  visibility: visible;
}

/* Khoá scroll trang khi modal mở */
html.mc-modal-lock { overflow: hidden; }

/* ===== Dialog (card bên trong) ===== */
.mc-modal__dialog {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 36px 32px;
  position: relative;

  transform: scale(0.92) translateY(20px);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.mc-modal.is-open .mc-modal__dialog {
  transform: scale(1) translateY(0);
}

/* ===== Close button ===== */
.mc-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.06);
  color: #1a1a2e;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.mc-modal__close svg { width: 14px; height: 14px; }
.mc-modal__close:hover {
  transform: rotate(90deg);
  background: #e74c3c;
  color: #ffffff;
}

/* ===== Header: badge + title + subtitle ===== */
.mc-modal__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(14,165,233,0.12);
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.mc-modal__title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}
.mc-modal__subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 22px;
}

.mc-modal__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}