body.aqb-nza-popup-open {
	overflow: hidden;
}

.aqb-nza-popup[hidden] {
	display: none !important;
}

.aqb-nza-popup {
	position: fixed;
	inset: 0;
	z-index: 3000;
	display: grid;
	place-items: center;
	padding: 22px;
	color: var(--aqb-white);
	opacity: 0;
	visibility: hidden;
	transition: opacity 220ms ease, visibility 220ms ease;
}

.aqb-nza-popup.is-visible {
	opacity: 1;
	visibility: visible;
}

.aqb-nza-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 2, 8, 0.82);
	backdrop-filter: blur(8px);
}

.aqb-nza-popup__panel {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 0.95fr);
	width: min(980px, 100%);
	max-height: min(720px, calc(100vh - 44px));
	overflow: hidden;
	border: 1px solid rgba(255, 216, 107, 0.42);
	border-radius: 10px;
	background:
		radial-gradient(ellipse at 16% 0%, rgba(113, 42, 143, 0.35), transparent 42%),
		linear-gradient(145deg, #1b0b27, #08050d 80%);
	box-shadow: 0 30px 100px rgba(0, 0, 0, 0.58);
	transform: translateY(18px) scale(0.98);
	transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.aqb-nza-popup.is-visible .aqb-nza-popup__panel {
	transform: translateY(0) scale(1);
}

.aqb-nza-popup__media {
	position: relative;
	min-height: 390px;
	overflow: hidden;
	order: 2;
}

.aqb-nza-popup__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(11, 5, 17, 0.5), transparent 55%), linear-gradient(0deg, rgba(8, 4, 13, 0.28), transparent 42%);
	pointer-events: none;
}

.aqb-nza-popup__media picture,
.aqb-nza-popup__media img {
	display: block;
	width: 100%;
	height: 100%;
}

.aqb-nza-popup__media img {
	object-fit: cover;
}

.aqb-nza-popup__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	min-width: 0;
	padding: clamp(32px, 5vw, 68px);
	order: 1;
}

.aqb-nza-popup__kicker {
	margin: 0 0 16px;
	color: var(--aqb-gold-soft);
	font-family: var(--aqb-font-accent);
	font-size: 0.68rem;
	font-weight: 900;
	letter-spacing: 0.18em;
	line-height: 1.3;
	text-transform: uppercase;
}

.aqb-nza-popup__content h2 {
	max-width: 510px;
	margin: 0;
	color: var(--aqb-white);
	font-family: var(--aqb-font-heading);
	font-size: clamp(2.8rem, 5vw, 5rem);
	font-weight: 600;
	line-height: 0.92;
}

.aqb-nza-popup__meta {
	margin: 20px 0 0;
	color: var(--aqb-gold-soft);
	font-family: var(--aqb-font-accent);
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.13em;
	line-height: 1.55;
	text-transform: uppercase;
}

.aqb-nza-popup__text {
	max-width: 450px;
	margin: 17px 0 0;
	color: rgba(255, 249, 239, 0.8);
	font-size: 0.96rem;
	font-weight: 600;
	line-height: 1.65;
}

.aqb-nza-popup__button {
	margin-top: 28px;
}

.aqb-nza-popup__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid rgba(255, 249, 239, 0.38);
	border-radius: 50%;
	background: rgba(5, 3, 8, 0.5);
	color: var(--aqb-white);
	font-family: var(--aqb-font-body);
	font-size: 1.45rem;
	line-height: 1;
	cursor: pointer;
	transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.aqb-nza-popup__close:hover,
.aqb-nza-popup__close:focus-visible {
	border-color: var(--aqb-gold-soft);
	background: rgba(236, 193, 98, 0.18);
	transform: rotate(4deg);
}

.aqb-nza-popup--editorial .aqb-nza-popup__panel {
	grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
	background: var(--aqb-paper-texture);
	color: var(--aqb-ink);
}

.aqb-nza-popup--editorial .aqb-nza-popup__content {
	order: 1;
}

.aqb-nza-popup--editorial .aqb-nza-popup__media {
	order: 2;
}

.aqb-nza-popup--editorial .aqb-nza-popup__media::after {
	background: linear-gradient(90deg, rgba(59, 30, 67, 0.18), transparent 54%), linear-gradient(0deg, rgba(18, 7, 25, 0.18), transparent 45%);
}

.aqb-nza-popup--editorial .aqb-nza-popup__kicker,
.aqb-nza-popup--editorial .aqb-nza-popup__meta {
	color: var(--aqb-gold-deep);
}

.aqb-nza-popup--editorial .aqb-nza-popup__content h2 {
	color: var(--aqb-ink);
}

.aqb-nza-popup--editorial .aqb-nza-popup__text {
	color: rgba(44, 24, 48, 0.76);
}

.aqb-nza-popup--editorial .aqb-nza-popup__close {
	border-color: rgba(44, 24, 48, 0.28);
	background: rgba(255, 250, 243, 0.68);
	color: var(--aqb-ink);
}

.aqb-nza-popup--compact .aqb-nza-popup__panel {
	grid-template-columns: minmax(190px, 0.62fr) minmax(0, 1.38fr);
	max-width: 850px;
}

.aqb-nza-popup--compact .aqb-nza-popup__media {
	min-height: 280px;
	order: 1;
}

.aqb-nza-popup--compact .aqb-nza-popup__content {
	order: 2;
	padding: clamp(30px, 4vw, 52px);
}

.aqb-nza-popup--compact .aqb-nza-popup__content h2 {
	font-size: clamp(2.3rem, 4vw, 3.8rem);
}

@media (max-width: 700px) {
	.aqb-nza-popup {
		padding: 14px;
	}

	.aqb-nza-popup__panel,
	.aqb-nza-popup--editorial .aqb-nza-popup__panel,
	.aqb-nza-popup--compact .aqb-nza-popup__panel {
		display: flex;
		flex-direction: column;
		max-height: calc(100vh - 28px);
		overflow-y: auto;
	}

	.aqb-nza-popup__media,
	.aqb-nza-popup--compact .aqb-nza-popup__media {
		flex: 0 0 210px;
		min-height: 210px;
		max-height: 34vh;
		order: 1 !important;
	}

	.aqb-nza-popup__content,
	.aqb-nza-popup--compact .aqb-nza-popup__content {
		order: 2 !important;
		padding: 30px 24px 28px;
	}

	.aqb-nza-popup__content h2,
	.aqb-nza-popup--compact .aqb-nza-popup__content h2 {
		font-size: clamp(2.45rem, 12vw, 3.5rem);
	}

	.aqb-nza-popup__text {
		font-size: 0.9rem;
	}

	.aqb-nza-popup__button {
		width: 100%;
	}
}

