/* ========== CUSTOM DIALOG (showAlert / showConfirm) ========== */

.dlg-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 9000;
  opacity: 0;
  transition: opacity 0.22s ease;
  backdrop-filter: blur(2px);
}

.dlg-backdrop.dlg-visible {
  opacity: 1;
}

.dlg-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%) scale(0.94);
  z-index: 9001;
  background: #ffffff;
  border-radius: 20px;
  width: 360px;
  max-width: calc(100vw - 32px);
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.06),
    0 16px 48px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.dlg-modal.dlg-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ── 컬러 헤더 ── */
.dlg-header {
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

/* 헤더 배경 흐린 원형 장식 */
.dlg-header::before {
  content: '';
  position: absolute;
  top: -28px;
  right: -28px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.dlg-header::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: -18px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  pointer-events: none;
}

/* 아이콘 원형 배경 */
.dlg-icon-wrap {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dlg-icon {
  font-size: 28px;
  color: #ffffff;
  line-height: 1;
}

.dlg-header-title {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.02em;
}

/* ── 본문 ── */
.dlg-body {
  padding: 20px 28px 8px;
  text-align: center;
}

.dlg-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.dlg-message {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.75;
  white-space: pre-line;
}

/* ── 버튼 영역 ── */
.dlg-actions {
  display: flex;
  gap: 10px;
  padding: 20px 24px 24px;
}

.dlg-btn {
  flex: 1;
  font-family: 'Pretendard', 'Noto Sans KR', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 0;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: filter 0.15s ease, transform 0.1s ease;
}

.dlg-btn:hover {
  filter: brightness(0.91);
}

.dlg-btn:active {
  transform: scale(0.97);
}

.dlg-btn-ok {
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.dlg-btn-cancel {
  background: #f3f4f8;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.dlg-btn-cancel:hover {
  background: #e9eaf0;
  filter: none;
}
