/**
 * dg-upsell-modal.css — premium upsell modal, the SELLING skin.
 *
 * Self-contained restyle of #account-upsell-modal: works on every page
 * (the modal now renders globally via wp_footer, not only in the cabinet),
 * independent of account.css. ID-based selectors out-rank the legacy
 * .account-upsell rules regardless of load order.
 *
 * Look: dark blurred backdrop, white card with a gold-crowned star badge,
 * persuasive headline, gold-check benefit list, full-width brand-gradient
 * CTA. Opens with a soft spring pop.
 */

#account-upsell-modal {
	position: fixed;
	inset: 0;
	/* Above the whole generator stack (modal 9990 / preview 9995 / spinner
	   9996 / sheets 9997) and the photo picker (10601). */
	z-index: 10800;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	background: rgba(20, 16, 40, 0.6);
	-webkit-backdrop-filter: blur(6px);
	        backdrop-filter: blur(6px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
#account-upsell-modal.open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 0.25s ease, visibility 0s;
}

#account-upsell-modal .account-upsell {
	position: relative;
	width: min(440px, 100%);
	max-height: 90vh;
	overflow-y: auto;
	background: linear-gradient(180deg, #fffdf8 0%, #ffffff 38%);
	border: 1px solid rgba(240, 200, 120, 0.35);
	border-radius: 26px;
	padding: 2.4rem 1.9rem 1.7rem;
	text-align: center;
	box-shadow:
		0 0 0 6px rgba(240, 200, 120, 0.10),
		0 30px 80px -24px rgba(20, 16, 40, 0.5);
	transform: scale(0.94) translateY(10px);
	transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.25, 1.2);
}
#account-upsell-modal.open .account-upsell {
	transform: scale(1) translateY(0);
}

#account-upsell-modal .account-upsell__close {
	position: absolute;
	top: 0.85rem;
	right: 0.9rem;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 11px;
	background: rgba(0, 0, 0, 0.05);
	color: #5e5f5c;
	font-size: 1.45rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}
#account-upsell-modal .account-upsell__close:hover { background: rgba(0, 0, 0, 0.1); color: #313330; }

/* Gold star badge with a soft glow ring */
#account-upsell-modal .account-upsell__icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 1.1rem;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: #fff;
	background: linear-gradient(135deg, #f6d488 0%, #e0a93e 55%, #c98e2e 100%);
	box-shadow:
		0 0 0 8px rgba(240, 200, 120, 0.18),
		0 0 0 16px rgba(240, 200, 120, 0.07),
		0 12px 26px -8px rgba(200, 149, 72, 0.6);
}

#account-upsell-modal h3 {
	margin: 0 0 0.55rem;
	font-size: 1.45rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #313330;
	line-height: 1.2;
}
#account-upsell-modal p {
	margin: 0 0 1.2rem;
	font-size: 0.95rem;
	line-height: 1.6;
	color: #5e5f5c;
}

/* Benefits — gold checks, left-aligned card */
#account-upsell-modal .account-upsell__features {
	list-style: none;
	margin: 0 0 1.4rem;
	padding: 0.9rem 1.1rem;
	background: linear-gradient(180deg, rgba(240, 200, 120, 0.10), rgba(240, 200, 120, 0.04));
	border: 1px solid rgba(240, 200, 120, 0.3);
	border-radius: 16px;
	text-align: left;
}
#account-upsell-modal .account-upsell__features li {
	position: relative;
	padding: 0.32rem 0 0.32rem 1.7rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #46415c;
}
#account-upsell-modal .account-upsell__features li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.42rem;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: linear-gradient(135deg, #f0c878, #c89548);
	-webkit-mask: none;
}
#account-upsell-modal .account-upsell__features li::after {
	content: "✓";
	position: absolute;
	left: 4px;
	top: 0.36rem;
	font-size: 0.72rem;
	font-weight: 800;
	color: #fff;
}

/* Actions — full-width brand CTA on top, quiet dismiss under it */
#account-upsell-modal .account-upsell__actions {
	display: flex;
	flex-direction: column-reverse;
	gap: 0.35rem;
}
#account-upsell-modal .account-upsell__actions .btn-premium {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.95rem 1.4rem;
	border: none;
	border-radius: 14px;
	background: linear-gradient(135deg, #6050b0 0%, #c4b8ff 100%);
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 14px 30px -10px rgba(96, 80, 176, 0.6);
	transition: transform 0.15s ease, filter 0.15s ease;
}
#account-upsell-modal .account-upsell__actions .btn-premium:hover {
	transform: translateY(-2px);
	filter: brightness(1.05);
}
#account-upsell-modal .account-upsell__actions .btn-text {
	background: none;
	border: none;
	width: 100%;
	padding: 0.65rem;
	color: #8a8599;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	border-radius: 10px;
}
#account-upsell-modal .account-upsell__actions .btn-text:hover { color: #46415c; background: rgba(0, 0, 0, 0.04); }

@media (prefers-reduced-motion: reduce) {
	#account-upsell-modal,
	#account-upsell-modal .account-upsell { transition: opacity 0.15s ease; transform: none; }
}
