/* PlayCourse pcDialog modal — shared admin + frontend styles. */
.pc-dialog {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .18s ease;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.pc-dialog.is-open { opacity: 1; }
.pc-dialog__backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(2px);
}
.pc-dialog__panel {
  position: relative;
  width: 100%; max-width: 420px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .35), 0 4px 12px rgba(15, 23, 42, .15);
  padding: 26px 26px 22px;
  text-align: center;
  outline: none;
  transform: translateY(8px) scale(.98);
  transition: transform .2s ease;
}
.pc-dialog.is-open .pc-dialog__panel { transform: translateY(0) scale(1); }
.pc-dialog__icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px;
  background: #e0e7ff;
  color: #5B1ED9;
}
.pc-dialog--danger .pc-dialog__icon { background: #fee2e2; color: #dc2626; }
.pc-dialog__body { margin-bottom: 20px; }
.pc-dialog__title {
  margin: 0 0 6px;
  font-size: 17px; font-weight: 700; color: #0f172a;
  line-height: 1.3;
}
.pc-dialog__msg {
  margin: 0;
  font-size: 14px; color: #475569; line-height: 1.55;
}
.pc-dialog__actions {
  display: flex; gap: 8px; justify-content: center;
}
.pc-dialog__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 96px;
  padding: 10px 18px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease, filter .15s ease;
  font-family: inherit;
}
.pc-dialog__btn--ghost {
  background: #f1f5f9; color: #475569;
}
.pc-dialog__btn--ghost:hover { background: #e2e8f0; color: #0f172a; }
.pc-dialog__btn--primary {
  background: linear-gradient(135deg, var(--pco-primary-color, #7A3FF2) 0%, color-mix(in srgb, var(--pco-primary-color, #7A3FF2) 55%, #6d28d9) 100%);
  color: #fff;
  box-shadow: 0 1px 2px rgba(79, 70, 229, .25), inset 0 1px 0 rgba(255,255,255,.18);
}
.pc-dialog__btn--primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.pc-dialog--danger .pc-dialog__btn--primary {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 1px 2px rgba(220, 38, 38, .25), inset 0 1px 0 rgba(255,255,255,.18);
}
