/* Shared CoachNow dialog (replaces window.alert / confirm) */
.cn-dialog {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.cn-dialog[hidden] {
  display: none !important;
}

.cn-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 13, 14, 0.55);
  backdrop-filter: blur(2px);
}

.cn-dialog__panel {
  position: relative;
  width: min(100%, 420px);
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e4e4e7;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.22);
  padding: 1.35rem 1.35rem 1.2rem;
  animation: cn-dialog-in 0.18s ease-out;
}

@keyframes cn-dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cn-dialog__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #da020c;
}

.cn-dialog__title {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #191615;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.cn-dialog__message {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #52525b;
  white-space: pre-line;
}

.cn-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.cn-dialog__btn {
  flex: 1 1 auto;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.65rem 1.1rem;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cn-dialog__btn--primary {
  background: #da020c;
  color: #fff;
}

.cn-dialog__btn--primary:hover {
  background: #bf020a;
}

.cn-dialog__btn--ghost {
  background: #fff;
  color: #191615;
  border-color: #d4d4d8;
}

.cn-dialog__btn--ghost:hover {
  background: #f4f4f5;
}

.cn-dialog__btn:focus-visible {
  outline: 2px solid rgba(218, 2, 12, 0.35);
  outline-offset: 2px;
}

body.cn-dialog-open {
  overflow: hidden;
}
