/* =========================================================
   7-Day Free Trial Popup — shared styles
   Injected by assets/js/trial-popup.js on every page that
   loads the module. Do not hand-embed the overlay markup.
   ========================================================= */

.trial-popup-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 2000;
	background: rgba(0, 0, 0, 0.78);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.trial-popup-overlay.open {
	display: flex;
	animation: trialPopupFade 0.25s ease;
}
@keyframes trialPopupFade { from { opacity: 0; } to { opacity: 1; } }

.trial-popup-box {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: linear-gradient(160deg, rgba(24, 20, 48, 0.98) 0%, rgba(12, 10, 24, 0.98) 100%);
	border: 1.5px solid rgba(168, 85, 247, 0.4);
	border-radius: 22px;
	padding: 34px 30px 28px;
	box-shadow:
		0 32px 80px rgba(0, 0, 0, 0.6),
		0 0 60px rgba(139, 92, 246, 0.18),
		0 0 0 1px rgba(168, 85, 247, 0.18);
	animation: trialPopupRise 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes trialPopupRise {
	from { opacity: 0; transform: translateY(24px) scale(0.96); }
	to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.trial-popup-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 36px;
	height: 36px;
	border: none;
	background: transparent;
	color: rgba(255, 255, 255, 0.4);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	transition: color 0.2s ease, background 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}
.trial-popup-close .trial-popup-svg { width: 18px; height: 18px; }
.trial-popup-close:hover,
.trial-popup-close:focus {
	color: rgba(255, 255, 255, 0.9);
	background: rgba(255, 255, 255, 0.05);
	outline: none;
}

.trial-popup-icon {
	position: relative;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, rgba(236, 72, 153, 0.3), rgba(168, 85, 247, 0.2));
	border: 1px solid rgba(236, 72, 153, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 18px;
	box-shadow: 0 0 24px rgba(236, 72, 153, 0.25);
}
.trial-popup-icon__logo,
.trial-popup-icon__gift {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: translate(-50%, -50%);
}
.trial-popup-icon__logo {
	width: 28px;
	height: 28px;
	filter: drop-shadow(0 0 6px rgba(244, 114, 182, 0.5));
	opacity: 1;
}
.trial-popup-icon__gift {
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.6);
	color: #f472b6;
}
.trial-popup-icon__gift .trial-popup-svg { width: 26px; height: 26px; }

/* Intro: favicon spins out, gift swaps in. ~500ms, one-time on open. */
.trial-popup-icon.is-intro .trial-popup-icon__logo {
	animation: trialIconBrandOut 500ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.trial-popup-icon.is-intro .trial-popup-icon__gift {
	animation: trialIconGiftIn 320ms cubic-bezier(0.34, 1.56, 0.64, 1) 320ms forwards;
}
@keyframes trialIconBrandOut {
	0%   { opacity: 1; transform: translate(-50%, -50%) rotate(0deg)   scale(1); }
	70%  { opacity: 1; transform: translate(-50%, -50%) rotate(280deg) scale(0.55); }
	100% { opacity: 0; transform: translate(-50%, -50%) rotate(360deg) scale(0.35); }
}
@keyframes trialIconGiftIn {
	from { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
	to   { opacity: 1; transform: translate(-50%, -50%) scale(1);   }
}

.trial-popup-title {
	font-family: 'Outfit', sans-serif;
	font-size: 1.3rem;
	font-weight: 800;
	color: #ffffff;
	text-align: center;
	margin: 0 0 8px;
	line-height: 1.25;
}
.trial-popup-title span {
	background: linear-gradient(135deg, #f472b6, #a855f7);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.trial-popup-sub {
	font-size: 0.9rem;
	color: rgba(196, 181, 253, 0.82);
	text-align: center;
	line-height: 1.55;
	margin: 0 0 22px;
}

.trial-popup-field {
	width: 100%;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	padding: 13px 15px;
	color: #ffffff;
	font-size: 0.95rem;
	font-family: 'Outfit', sans-serif;
	margin-bottom: 10px;
	outline: none;
	transition: border-color 0.2s ease, background 0.2s ease;
	box-sizing: border-box;
}
.trial-popup-field::placeholder { color: rgba(255, 255, 255, 0.28); }
.trial-popup-field:focus {
	border-color: rgba(168, 85, 247, 0.65);
	background: rgba(255, 255, 255, 0.08);
}

.trial-popup-submit {
	position: relative;
	overflow: hidden;
	width: 100%;
	padding: 14px;
	border-radius: 999px;
	border: none;
	background: linear-gradient(135deg, #7c3aed, #a855f7);
	color: #ffffff;
	font-size: 1rem;
	font-weight: 700;
	font-family: 'Outfit', sans-serif;
	cursor: pointer;
	margin-top: 8px;
	transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
}
.trial-popup-submit:hover,
.trial-popup-submit:focus {
	opacity: 0.95;
	transform: translateY(-1px);
	box-shadow: 0 12px 32px rgba(124, 58, 237, 0.5);
	outline: none;
}
.trial-popup-submit:disabled {
	opacity: 0.6;
	pointer-events: none;
	transform: none;
}

/* Button shimmer sweep — subtle highlight runs left → right every ~3.5s. */
.trial-popup-submit::before {
	content: '';
	position: absolute;
	top: 0;
	left: -40%;
	width: 40%;
	height: 100%;
	background: linear-gradient(
		100deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.28) 50%,
		rgba(255, 255, 255, 0) 100%
	);
	transform: skewX(-18deg);
	animation: trialBtnShimmer 3.5s ease-in-out infinite;
	pointer-events: none;
}
.trial-popup-submit:disabled::before { animation: none; opacity: 0; }
@keyframes trialBtnShimmer {
	0%   { left: -40%; }
	35%  { left: 130%; }
	100% { left: 130%; }
}

.trial-popup-note {
	font-size: 0.72rem;
	color: rgba(255, 255, 255, 0.28);
	text-align: center;
	margin: 14px 0 0;
	line-height: 1.5;
}

.trial-popup-success-icon {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: rgba(34, 197, 94, 0.12);
	border: 1px solid rgba(34, 197, 94, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 6px auto 18px;
	color: #4ade80;
}
.trial-popup-success-icon .trial-popup-svg { width: 28px; height: 28px; }

.trial-popup-error {
	color: #fca5a5;
	font-size: 0.8rem;
	text-align: center;
	margin: 0 0 10px;
	min-height: 1.1em;
}

@media (max-width: 480px) {
	.trial-popup-box   { padding: 28px 22px 22px; border-radius: 18px; }
	.trial-popup-title { font-size: 1.15rem; }
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
	.trial-popup-overlay.open,
	.trial-popup-box,
	.trial-popup-icon.is-intro .trial-popup-icon__logo,
	.trial-popup-icon.is-intro .trial-popup-icon__gift,
	.trial-popup-submit::before {
		animation: none !important;
	}
	.trial-popup-icon__logo { opacity: 0; }
	.trial-popup-icon__gift { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
