.amx-pro-popup,
.amx-pro-popup * {
	box-sizing: border-box;
}

.amx-pro-popup[hidden] {
	display: none !important;
}

.amx-pro-popup {
	--amx-pro-navy: #0b1934;
	--amx-pro-blue: #2f6df6;
	--amx-pro-cyan: #32b6d8;
	--amx-pro-green: #198754;
	--amx-pro-border: rgba(23, 50, 91, 0.12);
	--amx-pro-muted: #53627a;
	position: fixed;
	right: clamp(18px, 2.4vw, 34px);
	bottom: clamp(18px, 2.4vw, 34px);
	z-index: 99980;
	width: min(430px, calc(100vw - 36px));
	color: var(--amx-pro-navy);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	opacity: 0;
	transform: translate3d(0, 18px, 0) scale(0.985);
	transition: opacity 220ms ease, transform 260ms cubic-bezier(0.2, 0.75, 0.25, 1);
	pointer-events: none;
	-webkit-font-smoothing: antialiased;
}

.amx-pro-popup--visible {
	opacity: 1;
	transform: translate3d(0, 0, 0) scale(1);
	pointer-events: auto;
}

.amx-pro-popup__surface {
	position: relative;
	overflow: hidden;
	padding: 28px;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 255, 0.99)),
		#fff;
	border: 1px solid var(--amx-pro-border);
	border-radius: 22px;
	box-shadow:
		0 24px 70px rgba(10, 30, 63, 0.2),
		0 4px 16px rgba(10, 30, 63, 0.08);
}

.amx-pro-popup__surface::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, var(--amx-pro-blue), var(--amx-pro-cyan));
}

.amx-pro-popup__glow {
	position: absolute;
	top: -100px;
	right: -90px;
	width: 230px;
	height: 230px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(47, 109, 246, 0.14), rgba(47, 109, 246, 0) 68%);
	pointer-events: none;
}

.amx-pro-popup__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	color: #5e6b80;
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
	-webkit-appearance: none;
	appearance: none;
}

.amx-pro-popup__close:hover {
	color: var(--amx-pro-navy);
	background: rgba(11, 25, 52, 0.06);
}

.amx-pro-popup__close:active {
	transform: scale(0.96);
}

.amx-pro-popup__close:focus-visible,
.amx-pro-popup__cta:focus-visible {
	outline: 3px solid rgba(47, 109, 246, 0.36);
	outline-offset: 3px;
}

.amx-pro-popup__close svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
}

.amx-pro-popup__eyebrow {
	display: flex;
	align-items: center;
	gap: 9px;
	max-width: calc(100% - 42px);
	margin: 0 0 13px;
	color: #4d607d;
	font-size: 11px;
	font-weight: 750;
	line-height: 1.35;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.amx-pro-popup__pulse {
	position: relative;
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	background: var(--amx-pro-cyan);
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 4px rgba(50, 182, 216, 0.13);
}

.amx-pro-popup__title {
	position: relative;
	margin: 0 38px 12px 0;
	padding: 0;
	color: var(--amx-pro-navy);
	font-family: inherit;
	font-size: clamp(23px, 2vw, 28px);
	font-weight: 780;
	line-height: 1.13;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.amx-pro-popup__description {
	position: relative;
	margin: 0 0 18px;
	color: var(--amx-pro-muted);
	font-size: 14px;
	line-height: 1.58;
}

.amx-pro-popup__benefits {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 9px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.amx-pro-popup__benefits li {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 10px 11px;
	color: #263b5c;
	background: rgba(47, 109, 246, 0.055);
	border: 1px solid rgba(47, 109, 246, 0.1);
	border-radius: 12px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
}

.amx-pro-popup__benefits svg {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	padding: 3px;
	color: var(--amx-pro-green);
	background: rgba(25, 135, 84, 0.1);
	border-radius: 50%;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.amx-pro-popup__cta {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	min-height: 52px;
	padding: 13px 20px;
	color: #fff !important;
	background: linear-gradient(100deg, #2764eb, #3189ef);
	border: 0;
	border-radius: 13px;
	box-shadow: 0 10px 26px rgba(47, 109, 246, 0.24);
	font-size: 15px;
	font-weight: 750;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.amx-pro-popup__cta:hover {
	color: #fff !important;
	box-shadow: 0 13px 30px rgba(47, 109, 246, 0.31);
	filter: saturate(1.08);
	transform: translateY(-1px);
}

.amx-pro-popup__cta:active {
	transform: translateY(0);
}

.amx-pro-popup__cta svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 160ms ease;
}

.amx-pro-popup__cta:hover svg {
	transform: translateX(2px);
}

.amx-pro-popup__note {
	margin: 12px 8px 0;
	color: #718096;
	font-size: 11px;
	line-height: 1.45;
	text-align: center;
}

@media (max-width: 782px) {
	.amx-pro-popup {
		right: 18px;
		bottom: 18px;
		width: min(408px, calc(100vw - 36px));
	}

	.amx-pro-popup__surface {
		padding: 24px;
		border-radius: 20px;
	}

	.amx-pro-popup__title {
		font-size: 24px;
	}
}

@media (max-width: 520px) {
	.amx-pro-popup {
		right: 10px;
		bottom: max(10px, env(safe-area-inset-bottom));
		left: 10px;
		width: auto;
		max-height: calc(100vh - 20px - env(safe-area-inset-bottom));
		max-height: calc(100dvh - 20px - env(safe-area-inset-bottom));
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
	}

	.amx-pro-popup__surface {
		padding: 22px 20px 18px;
		border-radius: 18px;
	}

	.amx-pro-popup__close {
		top: 8px;
		right: 8px;
	}

	.amx-pro-popup__eyebrow {
		margin-bottom: 10px;
		font-size: 10px;
		letter-spacing: 0.1em;
	}

	.amx-pro-popup__title {
		margin-right: 30px;
		margin-bottom: 10px;
		font-size: clamp(21px, 6.2vw, 25px);
	}

	.amx-pro-popup__description {
		margin-bottom: 14px;
		font-size: 13px;
		line-height: 1.48;
	}

	.amx-pro-popup__benefits {
		gap: 7px;
		margin-bottom: 15px;
	}

	.amx-pro-popup__benefits li {
		min-height: 44px;
		padding: 8px;
		font-size: 11px;
	}

	.amx-pro-popup__benefits svg {
		width: 17px;
		height: 17px;
	}

	.amx-pro-popup__cta {
		min-height: 50px;
		font-size: 14px;
	}

	.amx-pro-popup__note {
		margin-top: 9px;
		font-size: 10px;
	}
}

@media (max-width: 360px), (max-height: 620px) {
	.amx-pro-popup__surface {
		padding: 18px 16px 15px;
	}

	.amx-pro-popup__description {
		display: none;
	}

	.amx-pro-popup__benefits {
		grid-template-columns: 1fr;
	}

	.amx-pro-popup__benefits li {
		min-height: 38px;
	}

	.amx-pro-popup__note {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.amx-pro-popup,
	.amx-pro-popup__close,
	.amx-pro-popup__cta,
	.amx-pro-popup__cta svg {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

@media (forced-colors: active) {
	.amx-pro-popup__surface,
	.amx-pro-popup__benefits li,
	.amx-pro-popup__cta {
		border: 1px solid CanvasText;
	}

	.amx-pro-popup__cta {
		color: ButtonText !important;
		background: ButtonFace;
	}
}
