/* AA Network Promo — frontend styles */

:root {
	--aanp-bg: #14110f;
	--aanp-bg-card: #1a1613;
	--aanp-orange: #ff7a30;
	--aanp-orange-2: #ff4d4d;
	--aanp-orange-soft: rgba(255, 122, 48, 0.15);
	--aanp-border: rgba(255, 122, 48, 0.3);
	--aanp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.aanp-bar,
.aanp-popup,
.aanp-exit {
	font-family: var(--aanp-font);
	box-sizing: border-box;
}

.aanp-bar *,
.aanp-popup *,
.aanp-exit * {
	box-sizing: border-box;
}

/* ---------- Top announcement bar ---------- */

.aanp-bar {
	position: relative;
	/* Stays in normal flow (so it pushes ordinary content down), but still
	   needs a stacking context above theme headers that use
	   position: absolute/fixed to float over the hero section — those
	   ignore flow entirely and would otherwise paint over the bar. */
	z-index: 999999;
	background: linear-gradient(180deg, #1c1714, #100d0b);
	color: #fff;
	font-size: 13px;
	line-height: 1.4;
	padding: 10px 44px 10px 16px;
}

.aanp-bar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-align: center;
}

.aanp-bar__badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.aanp-bar__badge--bf {
	background: var(--aanp-orange);
	color: #14110f;
}

.aanp-bar__badge--pct {
	background: transparent;
	border: 1px solid var(--aanp-border);
	color: #ffb27a;
}

.aanp-bar__badge--evergreen {
	background: var(--aanp-orange-soft);
	border: 1px solid var(--aanp-border);
	color: #ffb27a;
}

.aanp-bar__msg {
	opacity: 0.92;
}

.aanp-bar__evergreen-price {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.aanp-bar__evergreen-was {
	text-decoration: line-through;
	opacity: 0.5;
	font-size: 12px;
}

.aanp-bar__evergreen-now {
	display: inline-block;
	background: rgba(255, 122, 48, 0.16);
	border: 1px solid var(--aanp-border);
	color: #ffb27a;
	font-weight: 800;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 13px;
}

.aanp-bar__bundle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	padding: 4px 12px;
	text-decoration: none;
	color: #fff;
	white-space: nowrap;
}

.aanp-bar__bundle:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.aanp-bar__bundle-label {
	font-weight: 600;
}

.aanp-bar__bundle-was {
	text-decoration: line-through;
	opacity: 0.55;
	font-size: 12px;
}

.aanp-bar__bundle-now {
	font-weight: 700;
	color: #ffb27a;
}

.aanp-bar__countdown {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.aanp-bar__countdown-label {
	opacity: 0.6;
	font-size: 12px;
}

.aanp-cd-unit {
	display: inline-flex;
	align-items: baseline;
	gap: 2px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 6px;
	padding: 3px 6px;
	font-variant-numeric: tabular-nums;
}

.aanp-cd-unit strong {
	font-weight: 700;
}

.aanp-cd-unit em {
	font-style: normal;
	font-size: 10px;
	opacity: 0.65;
}

.aanp-bar__cta {
	display: inline-block;
	background: var(--aanp-orange);
	color: #14110f;
	font-weight: 700;
	text-decoration: none;
	padding: 7px 16px;
	border-radius: 999px;
	white-space: nowrap;
}

.aanp-bar__cta:hover {
	background: #ff8c4a;
	color: #14110f;
}

.aanp-bar__cta--glow {
	animation: aanp-bar-cta-glow 3s ease-in-out infinite;
}

.aanp-bar__all-templates {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.04);
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.aanp-bar__all-templates:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.4);
}

@keyframes aanp-bar-cta-glow {
	0%, 100% { box-shadow: 0 0 0 rgba(255, 122, 48, 0); }
	50% { box-shadow: 0 0 14px rgba(255, 122, 48, 0.55); }
}

.aanp-bar__close {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
	opacity: 0.7;
}

.aanp-bar__close:hover {
	opacity: 1;
}

@media (max-width: 900px) {
	.aanp-bar__countdown,
	.aanp-bar__bundle {
		display: none;
	}
}

/* ---------- Corner popup ---------- */

