/* Popup xác nhận chung — showConfirm() */
.homong-confirm {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  pointer-events: none;
}

.homong-confirm.is-open {
  visibility: visible;
  pointer-events: auto;
}

.homong-confirm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.homong-confirm.is-open .homong-confirm__backdrop {
  opacity: 1;
}

.homong-confirm__box {
  position: relative;
  width: min(420px, 100%);
  background: var(--admin-surface, #fff);
  border-radius: var(--admin-radius, 12px);
  border-top: 3px solid var(--admin-gold, #c9a227);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.2s ease;
}

.homong-confirm.is-open .homong-confirm__box {
  transform: scale(1) translateY(0);
}

.homong-confirm__header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--admin-border, #e2e8f0);
}

.homong-confirm__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--admin-text, #1e293b);
  line-height: 1.35;
}

.homong-confirm__body {
  padding: 20px 22px;
}

.homong-confirm__message {
  margin: 0 0 20px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--admin-muted, #64748b);
}

.homong-confirm__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.homong-confirm__actions .adm-btn i {
  font-size: 0.875rem;
  line-height: 1;
}

.homong-confirm__actions .adm-btn,
.homong-confirm__actions .homong-confirm__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.homong-confirm__actions .adm-btn--gray,
.homong-confirm__actions .homong-confirm__btn--cancel {
  background: #f1f5f9;
  color: #64748b;
  border-color: #e2e8f0;
}

.homong-confirm__actions .adm-btn--gray:hover,
.homong-confirm__actions .homong-confirm__btn--cancel:hover {
  background: #e2e8f0;
}

.homong-confirm__actions .adm-btn--primary,
.homong-confirm__actions .homong-confirm__btn--confirm {
  background: #5b21b6;
  color: #fff;
  border-color: #5b21b6;
}

.homong-confirm__actions .adm-btn--primary:hover,
.homong-confirm__actions .homong-confirm__btn--confirm:hover {
  background: #4c1d95;
  border-color: #4c1d95;
}

.homong-confirm__actions .adm-btn--confirm-danger,
.homong-confirm__actions .homong-confirm__btn--danger {
  background: var(--admin-red, #dc2626);
  color: #fff;
  border: 1px solid var(--admin-red, #dc2626);
}

.homong-confirm__actions .adm-btn--confirm-danger:hover,
.homong-confirm__actions .homong-confirm__btn--danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}
