/* Post-purchase diagnostic popup (SaaS app + Funnel Account admin preview). */
.msai-ppd {
	--ppd-primary: #3157d5;
	--ppd-primary-hover: #2747b8;
	--ppd-navy: #0b1f44;
	--ppd-muted: #5b6b86;
	--ppd-surface: #ffffff;
	--ppd-ease: cubic-bezier(.22, 1, .36, 1);
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: grid;
	place-items: center;
	padding: 16px;
	font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}
.msai-ppd--preview { position: relative; inset: auto; z-index: auto; min-height: 560px; border-radius: 16px; overflow: hidden; }
.msai-ppd__backdrop { position: absolute; inset: 0; background: rgba(11, 31, 68, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: msai-ppd-fade 240ms ease-out both; }
.msai-ppd__dialog {
	position: relative;
	width: min(100%, 420px);
	padding: 36px 28px 26px;
	border-radius: 24px;
	background: var(--ppd-surface);
	box-shadow: 0 30px 80px rgba(11, 31, 68, .28);
	text-align: center;
	animation: msai-ppd-rise 420ms var(--ppd-ease) both;
}
.msai-ppd__step[hidden] { display: none; }
.msai-ppd__logo { position: relative; display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 18px; }
.msai-ppd__logo-core { position: relative; z-index: 1; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: #fff; box-shadow: 0 10px 30px rgba(49, 87, 213, .28); animation: msai-ppd-float 3.2s ease-in-out infinite; }
.msai-ppd__logo-core img { width: 56px; height: 56px; object-fit: contain; }
.msai-ppd__logo-fallback { color: var(--ppd-primary); font-size: 1.75rem; font-weight: 800; }
.msai-ppd__ring { position: absolute; inset: 10px; border-radius: 50%; border: 2px solid rgba(49, 87, 213, .45); animation: msai-ppd-pulse 2.4s ease-out infinite; }
.msai-ppd__ring--late { animation-delay: 1.2s; }
.msai-ppd__eyebrow { margin: 0 0 8px; color: var(--ppd-primary); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.msai-ppd__title { margin: 0 0 10px; color: var(--ppd-navy); font-size: 1.5rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.msai-ppd__body { margin: 0 0 24px; color: var(--ppd-muted); font-size: .95rem; line-height: 1.55; }
.msai-ppd__actions { display: grid; gap: 10px; }
.msai-ppd .msai-ppd__cta,
.msai-ppd .msai-ppd__cta:hover,
.msai-ppd .msai-ppd__cta:focus { color: #fff; }
.msai-ppd__cta {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px;
	background: var(--ppd-primary); box-shadow: 0 14px 30px rgba(49, 87, 213, .3);
	font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
	transition: transform 160ms var(--ppd-ease), background-color 160ms ease-out, box-shadow 160ms ease-out;
}
.msai-ppd__cta span { transition: transform 160ms var(--ppd-ease); }
.msai-ppd__decline {
	min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent;
	color: var(--ppd-muted); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
	transition: color 160ms ease-out, background-color 160ms ease-out;
}
.msai-ppd .msai-ppd__decline:hover { color: var(--ppd-navy); background: #f1f4fb; }
.msai-ppd__cta:focus-visible, .msai-ppd__decline:focus-visible { outline: 3px solid #4a90e2; outline-offset: 3px; }
.msai-ppd__cta:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
	.msai-ppd__cta:hover { background: var(--ppd-primary-hover); transform: translateY(-1px); box-shadow: 0 18px 36px rgba(49, 87, 213, .36); }
	.msai-ppd__cta:hover span { transform: translateX(3px); }
}
html.msai-ppd-open { overflow: hidden; }
@keyframes msai-ppd-fade { from { opacity: 0; } }
@keyframes msai-ppd-rise { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes msai-ppd-float { 50% { transform: translateY(-4px); } }
@keyframes msai-ppd-pulse { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
	.msai-ppd__backdrop, .msai-ppd__dialog, .msai-ppd__logo-core, .msai-ppd__ring { animation: none; }
	.msai-ppd__ring { opacity: .35; }
}
@media (max-width: 480px) {
	.msai-ppd__dialog { padding: 30px 20px 20px; border-radius: 20px; }
	.msai-ppd__title { font-size: 1.32rem; }
}