.aanp-popup {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 999998;
	width: 320px;
	max-width: calc(100vw - 32px);
	background: var(--aanp-bg-card);
	color: #fff;
	border: 1px solid var(--aanp-border);
	border-radius: 16px;
	padding: 18px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
	animation: aanp-slide-up 0.35s ease;
}

.aanp-popup[hidden] {
	display: none;
}

@keyframes aanp-slide-up {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}

.aanp-popup__close,
.aanp-exit__close {
	position: absolute;
	top: 10px;
	right: 10px;
	/* Without an explicit z-index, later same-level positioned siblings
	   (e.g. .aanp-exit__side) paint over this in the top-right corner
	   where they overlap, making the button visually unclickable even
	   though it's technically present in the DOM. */
	z-index: 10;
	background: rgba(255, 255, 255, 0.08);
	border: none;
	color: #fff;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
}

.aanp-popup__badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	background: var(--aanp-orange);
	color: #14110f;
	padding: 4px 10px;
	border-radius: 999px;
	margin-bottom: 12px;
}

.aanp-popup__title {
	font-size: 20px;
	margin: 0 0 2px;
	line-height: 1.25;
}

.aanp-popup__percent {
	color: var(--aanp-orange);
	font-size: 26px;
}

.aanp-popup__product {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 8px;
	opacity: 0.9;
}

.aanp-popup__text {
	font-size: 12.5px;
	opacity: 0.65;
	margin: 0 0 14px;
	line-height: 1.5;
}

.aanp-popup__prices {
	display: flex;
	gap: 10px;
	margin-bottom: 14px;
}

.aanp-popup__price {
	flex: 1;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	padding: 10px 8px;
	text-align: center;
}

.aanp-popup__price strong {
	display: block;
	font-size: 17px;
}

.aanp-popup__price span {
	display: block;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	opacity: 0.55;
	margin-top: 2px;
}

.aanp-popup__bundle {
	display: block;
	background: rgba(255, 122, 48, 0.08);
	border: 1px solid var(--aanp-border);
	border-radius: 10px;
	padding: 10px 12px;
	text-decoration: none;
	color: #fff;
	margin-bottom: 12px;
}

.aanp-popup__bundle:hover {
	background: rgba(255, 122, 48, 0.14);
	color: #fff;
}

.aanp-popup__bundle-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
}

.aanp-popup__bundle-top em {
	font-style: normal;
	background: rgba(255, 122, 48, 0.2);
	color: #ffb27a;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 999px;
}

.aanp-popup__bundle-desc {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	opacity: 0.65;
	line-height: 1.4;
}

.aanp-popup__bundle-bottom {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	opacity: 0.8;
}

.aanp-popup__was {
	text-decoration: line-through;
	opacity: 0.6;
	margin-right: 4px;
}

.aanp-popup__now {
	font-weight: 700;
	color: #ffb27a;
	margin-right: 4px;
}

.aanp-popup__ends {
	font-size: 11px;
	opacity: 0.55;
	margin: 0 0 12px;
}

.aanp-popup__cta {
	display: inline-block;
	width: 100%;
	text-align: center;
	background: linear-gradient(90deg, var(--aanp-orange), var(--aanp-orange-2));
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	padding: 11px 16px;
	border-radius: 999px;
	font-size: 14px;
}

.aanp-popup__cta:hover {
	color: #fff;
	opacity: 0.92;
}

/* ---------- Exit-intent modal ---------- */

.aanp-exit {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	background: rgba(10, 8, 7, 0.72);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.aanp-exit[hidden] {
	display: none;
}

.aanp-exit__dialog {
	position: relative;
	display: flex;
	align-items: stretch;
	background: radial-gradient(circle at 100% 0%, rgba(255, 122, 48, 0.16), transparent 60%), var(--aanp-bg-card);
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		radial-gradient(circle at 100% 0%, rgba(255, 122, 48, 0.16), transparent 60%);
	background-size: 24px 24px, 24px 24px, auto;
	color: #fff;
	border-radius: 20px;
	max-width: 640px;
	width: 100%;
	border: 1px solid var(--aanp-border);
	box-shadow: 0 0 0 1px rgba(255, 122, 48, 0.15), 0 0 60px rgba(255, 122, 48, 0.25), 0 20px 60px rgba(0, 0, 0, 0.55);
	animation: aanp-pop-in 0.25s ease;
	overflow: hidden;
}

@keyframes aanp-pop-in {
	from { opacity: 0; transform: scale(0.94); }
	to { opacity: 1; transform: scale(1); }
}

.aanp-exit__main {
	flex: 1.4;
	padding: 34px 32px;
	position: relative;
	z-index: 1;
}

.aanp-exit__badges {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.aanp-exit__logo {
	display: inline-block;
	font-weight: 700;
	font-size: 13px;
	opacity: 0.85;
}

.aanp-exit__badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	background: var(--aanp-orange-soft);
	color: #ff9c5c;
	padding: 4px 10px;
	border-radius: 999px;
}

.aanp-exit__badge--bf {
	background: var(--aanp-orange);
	color: #14110f;
	box-shadow: 0 0 16px rgba(255, 122, 48, 0.55);
	animation: aanp-badge-pulse 2.2s ease-in-out infinite;
}

@keyframes aanp-badge-pulse {
	0%, 100% { box-shadow: 0 0 10px rgba(255, 122, 48, 0.45); }
	50% { box-shadow: 0 0 20px rgba(255, 122, 48, 0.8); }
}

.aanp-exit__title {
	font-size: 27px;
	margin: 0 0 10px;
	line-height: 1.25;
}

.aanp-highlight {
	display: inline-block;
	background: linear-gradient(90deg, var(--aanp-orange), var(--aanp-orange-2));
	color: #14110f;
	font-weight: 800;
	padding: 1px 8px;
	border-radius: 6px;
	box-shadow: 0 0 14px rgba(255, 122, 48, 0.45);
}

.aanp-exit__text {
	font-size: 14px;
	opacity: 0.75;
	margin: 0 0 22px;
	line-height: 1.5;
}

.aanp-exit__cta {
	display: inline-block;
	background: linear-gradient(90deg, var(--aanp-orange), var(--aanp-orange-2));
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	padding: 13px 22px;
	border-radius: 999px;
	font-size: 14px;
	box-shadow: 0 4px 20px rgba(255, 77, 77, 0.4);
	animation: aanp-cta-pulse 2.2s ease-in-out infinite;
}

@keyframes aanp-cta-pulse {
	0%, 100% { box-shadow: 0 4px 16px rgba(255, 77, 77, 0.35); transform: scale(1); }
	50% { box-shadow: 0 4px 26px rgba(255, 77, 77, 0.65); transform: scale(1.025); }
}

.aanp-exit__cta:hover {
	color: #fff;
	opacity: 0.92;
}

.aanp-exit__ends {
	font-size: 12px;
	opacity: 0.6;
	margin: 0 0 18px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.aanp-exit__countdown {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.aanp-exit__side {
	flex: 1;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: rgba(0, 0, 0, 0.3);
	border-left: 1px solid rgba(255, 255, 255, 0.08);
	padding: 24px;
	overflow: hidden;
}

.aanp-exit__side-glow {
	position: absolute;
	width: 180px;
	height: 180px;
	background: radial-gradient(circle, rgba(255, 122, 48, 0.45), transparent 70%);
	border-radius: 50%;
	animation: aanp-glow-pulse 2.6s ease-in-out infinite;
}

@keyframes aanp-glow-pulse {
	0%, 100% { opacity: 0.5; transform: scale(0.9); }
	50% { opacity: 0.9; transform: scale(1.15); }
}

.aanp-exit__side-number {
	position: relative;
	font-size: 46px;
	font-weight: 800;
	background: linear-gradient(90deg, var(--aanp-orange), var(--aanp-orange-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	line-height: 1;
}

.aanp-exit__side-sub {
	position: relative;
	margin-top: 8px;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.02em;
}

.aanp-exit__side-sub2 {
	position: relative;
	margin-top: 4px;
	font-size: 12px;
	opacity: 0.6;
}

@media (max-width: 560px) {
	.aanp-exit__dialog {
		flex-direction: column;
	}
	.aanp-exit__side {
		border-left: none;
		border-top: 1px solid rgba(255, 255, 255, 0.08);
		padding: 18px;
	}
	.aanp-exit__main {
		padding: 28px 22px;
	}
}

@media (max-width: 480px) {
	.aanp-bar {
		font-size: 12px;
		padding: 8px 40px 8px 12px;
	}
	.aanp-popup {
		left: 12px;
		bottom: 12px;
	}
}
